/* Byzen. The brand is the dark studio (night and bone), set like a record sleeve; each plugin is a dark world in its own colours
   (--p-bg, --p-1, --p-2). Identity: /marca/MARCA.md */

:root {
  --paper: #09090B; --paper-2: #111114; --ink: #ECE9E2; --ink-soft: #A3A09A; --ink-mute: #807D77;
  --rule: rgba(236, 233, 226, .14);
  --night: #09090B; --bone: #ECE9E2; --ash: #A3A09A; --stone: #807D77;
  --line-n: rgba(236, 233, 226, .14); --line-n2: rgba(236, 233, 226, .26);
  --p-bg: #09090B; --p-1: #ECE9E2; --p-2: #ECE9E2;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gut: clamp(20px, 3.4vw, 56px); --nav: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--f-display); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* paper grain, very light */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .22; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

html[lang="es"] [lang="en"]:not(html), html[lang="en"] [lang="es"]:not(html) { display: none !important; }

.wrap { padding-inline: var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { left: 12px; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em; }

/* nav: a thin strip, like the top of a sleeve */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav); color: var(--ink); transition: background .3s var(--ease); }
.nav.is-solid { background: color-mix(in oklab, var(--paper) 92%, transparent); box-shadow: 0 1px 0 var(--rule); }
.nav__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-stretch: 125%; font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.logo svg { width: 24px; height: 24px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav__links a { padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.nav__links a:hover { background-size: 100% 1px; }
.crumb { font-size: 15px; opacity: .6; }
.lang { display: inline-flex; gap: 2px; font: 500 12px/1 var(--f-mono); }
.lang button { border: 0; background: none; padding: 10px 6px; cursor: pointer; opacity: .4; min-height: 40px; }
.lang button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* buttons: square-cut, solid, no gradients */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 52px; padding: 0 22px; border-radius: 3px;
  font: 500 16px/1 var(--f-display); cursor: pointer; border: 1px solid currentColor; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .15s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--ink:hover { background: #fff; border-color: #fff; }
.btn--bone { background: var(--bone); color: var(--night); border-color: var(--bone); }
.btn--bone:hover { background: #fff; border-color: #fff; }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: rgba(127, 127, 127, .12); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* home hero: a poster */
.poster { min-height: 100svh; padding-top: calc(var(--nav) + 3vh); padding-bottom: 32px; display: grid; grid-template-rows: 1fr auto; position: relative; overflow: hidden; }
.poster__art { position: absolute; right: -4vw; top: 46%; width: min(60vw, 860px); aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; }
.poster__art canvas { width: 100%; height: 100%; }
.poster__h { align-self: end; position: relative; z-index: 2; font-stretch: 112%; font-weight: 600; font-size: clamp(46px, 6.6vw, 118px); line-height: .92; letter-spacing: -0.05em; max-width: 12ch; }
.poster__foot { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; margin-top: 4vh; padding-top: 22px; border-top: 1px solid var(--rule); }
.poster__foot p { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.35; max-width: 30ch; color: var(--ink-soft); }

/* a plugin's world: a full-bleed dark band in its colours */
.world { position: relative; background: var(--p-bg); color: var(--bone); overflow: hidden; isolation: isolate; border-block: 1px solid var(--rule); }
.world::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 70% at 70% 45%, color-mix(in oklab, var(--p-1) 30%, transparent), transparent 70%),
              radial-gradient(35% 45% at 85% 70%, color-mix(in oklab, var(--p-2) 18%, transparent), transparent 70%); }
.world__in { min-height: min(92svh, 900px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: stretch; padding-block: 56px; gap: 24px; }
.world__copy { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; position: relative; z-index: 2; }
.world__name { font-stretch: 125%; font-weight: 300; font-size: clamp(56px, 8vw, 140px); line-height: .9; letter-spacing: .14em; margin-right: -.14em; }
.world__line { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; max-width: 20ch; margin-top: 28px; }
.world__art { position: relative; min-height: 420px; display: block; }
.world__art canvas { position: absolute; inset: -6% -10% -6% -6%; width: 116%; height: 112%; }
.world .btn--bone { background: var(--p-2); border-color: var(--p-2); }
.world .btn--bone:hover { background: #fff; border-color: #fff; }
.world .btn--ghost { color: var(--bone); }

/* a statement set large, instead of feature cards */
.say { padding-block: clamp(100px, 14vw, 200px); }
.say p { font-stretch: 112%; font-weight: 500; font-size: clamp(30px, 4.2vw, 68px); line-height: 1.06; letter-spacing: -0.035em; max-width: 22ch; }
.say p .soft { color: var(--ink-mute); }

/* footer */
.foot { padding: 40px 0 32px; border-top: 1px solid var(--rule); font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; align-items: end; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__links a { opacity: .75; } .foot__links a:hover { opacity: 1; }
.foot__legal { width: 100%; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; opacity: .55; font-size: 12px; }
.plugin-page .foot { border-color: var(--line-n); }

/* ---------- a plugin's own page: the whole page is its world ---------- */
.plugin-page { background: var(--p-bg); color: var(--bone); }
.plugin-page::before { opacity: .18; }
.plugin-page .nav { color: var(--bone); }
.plugin-page .nav.is-solid { background: color-mix(in oklab, var(--p-bg) 90%, transparent); box-shadow: 0 1px 0 var(--line-n); }
.plugin-page ::selection { background: var(--p-2); color: var(--night); }
.plugin-page .btn--bone { background: var(--p-2); border-color: var(--p-2); }
.plugin-page .btn--bone:hover { background: #fff; border-color: #fff; }

.stage { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto auto 1fr auto; padding: calc(var(--nav) + 12px) 0 22px; overflow: hidden; isolation: isolate; }
.stage::after { content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(50% 55% at 50% 50%, color-mix(in oklab, var(--p-1) 24%, transparent), transparent 72%); }
.stage__head { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.stage__brand { display: grid; gap: 14px; }
.stage__brand .wm { font-stretch: 125%; font-weight: 300; font-size: clamp(30px, 3.2vw, 44px); letter-spacing: .32em; line-height: 1; }
.stage__brand p { font-size: clamp(17px, 1.3vw, 19px); color: var(--ash); max-width: 26ch; line-height: 1.4; }
/* the place's name set huge behind the object */
.stage__ghost { position: relative; z-index: 2; text-align: center; pointer-events: none; margin: clamp(20px, 4vh, 44px) 0 0; padding-inline: var(--gut);
  font-stretch: 125%; font-weight: 700; font-size: clamp(34px, 6vw, 104px); line-height: .92; letter-spacing: -0.035em; text-transform: uppercase;
  background: linear-gradient(100deg, var(--p-1), var(--p-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: opacity .3s var(--ease), transform .3s var(--ease); }
.stage__ghost.is-swap { opacity: 0; transform: translateY(6px); }
.stage__obj { position: relative; min-height: 340px; transition: filter .35s var(--ease); }
.stage__obj canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.strip { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line-n); }
.transport { display: flex; align-items: center; gap: 14px; }
.sq { width: 52px; height: 52px; border-radius: 3px; border: 1px solid var(--line-n2); background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--bone);
  transition: background .2s, border-color .2s, color .2s; }
.sq:hover { border-color: var(--bone); }
.sq svg { width: 16px; height: 16px; }
.sq--play { background: var(--p-2); border-color: var(--p-2); color: var(--night); }
.sq--play:hover { background: #fff; border-color: #fff; }
.sq--play .i-pause, .is-playing .sq--play .i-play { display: none; }
.is-playing .sq--play .i-pause { display: block; }
.meter { display: grid; gap: 7px; }
.meter__bar { width: 150px; height: 1px; background: var(--line-n2); }
.meter__bar i { display: block; height: 100%; width: 0; background: var(--p-2); }
.where { display: flex; align-items: center; gap: 10px; }
.where__txt { min-width: min(300px, 52vw); text-align: center; display: grid; gap: 4px; }
.where__txt b { font-weight: 500; font-size: 19px; letter-spacing: -0.01em; }
.where__txt span { color: var(--p-2); }
.ab { justify-self: end; display: inline-flex; border: 1px solid var(--line-n2); border-radius: 3px; padding: 3px; }
.ab button { height: 44px; padding: 0 16px; border: 0; border-radius: 2px; background: transparent; color: var(--ash); cursor: pointer; font: 500 14px/1 var(--f-display); }
.ab button[aria-pressed="true"] { background: var(--bone); color: var(--night); }
.stage.is-studio .stage__obj { filter: grayscale(1) brightness(.5); }

.chapter { padding: clamp(96px, 12vw, 176px) 0; border-top: 1px solid var(--line-n); }
.chapter__h { font-stretch: 118%; font-weight: 500; font-size: clamp(34px, 4.4vw, 72px); line-height: .98; letter-spacing: -0.04em; max-width: 14ch; }
.how { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 64px); margin-top: clamp(48px, 6vw, 88px); align-items: start; }
.how figure { margin: 0; display: grid; gap: 18px; }
.how figure:nth-child(2) { margin-top: clamp(80px, 12vw, 200px); }
.how .media { position: relative; overflow: hidden; border-radius: 3px; background: #04050a; aspect-ratio: 16 / 10; }
.how .media img, .how .media video { width: 100%; height: 100%; object-fit: cover; }
.how figcaption { display: grid; gap: 6px; max-width: 36ch; }
.how figcaption b { font-weight: 500; font-size: 21px; letter-spacing: -0.01em; }
.how figcaption span { color: var(--ash); }
.vbtn { position: absolute; left: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 3px; border: 1px solid var(--line-n2); background: rgba(5, 6, 12, .7);
  display: grid; place-items: center; cursor: pointer; color: var(--bone); }
.vbtn svg { width: 14px; height: 14px; }
.vbtn .i-pause, .is-on .vbtn .i-play { display: none; }
.is-on .vbtn .i-pause { display: block; }

.deal { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line-n); }
.deal > div { padding: 36px 0 0; display: grid; gap: 28px; align-content: start; }
.deal > div + div { padding-left: clamp(24px, 4vw, 64px); border-left: 1px solid var(--line-n); }
.deal > div:first-child { padding-right: clamp(24px, 4vw, 64px); }
.deal h3 { font-weight: 500; font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; }
.deal ol { margin: 0; padding-left: 1.1em; display: grid; gap: 10px; }
.deal ol li::marker { color: var(--p-2); }
.big { font-stretch: 118%; font-weight: 500; font-size: clamp(88px, 11vw, 190px); line-height: .82; letter-spacing: -0.06em; }
.big small { font-size: .22em; letter-spacing: 0; font-weight: 400; color: var(--ash); margin-left: .3em; }
.incl { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ash); }
.note { font-size: 14px; color: var(--stone); }
.note a { border-bottom: 1px solid currentColor; }

.qa { margin-top: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line-n); max-width: 980px; }
.qa details { border-top: 1px solid var(--line-n); }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 16px 0; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { font-weight: 500; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.35; }
.qa__chev { flex: none; width: 40px; height: 40px; padding: 11px; border-radius: 3px; border: 1px solid var(--line-n2); transition: transform .3s var(--ease), border-color .2s; }
.qa summary:hover .qa__chev { border-color: var(--bone); }
.qa details[open] .qa__chev { transform: rotate(180deg); }
.qa details p { color: var(--ash); padding: 0 64px 28px 0; max-width: 60ch; animation: qa-in .3s var(--ease); }
.qa a { color: var(--bone); border-bottom: 1px solid currentColor; }
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* legal and help pages */
.doc { padding: calc(var(--nav) + 9vh) 0 120px; }
.doc .wrap > div > * { max-width: 68ch; }
.doc h1 { font-stretch: 112%; font-weight: 600; font-size: clamp(40px, 5vw, 76px); letter-spacing: -0.045em; line-height: .95; margin-bottom: 18px; }
.doc h2 { font-weight: 500; font-size: 21px; margin: 44px 0 10px; }
.doc p + p { margin-top: 12px; }
.doc ol, .doc ul { padding-left: 1.2em; display: grid; gap: 8px; }
.doc a { border-bottom: 1px solid currentColor; }
.doc .mono { opacity: .6; }

/* one-time reveal */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .world__in { grid-template-columns: 1fr; min-height: 0; }
  .world__art { min-height: 340px; order: -1; }
  .strip { grid-template-columns: 1fr; justify-items: center; }
  .ab { justify-self: center; }
  .how, .deal { grid-template-columns: 1fr; }
  .how figure:nth-child(2) { margin-top: 0; }
  .deal > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-n); padding-top: 36px; margin-top: 36px; }
  .deal > div:first-child { padding-right: 0; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .lang { margin-left: auto; }
  .poster__art { width: 118vw; right: -42vw; top: 24%; opacity: .5; }
  .poster__foot { grid-template-columns: 1fr; }
  .poster__foot .btns .btn { flex: 1 1 100%; }
  .stage__head { flex-direction: column; }
  .stage__head .btns, .stage__head .btn { width: 100%; }
  .meter__bar { width: 110px; }
  .qa details p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .qa details p { animation: none; }
}

/* the big listen button in the middle of the stage, until the first play */
.listen-big { position: absolute; left: 50%; bottom: 118px; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 14px;
  height: 64px; padding: 0 26px 0 8px; border-radius: 3px; border: 0; background: var(--p-2); color: var(--night); cursor: pointer;
  font: 600 18px/1 var(--f-display); box-shadow: 0 0 0 0 color-mix(in oklab, var(--p-2) 60%, transparent); animation: listen-pulse 2.4s var(--ease) infinite;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s; }
.listen-big:hover { background: #fff; }
.listen-big__disc { width: 48px; height: 48px; display: grid; place-items: center; background: var(--night); color: var(--p-2); border-radius: 2px; }
.listen-big__disc svg { width: 16px; height: 16px; }
.has-played .listen-big { opacity: 0; pointer-events: none; transform: translate(-50%, 10px); }
@keyframes listen-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--p-2) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 22px transparent; } }
@media (prefers-reduced-motion: reduce) { .listen-big { animation: none; } }

/* home: quality and trust, set as a spec sheet, not cards */
.sec-h { font-stretch: 118%; font-weight: 500; font-size: clamp(34px, 4.4vw, 72px); line-height: .98; letter-spacing: -0.04em; }
.quality { padding-block: clamp(96px, 12vw, 176px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.quality__head { display: grid; gap: 22px; position: sticky; top: calc(var(--nav) + 32px); }
.quality__head p { color: var(--ink-soft); font-size: clamp(17px, 1.3vw, 19px); max-width: 34ch; }
.spec { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.spec li { display: grid; grid-template-columns: 22px minmax(0, 13em) minmax(0, 1fr); gap: 6px 18px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--rule); }
.spec b { font-weight: 500; font-size: 19px; letter-spacing: -0.01em; }
.spec li > span { color: var(--ink-soft); }
.spec__ok { width: 18px; height: 18px; color: #7CE0A3; transform: translateY(3px); }
.trust { padding-block: 0 clamp(96px, 12vw, 176px); }
.trust__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: clamp(40px, 5vw, 72px); }
.trust__row > div { border-top: 1px solid var(--ink); padding-top: 20px; display: grid; gap: 10px; align-content: start; }
.trust__row b { font-weight: 500; font-size: 20px; letter-spacing: -0.01em; }
.trust__row p { color: var(--ink-soft); }
@media (max-width: 980px) {
  .quality { grid-template-columns: 1fr; }
  .quality__head { position: static; }
  .trust__row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .spec li { grid-template-columns: 22px 1fr; }
  .spec li > span { grid-column: 2; }
  .trust__row { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 980px) { .listen-big { bottom: auto; top: 52%; } }
