/* rqive - ascii.
   red   = the avatar (#ff0000, "rqive" tiled black -> white -> black)
   paper = the aged gauge faces on High Pressure
   steel = the cover's cold blue-grey */
:root {
  --red: #ff0000;
  --red-deep: #b30000;
  --black: #050505;
  --ink: #0e0e0e;
  --paper: #e9e1d0;
  --dim: #8a8273;
  --steel: #5d6875;
  --line: #2b2b2b;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --gut: clamp(16px, 4vw, 48px);
  --section-title-size: clamp(32px, 4.3vw, 52px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display:none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* The full-screen feed dialog is open: the page behind it must not scroll. */
html.feed-open { overflow: hidden; padding-right: var(--scrollbar-width, 0px); } /* no reflow behind the feed (main.js measures it) */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font: 400 15px/1.55 var(--mono);
  font-variant-ligatures: none;
  overflow-x: hidden;
}
::selection { background: var(--red); color: var(--black); }
a { color: inherit; }
p { margin: 0 0 .75em; }
button, input { font: inherit; color: inherit; }
pre { margin: 0; font-family: var(--mono); }
/* Keep deferred listening markup within narrow screens before room CSS loads. */
#np-bar { overflow: hidden; }
#undertow, .release-picture img { max-width: 100%; }
:focus-visible { outline: 1px dashed var(--red); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--paper); color: var(--black); padding: 4px 8px; }

/* ------------------------------------------------------------ nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; gap: 0; align-items: center; flex-wrap: wrap;
  padding: 10px var(--gut);
  font-size: 13px; text-transform: lowercase;
  mix-blend-mode: difference; color: #fff;
}
.nav a { display:inline-flex; align-items:center; min-height:44px; text-decoration:none; padding:2px 8px; }
.nav a::before { content: "/"; opacity: .5; margin-right: 6px; }
.nav a:hover { text-decoration: underline; }
.nav-home { font-weight: 700; margin-right: auto; padding-left: 0 !important; }
.nav-home::before { content: "@" !important; opacity: 1 !important; margin-right: 0 !important; }
.nav.on-content { mix-blend-mode:normal; background:var(--black); color:var(--paper); border-bottom:1px solid var(--line); }
@media (max-width: 560px) { .nav a:not(.nav-home):not([data-nav-main]) { display: none; } }

/* ------------------------------------------------------------ hero */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center;
  /* red, dimmed 40%, vignetted to near-black - a static background painted once.
     The moving rows bake the same shading in (js/visuals.js), so nothing has
     to be re-blended over them per frame. Full red is kept for the halo. */
  background:
    radial-gradient(circle farthest-corner at 50% 45%, rgba(0,0,0,0) 19%, rgba(0,0,0,.72) 124%),
    linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.4)),
    var(--red);
  color: var(--black);
  overflow: hidden; isolation: isolate;
}
#field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
/* the big word: same face as the profile picture, not the site's mono.
   A red outline knocks it out of the rows behind it. */
.wordmark {
  margin: 0; padding: 0 0 .12em;
  font-family: Helvetica, "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  font-weight: 400; font-size: min(26vw, 270px); line-height: 1; letter-spacing: 0;
  text-transform: lowercase; color: var(--black);
  -webkit-text-stroke: .045em var(--red); paint-order: stroke fill;
  font-variant-ligatures: normal;
  transform-origin: center; will-change: transform;
  user-select: none;
}
.hero-in { text-align: center; padding: 80px var(--gut) 60px; width: 100%; }
/* the ascii 3d wordmark (js/wordmark.js); the h1 is the no-webgl fallback */
/* One fixed box for the wordmark: the plain <h1> shows in it first (and stays
   if there's no WebGL), the ascii canvas fades in over the same space - so the
   swap can't shift the layout (CLS 0). */
.markbox { position: relative; width: min(94vw, 980px); aspect-ratio: 2.4; margin: 0 auto; display: grid; place-items: center; }
.mark { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .35s; } /* the glow is drawn in the shader */
.hero.ascii-on .mark { opacity: 1; }
.hero.ascii-on .wordmark {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.tag {
  margin: clamp(6px, 1.2vw, 14px) auto clamp(18px, 2.4vw, 28px);
  display: inline-block; padding: 2px 10px;
  background: var(--black); color: var(--red);
  font-size: clamp(13px, 1.8vw, 20px); letter-spacing: .08em;
}
/* one matched pair: same height, same type, 44px+ tap targets; they share
   one row down to the smallest phones */
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: nowrap; margin: 0; }
.hero-cta .btn {
  min-height: 46px; padding: 0 18px; justify-content: center;
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
  border: 1px solid var(--black); transition: background .15s, color .15s, border-color .15s;
}
@media (max-width: 420px) {
  .hero-cta { gap: 8px; }
  .hero-cta .btn { flex: 0 1 auto; min-width: 0; padding: 0 12px; font-size: 13px; }
}
/* [ ↕ feed ] is a third button in the row on wide screens. On phones the
   listen/spotify pair keeps its row and the feed spans underneath it. */
@media (max-width: 560px) {
  .hero-cta { display: grid; grid-template-columns: auto auto; justify-content: center; }
}

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: .3em;
  background: none; border: 0; padding: 6px 4px; cursor: pointer;
  text-decoration: none; white-space: nowrap; color: var(--paper);
}
.btn:hover { color: var(--red); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
#support-open { min-height:44px; justify-content:center; }
.btn-red { color: var(--red); font-weight: 700; }
.btn-red:hover { background: var(--red); color: var(--black); }
.btn-ink { background: var(--black); color: var(--paper); }
.btn-ink:hover, .btn-ink:focus-visible { background: var(--paper); color: var(--black); border-color: var(--paper); }
/* secondary: outlined, dark glass so it stays legible over the moving rows */
.btn-ghost { background: rgba(0, 0, 0, .45); color: var(--paper); border-color: rgba(233, 225, 208, .55) !important; }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--red); color: var(--black); border-color: var(--red) !important; }
.btn-big { font-size: clamp(16px, 2.2vw, 22px); }

/* ------------------------------------------------------------ sections */
main { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
.sec { padding: clamp(56px, 9vw, 110px) 0 0; scroll-margin-top: 30px; }
.room-intro h2,.section-title h2,.studio-end .hd { font-family:Helvetica,Arial,sans-serif; font-weight:400; font-size:var(--section-title-size); letter-spacing:-.05em; line-height:1.05; }
.hd {
  display: flex; align-items: baseline; gap: .6em;
  margin: 0 0 24px; font-size: clamp(18px, 2.4vw, 26px); font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  white-space: nowrap; overflow: hidden;
}
.hd span { color: var(--red); }
.hd span::before { content: "["; color: var(--dim); }
.hd span::after { content: "]"; color: var(--dim); }
.hd::after {
  content: "////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////";
  color: var(--line); font-weight: 400; overflow: hidden; flex: 1; min-width: 0;
}

/* ascii frame: 1px border + "+" corners added by main.js */
.box { position: relative; border: 1px dashed var(--line); padding: 20px; min-width: 0; }
.crn { position: absolute; font-style: normal; color: var(--dim); line-height: 1; background: var(--black); }
.crn.tl { top: -.55em; left: -.3em; } .crn.tr { top: -.55em; right: -.3em; }
.crn.bl { bottom: -.5em; left: -.3em; } .crn.br { bottom: -.5em; right: -.3em; }

.label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-bottom: 12px; }
.label::before { content: "> "; color: var(--red); }
.pill { margin-left: 8px; padding: 0 6px; border: 1px solid var(--steel); color: var(--steel); text-transform: lowercase; letter-spacing: 0; }
.hint { font-size: 12px; color: var(--dim); margin: 14px 0 0; }

/* ------------------------------------------------------------ listen */
.listen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
@media (max-width: 880px) { .listen { grid-template-columns: 1fr; } }
.now { position: sticky; top: 52px; }
@media (max-width: 880px) { .now { position: relative; top: 0; } }
.np-title { font-size: clamp(22px, 3vw, 34px); font-weight: 700; line-height: 1.1; margin: 0 0 4px; color: var(--paper); overflow-wrap: anywhere; }
.np-artists { color: var(--dim); margin: 0 0 18px; }
.transport { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; }
.np-time { margin-left: auto; color: var(--dim); font-size: 13px; }
.np-bar { margin: 8px 0 22px; white-space: nowrap; overflow: hidden; color: var(--red); cursor: pointer; user-select: none; letter-spacing: 0; }

.tabs { display: flex; gap: 2px; border-bottom: 1px dashed var(--line); margin-bottom: 12px; }
.tabs button { background: none; border: 0; padding: 6px 10px; cursor: pointer; color: var(--dim); }
.tabs button[aria-selected="true"] { color: var(--black); background: var(--paper); }
.embed iframe { display: block; width: 100%; height: 152px; border: 0; border-radius: 12px; background: var(--ink); }
.embed-sc iframe { height: 300px; border-radius: 0; }

.tracks { list-style: none; margin: 0; padding: 0; }
.trk { display: flex; align-items: center; gap: 8px; border-bottom: 1px dashed var(--line); }
.trk:last-child { border-bottom: 0; }
.trk-play {
  flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 12px;
  background: none; border: 0; padding: 12px 0; cursor: pointer; text-align: left;
}
.trk-n { color: var(--dim); }
.trk-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.trk-title small { display: block; font-weight: 400; color: var(--dim); font-size: 12px; text-overflow: ellipsis; overflow: hidden; }
.trk-dots { flex: 1; min-width: 12px; border-bottom: 1px dotted var(--steel); transform: translateY(-4px); }
.trk-len { color: var(--dim); font-size: 13px; }
.trk-play:hover .trk-title, .trk.on .trk-title { color: var(--red); }
.trk.on .trk-n::before { content: ">"; color: var(--red); margin-left: -1ch; }
.trk-acts { display: flex; gap: 0; }
.act { background: none; border: 0; padding: 8px 6px; cursor: pointer; color: var(--dim); font-size: 13px; white-space: nowrap; }
.act:hover { color: var(--paper); }
.act[aria-pressed="true"] { color: var(--red); }
.act b { font-weight: 400; }
@media (max-width: 480px) { .trk-dots, .trk-len { display: none; } }

/* ------------------------------------------------------------ visual */
.visual { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; }
@media (max-width: 880px) { .visual { grid-template-columns: 1fr; } }
.gauge-box { aspect-ratio: 1; display: flex; flex-direction: column; padding: 12px; }
#gauge { width: 100%; flex: 1; min-height: 0; }
.psi { text-align: center; margin: 0; color: var(--red); font-weight: 700; letter-spacing: .1em; font-size: 13px; }
.spec-box { display: flex; flex-direction: column; justify-content: space-between; }
.spectrum { flex: 1; min-height: 160px; color: var(--red); font-size: 13px; line-height: 1.15; overflow: hidden; white-space: pre; display: flex; flex-direction: column; justify-content: flex-end; }
.studio { margin-top: 24px; border-color: var(--red); }
.studio.drag { background: rgba(255, 0, 0, .08); }

/* ------------------------------------------------------------ release */
.release { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: start; }
@media (max-width: 880px) { .release { grid-template-columns: 1fr; } }
.cover-box { margin: 0; padding: 14px; overflow: hidden; }
.cover-live { display: block; width: 100%; aspect-ratio: 1; position: relative; transition: opacity .5s; }
/* hover (or tap) to see the real artwork */
.cover-real { position: absolute; inset: 14px 14px auto; width: calc(100% - 28px); aspect-ratio: 1; object-fit: cover; opacity: 0; transition: opacity .5s; }
.cover-box:hover .cover-real, .cover-box:focus-within .cover-real, .cover-box.reveal .cover-real { opacity: 1; }
.cover-box:hover .cover-live, .cover-box.reveal .cover-live { opacity: 0; }
.cover {
  font-size: min(1.02vw, 9.6px); line-height: 1.02; letter-spacing: 0;
  color: var(--paper); white-space: pre; text-align: center;
  background: linear-gradient(135deg, #e9e1d0 0%, #b9a98a 45%, #6f7c8b 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
@media (max-width: 880px) { .cover { font-size: calc((100vw - 2 * var(--gut) - 30px) / 60); } }
.cover-box figcaption { font-size: 11px; color: var(--dim); text-align: right; margin-top: 8px; text-transform: uppercase; letter-spacing: .1em; }
.big { font-size: clamp(36px, 6.5vw, 76px); line-height: .92; font-weight: 700; margin: 0 0 10px; letter-spacing: -.02em; }
.release .big { color: var(--paper); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin: 0 0 18px; font-size: 13px; }
.specs dt { color: var(--dim); }
.specs dt::after { content: " ....."; color: var(--line); }
.specs dd { margin: 0; }

.cmt-box { margin-top: 28px; }
.cmt-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 8px; }
@media (max-width: 480px) { .cmt-form { grid-template-columns: 1fr; } }
.cmt-form input, .amt input {
  background: var(--ink); border: 1px dashed var(--line); padding: 8px 10px; min-width: 0; border-radius: 0;
}
.cmt-form input:focus, .amt input:focus { outline: none; border-color: var(--red); }
.cmts { list-style: none; margin: 16px 0 0; padding: 0; max-height: 280px; overflow: auto; font-size: 13px; }
.cmts li { padding: 6px 0; border-bottom: 1px dotted var(--line); overflow-wrap: anywhere; }
.cmts .who { color: var(--red); }
.cmts time { color: var(--dim); font-size: 11px; margin-left: 6px; }
.cmts .empty { color: var(--dim); }

/* ------------------------------------------------------------ support */
.support { max-width: 760px; }
.lede { font-size: clamp(16px, 2vw, 20px); max-width: 52ch; }
.pay { display: grid; gap: 16px; margin-top: 18px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: none; border: 1px dashed var(--line); padding: 6px 14px; cursor: pointer; }
.chip:hover { border-color: var(--paper); }
.chip[aria-pressed="true"] { background: var(--paper); color: var(--black); border-style: solid; border-color: var(--paper); }
.amt { display: flex; align-items: center; gap: 8px; font-size: clamp(28px, 5vw, 48px); font-weight: 700; }
.amt span { color: var(--red); }
.amt input { width: 6ch; font-size: inherit; font-weight: 700; padding: 2px 10px; appearance: textfield; -moz-appearance: textfield; }
.amt input::-webkit-inner-spin-button, .amt input::-webkit-outer-spin-button { -webkit-appearance: none; }
.meter { margin: 0; white-space: nowrap; overflow: hidden; color: var(--red); }
.meter span:first-child { color: var(--dim); text-transform: uppercase; font-size: 12px; letter-spacing: .1em; }
.pay .btn-big { justify-self: start; }

/* ------------------------------------------------------------ links */
.links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.links a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; min-height:88px;
}
.links span { font-family:Helvetica,Arial,sans-serif; font-size:clamp(28px,3.4vw,44px); font-weight:400; letter-spacing:-.04em; line-height:1; text-transform:lowercase; }
.links small { color: var(--dim); }
.links b { grid-column:3; color: var(--red); font-size: clamp(18px, 3vw, 32px); transition: transform .2s; }
.links a:hover span { color: var(--red); }
.links a:hover b { transform: translateX(6px); }
@media (max-width: 560px) { .links small { display: none; } }

/* A human ending: compact destinations beside the artist at work. */
.studio-end { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(36px,6vw,88px); align-items:start; padding-top:clamp(64px,9vw,112px); }
.studio-end>.sec { padding:0; min-width:0; scroll-margin-top:84px; }
.studio-end .hd { text-transform:none; margin-bottom:28px; }
.studio-end .hd::after { content:""; }
.studio-end .links a { position:relative; transition:color .18s, padding .18s; }
.studio-end .links a:hover { padding-left:10px; color:var(--red); }
.studio-end .links span { white-space:nowrap; }
.studio-end .links small { font-size:10px; max-width:120px; line-height:1.5; }
.studio-portrait { position:relative; aspect-ratio:4/5; overflow:hidden; background:var(--black); isolation:isolate; }
.studio-portrait>img,.studio-portrait>canvas,.studio-portrait noscript img { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; }
.studio-portrait>img:not([src]) { visibility:hidden; }
.studio-portrait>canvas { opacity:0; pointer-events:none; }
.studio-portrait.is-playing>canvas,.studio-portrait.has-frame>canvas { opacity:1; }
.studio-portrait button { position:absolute; right:10px; bottom:10px; z-index:1; border:1px solid #655e52; color:var(--paper); background:#080a08e8; font:inherit; font-size:11px; min-width:44px; min-height:44px; cursor:pointer; }
.studio-portrait button:hover { border-color:var(--red); color:var(--red); }
.studio-cta { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:22px 26px; background:var(--red); color:var(--black); text-decoration:none; }
.studio-cta span { font-family:Helvetica,Arial,sans-serif; font-size:clamp(32px,3.5vw,48px); font-weight:400; line-height:.95; letter-spacing:-.055em; }
.studio-cta b { font-family:Helvetica,Arial,sans-serif; font-size:48px; font-weight:400; transition:transform .2s; }
.studio-cta:hover b { transform:translate(3px,-3px); }
.studio-mail { display:block; padding:16px 0; font-size:12px; overflow-wrap:anywhere; }
.studio-mail[hidden],.studio-portrait button[hidden] { display:none; }
@media(min-width:701px) and (max-width:1100px) { .studio-end .links small { display:none; } }
@media(max-width:700px) {
  .studio-end { grid-template-columns:1fr; gap:48px; }
  .studio-end .links a { min-height:68px; padding-block:18px; }
  .studio-end .links span { font-size:32px; }
  .studio-end .hd { margin-bottom:22px; }
  .studio-cta { padding:22px; }
}
@media(prefers-reduced-motion:reduce) { .studio-end a,.studio-cta b { transition:none; }.studio-end .links a:hover { padding-left:0; }.studio-cta:hover b { transform:none; } }

/* ------------------------------------------------------------ foot */
.foot { margin-top: clamp(56px, 9vw, 110px); padding: 0 0 28px; text-align: center; color: var(--dim); font-size: 12px; overflow: hidden; }
.foot pre { color: var(--red); overflow: hidden; margin-bottom: 14px; }
.foot p a { display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px; padding:0 8px; }

.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--paper); color: var(--black); padding: 8px 14px; font-size: 13px;
  transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
/* The toast is a manual popover (top layer); undo the UA popover box. */
.toast[popover] { top: auto; right: auto; margin: 0; border: 0; overflow: visible; }

/* Native popover gives narrow screens section access, Escape and light dismiss. */
.nav-more { display:none; border:0; color:inherit; background:none; font:inherit; cursor:pointer; }
.section-menu { display:none; position:fixed; inset:66px 16px auto auto; margin:0; width:min(260px,calc(100vw - 32px)); padding:8px 16px; background:var(--black); color:var(--paper); border:1px solid #655e52; }
.section-menu:popover-open { display:grid; }
.section-menu::backdrop { background:#0006; }
.section-menu a { display:flex; align-items:center; min-height:48px; border-bottom:1px solid var(--line); font-size:14px; text-decoration:none; }
.section-menu a:last-child { border:0; }
.section-menu a::before { content:"/"; color:#ff4c40; margin-right:12px; }
@supports selector(:popover-open) { @media(max-width:560px) { .nav-more { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; padding:0 8px; } } }
