@font-face {
  font-family: Geist;
  src: url("/type/Geist-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url("/type/Geist-Medium.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #f6f5f0;
  --fg: #182337;
  --mute: #576173;
  --rule: #cfcfc7;
  --surface: #fffef9;
  --signal: #a74b2f;
  --accent: #b6a1eb;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1522;
  --fg: #f2eee5;
  --mute: #b0b6c1;
  --rule: #38404d;
  --surface: #1a2332;
  --signal: #f3ad7b;
  --accent: #d2bae9;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.45 Geist,Arial,sans-serif; -webkit-font-smoothing: antialiased; }
html { scroll-padding-top: 28px; }
button, textarea, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button { background: transparent; border: 0; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(1540px, 90.8%); margin-inline: auto; }
.defs, .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(100%); }
.ico { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; flex-shrink: 0; }
.skip { position: fixed; top: 10px; left: 10px; translate: 0 -150%; padding: 12px; z-index: 9; background: var(--surface); }
.skip:focus { translate: 0; }
.mast, .mast nav, .brand, .theme, .theme-button, .inside-link, .actions, .primary, #download, .instrument-head, .studio-label, .object-bar, .object-bar button, .panel-bar, .draft-foot, .radio-body, .inside-heading, footer, .gesture { display: flex; align-items: center; }
.mast { height: 82px; justify-content: space-between; border-bottom: 1px solid var(--rule); }
.brand { gap: 9px; font-size: 23px; font-weight: 600; letter-spacing: -1.35px; }
.brand svg { width: 35px; height: 33px; }
.mast nav { gap: 34px; font-size: 13px; font-weight: 500; }
.inside-link { gap: 10px; }
.inside-link:hover, footer a:hover { color: var(--signal); }
.theme { padding: 3px; border-radius: 30px; border: 1px solid var(--rule); }
.theme-button { justify-content: center; gap: 6px; border-radius: 23px; min-height: 34px; min-width: 68px; padding: 0 12px; font-size: 12px; color: var(--mute); }
.theme-button .ico { width: 15px; height: 15px; }
.theme-button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.hero { display: grid; grid-template-columns: minmax(0,.76fr) minmax(0,1.24fr); align-items: center; gap: clamp(24px,3.5vw,64px); padding-block: clamp(38px,4.7vw,80px) clamp(48px,5.8vw,94px); }
.intro h1 { font-weight: 500; font-size: clamp(64px,6.35vw,107px); line-height: .98; letter-spacing: -.082em; margin: 0 0 24px; }
.intro h1 span, h2 span { color: var(--signal); }
.intro p { max-width: 360px; margin: 0; font-size: clamp(16px,1.22vw,20px); line-height: 1.55; color: var(--mute); letter-spacing: -.025em; }
.actions { margin-top: 34px; gap: 18px; flex-wrap: wrap; }
.primary { background: var(--fg); color: var(--bg); gap: 21px; border-radius: 5px; min-height: 48px; padding: 0 18px; font-size: 14px; font-weight: 500; }
.primary:hover { background: var(--signal); color: var(--bg); }
#download { gap: 7px; font-size: 12px; padding: 8px 0; color: var(--mute); }
#download svg { width: 15px; }
.instrument { min-width: 0; overflow: clip; border: 1px solid var(--rule); border-radius: 11px; background: var(--surface); box-shadow: 0 13px 36px -30px #191e37a0; }
.instrument-head { padding: 0 18px; min-height: 37px; justify-content: space-between; font-size: 11px; color: var(--mute); }
.studio-label { gap: 9px; font: 10px/1 ui-monospace,Consolas,monospace; letter-spacing: .12em; color: var(--fg); }
.studio-label i { height: 6px; width: 6px; background: var(--signal); border-radius: 100%; }
.stage { height: clamp(365px,32.7vw,540px); position: relative; background: #c9cace; isolation: isolate; }
[data-theme="dark"] .stage { background: #101826; }
#studio-scene { position: absolute; inset: 0; }
#studio-scene:focus-visible { outline-offset: -4px; outline-style: dashed; }
.gesture { position: absolute; pointer-events: none; bottom: 12px; right: 12px; padding: 5px 9px; border-radius: 4px; gap: 5px; background: #f8f6eff0; color: #303848; font-size: 10px; }
.gesture .ico { width: 15px; height: 15px; }
.instrument.working .gesture { display: none; }
.stage:has(#studio-scene:not([data-render="webgl"])) .gesture { display: none; }
.object-bar { min-height: 50px; gap: 0; padding: 0 8px; }
.object-bar button { gap: 7px; min-height: 42px; padding: 0 13px; font-size: 12px; border-radius: 4px; }
.object-bar button[aria-expanded="true"], .object-bar button:hover { background: color-mix(in srgb,var(--fg) 7%,transparent); }
.signal { display: inline-block; height: 7px; width: 7px; background: var(--signal); border-radius: 50%; }
#working-panel { position: absolute; inset: auto 12px 12px; max-width: 470px; margin-inline: auto; padding: 10px 20px 14px; color: var(--fg); background: var(--surface); border: 1px solid var(--rule); border-radius: 9px; box-shadow: 0 16px 45px #0d14294d; }
.panel-bar { justify-content: space-between; margin-bottom: 4px; font-size: 14px; }
#close-panel { width: 36px; height: 36px; display: grid; place-items: center; }
#draft { width: 100%; min-height: 69px; resize: vertical; max-height: 130px; color: var(--fg); background: none; border: 0; font-family: Georgia,serif; font-size: 22px; line-height: 1.3; padding: 4px 0; }
.draft-foot { border-top: 1px solid var(--rule); margin-top: 5px; padding-top: 7px; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--mute); }
.radio-body { gap: 14px; }
#tuning-knob { flex: 0 0 52px; height: 52px; border: 3px solid #5d626a; border-radius: 50%; background: repeating-conic-gradient(#303843 0 3deg,#4e5560 3deg 6deg); box-shadow: 0 3px 5px #141a253d; position: relative; }
#tuning-knob i { position: absolute; inset: 4px; border-radius: 50%; background: linear-gradient(140deg,#687381,#222d3d); transform: rotate(var(--angle,-65deg)); }
#tuning-knob i::after { content: ''; position: absolute; top: 1px; left: 47%; height: 10px; width: 3px; background: #ffe1ad; }
.station-info { flex: 1; display: grid; min-width: 0; }
.station-info span { font-size: 11px; color: var(--mute); }
.station-info strong { font-size: 18px; font-weight: 500; letter-spacing: -.045em; }
#radio-play { border: 1px solid var(--rule); border-radius: 5px; min-height: 40px; padding: 0 13px; font-size: 12px; }
#dial { width: 100%; height: 24px; margin: 7px 0 0; accent-color: var(--fg); cursor: pointer; }
.dial-legend { display: flex; justify-content: space-between; font-size: 10px; color: var(--mute); }
.inside { padding-block: 38px 62px; border-top: 1px solid var(--rule); }
.inside-heading { justify-content: space-between; gap: 22px; margin-bottom: 30px; }
h2 { font-size: clamp(36px,3.4vw,55px); line-height: 1.08; letter-spacing: -.069em; font-weight: 500; margin: 0; }
.categories { display: flex; flex-wrap: wrap; gap: 3px; }
.categories button { min-height: 36px; padding: 0 15px; border: 1px solid transparent; border-radius: 22px; font-size: 13px; }
.categories button[aria-pressed="true"] { border-color: var(--fg); }
.categories button:hover { background: color-mix(in srgb,var(--fg) 6%,transparent); }
.index-body { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(25px,5vw,82px); align-items: start; }
.plate { aspect-ratio: 2.05; overflow: clip; border-radius: 8px; position: relative; display: grid; place-items: center; background: linear-gradient(125deg,#d9d8ec,#bcb4d5 65%,#a69cbc); }
.plate::before { content: ''; position: absolute; inset: 0; background: linear-gradient(140deg,#fff6,transparent 45%); pointer-events: none; }
.plate[data-mode="learn"] { background: linear-gradient(120deg,#dae5da,#9dafad); }
.plate[data-mode="listen"] { background: linear-gradient(120deg,#52475a,#252437); }
.plate[data-mode="explore"] { background: linear-gradient(120deg,#d8d7d4,#adb9c9); }
[data-theme="dark"] .plate { filter: brightness(.85); }
.specimen { width: 71%; background: #fbfaf4; color: #273347; border: 1px solid #fff; box-shadow: 3px 4px #e1dfd6,5px 6px #a4a6ad,12px 16px 30px #252e4138; padding: clamp(14px,2vw,27px); transform: perspective(1000px) rotateX(9deg) rotateY(-9deg) rotateZ(-4deg); }
.specimen small, .record small { display: block; font: 9px/1.4 ui-monospace,monospace; letter-spacing: .09em; text-transform: uppercase; }
.specimen h3 { font: 400 clamp(22px,2vw,34px)/1.1 Georgia,serif; margin: 14px 0 8px; letter-spacing: -.04em; }
.specimen p { font-size: clamp(10px,.88vw,14px); margin: 0; max-width: 34ch; }
.specimen .ink-line { width: 75%; border-top: 1px solid #c2bbc7; margin-top: 12px; }
.record { display: flex; align-items: center; gap: 18px; max-width: 86%; color: #fff7ed; transform: rotate(-3deg); }
.record img { width: 39%; max-width: 190px; aspect-ratio: 1; object-fit: cover; box-shadow: 0 12px 28px #1118; }
.record strong { font: 400 clamp(24px,2.4vw,40px)/1.1 Georgia,serif; display: block; margin-top: 10px; }
.feature-list details { border-bottom: 1px solid var(--rule); }
.feature-list details:first-child { border-top: 1px solid var(--rule); }
.feature-list summary { min-height: 50px; padding: 9px 1px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font-size: clamp(15px,1.25vw,20px); letter-spacing: -.035em; }
.feature-list summary::-webkit-details-marker { display: none; }
.feature-list summary::after { content: '+'; font-size: 20px; color: var(--mute); }
.feature-list details[open] summary::after { content: '−'; }
.feature-list p { max-width: 56ch; font-size: 14px; line-height: 1.55; color: var(--mute); margin: 0 24px 14px 1px; }
.feature-list small { color: var(--signal); margin-right: 7px; font-size: 11px; }
footer { border-top: 1px solid var(--rule); padding-block: 25px; justify-content: space-between; font-size: 12px; color: var(--mute); }
footer .brand { font-size: 17px; } footer .brand svg { width: 25px; }
@media (max-width:1000px) and (min-width:761px) {
  .shell { width: 94%; }
  .hero { gap: 20px; grid-template-columns: minmax(0,.7fr) minmax(0,1fr); }
  .intro h1 { font-size: clamp(52px,6.5vw,68px); }
  .actions { gap: 8px 12px; }
}
@media (max-width:760px) {
  .shell { width: calc(100% - 36px); }
  .mast { height: 66px; }
  .brand { font-size: 20px; gap: 6px; }
  .brand svg { width: 29px; height: 29px; }
  .mast nav { gap: 13px; }
  .inside-link { font-size: 11px; gap: 4px; }
  .theme-button { min-width: 34px; min-height: 34px; padding: 0 7px; }
  .theme-button span { display: none; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 25px; padding-block: 30px 28px; }
  .intro h1 { font-size: clamp(52px,11.3vw,78px); margin-bottom: 12px; }
  .intro p { max-width: 33ch; font-size: 15px; line-height: 1.45; }
  .actions { margin-top: 18px; gap: 14px; }
  .primary { min-height: 43px; gap: 14px; padding: 0 14px; font-size: 13px; }
  #download { font-size: 11px; }
  .stage { height: clamp(240px,70vw,362px); }
  .instrument-head { min-height: 31px; padding-inline: 12px; }
  .object-bar { min-height: 45px; padding-inline: 3px; }
  #working-panel { inset: auto 6px 6px; padding: 4px 12px 10px; }
  .gesture { bottom: 7px; right: 7px; }
  .inside { padding-block: 25px 36px; }
  .inside-heading { display: block; margin-bottom: 17px; }
  .categories { margin-top: 15px; flex-wrap: nowrap; }
  .categories button { font-size: 12px; min-height: 36px; padding-inline: 12px; }
  .index-body { grid-template-columns: minmax(0,1fr); gap: 19px; }
  .plate { aspect-ratio: 2.2; }
  .specimen h3 { margin: 8px 0 6px; }
  .feature-list summary { min-height: 48px; }
}
@media (max-width:358px) {
  .shell { width: calc(100% - 24px); }
  .mast nav { gap: 9px; }
  .inside-link { font-size: 10px; }
  .actions { gap: 10px; }
}
@media (prefers-reduced-motion:no-preference) {
  .theme-button, .primary, .object-bar button { transition: background-color .18s, color .18s; }
  #working-panel:not([hidden]) { animation: open-panel .19s ease-out both; }
  @keyframes open-panel { from { opacity: 0; transform: translateY(8px); } }
}
.specimen p { white-space: pre-line; }
.inline-link { text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; font-size: inherit; }
/* The optical field and the model occupy the same hero. Object controls sit
   above the field so their positions stay independent of the camera. */
.hero { position: relative; isolation: isolate; }
#hero-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.instrument { position: relative; border: 0; border-radius: 0; box-shadow: none; background: transparent; overflow: visible; }
.instrument-head { position: absolute; top: 0; left: 6px; z-index: 2; background: transparent; padding: 0; }
.studio-label { font: 500 11px/1.2 Geist,Arial,sans-serif; letter-spacing: .01em; color: var(--mute); }
.stage, [data-theme="dark"] .stage { background: transparent; height: clamp(395px,36vw,590px); }
#studio-scene { mask-image: linear-gradient(to right,transparent,#000 9%,#000 94%,transparent),linear-gradient(to bottom,transparent,#000 12%,#000 86%,transparent); mask-composite: intersect; }
.gesture { right: 2px; bottom: 3px; background: var(--bg); color: var(--mute); }
.object-bar { position: relative; justify-content: center; gap: 3px; width: max-content; min-height: 45px; margin: -2px auto 0; padding: 3px; border: 1px solid var(--rule); border-radius: 30px; background: var(--surface); box-shadow: 0 8px 14px -12px #18233780; }
.object-bar button { min-height: 36px; padding-inline: 14px; border-radius: 22px; }
@media(max-width:760px) {
  .stage, [data-theme="dark"] .stage { height: clamp(245px,73vw,370px); }
  .instrument-head { top: -3px; left: 0; }
  .object-bar { margin-top: 3px; }
  .gesture { font-size: 9px; }
}
