/* metarealization\> — prototype stylesheet
   Strict black & white. Effects: bloom (glow), grain, light VHS, chromatic on logo + mascot. */

@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../assets/fonts/inter-display-300.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Mono"; src: url("../assets/fonts/dejavu-mono.woff") format("woff"); font-weight: 400; font-display: swap; }

:root {
  --bg: #000;
  --ink: #f2f2f2;
  --dim: rgba(242, 242, 242, .58);
  --faint: rgba(242, 242, 242, .32);
  --line: rgba(242, 242, 242, .14);
  --panel: rgba(255, 255, 255, .035);
  --glow: 0 0 14px rgba(255, 255, 255, .38), 0 0 42px rgba(255, 255, 255, .14);
  --glow-soft: 0 0 10px rgba(255, 255, 255, .25);
  --sans: "Inter", system-ui, sans-serif;
  --display: "Inter Display", "Inter", system-ui, sans-serif;
  --mono: "Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --pad: clamp(18px, 3.2vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); font-size: 15px; line-height: 1.55; overflow-x: hidden; min-height: 100vh; }
/* no accidental text selection or image dragging; fields stay editable */
html { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable] { -webkit-user-select: text; user-select: text; }
img { -webkit-user-drag: none; user-drag: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }

/* custom cursor hides the system one on devices with a fine pointer */
@media (pointer: fine) { html.has-cursor, html.has-cursor * { cursor: none !important; } }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.dim { color: var(--dim); }
.glow { text-shadow: var(--glow); }
.chroma {
  filter: drop-shadow(1.6px 0 0 rgba(255, 30, 70, .7)) drop-shadow(-1.6px 0 0 rgba(0, 230, 255, .7)) drop-shadow(0 0 16px rgba(255, 255, 255, .3));
  animation: chroma-jitter 6s steps(1) infinite;
}
@keyframes chroma-jitter {
  0%, 86%, 100% { transform: translate(0, 0); }
  87% { transform: translate(2px, -1px) skewX(-2deg); }
  88% { transform: translate(-3px, 0); }
  89% { transform: translate(1px, 1px); }
  90% { transform: translate(0, 0); }
}

/* ---------- overlays: grain, scanlines, vignette, vhs band ---------- */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.fx--grain { opacity: .055; mix-blend-mode: screen; background-size: 160px 160px; image-rendering: pixelated; }
.fx--scan { background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.22) 2px 3px); opacity: .45; }
.fx--vignette { background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.65) 100%); }
.fx--vhs { inset: auto 0 auto 0; height: 0; top: 0; backdrop-filter: blur(.6px) brightness(1.5); -webkit-backdrop-filter: blur(.6px) brightness(1.5);
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.06) 40%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.06) 60%, transparent); }
.fx--vhs.on { height: var(--h, 40px); top: var(--y, 50%); }
body.glitching main { animation: vhs-shift .18s steps(2) 1; }
@keyframes vhs-shift { 0% { transform: translateX(0); } 50% { transform: translateX(-4px) skewX(.6deg); } 100% { transform: translateX(0); } }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; mix-blend-mode: difference; display: none; }
html.has-cursor .cursor { display: block; }
.cursor__star { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; transition: transform .35s var(--ease), opacity .2s; }
.cursor__star svg { width: 100%; height: 100%; fill: #fff; filter: drop-shadow(0 0 6px rgba(255,255,255,.9)); animation: spin 9s linear infinite; }
.cursor__cross { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; opacity: 0; transform: scale(.4) rotate(45deg); transition: transform .35s var(--ease), opacity .25s, width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease); }
.cursor__cross i { position: absolute; width: 9px; height: 9px; border: 1px solid #fff; }
.cursor__cross i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.cursor__cross i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.cursor__cross i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.cursor__cross i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.cursor__cross::before, .cursor__cross::after { content: ""; position: absolute; background: #fff; left: 50%; top: 50%; }
.cursor__cross::before { width: 1px; height: 10px; margin: -5px 0 0 0; }
.cursor__cross::after { width: 10px; height: 1px; margin: 0 0 0 -5px; }
.cursor__label { position: absolute; left: 30px; top: 14px; white-space: nowrap; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; }
.cursor.is-link .cursor__star { transform: scale(.45); }
.cursor.is-link .cursor__cross { opacity: 1; transform: scale(1) rotate(0deg); }
.cursor.has-label .cursor__label { opacity: 1; }
.cursor.is-down .cursor__star { transform: scale(1.7); }
.cursor.is-text .cursor__star { transform: scale(.3); }
.cursor.is-text .cursor__cross { opacity: 1; transform: scale(1); width: 4px; height: 26px; margin: -13px 0 0 -2px; }
.cursor.is-text .cursor__cross i, .cursor.is-text .cursor__cross::after { display: none; }
.cursor.is-text .cursor__cross::before { height: 26px; margin-top: -13px; }
.spark { position: fixed; z-index: 199; pointer-events: none; width: 8px; height: 8px; margin: -4px 0 0 -4px; mix-blend-mode: difference; }
.spark svg { width: 100%; height: 100%; fill: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- preloader & page transition ---------- */
.loader { position: fixed; inset: 0; z-index: 150; background: #000; display: grid; place-items: center; transition: opacity .6s var(--ease), visibility .6s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader__inner { display: grid; justify-items: center; gap: 22px; }
.loader__logo { width: 92px; }
.loader__brand { font-family: var(--mono); font-size: 14px; letter-spacing: .12em; min-height: 1.4em; }
.loader__count { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .2em; }
.loader__bar { width: 180px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.loader__bar span { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); box-shadow: var(--glow-soft); }
.wipe { position: fixed; inset: 0; z-index: 140; background: #000; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease); display: grid; place-items: center; }
body.leaving .wipe { opacity: 1; }
.wipe span { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--dim); }

/* ---------- header ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--pad); mix-blend-mode: difference; }
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { width: 30px; height: 30px; }
.nav__brand .mono { font-size: 12px; text-transform: none; letter-spacing: .06em; }
.nav__links { display: flex; gap: clamp(14px, 2.6vw, 36px); align-items: center; }
.nav__links a { position: relative; }
.nav__links a.active::before { content: "✦"; position: absolute; left: -14px; top: 0; font-size: 9px; }
.nav__cta { border: 1px solid rgba(255,255,255,.6); padding: 8px 14px; border-radius: 999px; }

/* ---------- spinner char (the "\" that turns) ---------- */
.spin-slash { display: inline-block; width: .62em; text-align: center; }

/* ---------- common bits ---------- */
section { position: relative; }
.wrap { padding: 0 var(--pad); }
.label { display: inline-flex; gap: 10px; align-items: center; }
.label::before { content: ""; width: 5px; height: 5px; background: var(--ink); box-shadow: var(--glow-soft); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; border: 1px solid var(--faint); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: rgba(0,0,0,.35); transition: background .3s, color .3s, border-color .3s, box-shadow .3s; will-change: transform; }
.btn:hover { background: var(--ink); color: #000; border-color: var(--ink); box-shadow: var(--glow); }
.btn--solid { background: var(--ink); color: #000; border-color: var(--ink); }
.btn--solid:hover { background: #000; color: var(--ink); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* frame with corner crosshairs (Atlantic-style grid marks) */
.framed { position: relative; border: 1px solid var(--line); }
.framed > .tick { position: absolute; width: 11px; height: 11px; }
.framed > .tick::before, .framed > .tick::after { content: ""; position: absolute; background: var(--ink); box-shadow: var(--glow-soft); }
.framed > .tick::before { left: 5px; top: 0; width: 1px; height: 11px; }
.framed > .tick::after { top: 5px; left: 0; height: 1px; width: 11px; }
.tick.tl { left: -6px; top: -6px; } .tick.tr { right: -6px; top: -6px; } .tick.bl { left: -6px; bottom: -6px; } .tick.br { right: -6px; bottom: -6px; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero { height: 100vh; min-height: 640px; overflow: hidden; }
.ascii, .ascii-bloom { position: absolute; inset: 0; width: 100%; height: 100%; }
.ascii-bloom { filter: blur(10px) brightness(1.6); opacity: .7; mix-blend-mode: screen; pointer-events: none; }
.hero__side { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.hero__side--l { left: var(--pad); }
.hero__side--r { right: var(--pad); text-align: right; }
.hero__bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 var(--pad) 18px; }
.hero__pill { position: absolute; left: 50%; top: 92px; transform: translateX(-50%); z-index: 3; }
.pill { display: inline-flex; gap: 10px; align-items: center; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); }
.pill b { background: var(--ink); color: #000; padding: 3px 8px; border-radius: 999px; font-weight: 400; box-shadow: var(--glow-soft); }
.hero__meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 8px; }
.hero__meta p { max-width: 330px; color: var(--dim); }
.wordmark { font-family: var(--display); font-weight: 300; font-size: clamp(40px, 12.3vw, 256px); line-height: .9; letter-spacing: -.045em; white-space: nowrap; text-shadow: var(--glow); }
.wordmark .spin-slash { width: .4em; }
.wordmark .ch { display: inline-block; transition: transform .5s var(--ease), opacity .5s; }
.scroll-hint { display: inline-flex; gap: 10px; align-items: center; }
.scroll-hint i { width: 1px; height: 26px; background: linear-gradient(var(--ink), transparent); animation: drip 1.6s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- MANIFESTO (sticky spreading words) ---------- */
.manifesto { height: 165vh; }
.manifesto__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; align-content: center; }
.spread { display: flex; justify-content: center; gap: .3em; font-family: var(--display); font-weight: 300; font-size: clamp(48px, 9vw, 170px); letter-spacing: -.04em; line-height: 1; padding: 0 var(--pad); text-shadow: var(--glow); }
.spread span { display: inline-block; will-change: transform; }
.manifesto__text { max-width: 520px; margin: 48px auto 0; text-align: center; color: var(--dim); font-size: 17px; padding: 0 var(--pad); }
.manifesto__text strong { color: var(--ink); font-weight: 400; }
.peek-left { position: absolute; left: 0; bottom: -4vh; width: min(25vw, 330px); transform: translateX(-100%); will-change: transform; z-index: 1; }
.manifesto__marks { position: absolute; inset: 0; pointer-events: none; }
.manifesto__marks span { position: absolute; }

/* ---------- RELEASE ---------- */
.release { padding-top: 18vh; padding-bottom: 14vh; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 42px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.release__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.release__copy h2 { font-family: var(--display); font-weight: 300; font-size: clamp(38px, 5vw, 76px); line-height: .98; letter-spacing: -.035em; margin: 18px 0 20px; text-shadow: var(--glow); }
.release__copy p { color: var(--dim); max-width: 460px; }
.specs { margin: 28px 0 32px; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); }
.specs dd { color: var(--ink); }
.specs dt { color: var(--dim); }
.release__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* faux plug-in window */
.plugin { padding: clamp(14px, 2vw, 26px); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); }
.plugin__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.plugin__title { display: flex; align-items: center; gap: 10px; }
.plugin__title img { width: 26px; }
.plugin__title b { font-weight: 500; font-size: 14px; display: block; line-height: 1.1; }
.plugin__title small { font-family: var(--mono); font-size: 10px; color: var(--dim); }
.plugin__tabs { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.plugin__tabs span { padding: 5px 11px; border-radius: 999px; }
.plugin__tabs span.on { background: var(--ink); color: #000; }
.wave { width: 100%; height: 120px; display: block; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.45); }
.plugin__file { display: flex; justify-content: space-between; margin: 10px 0 14px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.card-mini { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: rgba(0,0,0,.4); }
.card-mini .val { font-family: var(--display); font-weight: 300; font-size: clamp(24px, 2.6vw, 38px); letter-spacing: -.03em; line-height: 1.1; margin: 6px 0 2px; text-shadow: var(--glow); }
.card-mini .sub { font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: .06em; }
.meter { height: 2px; background: var(--line); margin-top: 10px; position: relative; overflow: hidden; }
.meter span { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transition: transform .9s var(--ease); box-shadow: var(--glow-soft); }
.plugin__actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.plugin__actions .btn { padding: 9px 14px; font-size: 10px; }

/* ---------- FEATURES ---------- */
.features { padding-top: 10vh; padding-bottom: 10vh; }
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fcard { position: relative; min-height: 300px; padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.fcard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx, -100px) var(--my, -100px), rgba(255,255,255,.12), transparent 60%); opacity: 0; transition: opacity .3s; }
.fcard:hover::before { opacity: 1; }
.fcard h3 { font-family: var(--display); font-weight: 300; font-size: 30px; letter-spacing: -.02em; margin-bottom: 10px; }
.fcard p { color: var(--dim); font-size: 14px; max-width: 280px; }
.fcard .glyph { font-family: var(--mono); font-size: 13px; line-height: 1.05; white-space: pre; color: var(--faint); transition: color .3s, text-shadow .3s; }
.fcard:hover .glyph { color: var(--ink); text-shadow: var(--glow-soft); }

/* ---------- ACCORDION ---------- */
.hears { padding-top: 12vh; padding-bottom: 12vh; }
.acc { display: flex; gap: 8px; height: 62vh; min-height: 420px; }
.acc__item { position: relative; flex: 1; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: flex 0.8s var(--ease), border-color .4s; background: #050505; }
.acc__item.open { flex: 4.2; border-color: var(--faint); }
.acc__item canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; transition: opacity .6s; }
.acc__item.open canvas { opacity: 1; }
.acc__label { position: absolute; left: 18px; top: 16px; z-index: 2; }
.acc__vert { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; font-family: var(--display); font-weight: 300; font-size: 28px; letter-spacing: -.01em; z-index: 2; transition: opacity .4s; }
.acc__item.open .acc__vert { opacity: 0; }
.acc__body { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; opacity: 0; transform: translateY(14px); transition: opacity .5s .15s, transform .6s .15s var(--ease); max-width: 440px; padding: 18px 20px; border-radius: 12px; background: rgba(0,0,0,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); }
.acc__item.open .acc__body { opacity: 1; transform: none; }
.acc__body h3 { font-family: var(--display); font-weight: 300; font-size: 34px; letter-spacing: -.02em; margin-bottom: 8px; text-shadow: var(--glow); }
.acc__body p { color: var(--dim); font-size: 14px; }

/* ---------- RHEA ---------- */
.rhea { padding-top: 14vh; padding-bottom: 14vh; overflow: hidden; }
.rhea__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.rhea__stage { position: relative; display: grid; place-items: center; perspective: 900px; min-height: 560px; }
.rhea__img { width: min(420px, 80%); transition: transform .25s ease-out; transform-style: preserve-3d; }
.rhea__halo { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 0 80px rgba(255,255,255,.08) inset; }
.rhea__halo:nth-child(2) { width: 90%; border-style: dashed; animation: spin 60s linear infinite; }
.twinkle { position: absolute; width: 14px; height: 14px; fill: var(--ink); filter: drop-shadow(0 0 6px #fff); animation: tw 3s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes tw { 0%, 100% { opacity: .15; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
.rhea__copy h2 { font-family: var(--display); font-weight: 300; font-size: clamp(40px, 5.4vw, 88px); line-height: .95; letter-spacing: -.035em; margin: 18px 0 22px; text-shadow: var(--glow); }
.rhea__copy p { color: var(--dim); max-width: 440px; margin-bottom: 14px; }
.dialog { margin-top: 26px; max-width: 440px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--panel); min-height: 92px; }
.dialog .who { color: var(--dim); margin-bottom: 6px; }
.dialog .say { font-size: 16px; }
.dialog .say::after { content: "▍"; animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- MARQUEE ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; width: max-content; gap: 48px; animation: marq 38s linear infinite; font-family: var(--display); font-weight: 300; font-size: clamp(28px, 4vw, 54px); letter-spacing: -.02em; }
.marquee__track span { display: inline-flex; gap: 48px; align-items: center; }
.marquee__track span::after { content: "✦"; font-size: .45em; text-shadow: var(--glow); }
.marquee:hover .marquee__track { animation-duration: 90s; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- CTA with light rays ---------- */
.cta { height: 90vh; min-height: 560px; display: grid; place-items: center; text-align: center; overflow: hidden; }
.cta canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta__inner { position: relative; z-index: 2; display: grid; gap: 22px; justify-items: center; }
.cta h2 { font-family: var(--display); font-weight: 300; font-size: clamp(56px, 10vw, 180px); letter-spacing: -.045em; line-height: .9; text-shadow: var(--glow); }

/* ---------- footer ---------- */
.foot { padding: 40px var(--pad) 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.foot__brand { display: flex; gap: 12px; align-items: flex-start; }
.foot__brand img { width: 40px; }
.foot h4 { font-weight: 400; margin-bottom: 12px; color: var(--dim); }
.foot li { list-style: none; margin-bottom: 6px; }
.foot__base { grid-column: 1 / -1; display: flex; justify-content: space-between; color: var(--dim); padding-top: 26px; margin-top: 10px; border-top: 1px solid var(--line); }

/* ---------- peeking Rhea (corner easter egg) ---------- */
.peek-corner { position: fixed; right: 0; bottom: 0; width: 170px; z-index: 55; transform: translate(30%, 100%); transition: transform .7s var(--ease); pointer-events: auto; }
.peek-corner.show { transform: translate(18%, 34%); }
.peek-corner.shy { transform: translate(30%, 100%) !important; transition-duration: .25s; }
.peek-corner__bubble { position: absolute; z-index: 2; right: 64%; top: 2%; white-space: nowrap; padding: 7px 11px; border-radius: 10px; background: var(--ink); color: #000; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; opacity: 0; transform: translateY(6px); transition: opacity .3s .35s, transform .3s .35s; box-shadow: var(--glow); }
.peek-corner.show .peek-corner__bubble { opacity: 1; transform: none; }

/* ---------- PRODUCTS page ---------- */
.page-hero { position: relative; height: 72vh; min-height: 520px; overflow: hidden; display: grid; align-content: end; padding: 0 var(--pad) 40px; }
.page-hero h1 { position: relative; z-index: 2; font-family: var(--display); font-weight: 300; font-size: clamp(64px, 15vw, 300px); line-height: .82; letter-spacing: -.055em; text-shadow: var(--glow); }
.page-hero .meta { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: transparent; transition: background .25s, color .25s; }
.chip.on, .chip:hover { background: var(--ink); color: #000; }
.plist { border-top: 1px solid var(--line); }
.prow { position: relative; display: grid; grid-template-columns: 70px 1.3fr 1fr 150px 40px; gap: 20px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease); }
.prow h3 { font-family: var(--display); font-weight: 300; font-size: clamp(30px, 4vw, 64px); letter-spacing: -.035em; line-height: 1; transition: transform .5s var(--ease), text-shadow .3s; }
.prow:hover h3 { transform: translateX(14px); text-shadow: var(--glow); }
.prow p { color: var(--dim); font-size: 14px; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 10px #fff; animation: pulse 1.8s ease-in-out infinite; }
.status.wip::before { background: transparent; border: 1px solid var(--ink); animation: none; }
.status.locked::before { border-radius: 0; background: var(--faint); box-shadow: none; animation: none; }
@keyframes pulse { 50% { opacity: .3; } }
.prow__more { grid-column: 2 / -1; max-height: 0; overflow: hidden; transition: max-height .7s var(--ease); }
.prow.open .prow__more { max-height: 420px; }
.prow__more-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding-top: 24px; }
.prow__more ul { list-style: none; }
.prow__more li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.prow__more li b { color: var(--ink); font-weight: 400; margin-right: 8px; }
.prow__toggle { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; background: none; transition: transform .5s var(--ease), background .3s; }
.prow.open .prow__toggle { transform: rotate(45deg); background: var(--ink); color: #000; }
.redacted { background: var(--ink); color: transparent; box-shadow: var(--glow-soft); border-radius: 2px; }
.preview-float { position: fixed; left: 0; top: 0; width: 260px; aspect-ratio: 4 / 5; z-index: 50; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .3s, transform .35s var(--ease); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #050505; }
.preview-float.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.preview-float img { position: absolute; inset: 8% 8% 0; width: 84%; height: 92%; object-fit: contain; object-position: bottom; }
.preview-float canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.preview-float .mono { position: absolute; left: 12px; top: 10px; z-index: 2; }

/* ---------- CONTACT page ---------- */
.contact-hero { position: relative; min-height: 100vh; display: grid; align-content: center; justify-items: center; text-align: center; overflow: hidden; padding: 120px var(--pad) 60px; }
.contact-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.contact-hero h1 { position: relative; z-index: 2; font-family: var(--display); font-weight: 300; font-size: clamp(64px, 13vw, 250px); line-height: .85; letter-spacing: -.05em; text-shadow: var(--glow); margin: 18px 0 26px; }
.contact-hero > * { position: relative; z-index: 2; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 80px); padding: 12vh var(--pad); }
.contact-info dl div { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; }
.contact-info dt { color: var(--dim); }
.contact-info h2 { font-family: var(--display); font-weight: 300; font-size: clamp(34px, 4vw, 58px); letter-spacing: -.03em; line-height: 1; margin: 16px 0 30px; text-shadow: var(--glow); }
.form { display: grid; gap: 16px; padding: 28px; }
.field { display: grid; gap: 8px; }
.field input, .field textarea { background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 18px; outline: none; transition: border-color .3s, box-shadow .3s; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink), 0 6px 14px -8px rgba(255,255,255,.5); }
.field textarea { min-height: 120px; }
.topics { display: flex; gap: 8px; flex-wrap: wrap; }
.form__note { color: var(--dim); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .release__grid, .rhea__grid, .contact-grid { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: repeat(2, 1fr); }
  .acc { flex-direction: column; height: auto; }
  .acc__item { min-height: 90px; flex: none; height: 90px; transition: height .7s var(--ease); }
  .acc__item.open { height: 380px; }
  .acc__vert { writing-mode: horizontal-tb; transform: none; left: 18px; bottom: auto; top: 40px; }
  .hero__side { display: none; }
  .foot { grid-template-columns: 1fr 1fr; }
  .prow { grid-template-columns: 44px 1fr 40px; }
  .prow > p, .prow > .status { display: none; }
  .prow__more { grid-column: 1 / -1; }
  .prow__more-inner { grid-template-columns: 1fr; }
  .nav__links a:not(.nav__cta) { display: none; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .fgrid { grid-template-columns: 1fr; }
  .hero__meta p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* ---------- product previews: real screenshots, styled to the site ---------- */
.preview-float { width: 440px; aspect-ratio: auto; background: #000; }
.preview-float .shot { position: relative; display: block; overflow: hidden; }
.preview-float .shot img { position: static; inset: auto; width: 100%; height: auto; object-fit: initial; display: block; filter: contrast(1.08) brightness(.95); }
.preview-float .shot::before { content: ""; position: absolute; inset: 0; z-index: 1; background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,.28) 2px 3px); pointer-events: none; }
.preview-float .shot::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; top: -30%; z-index: 2; background: linear-gradient(to bottom, transparent, rgba(255,255,255,.14), transparent); animation: sweep 2.6s linear infinite; pointer-events: none; }
@keyframes sweep { to { top: 100%; } }
.preview-float .shot--chroma img { filter: contrast(1.08) brightness(.95) drop-shadow(2px 0 0 rgba(255,30,70,.45)) drop-shadow(-2px 0 0 rgba(0,230,255,.45)); }
.preview-float.on .shot { animation: glitch-in .45s steps(4) 1; }
@keyframes glitch-in { 0% { clip-path: inset(40% 0 45% 0); transform: translateX(-8px); } 25% { clip-path: inset(10% 0 70% 0); transform: translateX(6px); } 50% { clip-path: inset(60% 0 5% 0); transform: translateX(-3px); } 75% { clip-path: inset(0 0 20% 0); transform: none; } 100% { clip-path: inset(0); } }
.preview-float canvas { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.preview-float .mono { background: rgba(0,0,0,.7); padding: 3px 7px; border-radius: 4px; z-index: 3; }
.preview-float .cap { position: absolute; right: 10px; bottom: 8px; z-index: 3; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--dim); background: rgba(0,0,0,.7); padding: 3px 7px; border-radius: 4px; }

/* ---------- Semitone Calculator (portable) ---------- */
.semi { padding-top: 14vh; padding-bottom: 14vh; }
.semi__grid { display: grid; grid-template-columns: .8fr 1.4fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.semi__intro h2 { font-family: var(--display); font-weight: 300; font-size: clamp(40px, 5vw, 80px); line-height: .95; letter-spacing: -.035em; margin: 18px 0 20px; text-shadow: var(--glow); }
.semi__intro p { color: var(--dim); max-width: 420px; }
.semi__how { list-style: none; margin-top: 28px; border-top: 1px solid var(--line); max-width: 420px; }
.semi__how li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.semi__how b { font-weight: 400; color: var(--dim); margin-right: 14px; }

.semi__app { position: relative; padding: 22px 24px 20px; border-radius: 4px; background: #121212; overflow: hidden; transition: background .6s; }
.semi__glass { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; pointer-events: none; }
.semi__glass i { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.55), rgba(255,255,255,0) 65%); filter: blur(8px); animation: blob 14s ease-in-out infinite alternate; }
.semi__glass i:nth-child(1) { left: -8%; top: -20%; }
.semi__glass i:nth-child(2) { right: 4%; top: 30%; width: 34%; animation-duration: 11s; animation-delay: -4s; }
.semi__glass i:nth-child(3) { left: 34%; bottom: -30%; width: 40%; animation-duration: 17s; animation-delay: -8s; }
@keyframes blob { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(18%, 12%) scale(1.15); } 100% { transform: translate(-10%, 20%) scale(.9); } }
.semi__top, .semi__body, .semi__keys, .semi__keylabels, .semi__help { position: relative; z-index: 1; }
.semi__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.semi__body { display: grid; grid-template-columns: 1fr 190px 86px; gap: 22px; align-items: center; }
.semi__row { display: grid; grid-template-columns: 56px 1fr 108px; gap: 10px; align-items: center; margin-bottom: 12px; }
.semi__lbl { font-size: 12px; }
.sel { position: relative; }
.sel::after { content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.sel select { appearance: none; -webkit-appearance: none; width: 100%; height: 42px; padding: 0 34px 0 14px; border-radius: 8px; border: 1px solid #000; background: #262626; color: var(--ink); font-size: 15px; outline: none; transition: border-color .25s, background .25s, box-shadow .25s; }
.sel select:hover, .sel select:focus { border-color: rgba(255,255,255,.55); box-shadow: 0 0 12px rgba(255,255,255,.12); }
.sel select option { background: #111; color: #f2f2f2; }
.sbtn { height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); font-size: 14px; transition: background .25s, color .25s, border-color .25s, box-shadow .25s; will-change: transform; }
.sbtn:hover { border-color: rgba(255,255,255,.6); box-shadow: 0 0 14px rgba(255,255,255,.14); }
.semi__theme { height: 32px; font-size: 13px; min-width: 200px; }
.semi__btns { display: flex; gap: 10px; margin-top: 18px; padding-left: 66px; flex-wrap: wrap; }
.sbtn--pitch { min-width: 170px; background: #000; border-color: rgba(255,255,255,.35); color: var(--dim); }
.sbtn--pitch[aria-pressed="true"] { background: var(--ink); color: #000; border-color: var(--ink); box-shadow: var(--glow); }
.sbtn--play[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset, var(--glow-soft); }
.semi__result { height: 190px; border-radius: 12px; border: 2px solid #000; background: #262626; display: grid; justify-items: center; align-content: center; gap: 2px; transition: background .5s, border-color .5s, box-shadow .5s; }
.semi__rlabel { font-weight: 500; font-size: 17px; letter-spacing: .02em; text-transform: uppercase; }
.semi__num { font-family: var(--display); font-weight: 300; font-size: 76px; line-height: 1; letter-spacing: -.03em; text-shadow: var(--glow); font-variant-numeric: tabular-nums; min-width: 2.2ch; text-align: center; }
.semi__dir { font-size: 10px; color: var(--dim); }
.semi__legend { font-size: 11px; line-height: 1.7; color: var(--ink); text-transform: none; }
.semi__keys { display: flex; height: 70px; margin-top: 22px; position: relative; }
.semi__keys .wk { flex: 1; border: 1px solid #000; border-radius: 0 0 5px 5px; background: #d9d9d9; position: relative; transition: background .15s, box-shadow .15s; }
.semi__keys .bk { position: absolute; top: 0; width: calc(100% / 14 * .62); height: 60%; margin-left: calc(100% / 14 * -.31); background: #0b0b0b; border: 1px solid #000; border-radius: 0 0 4px 4px; z-index: 2; transition: background .15s, box-shadow .15s; }
.semi__keys .is-from { box-shadow: 0 0 0 2px #fff inset, 0 0 0 4px #000 inset; }
.semi__keys .bk.is-from { background: #444; }
.semi__keys .is-to { background: #fff; box-shadow: 0 0 0 3px #000 inset; }
.semi__keys .bk.is-to { background: #f2f2f2; }
.semi__keys .wk.is-to::after, .semi__keys .bk.is-to::after { content: "✦"; position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); color: #000; font-size: 10px; }
.semi__keys .is-play { background: #fff !important; box-shadow: 0 0 18px 4px rgba(255,255,255,.75) !important; }
.semi__keylabels { display: flex; gap: 18px; margin-top: 10px; font-size: 10px; color: var(--dim); }
.semi__keylabels i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; border-radius: 2px; }
.k-from { border: 2px solid #fff; } .k-to { background: #fff; } .k-play { background: #fff; box-shadow: 0 0 8px #fff; }
.semi__help { position: absolute; right: 14px; bottom: 14px; width: 26px; height: 26px; border-radius: 6px; border: 1px solid rgba(255,255,255,.3); background: #2a2a2a; font-size: 13px; z-index: 3; }
.semi__help:hover { background: var(--ink); color: #000; }
.semi__about { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.semi__about[hidden] { display: none; }
.semi__about-card { width: min(380px, 90%); padding: 20px 22px; border-radius: 12px; border: 1px solid var(--faint); background: #0d0d0d; box-shadow: var(--glow-soft); animation: pop .35s var(--ease); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.semi__about-card h4 { font-weight: 500; font-size: 16px; margin: 8px 0 12px; }
.semi__about-card dl div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.semi__about-card dt { color: var(--dim); }
.semi__about-card dd { text-align: right; word-break: break-all; }
.semi__ok { margin-top: 14px; height: 32px; float: right; }

/* Liquid Glass theme, kept black & white */
.semi__app[data-theme="glass"] { background: #050505; }
.semi__app[data-theme="glass"] .semi__glass { opacity: .5; }
.semi__app[data-theme="glass"] .sel select,
.semi__app[data-theme="glass"] .semi__result,
.semi__app[data-theme="glass"] .sbtn,
.semi__app[data-theme="glass"] .semi__help { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.38); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -10px 20px rgba(255,255,255,.04); }
.semi__app[data-theme="glass"] .semi__result { border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 0 0 8px rgba(255,255,255,.03), 0 0 30px rgba(255,255,255,.08); }
.semi__app[data-theme="glass"] .sbtn--pitch[aria-pressed="true"] { background: rgba(255,255,255,.85); color: #000; }
.semi__app[data-theme="glass"] .semi__keys .wk { background: rgba(255,255,255,.55); border-color: rgba(0,0,0,.6); }

@media (max-width: 980px) {
  .semi__grid { grid-template-columns: 1fr; }
  .semi__body { grid-template-columns: 1fr; }
  .semi__legend { display: none; }
  .semi__btns { padding-left: 0; }
  .semi__result { height: 150px; }
}

/* ======================================================================
   v0.2 — tools in the nav, themes, Rhea pop-up, mega glitch
   ====================================================================== */
.nav__links { gap: clamp(12px, 2vw, 30px); }
.tool { background: none; border: 0; font-family: var(--mono); font-size: 15px; width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 50%; transition: transform .4s var(--ease), opacity .3s; }
.tool:hover { transform: rotate(180deg); }
.tool[data-tool=sound].off { opacity: .35; text-decoration: line-through; }
.foot__secret-wrap { position: relative; }
.foot__secret { background: none; border: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); opacity: .35; transition: opacity .3s, text-shadow .3s; }
.foot__secret:hover, .foot__secret[aria-expanded=true] { opacity: 1; text-shadow: var(--glow-soft); }
.secrets { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: 330px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(8,8,8,.95); box-shadow: var(--glow-soft); animation: pop .3s var(--ease); z-index: 5; }
.secrets[hidden] { display: none; }
.secrets .dim { width: 100%; text-align: center; margin-bottom: 4px; text-transform: none; }
.secrets button { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: none; font-family: var(--mono); font-size: 11px; transition: background .2s, color .2s; }
.secrets button:hover { background: var(--ink); color: #000; }

.theme-menu { position: fixed; z-index: 120; width: 250px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: rgba(8,8,8,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 20px 60px rgba(0,0,0,.6), var(--glow-soft); animation: pop .3s var(--ease); }
.theme-menu[hidden] { display: none; }
.theme-menu__head { padding: 6px 10px 8px; }
.theme-menu button { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; column-gap: 10px; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 9px; background: none; transition: background .2s; }
.theme-menu button:hover, .theme-menu button[aria-checked=true] { background: rgba(255,255,255,.08); }
.theme-menu button[aria-checked=true] span::after { content: "  ✦"; font-size: 10px; }
.theme-menu .sw { grid-row: 1 / 3; width: 22px; height: 22px; border-radius: 50%; align-self: center; border: 1px solid rgba(255,255,255,.3); }
.theme-menu small { color: var(--dim); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.sw--mono { background: linear-gradient(135deg, #fff 50%, #000 50%); }
.sw--dreamy { background: linear-gradient(135deg, #ffc6ea, #d5c2ff, #bfe3ff); }
.sw--midnight { background: linear-gradient(135deg, #0b1230, #8fa8ff); }
.sw--porcelain { background: linear-gradient(135deg, #f4f1ec 50%, #111 50%); }
.sw--aurora { background: linear-gradient(135deg, #8dffd2, #8fd0ff, #cfa3ff); }

/* colour themes: a multiply layer tints every white while black stays black,
   so the look of the site stays the same, only the light changes colour */
.fx--tint { z-index: 96; mix-blend-mode: multiply; opacity: 0; transition: opacity .8s; background-size: 220% 220%; animation: tint-drift 22s ease-in-out infinite alternate; }
@keyframes tint-drift { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }
html[data-theme=dreamy] .fx--tint { opacity: 1; background-image: linear-gradient(120deg, #ffc2e8, #dcc6ff 35%, #bfe0ff 65%, #ffd1ec); }
html[data-theme=midnight] .fx--tint { opacity: 1; background-image: linear-gradient(160deg, #8ea6ff, #b4c4ff 40%, #7c93e6 70%, #a9bbff); }
html[data-theme=aurora] .fx--tint { opacity: 1; background-image: linear-gradient(115deg, #8dffd2, #93dcff 30%, #c7a3ff 60%, #8dffd2 90%); animation-duration: 12s; }
html[data-theme=midnight] { background: #02040c; }

/* Porcelain: the light theme. The page is drawn as before, then inverted,
   so ink sits on paper; the mascot and screenshots are inverted back. */
html[data-theme=porcelain] { background: #fff; }
html[data-theme=porcelain] body { background: #fff; }
html[data-theme=porcelain] main,
html[data-theme=porcelain] .foot,
html[data-theme=porcelain] .loader,
html[data-theme=porcelain] .wipe,
html[data-theme=porcelain] .preview-float,
html[data-theme=porcelain] .theme-menu,
html[data-theme=porcelain] .peek-corner,
html[data-theme=porcelain] .rhea-pop { filter: invert(1) hue-rotate(180deg); }
html[data-theme=porcelain] .keep { filter: invert(1) hue-rotate(180deg) drop-shadow(1.6px 0 0 rgba(255,30,70,.55)) drop-shadow(-1.6px 0 0 rgba(0,230,255,.55)); }
html[data-theme=porcelain] .fx--grain { mix-blend-mode: multiply; opacity: .06; }
html[data-theme=porcelain] .fx--scan { opacity: .18; }
html[data-theme=porcelain] .fx--vignette { opacity: .25; }

/* Rhea pops up when you type her name */
.rhea-pop { position: fixed; left: 50%; bottom: 0; z-index: 130; width: min(300px, 60vw); transform: translate(-50%, 105%); transition: transform .8s cubic-bezier(.3, 1.5, .5, 1); pointer-events: none; }
.rhea-pop.up { transform: translate(-50%, 28%); }
.rhea-pop.up img { animation: wiggle 1.1s ease-in-out .6s 2; }
.rhea-pop.down { transform: translate(-50%, 110%); transition: transform .6s cubic-bezier(.6, -0.4, .8, .5); }
.rhea-pop__bubble { position: absolute; left: 50%; top: -6%; transform: translate(-50%, -100%) scale(.6); opacity: 0; white-space: nowrap; padding: 9px 14px; border-radius: 12px; background: var(--ink); color: #000; font-size: 12px; box-shadow: var(--glow); transition: opacity .3s .7s, transform .4s .7s var(--ease); }
.rhea-pop.up .rhea-pop__bubble { opacity: 1; transform: translate(-50%, -100%) scale(1); }
.rhea-pop__bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: var(--ink); transform: translateX(-50%) rotate(45deg); }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }

/* typing "glitch" */
body.mega-glitch main, body.mega-glitch .foot { animation: mega 1.1s steps(1) 1; }
@keyframes mega {
  0% { transform: translate(0); filter: none; }
  8% { transform: translate(-12px, 2px) skewX(4deg); filter: drop-shadow(6px 0 0 rgba(255,30,70,.8)) drop-shadow(-6px 0 0 rgba(0,230,255,.8)); }
  16% { transform: translate(9px, -3px); clip-path: inset(10% 0 40% 0); }
  24% { transform: translate(-4px, 0) scaleY(1.02); clip-path: inset(0); filter: drop-shadow(-4px 0 0 rgba(255,30,70,.8)) drop-shadow(4px 0 0 rgba(0,230,255,.8)) brightness(1.4); }
  36% { transform: translate(0); filter: none; }
  52% { transform: translate(14px, 0) skewX(-6deg); filter: invert(1); }
  58% { transform: translate(0); filter: none; }
  74% { transform: translate(-6px, 1px); clip-path: inset(55% 0 10% 0); }
  80%, 100% { transform: none; clip-path: none; filter: none; }
}
html[data-theme=porcelain] body.mega-glitch main { animation: none; }

@media (max-width: 980px) { .nav__links .tool { display: inline-grid; } }

/* ======================================================================
   Analyzer (web Attune)
   ====================================================================== */
.page-hero--short { height: 56vh; min-height: 420px; }
.plugin__tabs button { padding: 6px 14px; border-radius: 999px; border: 0; background: none; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); transition: background .25s, color .25s; }
.plugin__tabs button.on { background: var(--ink); color: #000; box-shadow: var(--glow-soft); }
.plugin__tabs button:hover:not(.on) { color: var(--ink); }
.an { padding-top: 40px; padding-bottom: 14vh; }
.an__win { padding: clamp(14px, 2vw, 26px); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); }
.an__drop { display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 340px; border: 1px dashed var(--faint); border-radius: 14px; text-align: center; padding: 30px; transition: border-color .3s, background .3s, box-shadow .3s; }
.an__drop[hidden] { display: none; }
.an__drop:hover, .an__drop.over { border-color: var(--ink); background: rgba(255,255,255,.03); box-shadow: inset 0 0 60px rgba(255,255,255,.05), var(--glow-soft); }
.an__drop b { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3.4vw, 46px); letter-spacing: -.02em; text-shadow: var(--glow); }
.an__drop-star { font-size: 26px; text-shadow: var(--glow); animation: spin 8s linear infinite; display: inline-block; }
.an__drop.over .an__drop-star { animation-duration: 1.2s; }
.an__demo-wrap { margin-top: 14px; }
.an__drop--sm { min-height: 170px; }
.an__drop--sm b { font-size: clamp(22px, 2.4vw, 32px); }
.an__grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 12px; }
.an__grid--b { grid-template-columns: 1.15fr .9fr 1fr; margin-top: 12px; }
.an__card { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: rgba(0,0,0,.45); }
.an__filebar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.an__play { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--faint); background: none; font-size: 11px; flex: none; transition: background .25s, color .25s; }
.an__play:hover { background: var(--ink); color: #000; }
.an__name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an__fmt { margin-left: auto; white-space: nowrap; }
.an__x { background: none; border: 0; color: var(--dim); font-size: 13px; }
.an__x:hover { color: var(--ink); }
.an__wave { display: block; width: 100%; height: 230px; }
.an__status { display: flex; gap: 24px; margin-top: 10px; text-transform: none; letter-spacing: .04em; }
.an__bpm { font-family: var(--display); font-weight: 300; font-size: clamp(48px, 5vw, 72px); letter-spacing: -.035em; line-height: 1.05; text-shadow: var(--glow); }
.an__bpm small { font-family: var(--sans); font-size: 14px; letter-spacing: 0; margin-left: 8px; color: var(--dim); text-shadow: none; }
.an__confrow { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin: 4px 0 6px; text-transform: none; }
.an__confrow .meter { margin-top: 0; }
.an__how { min-height: 14px; margin-bottom: 10px; }
.an__kv { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.an__chip { display: inline-block; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--ink); font-size: 10px; box-shadow: var(--glow-soft); }
.an__cents { position: relative; width: 90px; height: 14px; display: inline-flex; align-items: center; justify-content: flex-end; }
.an__cents::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.an__cents i { position: absolute; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 8px #fff; transition: left .8s var(--ease); left: 50%; }
.an__cents span { position: relative; top: -14px; font-size: 10px; }
.an__alts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.an__alt { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: none; font-size: 14px; transition: border-color .25s; }
.an__alt i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--ink); }
.an__alt.on i { background: var(--ink); box-shadow: 0 0 0 2px #000 inset, var(--glow-soft); }
.an__alt.on { border-color: var(--faint); }
.an__alt small { color: var(--dim); font-size: 9px; }
.an__target { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.an__target label { display: grid; gap: 6px; }
.an__target input { height: 42px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.05); padding: 0 12px; font-size: 18px; outline: none; transition: border-color .25s, box-shadow .25s; }
.an__target input:focus { border-color: var(--ink); box-shadow: var(--glow-soft); }
.an__keyafter { margin-top: 6px; height: 42px; display: flex; align-items: center; font-size: 14px; }
.an__modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.an__mode { display: grid; justify-items: center; gap: 2px; padding: 10px 8px; border-radius: 10px; border: 1px solid var(--line); background: none; font-size: 18px; }
.an__mode span { font-size: 13px; }
.an__mode small { font-size: 9px; color: var(--dim); }
.an__mode.on { background: var(--ink); color: #000; box-shadow: var(--glow-soft); }
.an__mode.on small { color: rgba(0,0,0,.6); }
.an__mode.off { opacity: .45; }
.an__result { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.an__res1 { font-family: var(--display); font-weight: 300; font-size: 26px; letter-spacing: -.02em; margin: 6px 0 4px; text-shadow: var(--glow); }
.an__ring { width: 76px; height: 76px; flex: none; }
.an__ring circle { fill: none; stroke: var(--line); stroke-width: 3; }
.an__ring .arc { stroke: var(--ink); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 40px 40px; transition: stroke-dasharray .8s var(--ease); filter: drop-shadow(0 0 4px #fff); }
.an__ring text { fill: var(--ink); font-family: var(--mono); font-size: 13px; }
.an__bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.an__bar .btn--solid { min-width: 220px; justify-content: center; }
.an__disabled { opacity: .4; }
.an__note { margin-top: 18px; text-transform: none; letter-spacing: .03em; max-width: 760px; }
.an__libbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 16px 0 10px; }
.an__libbar > span:nth-child(2) { margin-right: auto; text-transform: none; }
.an__tablewrap { max-height: 520px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.an__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.an__table th { position: sticky; top: 0; background: #0a0a0a; text-align: left; font-weight: 400; color: var(--dim); padding: 10px 12px; border-bottom: 1px solid var(--line); user-select: none; }
.an__table th:hover { color: var(--ink); }
.an__table td { padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.an__table td:nth-child(2) { white-space: normal; word-break: break-all; }
.an__table tr { transition: background .2s, opacity .3s; }
.an__table tbody tr:hover { background: rgba(255,255,255,.04); }
.an__table tr.queued { opacity: .45; }
.an__table tr.sel { background: rgba(255,255,255,.1); }
.an__table tr.mix { background: rgba(255,255,255,.05); box-shadow: inset 3px 0 0 var(--ink); }
.an__table tr.mix td:nth-child(5) .an__chip { background: var(--ink); color: #000; }
.an__table tr.error { opacity: .5; }
.spinner { display: inline-block; width: 12px; height: 12px; border: 1px solid var(--faint); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; }
.an__live { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; padding: 30px 10px; }
.an__live h3 { font-family: var(--display); font-weight: 300; font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -.03em; line-height: 1; margin: 12px 0 14px; text-shadow: var(--glow); }
.an__live p { max-width: 480px; margin-bottom: 20px; }
@media (max-width: 980px) {
  .an__grid, .an__grid--b { grid-template-columns: 1fr; }
  .an__live { grid-template-columns: 1fr; }
  .an__live img { width: 160px; }
}

/* ======================================================================
   Changelog terminal
   ====================================================================== */
.cl { padding-top: 40px; padding-bottom: 14vh; }
.term { background: rgba(4,4,4,.92); border-radius: 4px; font-family: var(--mono); font-size: 13px; line-height: 1.65; }
.term__bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); text-transform: none; letter-spacing: .04em; font-size: 11px; }
.term__bar > span:first-child { display: flex; gap: 6px; }
.term__bar > span:first-child i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--faint); }
.term__bar > span:first-child i:first-child { background: var(--ink); box-shadow: var(--glow-soft); }
.term__out { height: min(62vh, 620px); overflow-y: auto; padding: 18px 20px 6px; white-space: pre-wrap; word-break: break-word; scrollbar-width: thin; scrollbar-color: var(--faint) transparent; }
.term__line { min-height: 1.65em; }
.term__line .dim { color: var(--dim); }
.term__line .ps { color: var(--dim); }
.term__line .cmd { color: var(--ink); text-shadow: var(--glow-soft); }
.term__line .prod { color: var(--ink); font-weight: 400; text-shadow: var(--glow); }
.term__line .ver { color: var(--ink); }
.term__line .tag { color: var(--dim); }
.term__line .k-new { color: var(--ink); }
.term__line .k-change { color: var(--dim); }
.term__line .k-fix { color: var(--faint); }
.term__line .ok { color: var(--ink); text-shadow: var(--glow-soft); }
.term__line .err { color: var(--ink); background: rgba(255,255,255,.08); }
.term__in { display: flex; align-items: center; gap: 10px; padding: 12px 20px 16px; border-top: 1px solid var(--line); text-transform: none; letter-spacing: 0; }
.term__ps { color: var(--dim); white-space: nowrap; font-size: 13px; }
.term__in input { flex: 1; background: none; border: 0; outline: none; font-family: var(--mono); font-size: 13px; caret-color: var(--ink); text-shadow: var(--glow-soft); }

/* ---------- home: Semitone Calculator block ---------- */
.release--alt { padding-top: 8vh; }
.release__grid--alt { grid-template-columns: 1fr 1.1fr; }
.semi__app--mini { padding: 20px 22px 22px; }
.mini { display: grid; grid-template-columns: 1fr 170px; gap: 18px; align-items: center; }
.mini .semi__result { height: 170px; }
.mini .semi__num { font-size: 64px; }
.mini__keys { display: flex; height: 46px; margin-top: 8px; position: relative; margin-left: 66px; }
.mini__keys .wk { flex: 1; border: 1px solid #000; border-radius: 0 0 4px 4px; background: #d9d9d9; position: relative; transition: background .2s, box-shadow .2s; }
.mini__keys .bk { position: absolute; top: 0; width: calc(100% / 7 * .6); height: 60%; margin-left: calc(100% / 7 * -.3); background: #0b0b0b; border: 1px solid #000; border-radius: 0 0 3px 3px; z-index: 2; transition: background .2s, box-shadow .2s; }
.mini__keys .is-from { box-shadow: 0 0 0 2px #fff inset, 0 0 0 4px #000 inset; }
.mini__keys .bk.is-from { background: #444; }
.mini__keys .is-to { background: #fff; box-shadow: 0 0 0 3px #000 inset, 0 0 16px rgba(255,255,255,.6); }
.mini__keys .bk.is-to { background: #f2f2f2; }
@media (max-width: 980px) {
  .release__grid--alt, .mini { grid-template-columns: 1fr; }
  .mini__keys { margin-left: 0; }
}

/* ======================================================================
   Legal pages + contact form consent / status
   ====================================================================== */
.page-hero--legal { height: 48vh; min-height: 360px; }
.legal { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 6vw, 96px); padding-top: 56px; padding-bottom: 16vh; }
.legal__toc { position: sticky; top: 96px; align-self: start; display: grid; gap: 2px; text-transform: none; letter-spacing: .03em; }
.legal__toc > .dim { text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.legal__toc a { display: flex; gap: 12px; padding: 6px 0; color: var(--dim); transition: color .2s, transform .3s var(--ease); }
.legal__toc a b { font-weight: 400; color: var(--faint); }
.legal__toc a:hover { color: var(--ink); transform: translateX(4px); }
.legal__toc .legal__other { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); }
.legal__body { max-width: 720px; -webkit-user-select: text; user-select: text; }
.legal__lead { font-size: 20px; line-height: 1.5; color: var(--ink); margin-bottom: 40px; }
.legal__body section { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.legal__body h2 { display: flex; gap: 16px; align-items: baseline; font-family: var(--display); font-weight: 300; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.02em; margin-bottom: 14px; text-shadow: var(--glow); }
.legal__body h2 .mono { font-size: 11px; text-shadow: none; }
.legal__body p, .legal__body li { color: var(--dim); font-size: 16px; line-height: 1.7; }
.legal__body p + p, .legal__body p + ul, .legal__body ul + p { margin-top: 12px; }
.legal__body b { color: var(--ink); font-weight: 500; }
.legal__body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.legal__body ul { padding-left: 20px; }
.legal__body li { margin: 4px 0; }
.legal__body ::selection, .legal__lead::selection { background: var(--ink); color: #000; }
@media (max-width: 980px) { .legal { grid-template-columns: 1fr; } .legal__toc { position: static; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 13px; color: var(--dim); line-height: 1.5; margin-top: 4px; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent__box { width: 18px; height: 18px; margin-top: 1px; border: 1px solid var(--faint); border-radius: 4px; display: grid; place-items: center; transition: background .2s, border-color .2s, box-shadow .2s; }
.consent__box::after { content: "✦"; font-size: 10px; color: #000; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s var(--ease); }
.consent input:checked + .consent__box { background: var(--ink); border-color: var(--ink); box-shadow: var(--glow-soft); }
.consent input:checked + .consent__box::after { opacity: 1; transform: none; }
.consent input:focus-visible + .consent__box { outline: 1px solid var(--ink); outline-offset: 3px; }
.consent a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.form__note.ok { color: var(--ink); text-shadow: var(--glow-soft); }
.form__note.err { color: var(--ink); background: rgba(255,255,255,.08); padding: 4px 8px; border-radius: 6px; }
.btn:disabled { opacity: .6; }
