/* Aethéa site: Synthéa "Quiet Futurism" on obsidian. Fluid layout, no fixed widths. */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --obsidian: #090B10; --graphite: #12161F; --graphite-2: #171C26; --line: #232A37;
  --pearl: #DCE3EC; --soft: #F6F7FB; --muted: #8C96A8;
  --icy: #9CCBFF; --violet: #B8A7F8; --nacre: #E8D5E3;
  --f-body: "Manrope", "Noto Sans Armenian", "Mshtakan", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --f-line: "Cormorant Garamond", Georgia, serif;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --obsidian: #F5F6FA; --graphite: #FFFFFF; --graphite-2: #EAEFF7; --line: #D6DFEC;
  --pearl: #2A3242; --soft: #0C111B; --muted: #5C677B;
  --icy: #2B6CB0; --violet: #6855C9; --nacre: #B87BA8;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--obsidian); color: var(--pearl); font: 400 clamp(15px, 1.05vw + 11px, 17px)/1.65 var(--f-body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--icy); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--icy); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--graphite); padding: 8px 12px; }

.wrap { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }

/* Header */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--obsidian) 78%, transparent); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid transparent; transition: border-color .3s; }
.bar.scrolled { border-bottom-color: var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 12px 20px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--soft); text-decoration: none; font-weight: 300; font-size: 20px; letter-spacing: .01em; margin-right: auto; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.bar nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.bar nav a, .lang button, .label { font: 400 11px/1.2 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; }
.bar nav a { color: var(--muted); text-decoration: none; padding: 8px 0; transition: color .2s; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--soft); }
.lang { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button { background: none; border: 0; color: var(--muted); border-radius: 999px; padding: 7px 10px; cursor: pointer; letter-spacing: .08em; }
.lang button[aria-pressed="true"] { background: var(--graphite-2); color: var(--soft); }
.theme-btn { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; transition: color .2s, border-color .2s, background .2s; }
.theme-btn:hover { color: var(--soft); border-color: var(--muted); background: var(--graphite-2); }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .icon-moon { display: none; }
:root[data-theme="light"] .theme-btn .icon-sun { display: none; }
:root[data-theme="light"] .theme-btn .icon-moon { display: block; }
@media (max-width: 760px) { .bar nav { order: 3; flex-basis: 100%; gap: 4px 18px; } .bar nav a { padding: 4px 0; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 600 15px/1.2 var(--f-body); text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s, background .25s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--soft); color: var(--obsidian); box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 10px 40px -10px rgba(156,203,255,.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 16px 50px -10px rgba(184,167,248,.7); }
.btn-primary[aria-disabled="true"] { cursor: default; }
.btn-ghost { color: var(--pearl); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { position: relative; min-height: min(92svh, 900px); display: grid; align-items: center; overflow: hidden; isolation: isolate; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, var(--obsidian)); z-index: -1; pointer-events: none; }
.hero-copy { padding-block: clamp(72px, 12vh, 140px) clamp(96px, 16vh, 180px); max-width: 640px; }
.eyebrow { color: var(--muted); margin: 0 0 18px; display: block; }
.label { color: var(--violet); display: block; margin: 0 0 14px; }
h1, h2, h3 { color: var(--soft); text-wrap: balance; overflow-wrap: break-word; }
h1 { font: 200 clamp(56px, 12vw, 132px)/.95 var(--f-body); letter-spacing: -.02em; margin: 0 0 18px; }
.tagline { font: 300 clamp(22px, 3.4vw, 34px)/1.25 var(--f-body); color: var(--soft); margin: 0 0 18px; text-wrap: balance; }
.lede { color: var(--pearl); max-width: 56ch; margin: 0 0 30px; }
.aether { font: italic 400 clamp(18px, 2vw, 22px)/1.4 var(--f-line); color: var(--muted); margin: 28px 0 0; }
:lang(hy) .aether, :lang(ru) .aether { font-family: var(--f-body); font-style: normal; font-weight: 300; font-size: 16px; }
.say { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; font: 400 13px/1.4 var(--f-mono); color: var(--muted); }
.say b { font-weight: 500; color: var(--pearl); letter-spacing: .04em; }
.say__ipa { margin-left: 4px; }
.say__btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font: 500 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--pearl); transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.say__btn:hover { background: var(--graphite-2); color: var(--soft); border-color: var(--muted); }
.say__btn .icon { width: 18px; height: 18px; }
.say__btn[aria-busy="true"] { color: var(--violet); border-color: var(--violet); }
.hero-hear { position: absolute; right: max(16px, 3vw); top: max(16px, 2.2vw); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--obsidian) 72%, transparent); color: var(--soft); font-size: 18px; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; transition: background .2s, box-shadow .2s, color .2s; }
.hero-hear:hover { background: var(--graphite-2); }
.hero-hear[aria-pressed="true"] { background: var(--violet); color: var(--obsidian); border-color: transparent; box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 25%, transparent), 0 0 24px color-mix(in srgb, var(--violet) 55%, transparent); }
@media (max-width: 760px) { .hero-copy { padding-top: clamp(235px, 34vh, 295px); } }

/* Sections */
section { padding-block: clamp(72px, 12vw, 150px); position: relative; }
h2 { font: 300 clamp(32px, 5.2vw, 60px)/1.08 var(--f-body); letter-spacing: -.01em; margin: 0 0 20px; }
h3 { font: 600 clamp(18px, 1.6vw, 21px)/1.3 var(--f-body); margin: 0 0 8px; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head > * { max-width: 760px; }
.section-head p { color: var(--pearl); margin: 0; max-width: 60ch; }
.center { text-align: center; margin-inline: auto; }
.center > *, .center p { margin-inline: auto; }
.muted { color: var(--muted); }

/* Showcase screenshot stage */
.stage { margin-top: calc(-1 * clamp(40px, 10vh, 120px)); padding-top: 0; }
.window { border-radius: var(--radius); overflow: hidden; background: var(--graphite); border: 1px solid var(--line); box-shadow: 0 40px 120px -40px rgba(156,203,255,.35), 0 20px 60px -30px rgba(0,0,0,.8); transform-style: preserve-3d; transition: transform .6s var(--ease); }
.window .chrome { display: flex; gap: 7px; padding: 11px 14px; background: var(--graphite-2); border-bottom: 1px solid var(--line); }
.window .chrome i { width: 11px; height: 11px; border-radius: 50%; background: #3a4150; }
.window .chrome i:nth-child(1) { background: #ff5f57; } .window .chrome i:nth-child(2) { background: #febc2e; } .window .chrome i:nth-child(3) { background: #28c840; }
/* iPhone frame: sizes in cqw of the phone, so the bezel, corners, island and buttons keep true proportions at any size. */
.phone { position: relative; container-type: inline-size; }
.phone img { display: block; width: 100%; height: auto; box-sizing: border-box; padding: 2.4cqw; border-radius: 16cqw; background: #050608;
  box-shadow: inset 0 0 0 .35cqw #1a1d24, 0 0 0 .55cqw #3a404c, 0 0 0 .7cqw #12151b, 0 2.5cqw 7cqw -1cqw rgba(0,0,0,.75), 0 12cqw 26cqw -8cqw rgba(0,0,0,.9); }
.phone::after { content: ""; position: absolute; top: 5cqw; left: 50%; width: 30cqw; height: 8.8cqw; transform: translateX(-50%); border-radius: 99px; background: #000; pointer-events: none; }
.phone::before { content: ""; position: absolute; inset: 0 -1.2cqw; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, transparent 24cqw, #3a404c 24cqw 31cqw, transparent 31cqw 40cqw, #3a404c 40cqw 54cqw, transparent 54cqw 57cqw, #3a404c 57cqw 71cqw, transparent 71cqw) left / 1.2cqw 100% no-repeat,
              linear-gradient(to bottom, transparent 44cqw, #3a404c 44cqw 66cqw, transparent 66cqw) right / 1.2cqw 100% no-repeat; }

/* Layers demo */
.lanes { display: grid; gap: 10px; }
.lane { display: grid; grid-template-columns: minmax(max-content, 22%) minmax(80px, 1fr); align-items: center; gap: 14px; padding: 10px 12px 10px 10px; border-radius: 14px; background: var(--graphite); border: 1px solid var(--line); cursor: pointer; color: inherit; font: inherit; text-align: left; transition: opacity .4s, border-color .3s, transform .6s var(--ease); }
.lane:hover { border-color: #33405a; }
.lane[aria-pressed="false"] { opacity: .38; }
.lane .name { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; color: var(--soft); font-size: 15px; }
.lane .name span { white-space: nowrap; }
.lane .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--c); box-shadow: 0 0 12px var(--c); }
.lane canvas { width: 100%; height: 44px; display: block; }
.hint { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Mode rows */
.mode { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.mode.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.mode.flip .mode-copy { order: 2; }
@media (max-width: 900px) { .mode, .mode.flip { grid-template-columns: 1fr; } .mode.flip .mode-copy { order: 0; } }
.mode-copy p { margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--icy); box-shadow: 0 0 10px rgba(156,203,255,.5); }
.shots { position: relative; padding-right: clamp(56px, 14%, 160px); padding-bottom: clamp(28px, 6%, 70px); }
.shots .phone { position: absolute; right: 1%; bottom: 0; width: clamp(96px, 21%, 200px); }
.mode-glow { position: absolute; inset: 10% 0 0; background: radial-gradient(closest-side, rgba(184,167,248,.18), transparent); filter: blur(30px); z-index: -1; }

.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(16px, 2.5vw, 28px); margin-top: clamp(36px, 5vw, 64px); }
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; }
.zoom { cursor: zoom-in; }

/* Courses */
.families { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; margin-top: clamp(36px, 5vw, 56px); }
.family { background: var(--graphite); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.family .icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(140deg, rgba(156,203,255,.22), rgba(184,167,248,.22)); color: var(--soft); }
.family .icon svg { width: 20px; height: 20px; }
.family p { margin: 0; color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.chips span { font-size: 12.5px; line-height: 1.3; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--pearl); }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.card { background: linear-gradient(180deg, var(--graphite), color-mix(in srgb, var(--graphite) 60%, var(--obsidian))); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(156,203,255,.45), transparent 40%); -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 .3s; pointer-events: none; }
.card:hover::before { opacity: 1; }
.card svg { width: 26px; height: 26px; color: var(--icy); margin-bottom: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Privacy band */
.promise { text-align: center; background: radial-gradient(60% 80% at 50% 0%, rgba(156,203,255,.10), transparent), var(--obsidian); border-block: 1px solid var(--line); }
.promise .orb { width: 88px; height: 88px; margin: 0 auto 28px; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.plan { border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3vw, 34px); background: var(--graphite); display: flex; flex-direction: column; gap: 14px; }
.plan.pearl { background: radial-gradient(120% 90% at 100% 0%, rgba(184,167,248,.20), transparent 60%), radial-gradient(90% 80% at 0% 100%, rgba(156,203,255,.14), transparent 60%), var(--graphite); border-color: #3a3f5c; }
.plan h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 300; margin: 0; }
.plan p { margin: 0; }
.tiers { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.tiers li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.tiers b { color: var(--soft); font-weight: 600; }
.tiers span { color: var(--muted); font-size: 14px; }
.fine { font-size: 13.5px; color: var(--muted); margin-top: 18px; }

/* Final + footer */
.final { text-align: center; }
.final .cta-row { justify-content: center; }
footer { border-top: 1px solid var(--line); padding-block: 40px 56px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: flex-start; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--pearl); text-decoration: none; }
footer a:hover { color: var(--icy); }
footer .motto { font: italic 400 18px/1.4 var(--f-line); color: var(--pearl); margin: 6px 0 0; }
:lang(hy) footer .motto, :lang(ru) footer .motto { font-family: var(--f-body); font-style: normal; font-size: 15px; }

/* Lightbox */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(5,6,9,.88); backdrop-filter: blur(6px); }
dialog.lightbox img { max-width: 96vw; max-height: 90vh; width: auto; border-radius: 14px; }
dialog.lightbox button { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--graphite); color: var(--soft); font-size: 20px; cursor: pointer; }

/* Reveal on scroll */
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.pre { opacity: 0; transform: translateY(28px); }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float { animation: none; }
  .window, .lane, .btn { transition: none; }
}

/* Legal pages */
.doc { padding-block: clamp(48px, 8vw, 96px); }
.doc h1 { font-size: clamp(40px, 7vw, 72px); }
.doc h2 { font: 600 clamp(22px, 2.6vw, 28px)/1.25 var(--f-body); margin: 44px 0 10px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc h3 { margin: 26px 0 6px; font-size: 17px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--soft); }
.doc .meta { font: 400 12px/1.5 var(--f-mono); color: var(--muted); letter-spacing: .04em; }
.doc .note { border: 1px solid var(--line); border-left: 2px solid var(--icy); border-radius: 12px; padding: 14px 16px; background: var(--graphite); margin: 16px 0 20px; }
.doc .tbl { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0 16px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font: 400 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.doc .toc a { display: inline-block; font: 400 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; color: var(--pearl); text-decoration: none; }
.doc .toc a:hover { border-color: var(--icy); color: var(--icy); }
.doc section { padding: 0; scroll-margin-top: 90px; }
[data-lang][hidden] { display: none !important; }

/* Live screenshots: light overlays drawn over the real app captures, in time with a beat. */
.live { position: relative; overflow: hidden; cursor: pointer; }
.live .fx { position: absolute; pointer-events: none; border-radius: 8px; }
.fx-col { background: linear-gradient(180deg, rgba(156,203,255,.16), rgba(184,167,248,.10)); box-shadow: 0 0 24px rgba(156,203,255,.25); transition: left .12s linear; }
.fx-hit { opacity: 0; background: radial-gradient(closest-side, rgba(255,255,255,.55), rgba(var(--rgb, 156,203,255), .35) 70%, transparent); box-shadow: 0 0 22px 6px rgba(var(--rgb, 156,203,255), .55); transition: opacity .5s ease-out; }
.fx-hit.on { opacity: 1; transition: none; }
.fx-ring { border-radius: 50%; border: 2px solid rgba(var(--rgb, 246,247,251), .95); box-shadow: 0 0 26px 6px rgba(var(--rgb, 156,203,255), .6), inset 0 0 18px rgba(var(--rgb, 156,203,255), .5); opacity: 0; transform: scale(.9); }
.fx-ring.on { animation: ring .9s ease-out; }
@keyframes ring { 0% { opacity: 1; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.35); } }
.fx-note { color: rgba(var(--rgb, 246,247,251), 1); font: 600 clamp(10px, 1.6vw, 20px)/1 var(--f-body); opacity: 0; text-shadow: 0 0 10px rgba(var(--rgb, 156,203,255), .9); }
.fx-note.on { animation: noteUp 1.2s ease-out; }
@keyframes noteUp { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-160%); } }
.fx-key { border-radius: 0 0 6px 6px; opacity: 0; background: linear-gradient(180deg, rgba(184,167,248,0), rgba(184,167,248,.75)); box-shadow: 0 6px 24px rgba(184,167,248,.6); transition: opacity .6s ease-out; }
.fx-key.on { opacity: 1; transition: opacity .08s; }
.fx-glow { border-radius: 50%; background: radial-gradient(closest-side, rgba(246,247,251,.35), rgba(156,203,255,.18) 55%, transparent); animation: breathe 4.8s ease-in-out infinite; }
.fx-wave { border-radius: 50%; border: 1px solid rgba(220,227,236,.55); animation: wave 4.8s ease-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .55; } }
@keyframes wave { 0% { transform: scale(.85); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live .fx { display: none; } }
.live .hear { position: absolute; left: max(8px, 1.5%); bottom: max(8px, 2%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(220,227,236,.35); background: rgba(9,11,16,.72); color: var(--soft); font-size: 18px; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; transition: background .2s, box-shadow .2s; }
.live .hear::after { content: ""; position: absolute; inset: 13px 14px; }
.live .hear:hover { background: rgba(23,28,38,.9); }
.live .hear[aria-pressed="true"] { background: var(--violet); color: var(--obsidian); box-shadow: 0 0 0 4px rgba(184,167,248,.25), 0 0 24px rgba(184,167,248,.6); }
.fx-sprite { border-radius: 0; color: rgb(var(--rgb)); font: 600 clamp(9px, 1.6vw, 22px)/1 var(--f-body); text-shadow: 0 0 10px rgba(var(--rgb), .8); animation: drift 3s ease-out forwards; }
@keyframes drift { 0% { opacity: 0; transform: translateY(20%) scale(.6) rotate(-10deg); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-180%) scale(1.15) rotate(12deg); } }
.fx-band { border-radius: 4px; overflow: hidden; background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent) 0 0 / 35% 100% no-repeat; animation: sheen 3.6s linear infinite; mix-blend-mode: screen; }
.fx-band svg { width: 200%; height: 100%; display: block; animation: waveSlide 2.4s linear infinite; }
.fx-band path { fill: none; stroke: rgba(255,255,255,.7); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.fx-band.on { box-shadow: inset 0 0 30px rgba(255,255,255,.35); }
@keyframes sheen { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@keyframes waveSlide { from { transform: translateX(0); } to { transform: translateX(-25%); } }

/* Instruments you can touch */
.insts { margin-top: clamp(28px, 4vw, 48px); }
.insts .hint { margin: 0 0 16px; }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: clamp(14px, 2vw, 24px); }
.inst { aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--line); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  background: radial-gradient(120% 90% at 50% 0%, rgba(156,203,255,.10), transparent 60%), var(--graphite); }
.inst[data-anim="dhol"] { background: radial-gradient(120% 90% at 50% 0%, rgba(245,175,90,.10), transparent 60%), var(--graphite); }
.inst[data-anim="drum"] { background: radial-gradient(120% 90% at 50% 0%, rgba(184,167,248,.12), transparent 60%), var(--graphite); }
.inst canvas { display: block; width: 100%; height: 100%; }
.inst .hear { left: auto; right: max(8px, 1.5%); top: max(8px, 2%); bottom: auto; }

/* Light mode surface & shadow refinements */
:root[data-theme="light"] .btn-primary { background: var(--soft); color: #F5F6FA; box-shadow: 0 8px 28px -8px rgba(43, 108, 176, .35); }
:root[data-theme="light"] .btn-primary:hover { box-shadow: 0 12px 34px -8px rgba(104, 85, 201, .42); }
:root[data-theme="light"] .window { box-shadow: 0 28px 80px -32px rgba(12, 17, 27, .16), 0 12px 32px -20px rgba(12, 17, 27, .10); }
:root[data-theme="light"] .lane:hover { border-color: #B4C3DA; }
:root[data-theme="light"] .plan.pearl { background: radial-gradient(120% 90% at 100% 0%, rgba(104,85,201,.10), transparent 60%), radial-gradient(90% 80% at 0% 100%, rgba(43,108,176,.08), transparent 60%), var(--graphite); border-color: #C3CAE2; }
:root[data-theme="light"] .tiers li { background: rgba(12, 17, 27, .025); }
:root[data-theme="light"] .live .hear { background: rgba(245, 246, 250, .84); border-color: rgba(12, 17, 27, .18); color: var(--soft); }
:root[data-theme="light"] .live .hear:hover { background: #FFFFFF; }
:root[data-theme="light"] .live .hear[aria-pressed="true"] { background: var(--violet); color: #FFFFFF; }
:root[data-theme="light"] .inst { background: radial-gradient(120% 90% at 50% 0%, rgba(43,108,176,.08), transparent 60%), var(--graphite); }
:root[data-theme="light"] .inst[data-anim="dhol"] { background: radial-gradient(120% 90% at 50% 0%, rgba(210,130,45,.08), transparent 60%), var(--graphite); }
:root[data-theme="light"] .inst[data-anim="drum"] { background: radial-gradient(120% 90% at 50% 0%, rgba(104,85,201,.09), transparent 60%), var(--graphite); }
:root[data-theme="light"] dialog.lightbox::backdrop { background: rgba(235, 240, 248, .86); }
