/* Noodles by KG3 home: six sections you scroll between. Each .scene[data-scene] carries its own
   palette and layout; the rope (rope.js, on a fixed canvas layer) lives in page coordinates and
   re-bends onto whichever section crosses the middle of the screen (scenes.js).
   Two typefaces only: Instrument Serif for display, Instrument Sans for everything else. */

:root {
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --draw: 3.4s;
  --gutter: clamp(16px, 4vw, 48px);
  --bar-h: 68px;
  --ease: cubic-bezier(.65, 0, .25, 1);

  /* marquee palette is the default */
  --bg: #060507; --ink: #f5ede5; --muted: #a69b91; --accent: #ffb36b; --line: rgba(255, 196, 140, 0.14);
  --glow-o: 0.55; --haze: rgba(255, 140, 60, 0.2); --btn-ink: #1a0d05;
}

[data-scene="sheet"]   { --bg: #050c1a; --ink: #e8f2ff; --muted: #8ea6c6; --accent: #62d6ff; --line: rgba(98, 214, 255, 0.22); --glow-o: 0.5; --haze: rgba(40, 120, 255, 0.18); --btn-ink: #03111f; }
[data-scene="swag"]    { --bg: #10030d; --ink: #ffeaf8; --muted: #c79bbb; --accent: #ff5cd6; --line: rgba(255, 92, 214, 0.22); --glow-o: 0.6; --haze: rgba(255, 40, 200, 0.16); --btn-ink: #22001a; }
[data-scene="menu"]    { --bg: #f6eddc; --ink: #2b1510; --muted: #7b5a4b; --accent: #c4352a; --line: rgba(43, 21, 16, 0.16); --glow-o: 0; --haze: rgba(255, 255, 255, 0.5); --btn-ink: #fff6ea; --basil: #2f7a4b; }
[data-scene="console"] { --bg: #040704; --ink: #d9ffe3; --muted: #6f9479; --accent: #43ff8f; --line: rgba(67, 255, 143, 0.2); --glow-o: 0.5; --haze: rgba(40, 255, 120, 0.08); --btn-ink: #02160a; }
[data-scene="poster"]  { --bg: #0b0618; --ink: #ffffff; --muted: #b3a8cc; --accent: #c39bff; --line: rgba(195, 155, 255, 0.22); --glow-o: 0.6; --haze: rgba(140, 80, 255, 0.2); --btn-ink: #12062b; }

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-snap-type: y proximity; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* small labels: same sans, tracked caps */
.label, .eyebrow, .specs thead th, .patch thead th, .toc b, .next-k, .next-n { font: 600 12px/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- rope layer: fixed, above section backgrounds, below content ---------- */

.stage { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 1; pointer-events: none; }
.rope { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.rope-glow { filter: blur(14px); }
.live .rope-tube { opacity: 1; }
.live .rope-glow { opacity: var(--glow-o); transition: opacity 0.9s var(--ease); }

/* ---------- header: brand + big numbered section nav ---------- */

.bar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 5; height: var(--bar-h);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 var(--gutter);
  color: var(--ink); background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease), border-color 0.6s;
}
.brand { margin: 0; font: 400 24px/1 var(--serif); white-space: nowrap; text-decoration: none; }
.brand-by { font: 500 13px/1 var(--sans); letter-spacing: 0.04em; color: var(--muted); }
.toc ol { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.toc a {
  display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 99px;
  text-decoration: none; color: var(--muted); font: 500 14px/1 var(--sans); white-space: nowrap;
  border: 1px solid transparent; transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}
.toc b { font-size: 11px; color: var(--accent); }
.toc a:hover { color: var(--ink); border-color: var(--line); }
.toc a[aria-current="true"] { background: var(--accent); color: var(--btn-ink); }
.toc a[aria-current="true"] b { color: var(--btn-ink); opacity: 0.65; }
.toc a:focus-visible, .btn:focus-visible, .next:focus-visible, .brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- sections ---------- */

.scene {
  position: relative; min-height: 100vh; min-height: 100svh; scroll-snap-align: start;
  display: grid; grid-template-rows: 1fr auto; padding: calc(var(--bar-h) + 4vh) var(--gutter) 3vh;
  color: var(--ink);
  background: radial-gradient(70vmax 40vmax at 50% 30%, var(--haze), transparent 70%), var(--bg);
}
.layout, .next { position: relative; z-index: 2; }
.layout { width: min(100%, var(--max, 940px)); margin: 0 auto; display: grid; align-content: center; gap: 0 48px; padding: 2vh 0; }

.eyebrow { grid-area: eyebrow; display: flex; align-items: center; gap: 10px; color: var(--accent); margin: 0 0 14px; }
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 2.2s steps(1) infinite; }
@keyframes blink { 60% { opacity: 0.25; } }
.headline { grid-area: headline; font: 400 clamp(44px, 6.6vw, 84px)/1 var(--serif); letter-spacing: -0.01em; margin: 0 0 18px; }
.headline em { white-space: nowrap; color: var(--accent); text-shadow: 0 0 28px color-mix(in srgb, var(--accent) 45%, transparent); }
.lede { grid-area: lede; color: var(--muted); margin: 0 0 28px; max-width: 560px; }

.ctas { grid-area: ctas; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 500 15px/1 var(--sans); letter-spacing: 0.02em; text-decoration: none; transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.btn-hot { background: var(--accent); color: var(--btn-ink); box-shadow: 0 0 28px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-hot:hover { transform: translateY(-1px); box-shadow: 0 0 44px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-line { border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 3%, transparent); }
.btn-line:hover { border-color: var(--accent); }

/* big "next section" button at the foot of every section */
.next {
  justify-self: center; display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 22px 0 24px; margin-top: 2vh;
  border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--bg) 70%, transparent); transition: border-color 0.25s, background-color 0.25s;
}
.next:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
.next-k { color: var(--muted); }
.next-n { color: var(--accent); }
.next-t { font: 400 24px/1 var(--serif); }
.arr { width: 18px; height: 18px; color: var(--accent); animation: nudge 2.4s var(--ease) infinite; }
.next.up .arr { transform: rotate(180deg); animation: none; }
@keyframes nudge { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(4px); } }

/* ---------- 01 marquee ---------- */
[data-scene="marquee"] .layout { justify-items: center; text-align: center; grid-template-areas: "wm" "by" "eyebrow" "headline" "lede" "ctas" "pixels"; }
[data-scene="marquee"] .eyebrow, [data-scene="marquee"] .ctas { justify-content: center; }
[data-scene="marquee"] .lede { margin-inline: auto; }
.wm { grid-area: wm; width: min(100%, max(300px, calc((100svh - 640px) * 3.1))); margin-bottom: 2vh; } /* sized so the whole intro + its Next button fit one screen */
.wordmark { display: block; width: 100%; height: auto; overflow: visible; -webkit-box-reflect: below -4% linear-gradient(transparent 55%, rgba(0, 0, 0, 0.16)); }
.s { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: draw var(--draw) cubic-bezier(.55, .1, .35, 1) 0.4s forwards; }
.s-bloom { stroke: #ff9a45; stroke-width: 24; opacity: 0.45; filter: url(#bloom); --lit: 0.6; }
.s-halo  { stroke: #ffb27a; stroke-width: 14; opacity: 0.5; filter: url(#soft); --lit: 0.72; }
.s-tube  { stroke: #ffcf9c; stroke-width: 9; }
.s-core  { stroke: #fff7ee; stroke-width: 3.2; opacity: 0.9; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.s-bloom, .s-halo { animation: draw var(--draw) cubic-bezier(.55, .1, .35, 1) 0.4s forwards, power 1.1s linear calc(var(--draw) + 0.4s) forwards; }
@keyframes power { 0% { opacity: 0.55; } 8% { opacity: 0.2; } 16% { opacity: 0.8; } 24% { opacity: 0.35; } 40%, 100% { opacity: var(--lit, 0.7); } }
.s-chase { stroke: #fff; stroke-width: 7; opacity: 0; stroke-dasharray: 0.045 0.955; stroke-dashoffset: 1; filter: url(#soft); animation: chase 7s linear calc(var(--draw) + 1.6s) infinite; }
@keyframes chase { 0% { stroke-dashoffset: 1.05; opacity: 0.85; } 100% { stroke-dashoffset: 0; opacity: 0.85; } }
.cap-b { opacity: 0; animation: cap-in 0.3s ease-out calc(var(--draw) + 0.3s) forwards; }
@keyframes cap-in { to { opacity: 1; } }
.warm, .cap { transition: opacity 1.4s ease; }
.live .warm, .live .cap { opacity: 0; }
.live .wordmark { -webkit-box-reflect: unset; }
.by { grid-area: by; margin: -0.3em 3% 3vh 0; justify-self: end; font: 500 clamp(15px, 2.1vw, 22px)/1 var(--sans); letter-spacing: 0.04em; opacity: 0.9; }

.pixels { grid-area: pixels; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 28px; color: var(--muted); }
.pixels .sw { display: flex; gap: 8px; }
.pixels button {
  width: 28px; height: 28px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 2px solid color-mix(in srgb, var(--bg) 70%, transparent); background: var(--sw);
  box-shadow: 0 0 0 1px var(--line); transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.pixels button:hover { transform: scale(1.15); }
.pixels button.on { box-shadow: 0 0 0 2px var(--ink); transform: scale(1.12); }
.pixels button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[data-look="warm"]    { --sw: linear-gradient(90deg, #ff8c2e, #ffdba8, #ff8c2e); }
[data-look="ice"]     { --sw: linear-gradient(90deg, #1f4dff, #d1f2ff, #1f4dff); }
[data-look="sweep"]   { --sw: linear-gradient(90deg, #ff1fc7, #14dbff); }
[data-look="tomato"]  { --sw: linear-gradient(90deg, #db1f12, #ff7a14); }
[data-look="comets"]  { --sw: linear-gradient(90deg, #0d1770 0 45%, #14dbff 70%, #fff 80%, #0d1770 82%); }
[data-look="rainbow"] { --sw: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
[data-look="wipe"]    { --sw: linear-gradient(90deg, #ff8c2e 0 50%, #ff1fc7 50% 100%); }
[data-look="bands"]   { --sw: repeating-linear-gradient(90deg, #ff1f14 0 5px, #ffdba8 5px 10px); }

/* ---------- 02 noodle bar ---------- */
[data-scene="menu"] { color-scheme: light; }
[data-scene="menu"] .layout { --max: 600px; text-align: center; padding-top: 8vh; grid-template-areas: "eyebrow" "headline" "menu"; }
[data-scene="menu"] .eyebrow { justify-content: center; color: var(--basil); }
[data-scene="menu"] .eyebrow .led { background: var(--basil); box-shadow: none; }
[data-scene="menu"] .headline em { text-shadow: none; }
.menu { grid-area: menu; list-style: none; margin: 8px 0 10px; padding: 0; text-align: left; }
.menu li { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 0 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.menu b { font: 400 32px/1.1 var(--serif); }
.menu b a { color: inherit; text-decoration: none; }
.menu b a:hover { color: var(--accent); }
.menu i { border-bottom: 2px dotted color-mix(in srgb, var(--ink) 35%, transparent); transform: translateY(-6px); }
.menu span { font: 500 14px/1 var(--sans); color: var(--accent); font-variant-numeric: tabular-nums; }
.menu small { grid-column: 1 / -1; color: var(--muted); font-size: 15px; margin-top: 4px; }

/* ---------- 03 on the truss ---------- */
[data-scene="swag"] .layout { --max: 1140px; width: 100%; align-content: end; padding-top: max(36vh, 240px); grid-template-areas: "eyebrow" "headline" "lede" "uses"; }
[data-scene="swag"] .headline { font-size: clamp(56px, 9vw, 128px); line-height: 0.95; }
.uses { grid-area: uses; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.uses button {
  min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 99px; cursor: pointer;
  font: 500 15px/1 var(--sans); color: var(--ink); background: color-mix(in srgb, var(--accent) 7%, transparent);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.uses button:hover { border-color: var(--accent); }
.uses button[aria-pressed="true"] { background: var(--accent); color: var(--btn-ink); border-color: var(--accent); box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 40%, transparent); }
.uses button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- 04 spec sheet ---------- */
[data-scene="sheet"] .layout { --max: 1140px; width: 100%; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "eyebrow specs" "headline specs" "lede specs" "ctas specs"; align-items: start; align-content: center; }
.specs { grid-area: specs; align-self: center; margin: 24px 0; border-collapse: collapse; width: 100%; font: 400 15px/1.3 var(--sans); }
.specs th, .specs td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.specs thead th { font-size: 11px; color: var(--muted); }
.specs tbody th { font: 400 22px/1.1 var(--serif); }
.specs td { font-size: 15px; color: var(--accent); font-variant-numeric: tabular-nums; }
.specs tfoot a { color: var(--accent); }
.specs tfoot td { font-size: 13px; line-height: 1.5; color: var(--muted); white-space: normal; border: 0; padding-top: 14px; }

/* ---------- 05 design kit ---------- */
[data-scene="kit"] { --bg: #0a0806; --ink: #fbf3e6; --muted: #b3a797; --accent: #ffdca8; --line: rgba(255, 220, 168, 0.2); --glow-o: 0.5; --haze: rgba(255, 200, 130, 0.14); --btn-ink: #1c1305; }
[data-scene="kit"] .layout { --max: 1140px; width: 100%; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "eyebrow kit" "headline kit" "lede kit" "ctas kit"; align-items: start; align-content: center; }
.kit { grid-area: kit; align-self: center; list-style: none; margin: 24px 0; padding: 0; }
.kit li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.kit b { font: 400 24px/1.1 var(--serif); }
.kit span { font: 600 11px/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.kit small { grid-column: 1 / -1; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.btn small { font-size: 12px; font-weight: 400; opacity: 0.7; margin-left: 8px; }

/* ---------- 06 console ---------- */
[data-scene="console"] .layout { --max: 1140px; width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "eyebrow slot" "headline slot" "lede slot" "cues slot" "patch slot"; align-items: start; align-content: center; }
.cues { grid-area: cues; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; }
.cues button {
  width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted);
  font: 500 14px/1 var(--sans); cursor: pointer; transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.cues button:hover { border-color: var(--accent); color: var(--ink); }
.cues button.on { background: var(--accent); border-color: var(--accent); color: var(--btn-ink); }
.cues button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.patch { grid-area: patch; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.patch th, .patch td { padding: 8px 22px 8px 0; text-align: left; border-bottom: 1px dashed var(--line); font-weight: 400; }
.patch thead th { font-size: 11px; color: var(--muted); }
.patch td { color: var(--accent); }
.slot { grid-area: slot; width: 100%; aspect-ratio: 1; max-width: 440px; justify-self: center; align-self: center; }

/* ---------- 07 your show ---------- */
[data-scene="poster"] .layout { --max: 1180px; width: 100%; justify-items: center; text-align: center; grid-template-areas: "eyebrow" "headline" "lede" "ctas"; }
[data-scene="poster"] .eyebrow, [data-scene="poster"] .ctas { justify-content: center; }
[data-scene="poster"] .headline { font-size: clamp(56px, 11vw, 168px); line-height: 0.9; margin-bottom: 26px; }
[data-scene="poster"] .ctas { margin-top: 14px; gap: 40px 20px; }
[data-scene="poster"] .btn { min-height: 58px; padding: 0 32px; font-size: 17px; }
[data-scene="poster"] .btn-hot { margin-inline: 20px; }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px var(--gutter) 24px; color: #b3a8cc; background: #0b0618; }
.foot p { margin: 0; font-size: 12.5px; }
.foot p span { opacity: 0.5; padding: 0 4px; }
.foot-logo img { display: block; width: 56px; height: auto; }

/* ---------- KG3 logo ---------- */
.kg3 { display: inline-block; width: auto; vertical-align: middle; }
.brand-by .kg3 { height: 19px; margin: -5px 0 0 2px; }
.by .kg3 { height: 1.5em; margin: -0.35em 0 0 0.15em; }
.bar[data-scene="menu"] .kg3 { filter: drop-shadow(0 0 0.6px rgba(43, 21, 16, 0.85)); }

/* ---------- responsive ---------- */

@media (max-width: 1280px) {
  .toc a { padding: 0 11px; }
  .toc a span { display: none; }
  .toc a[aria-current="true"] span { display: inline; }
}

@media (max-width: 860px) {
  [data-scene="sheet"] .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "eyebrow" "headline" "lede" "specs" "ctas"; }
  [data-scene="kit"] .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "eyebrow" "headline" "lede" "kit" "ctas"; }
  .kit { margin: 4px 0 22px; }
  [data-scene="console"] .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "slot" "eyebrow" "headline" "lede" "cues" "patch"; }
  [data-scene="console"] .slot { max-width: 180px; margin-bottom: 18px; }
}

@media (max-width: 600px) {
  :root { --bar-h: 58px; }
  body { font-size: 16px; }
  .bar { gap: 8px; }
  .brand { font-size: 21px; }
  .brand-by { display: none; }
  .toc ol { gap: 2px; }
  .toc a { min-height: 36px; min-width: 32px; padding: 0; justify-content: center; }
  .toc a[aria-current="true"] span { display: none; }
  .toc b { font-size: 12px; letter-spacing: 0.04em; }
  .foot p { font-size: 11px; text-align: center; }
  .foot-logo { display: none; }
  .btn { flex: 1 1 100%; }
  .specs th, .specs td { padding: 10px 6px; }
  .specs .pitch { display: none; }
  .specs tbody th { font-size: 18px; }
  .specs td { font-size: 13px; }
  .cues { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .cues button { font-size: 12.5px; padding: 0 4px; }
  .menu b { font-size: 27px; }
  .kit b { font-size: 21px; }
  .kit li { padding: 10px 0; }
  .kit small { font-size: 13.5px; }
  .next { min-height: 52px; padding: 0 18px; gap: 10px; }
  .next-t { font-size: 21px; }
  .pixels .sw { gap: 6px; }
  .pixels button { width: 26px; height: 26px; }
  [data-scene="swag"] .layout { padding-top: 30vh; }
  [data-scene="menu"] .layout { padding-top: 7vh; }
  [data-scene="poster"] .btn { flex: 0 1 auto; }
  [data-scene="poster"] .btn-hot { flex-basis: 100%; margin-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .s, .s-bloom, .s-halo, .cap-b, .led, .arr { animation: none; }
  .s { stroke-dashoffset: 0; }
  .s-bloom { opacity: 0.6; } .s-halo { opacity: 0.72; }
  .s-chase { display: none; }
  .cap-b { opacity: 1; }
}

/* tab opened in the background: hold the intro until it is seen */
.wait .s, .wait .cap-b { animation-play-state: paused; }

/* ---------- look themes: picking a pixel look re-colours the page to match (body[data-theme], set by scenes.js / viewer.js).
   Warm is the default palette. Colours are registered so the whole page cross-fades. Generated block: keep in sync between styles.css and home.css. ---------- */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #060507; }
@property --ink { syntax: "<color>"; inherits: true; initial-value: #f5ede5; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #a69b91; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #ffb36b; }
@property --line { syntax: "<color>"; inherits: true; initial-value: rgba(255, 196, 140, 0.14); }
@property --haze { syntax: "<color>"; inherits: true; initial-value: rgba(255, 140, 60, 0.2); }
@property --btn-ink { syntax: "<color>"; inherits: true; initial-value: #1a0d05; }
.scene { transition: --bg 0.7s ease, --ink 0.7s ease, --muted 0.7s ease, --accent 0.7s ease, --line 0.7s ease, --haze 0.7s ease, --btn-ink 0.7s ease; }
[data-theme="warm"] .scene:not([data-scene="menu"]), [data-theme="warm"] .bar:not([data-scene="menu"]) { --bg: #060507; --ink: #f5ede5; --muted: #a69b91; --accent: #ffb36b; --line: rgba(255, 196, 140, 0.14); --haze: rgba(255, 140, 60, 0.2); --btn-ink: #1a0d05; }
[data-theme="ice"] .scene:not([data-scene="menu"]), [data-theme="ice"] .bar:not([data-scene="menu"]) { --bg: #050c1a; --ink: #e8f2ff; --muted: #8ea6c6; --accent: #62d6ff; --line: rgba(98, 214, 255, 0.22); --haze: rgba(40, 120, 255, 0.18); --btn-ink: #03111f; }
[data-theme="sweep"] .scene:not([data-scene="menu"]), [data-theme="sweep"] .bar:not([data-scene="menu"]) { --bg: #10030d; --ink: #ffeaf8; --muted: #c79bbb; --accent: #ff5cd6; --line: rgba(255, 92, 214, 0.22); --haze: rgba(255, 40, 200, 0.16); --btn-ink: #22001a; }
[data-theme="tomato"] .scene:not([data-scene="menu"]), [data-theme="tomato"] .bar:not([data-scene="menu"]) { --bg: #0e0403; --ink: #ffeee6; --muted: #c49b8c; --accent: #ff6a3d; --line: rgba(255, 106, 61, 0.22); --haze: rgba(255, 60, 20, 0.18); --btn-ink: #240a03; }
[data-theme="comets"] .scene:not([data-scene="menu"]), [data-theme="comets"] .bar:not([data-scene="menu"]) { --bg: #04061c; --ink: #e6eeff; --muted: #8f9cc9; --accent: #8fb4ff; --line: rgba(143, 180, 255, 0.22); --haze: rgba(60, 90, 255, 0.18); --btn-ink: #060b26; }
[data-theme="rainbow"] .scene:not([data-scene="menu"]), [data-theme="rainbow"] .bar:not([data-scene="menu"]) { --bg: #0b0618; --ink: #ffffff; --muted: #b3a8cc; --accent: #c39bff; --line: rgba(195, 155, 255, 0.22); --haze: rgba(140, 80, 255, 0.2); --btn-ink: #12062b; }
[data-theme="wipe"] .scene:not([data-scene="menu"]), [data-theme="wipe"] .bar:not([data-scene="menu"]) { --bg: #0d0409; --ink: #fff0ea; --muted: #c79f9c; --accent: #ff8a6b; --line: rgba(255, 138, 107, 0.22); --haze: rgba(255, 70, 120, 0.16); --btn-ink: #26090a; }
[data-theme="bands"] .scene:not([data-scene="menu"]), [data-theme="bands"] .bar:not([data-scene="menu"]) { --bg: #0e0303; --ink: #fff3e0; --muted: #c7a08f; --accent: #ff4a3d; --line: rgba(255, 74, 61, 0.24); --haze: rgba(255, 30, 20, 0.16); --btn-ink: #250403; }
[data-theme="chase"] .scene:not([data-scene="menu"]), [data-theme="chase"] .bar:not([data-scene="menu"]) { --bg: #0e0303; --ink: #fff3e0; --muted: #c7a08f; --accent: #ff4a3d; --line: rgba(255, 74, 61, 0.24); --haze: rgba(255, 30, 20, 0.16); --btn-ink: #250403; }
[data-theme="white"] .scene:not([data-scene="menu"]), [data-theme="white"] .bar:not([data-scene="menu"]) { --bg: #08080a; --ink: #f8f5ef; --muted: #a5a19a; --accent: #fff1dc; --line: rgba(255, 244, 226, 0.18); --haze: rgba(255, 236, 210, 0.12); --btn-ink: #17130c; }
[data-theme="off"] .scene:not([data-scene="menu"]), [data-theme="off"] .bar:not([data-scene="menu"]) { --bg: #070708; --ink: #e2e0dc; --muted: #8b8986; --accent: #bdb9b2; --line: rgba(255, 255, 255, 0.12); --haze: rgba(255, 255, 255, 0.03); --btn-ink: #0d0d0e; }
@keyframes hue-walk { 0% { --accent: #ff7a8a; } 17% { --accent: #ffb36b; } 33% { --accent: #f2e06a; } 50% { --accent: #6fe39a; } 67% { --accent: #62d6ff; } 83% { --accent: #c39bff; } 100% { --accent: #ff7a8a; } }
@media (prefers-reduced-motion: no-preference) { [data-theme="rainbow"] .scene:not([data-scene="menu"]), [data-theme="rainbow"] .bar:not([data-scene="menu"]) { animation: hue-walk 12s linear infinite; } }


/* ---------- Designer Kit: always one tap away (header pill on wide screens, bottom bar on phones) ---------- */
.kitpill {
  flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 99px;
  background: var(--accent); color: var(--btn-ink); font: 600 14px/1 var(--sans); letter-spacing: 0.02em; text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 40%, transparent); transition: background-color 0.6s var(--ease), color 0.6s var(--ease), box-shadow 0.25s;
}
.kitpill:hover { box-shadow: 0 0 36px color-mix(in srgb, var(--accent) 70%, transparent); }
.kitpill:focus-visible, .kitbar:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.kitbar { display: none; }
@media (max-width: 900px) {
  .kitpill { display: none; }
  .kitbar {
    position: fixed; z-index: 6; left: var(--gutter); right: var(--gutter); bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 8px 18px 8px 22px; border-radius: 99px;
    background: var(--accent); color: var(--btn-ink); text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 28px color-mix(in srgb, var(--accent) 45%, transparent);
    transition: transform 0.45s var(--ease), opacity 0.45s var(--ease), background-color 0.6s var(--ease), color 0.6s var(--ease);
  }
  .kitbar-t { display: grid; gap: 3px; }
  .kitbar b { font: 600 16px/1.1 var(--sans); }
  .kitbar-t span { font: 500 12.5px/1.2 var(--sans); opacity: 0.78; }
  .kitbar .arr { width: 18px; height: 18px; flex: none; }
  body[data-active="marquee"] .kitbar, body[data-active="kit"] .kitbar { transform: translateY(160%); opacity: 0; pointer-events: none; }
  .scene { padding-bottom: calc(3vh + 84px); }
}
@media (prefers-reduced-motion: reduce) { .kitbar { transition: none; } }
