/* LUMAMP / Frequency — five coordinated palettes, one identity. */
:root,
html[data-palette="ion"] {
  color-scheme: dark;
  --bg: #10120f;
  --surface: #181b16;
  --ink: #eef2e6;
  --muted: #acb3a0;
  --line: #353b2e;
  --accent: #d2f47b;
  --accent-ink: #142009;
  --stage-bg: #151a11;
  --stage-edge: #242d18;
  --control-bg: #232a1c;
  --lit-bg: #354626;
  --image-bg: #f0f0e9;
  --image-ink: #25291e;
  --overlay: #080a08b8;
  --shadow: #00000040;
  --logo-filter: grayscale(1) brightness(0) invert(1);
}
html[data-palette="glacier"] {
  color-scheme: dark;
  --bg: #0c1822;
  --surface: #14232f;
  --ink: #eaf3fa;
  --muted: #a1b1bf;
  --line: #304554;
  --accent: #9ddcf4;
  --accent-ink: #102633;
  --stage-bg: #10212e;
  --stage-edge: #1c3546;
  --control-bg: #1d3341;
  --lit-bg: #274856;
  --image-bg: #eef2f2;
  --image-ink: #263640;
  --overlay: #06101ab8;
  --shadow: #00061045;
  --logo-filter: grayscale(1) brightness(0) invert(1);
}
html[data-palette="violet"] {
  color-scheme: dark;
  --bg: #15111d;
  --surface: #211b2c;
  --ink: #f0eaf7;
  --muted: #b2a7c0;
  --line: #45394f;
  --accent: #c4b0f4;
  --accent-ink: #25143d;
  --stage-bg: #1b1527;
  --stage-edge: #332244;
  --control-bg: #31243e;
  --lit-bg: #49365e;
  --image-bg: #f0edf2;
  --image-ink: #362d40;
  --overlay: #0d0615b8;
  --shadow: #09001145;
  --logo-filter: grayscale(1) brightness(0) invert(1);
}
html[data-palette="ember"] {
  color-scheme: dark;
  --bg: #1a1410;
  --surface: #271e18;
  --ink: #f6eee5;
  --muted: #bcae9d;
  --line: #4b3d30;
  --accent: #f1b180;
  --accent-ink: #321d0e;
  --stage-bg: #241a13;
  --stage-edge: #3b291b;
  --control-bg: #39291e;
  --lit-bg: #58402c;
  --image-bg: #f1ede6;
  --image-ink: #3c2d20;
  --overlay: #130b06b8;
  --shadow: #10050040;
  --logo-filter: grayscale(1) brightness(0) invert(1);
}
html[data-palette="platinum"] {
  color-scheme: light;
  --bg: #f1f3f4;
  --surface: #ffffff;
  --ink: #20262b;
  --muted: #627079;
  --line: #cbd2d7;
  --accent: #35414b;
  --accent-ink: #f9fbfd;
  --stage-bg: #e9eef1;
  --stage-edge: #dbe3e8;
  --control-bg: #e4e9ed;
  --lit-bg: #d4e0e8;
  --image-bg: #f5f4ef;
  --image-ink: #35414b;
  --overlay: #26303c80;
  --shadow: #34465314;
  --logo-filter: grayscale(1) brightness(0);
}
:root {
  --radius: 2px;
  --accent-wash: color-mix(in srgb, var(--accent) 9%, transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 22%, transparent);
  --accent-hairline: color-mix(in srgb, var(--accent) 30%, var(--line));
  --subtle-line: color-mix(in srgb, var(--line) 70%, transparent);
  --grid-ink: color-mix(in srgb, var(--accent) 8%, transparent);
  --header-bg: color-mix(in srgb, var(--bg) 91%, transparent);
  --label-ink: color-mix(in srgb, var(--ink) 77%, var(--muted));
  --ion-swatch: #d2f47b;
  --glacier-swatch: #9ddcf4;
  --violet-swatch: #c4b0f4;
  --ember-swatch: #f1b180;
  --platinum-swatch: #c6d0d7;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 115px; }
body { margin: 0; background: var(--bg); color: var(--ink); transition: background-color .32s, color .32s; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, p[data-cn] { white-space: pre-line; }
button { font: inherit; }
button, a { touch-action: manipulation; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 5px;
}
.skip-link { position: absolute; top: -100px; left: 24px; background: var(--accent); color: var(--accent-ink); padding: 14px; z-index: 110; }
.skip-link:focus { top: 10px; }
.scroll-progress { position: fixed; z-index: 100; inset: 0 0 auto; height: 2px; background: var(--accent); transform: scaleX(var(--progress, 0)); transform-origin: left; pointer-events: none; box-shadow: 0 0 12px var(--accent-glow); }
.frequency-header { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 30px; margin: 0 4.5%; height: 85px; border-bottom: 1px solid var(--line); background: var(--bg); transition: background .3s, box-shadow .3s; }
.frequency-header.is-scrolled { background: var(--header-bg); backdrop-filter: blur(22px); box-shadow: 0 12px 30px var(--shadow); }
.frequency-logo { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 750; letter-spacing: -.8px; }
.frequency-logo img { object-fit: contain; filter: var(--logo-filter); }
.logo-bars { display: flex; align-items: center; gap: 3px; height: 25px; transform: skew(-15deg); }
.logo-bars i { display: block; width: 4px; background: var(--accent); height: 13px; }
.logo-bars i:nth-child(2) { height: 24px; }
.logo-bars i:nth-child(3) { height: 19px; }
.logo-bars i:nth-child(4) { height: 9px; }
.frequency-header nav { display: flex; align-items: center; gap: 32px; margin-left: auto; font-family: monospace; font-size: 11px; }
.frequency-header nav a { position: relative; transition: color .2s; }
.frequency-header nav a:last-child { border-bottom: 1px solid var(--accent-hairline); padding: 7px 0; color: var(--accent); }
.frequency-header nav a[aria-current], .frequency-header nav a.is-active { color: var(--accent); }
.language-button { background: transparent; border: 1px solid var(--line); min-width: 58px; width: auto; height: 34px; padding: 0 9px; color: var(--ink); font-size: 11px; font-family: monospace; white-space: nowrap; flex-shrink: 0; line-height: 1; transition: border-color .2s; }
.frequency-hero, .frequency-section, .frequency-contact { margin: 0 4.5%; }
.hero-code { display: flex; justify-content: space-between; font-family: monospace; font-size: 10px; letter-spacing: 1px; padding: 31px 0 38px; color: var(--muted); gap: 20px; }
.hero-code > span:first-child { display: flex; align-items: center; gap: 8px; }
.hero-code i { display: block; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 12px var(--accent-glow); }
.frequency-title { display: flex; justify-content: space-between; gap: 34px; align-items: end; margin-bottom: 42px; }
.frequency-title h1 { font-size: clamp(70px, 8.8vw, 136px); line-height: 1.06; font-weight: 550; letter-spacing: -.075em; display: flex; gap: 22px; min-width: 0; }
.frequency-title h1 span { display: block; }
.frequency-title .accent-text { color: var(--accent); }
html[lang="en"] .frequency-title h1 { font-size: clamp(62px, 7.2vw, 116px); gap: 16px; letter-spacing: -.065em; }
.hero-copy { padding-bottom: 8px; max-width: 270px; flex-shrink: 0; }
.hero-copy p { font-size: 13px; line-height: 1.85; color: var(--label-ink); }
.signal-link { display: flex; align-items: center; justify-content: space-between; gap: 36px; font-size: 12px; padding: 13px 0; border-bottom: 1px solid var(--accent-hairline); color: var(--accent); width: max-content; min-width: 185px; margin-top: 20px; font-weight: 500; }
.signal-link span:last-child { font-size: 17px; }
.magnetic-shell { position: relative; }
.magnetic-shell > span, .magnetic-shell > .magnetic-content, .magnetic-shell [data-magnetic-inner] { transition: transform .25s cubic-bezier(.2,.8,.2,1); transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); }
.signal-stage { position: relative; height: 320px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(120deg, var(--stage-bg), var(--stage-edge)); overflow: hidden; isolation: isolate; box-shadow: inset 0 1px 0 var(--subtle-line); outline-offset: 5px; }
.signal-stage:focus-visible { outline: 2px solid var(--accent); }
.signal-stage::before { position: absolute; content: ""; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(ellipse at var(--pointer-x, 50%) var(--pointer-y, 50%), var(--accent-glow), transparent 55%); opacity: .3; transition: opacity .45s; }
.signal-stage.is-reactive::before, .signal-stage.is-live::before { opacity: .8; }
.stage-grid { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background-image: linear-gradient(var(--grid-ink) 1px, transparent 1px), linear-gradient(90deg, var(--grid-ink) 1px, transparent 1px); background-size: 38px 38px; }
.stage-top, .stage-bottom { position: absolute; left: 22px; right: 22px; display: flex; justify-content: space-between; font-family: monospace; font-size: 9px; letter-spacing: 1px; color: var(--muted); z-index: 3; gap: 18px; pointer-events: none; }
.stage-top { top: 20px; }
.stage-bottom { bottom: 20px; }
.signal-caption { position: absolute; bottom: 48px; left: 22px; z-index: 4; color: var(--muted); font-size: 9px; line-height: 1.8; letter-spacing: .5px; max-width: min(76%, 500px); pointer-events: none; }
.signal-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 2; border-radius: inherit; }
.signal-wave { position: absolute; width: 100%; height: 76%; left: 0; top: 12%; color: var(--accent); filter: drop-shadow(0 0 14px var(--accent-glow)); transform-origin: center; transition: opacity .4s; pointer-events: none; z-index: 1; }
html[data-enhanced] .signal-wave { opacity: 0; }
.signal-rings { width: 285px; height: 285px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1px solid var(--accent-hairline); border-radius: 50%; opacity: .5; transition: transform .6s, opacity .6s; pointer-events: none; }
.signal-rings i { position: absolute; inset: 12%; border: 1px solid var(--accent-hairline); border-radius: 50%; }
.signal-rings i:nth-child(2) { inset: 24%; }
.signal-rings i:nth-child(3) { inset: 36%; }
.signal-rings i:nth-child(4) { inset: 48%; background: var(--accent); border: 0; }
.signal-stage.is-reactive .signal-rings { transform: translate(-50%, -50%) scale(1.035); opacity: .65; }
html[data-motion="on"] .signal-stage.is-live .signal-rings { animation: ring-breathe 2.5s ease-in-out infinite; }
html[data-motion="on"] .signal-stage.is-live .signal-wave { animation: wave-breathe 1.6s ease-in-out infinite; }
.stage-ticks { color: var(--accent); }
.frequency-rail { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 23px 0; font-family: monospace; font-size: 11px; color: var(--muted); letter-spacing: 1px; gap: 15px; }
.frequency-rail span:nth-child(2n) { color: var(--accent); font-size: 16px; }
.frequency-section { padding: 112px 0 96px; }
.section-code { display: flex; justify-content: space-between; font-family: monospace; font-size: 10px; letter-spacing: 1px; padding: 21px 0; border-top: 1px solid var(--line); color: var(--muted); gap: 20px; }
.section-code > span:first-child { color: var(--accent); }
.section-code > span:last-child { margin-left: auto; color: var(--accent); }
.music-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 11%; margin: 47px 0 36px; }
.music-intro h2, .hardware-heading h2 { font-size: clamp(36px, 4.2vw, 66px); line-height: 1.27; letter-spacing: -.055em; font-weight: 500; }
.music-intro > div { align-self: end; max-width: 400px; }
.music-intro p, .hardware-heading p { font-size: 14px; line-height: 1.95; color: var(--muted); }
.music-context { display: flex; gap: 9px; flex-wrap: wrap; margin: 34px 0 57px; }
.music-context span { padding: 9px 13px; border: 1px solid var(--line); font-size: 10px; letter-spacing: .6px; color: var(--muted); border-radius: var(--radius); }
.console-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.console-dot { height: 5px; width: 5px; border-radius: 50%; background: var(--accent); }
.console-heading h3 { font-size: 14px; font-weight: 500; letter-spacing: .05em; }
.console-heading > span:last-child { margin-left: auto; font-family: monospace; font-size: 9px; letter-spacing: .8px; color: var(--muted); }
.music-console { border: 1px solid var(--line); background: var(--surface); padding: 26px 34px; box-shadow: inset 0 1px 0 var(--subtle-line); border-radius: var(--radius); }
.console-scale { display: flex; gap: 13px; align-items: center; font-family: monospace; font-size: 9px; color: var(--muted); letter-spacing: 1px; margin-bottom: 10px; }
.console-scale div { flex: 1; height: 7px; background: repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 15px); opacity: .4; }
.music-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 0 17px; margin: 0 0 5px; border-bottom: 1px solid var(--line); }
.music-filters button { border: 1px solid var(--line); border-radius: 100px; padding: 8px 14px; min-height: 36px; font-size: 10px; background: transparent; color: var(--muted); transition: color .2s, background .2s, border-color .2s; }
.music-filters button[aria-pressed="true"], .music-filters button.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.frequency .track { display: grid; grid-template-columns: 48px minmax(170px, 1fr) 40% 44px; gap: 25px; border-color: var(--line); padding: 27px 0; transition: opacity .25s, background .25s; }
.frequency .track:first-child { border: 0; }
.frequency .track:last-of-type { border-color: var(--line); }
.frequency .track.playing { background: linear-gradient(90deg, var(--accent-wash), transparent); }
.frequency .play-button { background: transparent; border: 1px solid var(--accent-hairline); color: var(--accent); width: 44px; height: 44px; transition: background .2s, color .2s, box-shadow .2s; }
.frequency .track.playing .play-button { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); box-shadow: 0 0 22px var(--accent-glow); }
.frequency .track-copy { min-width: 0; }
.frequency .track-copy h3 { font-size: 18px; color: var(--ink); font-weight: 500; letter-spacing: -.02em; }
.frequency .track-copy p { font-size: 10px; color: var(--muted); opacity: 1; line-height: 1.7; }
.frequency .waveform { width: 100%; margin: 0; justify-content: center; height: 34px; gap: 4px; color: var(--accent); }
.frequency .waveform i { background: var(--accent); width: 3px; border-radius: 1px; opacity: .45; }
.frequency .track-time { color: var(--accent); font-size: 10px; }
.frequency .audio-note { font-size: 10px; color: var(--muted); opacity: 1; margin-top: 20px; line-height: 1.9; }
.frequency .audio-status { color: var(--accent); font-size: 11px; }
.frequency-manifesto { background: var(--accent); color: var(--accent-ink); padding: 52px 4.5% 32px; position: relative; }
.mini-label { font-size: 10px; letter-spacing: 1.4px; font-family: monospace; }
.frequency-manifesto > p { font-size: clamp(39px, 5.1vw, 80px); line-height: 1.3; letter-spacing: -.055em; margin: 36px 0 43px; font-weight: 500; }
.frequency-manifesto > p span, .frequency-manifesto > p em { display: block; }
.frequency-manifesto em { font-style: normal; font-family: Georgia, "Songti SC", serif; font-weight: 400; }
.manifesto-bottom { display: flex; justify-content: space-between; gap: 25px; font-family: monospace; font-size: 10px; letter-spacing: .8px; border-top: 1px solid color-mix(in srgb, var(--accent-ink) 28%, transparent); padding-top: 19px; }
.manifesto-bottom span:last-child { font-size: 22px; line-height: .7; }
.hardware-section { padding-top: 104px; }
.hardware-heading { display: grid; grid-template-columns: 1.2fr 1fr; gap: 11%; margin: 43px 0 49px; }
.hardware-heading h2 { margin-top: 25px; }
.hardware-heading > div:last-child { align-self: end; max-width: 385px; padding-bottom: 5px; }
.hardware-heading .mini-label { color: var(--muted); }
.lab-badge { font-size: 10px; letter-spacing: .7px; color: var(--accent); border: 1px solid var(--line); padding: 10px 12px; display: inline-block; margin-top: 20px; }
.frequency .hardware-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.frequency .hardware-card { position: relative; border: 1px solid var(--line); padding: 20px; background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 1px 0 var(--subtle-line); transition: transform .45s cubic-bezier(.2,.8,.2,1), border-color .45s, box-shadow .45s; }
.frequency .hardware-card::after { position: absolute; content: ""; inset: -1px; border: 1px solid var(--accent-hairline); border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; }
.frequency .hardware-card:focus-within::after { opacity: 1; }
.frequency .hardware-image { background: var(--image-bg); border: 1px solid var(--subtle-line); aspect-ratio: 1.28; position: relative; overflow: hidden; }
.frequency .hardware-image:before, .frequency .hardware-image:after { position: absolute; content: "+"; font-family: monospace; font-size: 13px; color: var(--image-ink); z-index: 1; }
.frequency .hardware-image:before { top: 11px; left: 13px; }
.frequency .hardware-image:after { bottom: 11px; right: 13px; }
.frequency .hardware-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .65s cubic-bezier(.2,.8,.2,1); }
.frequency .hardware-meta { font-family: monospace; font-size: 10px; color: var(--accent); margin: 24px 0 19px; }
.frequency .hardware-card h3 { font-size: 38px; color: var(--ink); line-height: 1.1; font-weight: 500; letter-spacing: -1.5px; margin: 0 0 19px; }
.frequency .hardware-card p { font-size: 13px; line-height: 1.9; color: var(--muted); opacity: 1; max-width: 385px; margin-bottom: 26px; }
.frequency .hardware-card button[data-prototype] { font-size: 12px; color: var(--accent); border: 1px solid var(--accent-hairline); padding: 15px 18px; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%; background: transparent; transition: background .2s, color .2s, border-color .2s; }
.frequency .hardware-note { font-size: 10px; line-height: 1.9; color: var(--muted); opacity: 1; margin-top: 24px; }
.hardware-strategy { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 60px; }
.hardware-strategy article { padding: 31px 26px 32px 0; }
.hardware-strategy article + article { border-left: 1px solid var(--line); padding-left: 28px; }
.hardware-strategy article > span { font-family: monospace; font-size: 9px; letter-spacing: 1px; color: var(--accent); }
.hardware-strategy h3 { font-size: 18px; font-weight: 500; margin: 18px 0 14px; }
.hardware-strategy p { font-size: 12px; line-height: 1.85; color: var(--muted); }
.frequency-contact { padding: 57px 0 91px; }
.contact-heading { padding-bottom: 43px; border-bottom: 1px solid var(--line); }
.contact-heading .mini-label { color: var(--accent); }
.contact-heading h2 { font-size: clamp(36px, 5.5vw, 90px); line-height: 1.25; letter-spacing: -.065em; margin-top: 29px; font-weight: 500; }
.contact-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8%; align-items: end; padding: 38px 0 0; }
.contact-row p { font-size: 13px; line-height: 1.9; color: var(--muted); }
.contact-row a { display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: clamp(16px, 2.1vw, 29px); letter-spacing: -.035em; border-bottom: 1px solid var(--accent-hairline); padding-bottom: 15px; color: var(--accent); overflow-wrap: anywhere; }
.contact-row a > span { font-size: 29px; }
.email-actions { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; }
.email-actions > a { flex: 1 1 100%; }
.copy-email { position: relative; display: inline-flex; gap: 12px; align-items: center; min-height: 40px; width: max-content; padding: 10px 15px; border: 1px solid var(--line); color: var(--muted); background: transparent; font-size: 11px; transition: color .2s, border-color .2s, background .2s; }
.copy-email.is-copied, .copy-email.copied, .copy-email[data-copied="true"] { background: var(--accent-wash); color: var(--accent); border-color: var(--accent-hairline); }
.copy-status { display: inline-block; font-size: 10px; color: var(--accent); min-height: 16px; }
.frequency-footer { border-top: 1px solid var(--line); padding: 40px 4.5% 29px; background: var(--surface); }
.footer-large { font-size: 19vw; font-weight: 750; letter-spacing: -.07em; line-height: .88; color: var(--accent); display: flex; align-items: center; justify-content: space-between; margin: 0 0 39px; }
.footer-large > span { font-size: 4vw; line-height: 1; padding: 0 2px 0 0; letter-spacing: 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; font-family: monospace; font-size: 9px; line-height: 1.8; color: var(--muted); letter-spacing: .7px; }
.footer-bottom a { color: var(--accent); }
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 45; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--accent-hairline); border-radius: 50%; background: var(--header-bg); color: var(--accent); font-size: 19px; backdrop-filter: blur(14px); box-shadow: 0 8px 20px var(--shadow); opacity: 0; pointer-events: none; transform: translateY(9px); transition: opacity .25s, transform .25s, background .25s; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* Live palette review controls. The chosen production theme has no review UI. */
.palette-dock { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 25px 4.5% 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.palette-label { display: block; color: var(--ink); font-size: 11px; line-height: 1.7; letter-spacing: .2px; min-width: 90px; }
.palette-label small, .palette-label > span:last-child { display: block; font-family: monospace; font-size: 9px; color: var(--muted); }
.palette-options, .palette-choices { display: flex; align-items: center; gap: 6px; flex: 1; justify-content: center; min-width: 0; }
.palette-dock button[data-palette-choice] { display: flex; align-items: center; justify-content: center; gap: 7px; background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: var(--radius); font-size: 10px; padding: 9px 10px; min-height: 40px; white-space: nowrap; transition: border-color .2s, color .2s, background .2s; }
.palette-dock button[data-palette-choice][aria-pressed="true"] { border-color: var(--accent-hairline); background: var(--accent-wash); color: var(--ink); }
.palette-swatch, button[data-palette-choice]::before { display: block; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; background: var(--swatch); }
button[data-palette-choice]::before { content: ""; }
button[data-palette-choice]:has(.palette-swatch)::before { display: none; }
button[data-palette-choice="ion"] { --swatch: var(--ion-swatch); }
button[data-palette-choice="glacier"] { --swatch: var(--glacier-swatch); }
button[data-palette-choice="violet"] { --swatch: var(--violet-swatch); }
button[data-palette-choice="ember"] { --swatch: var(--ember-swatch); }
button[data-palette-choice="platinum"] { --swatch: var(--platinum-swatch); }
.motion-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 8px 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 10px; white-space: nowrap; }
.motion-toggle[aria-pressed="true"] { border-color: var(--accent-hairline); color: var(--accent); }
.motion-toggle::before { content: ""; display: block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.palette-dock:not(:has(.palette-options, .palette-choices)) { flex-wrap: wrap; justify-content: flex-start; }
body[data-site="official"] [data-color-review], body[data-site="official"] [data-module="comparison"] { display: none; }

/* Matching device dialogs in all five palettes. */
.frequency .concept-dialog { background: var(--surface); color: var(--ink); border: 1px solid var(--accent-hairline); border-radius: 3px; box-shadow: 0 30px 120px var(--shadow); }
.frequency .concept-dialog::backdrop { background: var(--overlay); backdrop-filter: blur(10px); }
.frequency .concept-body label, .frequency .concept-body h2, .frequency .concept-body p { color: var(--ink); }
.frequency .concept-body > p, .frequency .concept-footnote { color: var(--muted); opacity: 1; }
.frequency .concept-photo { background: var(--image-bg); }
.frequency .concept-close { border: 1px solid var(--line); background: var(--surface); color: var(--accent); border-radius: 50%; }
.frequency .concept-controls button { color: var(--accent); border-color: var(--accent-hairline); background: transparent; }
.frequency .concept-controls .primary-control { background: var(--accent); color: var(--accent-ink); }
.frequency .concept-display { border-color: var(--line); color: var(--ink); background: var(--control-bg); }
.frequency .concept-display i { background: var(--muted); }
.frequency .concept-display.lit { background: var(--lit-bg); }
.frequency .concept-display.lit i { background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.frequency .concept-body input[type="range"] { accent-color: var(--accent); }
.frequency .concept-footnote, .frequency .demo-log { border-color: var(--line); }
.frequency .concept-body select { background: var(--control-bg); color: var(--ink); border-color: var(--line); }
.frequency .concept-status { color: var(--accent); }
.frequency .demo-log { color: var(--muted); }

/* Reveal is opt-in: a missing script never hides content. */
[data-reveal] { opacity: 1; transform: none; transition: opacity .75s cubic-bezier(.2,.8,.2,1), transform .75s cubic-bezier(.2,.8,.2,1); }
html[data-motion="on"] [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(20px); }
html[data-motion="on"] [data-reveal].is-visible { opacity: 1; transform: none; }
html[data-motion="off"] [data-reveal] { opacity: 1; transform: none; }
@keyframes ring-breathe { 50% { transform: translate(-50%, -50%) scale(1.035); opacity: .7; } }
@keyframes wave-breathe { 50% { transform: scaleY(.91); } }
@media (hover: hover) and (pointer: fine) {
  .frequency-header nav a:hover { color: var(--accent); }
  .language-button:hover, .copy-email:hover { border-color: var(--accent-hairline); color: var(--accent); }
  .signal-link:hover { border-bottom-color: var(--accent); }
  .frequency .play-button:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
  .music-filters button:hover { border-color: var(--accent-hairline); color: var(--accent); }
  .music-filters button[aria-pressed="true"]:hover { color: var(--accent-ink); }
  .frequency .hardware-card:hover { transform: translateY(-5px); border-color: var(--accent-hairline); box-shadow: 0 15px 35px var(--shadow); }
  .frequency .hardware-card:hover::after { opacity: 1; }
  .frequency .hardware-card:hover .hardware-image img { transform: scale(1.018); }
  .frequency .hardware-card button[data-prototype]:hover { background: var(--accent); color: var(--accent-ink); }
  .palette-dock button[data-palette-choice]:hover { border-color: var(--line); color: var(--ink); }
  .back-to-top:hover { background: var(--accent); color: var(--accent-ink); }
}
@media (min-width: 1500px) {
  .frequency-header, .frequency-hero, .frequency-section, .frequency-contact, .palette-dock { max-width: 1440px; margin-left: auto; margin-right: auto; }
  .frequency-title h1 { font-size: 136px; }
  .footer-large { font-size: 280px; }
}
@media (max-width: 1050px) {
  .frequency-title { align-items: start; }
  .frequency-title h1 { display: block; font-size: 9vw; line-height: 1.12; }
  .frequency-title h1 span:first-child { margin-bottom: 3px; }
  .hero-copy { padding-top: 26px; }
  .signal-stage { height: 288px; }
  .music-intro h2, .hardware-heading h2 { font-size: 42px; }
  .frequency .track { grid-template-columns: 45px minmax(150px, 1fr) 30% 40px; gap: 20px; }
  .contact-row { grid-template-columns: 1fr 1.2fr; gap: 6%; }
  .contact-row a { font-size: 22px; }
  .palette-dock { gap: 10px; padding: 14px; }
  .palette-dock button[data-palette-choice] { padding: 9px 7px; font-size: 9px; }
  .palette-label { min-width: 78px; font-size: 10px; }
  .motion-toggle { font-size: 9px; }
}
@media (max-width: 750px) {
  .frequency-header { height: 76px; gap: 20px; }
  .frequency-header nav { gap: 17px; font-size: 10px; }
  .frequency-logo { font-size: 20px; }
  .frequency-title h1 { font-size: 11vw; }
  .hero-copy { max-width: 220px; }
  .hero-copy p { font-size: 12px; }
  .hero-code { font-size: 9px; }
  .frequency-section { padding: 78px 0 69px; }
  .music-intro, .hardware-heading { gap: 7%; grid-template-columns: 1.15fr 1fr; }
  .music-intro h2, .hardware-heading h2 { font-size: 35px; }
  .music-intro p, .hardware-heading p { font-size: 13px; }
  .frequency .track { grid-template-columns: 40px minmax(130px, 1fr) 22% 36px; gap: 16px; }
  .music-console { padding: 21px 23px; }
  .frequency .hardware-grid { gap: 20px; }
  .frequency .hardware-card { padding: 15px; }
  .frequency .hardware-card h3 { font-size: 31px; }
  .frequency .hardware-card p { font-size: 12px; }
  .frequency .hardware-meta { font-size: 9px; }
  .hardware-strategy h3 { font-size: 15px; }
  .hardware-strategy p { font-size: 11px; }
  .contact-row a { font-size: 17px; }
  .frequency .play-button { width: 38px; height: 38px; }
  .footer-bottom { gap: 20px; font-size: 8px; }
  .palette-dock { flex-wrap: wrap; gap: 12px; }
  .palette-label { flex: 1; }
  .palette-options, .palette-choices { order: 3; flex-basis: 100%; justify-content: space-between; }
  .palette-dock button[data-palette-choice] { flex: 1; }
}
@media (max-width: 560px) {
  html { scroll-padding-top: 113px; }
  .frequency-header { height: auto; min-height: 97px; padding: 18px 0 15px; flex-wrap: wrap; row-gap: 18px; }
  .frequency-logo { flex: 1; font-size: 22px; }
  .frequency-header nav { width: 100%; order: 3; justify-content: space-between; margin: 0; font-size: 10px; gap: 12px; }
  .frequency-header nav a:last-child { border: 0; padding: 0; }
  .language-button { min-width: 58px; width: auto; height: 31px; padding: 0 9px; }
  .palette-dock { margin-top: 17px; padding: 13px 12px; gap: 10px; }
  .palette-label { font-size: 10px; line-height: 1.6; }
  .palette-label small, .palette-label > span:last-child { font-size: 8px; }
  .palette-options, .palette-choices { gap: 3px; }
  .palette-dock button[data-palette-choice] { flex-direction: column; gap: 7px; padding: 9px 4px; font-size: 8px; min-height: 46px; min-width: 0; white-space: normal; text-align: center; }
  .palette-swatch, button[data-palette-choice]::before { width: 7px; height: 7px; flex-basis: 7px; }
  .motion-toggle { min-height: 33px; padding: 7px 8px; font-size: 9px; }
  .hero-code { padding: 29px 0 33px; gap: 10px; font-size: 8px; letter-spacing: .5px; }
  .frequency-title { display: block; margin-bottom: 33px; }
  .frequency-title h1 { font-size: 17vw; line-height: 1.12; letter-spacing: -.075em; }
  html[lang="en"] .frequency-title h1 { font-size: 16vw; }
  .frequency-title h1 span:first-child { margin: 0; }
  .hero-copy { padding-top: 25px; max-width: 100%; display: flex; justify-content: space-between; gap: 18px; align-items: end; }
  .hero-copy p { font-size: 11px; line-height: 1.85; }
  .hero-copy .signal-link { min-width: 134px; font-size: 10px; gap: 10px; padding: 8px 0; margin: 0; }
  .signal-stage { height: 238px; }
  .stage-top, .stage-bottom { left: 14px; right: 14px; font-size: 8px; letter-spacing: .3px; }
  .stage-top { top: 15px; }
  .stage-top > span:last-child { max-width: 140px; text-align: right; line-height: 1.7; }
  .stage-bottom { bottom: 15px; gap: 10px; }
  .signal-caption { left: 14px; bottom: 41px; font-size: 8px; max-width: 86%; line-height: 1.6; }
  .stage-ticks { display: none; }
  .signal-rings { width: 196px; height: 196px; }
  .signal-wave { width: 166%; left: -33%; height: 68%; top: 16%; }
  .frequency-rail { padding: 19px 0; font-size: 8px; letter-spacing: .2px; gap: 7px; }
  .frequency-rail span:nth-child(2n) { font-size: 12px; }
  .frequency-section { padding: 65px 0 56px; }
  .section-code { font-size: 8px; letter-spacing: .5px; gap: 12px; padding: 18px 0; }
  .section-code > span:last-child { display: none; }
  .music-intro, .hardware-heading { grid-template-columns: 1fr; gap: 26px; margin: 33px 0; }
  .music-intro h2, .hardware-heading h2 { font-size: 37px; letter-spacing: -.055em; }
  .music-intro > div, .hardware-heading > div:last-child { max-width: 340px; }
  .music-intro p, .hardware-heading p { font-size: 13px; }
  .signal-link { min-width: 190px; font-size: 11px; margin-top: 19px; }
  .music-context { gap: 7px; margin: 29px 0 39px; }
  .music-context span { padding: 8px 10px; font-size: 9px; }
  .console-heading { gap: 8px; margin-bottom: 17px; }
  .console-heading h3 { font-size: 12px; }
  .console-heading > span:last-child { font-size: 8px; letter-spacing: .1px; }
  .music-console { padding: 17px; }
  .music-filters { gap: 6px; padding-bottom: 16px; }
  .music-filters button { font-size: 9px; padding: 8px 11px; min-height: 34px; }
  .frequency .track { grid-template-columns: 34px 1fr 30px; gap: 12px; padding: 22px 0; }
  .frequency .play-button { width: 33px; height: 33px; }
  .frequency .play-button span { font-size: 10px; }
  .frequency .track-copy h3 { font-size: 15px; }
  .frequency .track-copy p { font-size: 9px; line-height: 1.7; }
  .frequency .waveform { display: none; }
  .frequency .track-time { font-size: 9px; margin: 0; text-align: right; }
  .frequency .audio-note { font-size: 9px; }
  .frequency .audio-status { font-size: 10px; }
  .console-scale { font-size: 8px; margin-bottom: 4px; }
  .frequency-manifesto { padding: 40px 4.5% 26px; }
  .frequency-manifesto > p { font-size: 34px; margin: 28px 0 32px; line-height: 1.4; }
  .mini-label { font-size: 9px; letter-spacing: .9px; }
  .manifesto-bottom { font-size: 8px; gap: 15px; letter-spacing: .4px; align-items: start; }
  .manifesto-bottom span:nth-child(2) { max-width: 210px; line-height: 1.6; }
  .hardware-heading h2 { margin-top: 20px; }
  .lab-badge { font-size: 9px; padding: 9px 11px; margin-top: 18px; }
  .frequency .hardware-grid { grid-template-columns: 1fr; gap: 29px; }
  .frequency .hardware-card { padding: 17px; }
  .frequency .hardware-image { aspect-ratio: 1.12; }
  .frequency .hardware-card h3 { font-size: 34px; margin-bottom: 17px; }
  .frequency .hardware-meta { font-size: 9px; gap: 10px; margin: 21px 0 17px; }
  .frequency .hardware-card p { font-size: 13px; }
  .frequency .hardware-card button[data-prototype] { font-size: 11px; padding: 15px; }
  .frequency .hardware-note { font-size: 9px; }
  .hardware-strategy { grid-template-columns: 1fr; margin-top: 39px; }
  .hardware-strategy article, .hardware-strategy article + article { border: 0; padding: 24px 0; border-bottom: 1px solid var(--line); }
  .hardware-strategy article:last-child { border: 0; }
  .hardware-strategy h3 { font-size: 17px; margin: 14px 0 11px; }
  .hardware-strategy p { font-size: 12px; }
  .frequency-contact { padding: 36px 0 60px; }
  .contact-heading { padding-bottom: 33px; }
  .contact-heading h2 { font-size: 34px; margin-top: 23px; line-height: 1.25; }
  .contact-row { grid-template-columns: 1fr; gap: 24px; padding-top: 27px; }
  .contact-row p { font-size: 12px; }
  .contact-row a { font-size: 16px; padding-bottom: 14px; }
  .contact-row a > span { font-size: 22px; }
  .copy-email { min-height: 40px; font-size: 10px; }
  .frequency-footer { padding-top: 32px; }
  .footer-large { font-size: 18vw; margin-bottom: 29px; }
  .footer-large > span { font-size: 4vw; }
  .footer-bottom { display: grid; grid-template-columns: 1fr auto; gap: 15px; font-size: 8px; }
  .footer-bottom > span:last-child { grid-column: 1/-1; }
  .frequency .concept-body p { white-space: normal; }
  .back-to-top { right: 17px; bottom: 17px; width: 40px; height: 40px; }
}
html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; }
html[data-motion="off"] .hardware-card, html[data-motion="off"] .hardware-image img, html[data-motion="off"] .magnetic-shell > span, html[data-motion="off"] .magnetic-shell .magnetic-content { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html[data-motion="on"] [data-reveal], [data-reveal] { opacity: 1 !important; transform: none !important; }
  .frequency .hardware-card, .frequency .hardware-image img, .magnetic-shell > span, .magnetic-shell .magnetic-content { transform: none !important; }
}

.palette-dock > a { font-size: 10px; letter-spacing: .5px; white-space: nowrap; color: var(--muted); line-height: 1.6; }
