/* 87 · Quiet engineer */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-opsz-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-display: swap;
}

:root {
  --bg: #070706;
  --bg-2: #0c0c0b;
  --ink: #f3f0ea;
  --ink-2: #aaa59c;
  --ink-3: #85817a;
  --line: rgb(255 244 228 / 0.085);
  --line-2: rgb(255 244 228 / 0.16);
  --acc: #ffb36a;           /* one accent: warm horizon light */
  --acc-soft: rgb(255 179 106 / 0.14);
  --pad: clamp(20px, 4.4vw, 72px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.still { scroll-behavior: auto; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font: 400 17px/1.55 "Inter", system-ui, sans-serif;
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.mono { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: .02em; text-transform: uppercase; }
p, h1, h2, h3, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1.5px solid var(--acc); outline-offset: 4px; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 6px; }
.skip:focus { top: 12px; }
::selection { background: var(--acc); color: #120a02; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--pad);
  transition: background .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.top.is-scrolled { background: rgb(7 7 6 / 0.72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.mark { justify-self: start; display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 50%; transition: border-color .3s, background .3s; }
.mark:hover { border-color: var(--ink-2); background: rgb(255 255 255 / .04); }
.mark__mw { font: 600 11px/1 "Inter"; letter-spacing: .04em; }
.top__nav { display: flex; gap: 4px; }
.top__nav a, .next a, .repos a { position: relative; }
.top__nav a { font-size: 14px; color: var(--ink-2); padding: 6px 12px; border-radius: 99px; transition: color .25s, background .25s; }
.top__nav a:hover { color: var(--ink); background: rgb(255 255 255 / .06); }
.top__where { justify-self: end; color: var(--ink-3); display: flex; gap: 10px; }
.top__where time { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.clock .colon { animation: blink 2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: max(100svh, 640px);
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: clamp(112px, 17vh, 190px) var(--pad) 0;
  overflow: hidden; isolation: isolate;
}
.horizon { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -1; }
/* No-WebGL / pre-paint fallback: a quiet line of light and a dot floor in CSS */
.hero::before, .end::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 18% at 50% var(--hz, 64%), rgb(255 170 95 / .16), transparent 70%),
    linear-gradient(to bottom, transparent calc(var(--hz, 64%) - 0.5px), rgb(255 236 214 / .55) var(--hz, 64%), transparent calc(var(--hz, 64%) + 1px));
}
.hero__copy { position: relative; max-width: min(1000px, 100%); }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); margin-bottom: clamp(18px, 2.6vh, 28px); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 0 rgb(255 179 106 / .5); animation: breathe 3.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgb(255 179 106 / 0); opacity: .85; } 50% { box-shadow: 0 0 0 6px rgb(255 179 106 / .10); opacity: 1; } }
h1 {
  font-size: clamp(52px, 8.4vw, 136px); line-height: .94; font-weight: 600;
  letter-spacing: -0.045em; margin-left: -0.05em;
  background-image: linear-gradient(105deg, transparent 46.5%, rgb(255 206 156 / .9) 50%, transparent 53.5%), linear-gradient(180deg, #fffdf9 30%, #d9d3c9 100%);
  background-size: 300% 100%, 100% 100%; background-repeat: no-repeat; background-position: 0% 0, 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.moving h1 { animation: sheen 2.4s cubic-bezier(.45,.05,.2,1) .7s both; }
.moving h1.sheen { animation: sheen2 1.8s cubic-bezier(.45,.05,.2,1) both; }
@keyframes sheen { from { background-position: 100% 0, 0 0; } to { background-position: 0% 0, 0 0; } }
@keyframes sheen2 { from { background-position: 100% 0, 0 0; } to { background-position: 0% 0, 0 0; } }
.line {
  margin-top: clamp(22px, 3.4vh, 36px); max-width: 23em;
  font-size: clamp(21px, 2.3vw, 33px); line-height: 1.28; letter-spacing: -0.017em; font-weight: 420;
  color: var(--ink-2);
  transition: color .5s var(--ease);
}
.ph {
  color: var(--ink); font-weight: 480; display: inline; text-align: left;
  background-image: radial-gradient(circle, currentColor 0.9px, transparent 1.3px);
  background-size: 5px 3px; background-repeat: repeat-x; background-position: 0 100%;
  padding-bottom: 4px;
  transition: color .4s var(--ease), opacity .4s var(--ease), filter .4s var(--ease), background-size .4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.line.is-open .ph { color: rgb(243 240 234 / .38); }
.line.is-open { color: rgb(170 165 156 / .45); }
.line.is-open .ph.is-on { color: var(--ink); background-image: linear-gradient(var(--acc), var(--acc)); background-size: 100% 1.5px; }
.ph:hover { color: #fff; }

.cap { display: grid; margin-top: clamp(22px, 3vh, 32px); max-width: 40em; min-height: 5.2em; }
.cap__p {
  grid-area: 1 / 1; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.6; color: var(--ink-3);
  opacity: 0; transform: translateY(6px); filter: blur(4px);
  transition: opacity .45s var(--ease), transform .55s var(--ease), filter .45s var(--ease);
  pointer-events: none;
}
.cap__p.is-on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.cap__p[data-k="0"] { color: var(--ink-3); }
.cap__p:not([data-k="0"]) { color: var(--ink-2); }
.cap__tag { display: inline-block; color: var(--acc); margin-right: 12px; font-size: 11px; transform: translateY(-1px); }

.cue {
  position: absolute; left: var(--pad); bottom: 28px; display: flex; align-items: center; gap: 14px; color: var(--ink-3);
  transition: color .3s;
}
.cue:hover { color: var(--ink); }
.cue__line { width: 48px; height: 1px; background: linear-gradient(90deg, var(--ink-3), transparent); position: relative; overflow: hidden; }
.moving .cue__line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--acc), transparent); transform: translateX(-100%); animation: run 3.2s var(--ease) infinite 1.5s; }
@keyframes run { to { transform: translateX(100%); } }

/* ---------- sections ---------- */
.sec { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(96px, 15vh, 180px) var(--pad) 0; }
.idx { color: var(--ink-3); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.idx::before { content: ""; width: 16px; height: 1px; background: var(--acc); }
h2 { font-size: clamp(32px, 4.1vw, 60px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 560; max-width: 15em; text-wrap: balance; }
.sec__lead { margin-top: 18px; color: var(--ink-2); font-size: clamp(17px, 1.35vw, 20px); max-width: 32em; text-wrap: pretty; }
.sec__head { margin-bottom: clamp(44px, 7vh, 76px); }

/* reveal */
.moving .rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.moving .rv.in { opacity: 1; transform: none; }

/* ---------- work cards ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 1.6vw, 24px); }
.card {
  --mx: 50%; --my: 0%;
  position: relative; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, #0f0f0d, #0a0a09);
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px rgb(0 0 0 / .8);
  display: flex; flex-direction: column;
}
.card::after { /* light follows the pointer along the edge */
  content: ""; z-index: 3; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgb(255 190 130 / .55), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .5s var(--ease);
}
.card:hover::after { opacity: 1; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; z-index: 2; }
.card__fig { position: relative; aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line); background: #060605; }
.viz { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.card__figcap { position: absolute; left: 22px; top: 18px; color: var(--ink-3); font-size: 10.5px; }
.card__body { padding: clamp(24px, 2.6vw, 40px); display: flex; flex-direction: column; gap: 16px; flex: 1; }
.card__meta { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-3); }
.card__meta span:first-child { color: var(--acc); }
.card h3 { font-size: clamp(23px, 1.95vw, 30px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 540; text-wrap: balance; }
.card__body > p:not(.card__meta) { color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.fact { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.fact__n { font-size: clamp(40px, 3.6vw, 56px); font-weight: 560; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.fact__t { color: var(--ink-2); font-size: 15px; flex: 1; min-width: 12em; }
.src { display: inline-block; margin-left: 6px; color: var(--ink-3); font-size: 10.5px; border-bottom: 1px solid var(--line-2); transition: color .25s, border-color .25s; }
.src:hover { color: var(--acc); border-color: var(--acc); }

/* ---------- record ---------- */
.record__list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.record__list li { padding: 30px 28px 6px 0; display: flex; flex-direction: column; gap: 12px; position: relative; }
.record__list li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.record__k { color: var(--acc); }
.record__t { font-size: clamp(21px, 1.7vw, 26px); line-height: 1.18; letter-spacing: -0.02em; font-weight: 520; text-wrap: balance; }
.record__n { color: var(--ink-3); font-size: 15px; text-wrap: pretty; }

/* ---------- timeline ---------- */
.tl { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; padding-top: 34px; }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); }
.tl::after {
  content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 100%;
  background: linear-gradient(90deg, rgb(255 179 106 / 0), var(--acc)); transform-origin: left; transform: scaleX(var(--tl, 1));
}
.tl li { position: relative; padding-right: 22px; display: flex; flex-direction: column; gap: 10px; }
.tl li::before { content: ""; position: absolute; top: -38px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--ink-3); transition: background .4s, box-shadow .4s; }
.tl time { color: var(--ink-3); }
.tl p { color: var(--ink-2); font-size: 15.5px; line-height: 1.45; text-wrap: pretty; }
.tl li:hover p { color: var(--ink); }
.tl li:hover::before { background: var(--ink); }
.tl__now time { color: var(--acc); }
.tl__now p { color: var(--ink); }
.tl__now::before { background: var(--acc) !important; box-shadow: 0 0 0 5px rgb(255 179 106 / .14), 0 0 18px rgb(255 179 106 / .6) !important; }
.caret { display: inline-block; width: .5em; height: 1.05em; margin-left: 4px; vertical-align: -0.18em; background: var(--acc); }
.moving .caret { animation: blink 1.1s steps(1) infinite; }

/* ---------- layers ---------- */
.layers { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.layers__intro { position: sticky; top: 120px; }
.layers__readout { margin-top: 40px; color: var(--ink-3); display: flex; align-items: center; gap: 10px; min-height: 1.5em; }
.layers__readout::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }
.layers__readout span { color: var(--ink); transition: opacity .2s; }
.stack { border-top: 1px solid var(--line); }
.stack li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 15px 4px; border-bottom: 1px solid var(--line); position: relative;
  transition: padding .45s var(--ease), color .3s;
}
.stack li::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, var(--acc), transparent 75%); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.stack__l { font-size: clamp(18px, 1.5vw, 23px); letter-spacing: -0.018em; font-weight: 480; color: var(--ink); transition: color .3s, transform .45s var(--ease); }
.stack__d { color: var(--ink-3); font-size: 11px; text-align: right; transition: color .3s; }
/* importance: architecture, AI and cloud lead; hardware is depth */
.stack li:nth-child(n+9) .stack__l { color: var(--ink-2); }
.stack.is-hover li .stack__l { color: var(--ink-3); }
.stack.is-hover li.is-on .stack__l { color: var(--ink); transform: translateX(10px); }
.stack.is-hover li.is-on .stack__d { color: var(--ink-2); }
.stack li.is-on::before { transform: scaleX(1); }

/* ---------- multiplier & repos ---------- */
.more { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); }
.more__big { font-size: clamp(22px, 2vw, 30px); line-height: 1.3; letter-spacing: -0.02em; font-weight: 440; text-wrap: pretty; max-width: 20em; }
.repos { border-top: 1px solid var(--line); }
.repos a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease); }
.repos__n { font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.repos__d { color: var(--ink-3); font-size: 14.5px; text-align: right; transition: color .3s; }
.repos a:hover { padding-left: 8px; }
.repos a:hover .repos__d { color: var(--ink-2); }

/* ---------- end ---------- */
.end { position: relative; margin-top: clamp(110px, 18vh, 200px); min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; --hz: 74%; }
.end__copy { width: 100%; max-width: var(--max); margin: 0 auto; padding: clamp(40px, 8vh, 90px) var(--pad) 0; }
.end h2 { font-size: clamp(40px, 6.2vw, 96px); letter-spacing: -0.045em; line-height: .98; max-width: 10em; }
.next { margin-top: clamp(28px, 5vh, 52px); display: flex; flex-wrap: wrap; gap: 10px; }
.next a {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px 14px 24px; border-radius: 99px;
  font-size: 17px; font-weight: 480; color: var(--ink);
  background: rgb(255 248 238 / .05); box-shadow: inset 0 0 0 1px var(--line-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .3s, box-shadow .3s, color .3s;
}
.next li:first-child a { background: var(--ink); color: #0b0a09; box-shadow: none; }
.next a:hover { background: rgb(255 248 238 / .1); box-shadow: inset 0 0 0 1px rgb(255 248 238 / .3); }
.next li:first-child a:hover { background: #fff; }
.next__a { display: inline-block; transition: transform .4s var(--ease); }
.next a:hover .next__a { transform: translateX(4px); }
.foot {
  margin-top: auto; width: 100%; max-width: var(--max); margin-inline: auto;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px var(--pad) calc(22px + env(safe-area-inset-bottom)); color: rgb(243 240 234 / .55); font-size: 10.5px;
}
.foot time { font-variant-numeric: tabular-nums; }

/* ---------- phone ---------- */
@media (max-width: 860px) {
  .top { grid-template-columns: auto 1fr; padding-top: 14px; padding-bottom: 14px; }
  .top__where { display: none; }
  .top__nav { justify-self: end; }
  .top__nav a { font-size: 13px; padding: 6px 9px; }
  .hero { padding-top: 104px; }
  h1 { font-size: clamp(50px, 15vw, 84px); }
  .line { font-size: clamp(21px, 5.7vw, 26px); }
  .cap { min-height: 8.4em; }
  .cap__p { font-size: 15px; }
  .cards, .record__list, .more, .layers { grid-template-columns: 1fr; }
  .record__list li, .record__list li + li { padding: 24px 0; border-left: 0; }
  .record__list li + li { border-top: 1px solid var(--line); }
  .tl { grid-template-columns: 1fr; padding-top: 0; padding-left: 26px; gap: 26px; }
  .tl::before { left: 3px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .tl::after { left: 3px; top: 6px; bottom: 6px; width: 1px; height: auto; background: linear-gradient(180deg, rgb(255 179 106 / 0), var(--acc)); transform-origin: top; transform: scaleY(var(--tl, 1)); }
  .tl li::before { top: 6px; left: -26px; }
  .tl li { padding-right: 0; gap: 4px; }
  .layers__intro { position: static; }
  .layers__readout { display: none; }
  .stack__d { max-width: 52%; }
  .card__figcap { left: 16px; top: 12px; }
  .end { --hz: 80%; }
  .next a { font-size: 16px; padding: 13px 18px; }
  .foot { flex-direction: column; gap: 6px; }
}
@media (max-width: 380px) { .top__nav a { padding: 6px 6px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ================================================================== */
/* 144 additions on top of 87. Nothing above this line is changed.     */
/* ================================================================== */
:root {
  /* 138's four lights, used only as light at the frame and in the ribbon */
  --pink: #ff6fae; --violet: #a07bff; --blue: #5b93ff; --orange: #ffa25e;
  --aurora: linear-gradient(90deg, var(--orange), var(--pink), var(--violet), var(--blue));
}

/* ---------- the edge light (138), a layer over the page ---------- */
.edge {
  position: fixed; inset: 0; width: 100vw; height: 100lvh; display: block;
  z-index: 40; pointer-events: none; mix-blend-mode: screen;
}

/* ---------- 07 Play: the instrument (19), in 87's section style ---------- */
.play .sec__head { margin-bottom: 0; }
.play__stage { position: relative; display: flex; flex-direction: column; padding-bottom: 8px; }
.stage { position: relative; height: clamp(300px, 50vh, 520px); margin-top: clamp(8px, 2vh, 24px); }
.stage canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent);
  touch-action: pan-y; cursor: crosshair;
}
.no-ribbon .stage::after {
  content: ""; position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; border-radius: 2px;
  background: var(--aurora); filter: blur(1px);
}
.instrument { position: relative; z-index: 2; }
.keys { position: relative; height: 54px; }
.key {
  position: absolute; top: 0; height: 54px; width: var(--w); left: calc(var(--x) * 100% - var(--w) / 2);
  display: grid; justify-items: center; align-content: start; gap: 9px; padding: 2px 0 0;
  color: var(--ink-3); font: 500 11px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .02em;
  -webkit-tap-highlight-color: transparent;
}
.key::before {
  content: ""; width: 1px; height: 16px; background: var(--c); opacity: .5; border-radius: 1px;
  transition: height .5s var(--ease), opacity .5s, width .5s, box-shadow .5s;
}
.key .k { box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 4px; min-width: 20px; padding: 3px 4px; text-align: center; transition: color .3s, box-shadow .3s; }
.key:hover::before, .key.on::before { height: 22px; opacity: 1; width: 2px; box-shadow: 0 0 12px var(--c); }
.key:hover .k, .key.on .k { color: var(--ink); box-shadow: inset 0 0 0 1px var(--c); }
.key.on::before { transition-duration: .05s; }
.key:focus-visible { outline-offset: -2px; }
.controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; padding: 14px var(--pad) 0; }
/* the same quiet pill as 87's "next" links */
.sound, .keep {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 16px; border-radius: 99px;
  font-size: 15px; font-weight: 480; color: var(--ink);
  background: rgb(255 248 238 / .05); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background .3s, box-shadow .3s;
}
.sound:hover, .keep:hover { background: rgb(255 248 238 / .1); box-shadow: inset 0 0 0 1px rgb(255 248 238 / .3); }
.sound .ico { width: 18px; height: 18px; }
.sound .w1, .sound .w2 { opacity: 0; transition: opacity .3s; }
.sound .x { opacity: .9; transition: opacity .3s; }
.sound[aria-pressed="true"] .w1, .sound[aria-pressed="true"] .w2 { opacity: 1; }
.sound[aria-pressed="true"] .x { opacity: 0; }
.sound.nudge { animation: nudge 1.1s ease; }
@keyframes nudge { 30% { box-shadow: inset 0 0 0 1px var(--acc), 0 0 0 4px var(--acc-soft); } }
.keep { padding: 12px 18px; }
.keep .fmt { font-size: 10px; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 4px; padding: 3px 4px; }
.keepwrap { display: inline-flex; align-items: center; gap: 14px; }
.keepwrap[hidden] { display: none; }
.clear { font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); transition: color .25s, border-color .25s; }
.clear:hover { color: var(--ink); border-color: var(--ink-2); }
.hint { color: var(--ink-3); font-size: 11px; letter-spacing: .02em; text-align: center; }
kbd { font: inherit; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 4px; padding: 0 4px; }
.touch-hint { display: none; }
@media (hover: none) and (pointer: coarse) {
  .kbd-hint { display: none; } .touch-hint { display: inline; }
  .key .k { display: none; }
  .key::before { height: 22px; }
}
.play__note { width: 100%; max-width: var(--max); margin: 22px auto 0; padding: 0 var(--pad); color: var(--ink-3); font-size: 10.5px; text-transform: none; letter-spacing: .01em; text-align: center; text-wrap: balance; }
@media (max-width: 860px) {
  .stage { height: 38svh; min-height: 250px; }
  .keys, .key { height: 50px; }
  .hint { display: flex; flex-direction: column; gap: 2px; }
  .hint .sep { display: none; }
  .play__note { margin-top: 16px; }
}

/* ---------- 144: a little more color (Matt: "We may want a little more color variation too") ----------
   87's warm palette stays the base. Each section's number tick takes the hue of the light that
   runs up the frame as it arrives; the Play tick carries the ribbon's whole range. */
:root { --teal: #4fd3c4; }
.sec[data-hue="0"] .idx::before { background: var(--pink); }
.sec[data-hue="1"] .idx::before { background: var(--violet); }
.sec[data-hue="2"] .idx::before { background: var(--blue); }
.sec[data-hue="3"] .idx::before { background: var(--orange); }
.sec[data-hue="4"] .idx::before { background: var(--teal); }
.play .idx::before { width: 28px; background: var(--aurora); }
.sec[data-hue] .idx::before, .play .idx::before { height: 1.5px; }
