/* JetBrains Mono, servida desde este sitio (SIL Open Font License 1.1).
   Sin Google Fonts: la IP del visitante no sale a un tercero y la fuente carga antes. */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/jetbrainsmono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/jetbrainsmono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/jetbrainsmono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/jetbrainsmono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/jetbrainsmono-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/jetbrainsmono-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* FishEYE v5 · coding / pixel · phosphor screen */

:root {
  --bg: #000000;
  --bg-rgb: 0, 0, 0;
  --ph: #3fd96e;
  --ph-rgb: 63, 217, 110;
  --ph-2: #6fe094;
  --ph-dim: rgba(var(--ph-rgb), 0.45);
  --ph-faint: rgba(var(--ph-rgb), 0.16);
  --amber: #d9a441;
  --paper: #b9e3c5;   /* body copy: pale phosphor, never white */
  --ink-dim: #6f7a6f;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --cond: var(--mono);   /* one typeface on the whole screen */
  --gutter: clamp(16px, 3vw, 40px);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  /* red de seguridad: ningun descuido futuro vuelve a publicar una pagina con scroll lateral */
  overflow-x: clip;
  background: var(--bg);
  color: var(--ph);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid var(--amber); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- top bar ---------- */
/* El header respira muy lento: del verde base a uno fluor y despues a uno opaco. Solo
   se redefine --ph dentro del header, el resto del sitio queda en el verde fijo. */
@property --ph { syntax: '<color>'; inherits: true; initial-value: #3fd96e; }
@keyframes hd-shift {
  0%, 100% { --ph: #3fd96e; }
  35% { --ph: #5cff8f; }
  70% { --ph: #6b9477; }
}
.topbar {
  animation: hd-shift 48s ease-in-out infinite;
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; flex-wrap: wrap; align-items: stretch;
  height: 34px; padding: 0 var(--gutter);
  background: rgba(var(--bg-rgb), 0.88); border-bottom: 1px solid var(--ph-faint);
  font-size: 11px; letter-spacing: 0.08em;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
/* barra de estado estilo tmux: la marca es el nombre de la sesion, los items son las
   ventanas y el reloj va a la derecha. El nombre se desordena en glifos al pasar (js/nav.js) */
/* la marca: FishEYE con la textura del wordmark. Texto real en negrita, rellenado con una
   trama de puntos de fosforo, porque a este tamano los glifos no alcanzan a formar letras */
.brand {
  display: flex; align-items: center; font-weight: 700; font-size: 19px; letter-spacing: 0.03em;
  color: transparent;
  background-image: radial-gradient(circle, var(--ph) 0.8px, transparent 1.05px);
  background-size: 2px 2px;
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 3px rgba(var(--ph-rgb), 0.55));
}
.nav { display: flex; gap: 0; margin-left: auto; }
.nav a {
  position: relative; display: inline-flex; align-items: center; gap: 1px;
  padding: 0 10px; text-transform: lowercase;
  transition: background 0.12s, color 0.12s;
}
.nav-i { color: var(--ink-dim); transition: color 0.12s; }
.nav-t { display: inline-block; }
.nav-t::after { content: ' '; white-space: pre; display: inline-block; width: 1ch; }
.nav a.is-active, .nav a:hover, .nav a:focus-visible { background: var(--ph); color: #000; outline: none; }
.nav a.is-active .nav-i, .nav a:hover .nav-i, .nav a:focus-visible .nav-i { color: rgba(0, 0, 0, 0.55); }
.nav a.is-active { font-weight: 700; }
.nav a.is-active .nav-t::after { content: '*'; }
.nav a:not(.is-active):hover .nav-t::after,
.nav a:not(.is-active):focus-visible .nav-t::after { content: '_'; animation: nav-blink 1.05s steps(1) infinite; }
@keyframes nav-blink { 50% { opacity: 0; } }
/* selector de idioma: tres codigos despues de las ventanas, el activo entre corchetes */
.lang { display: flex; align-items: stretch; margin-left: 14px; }
.lang a {
  display: inline-flex; align-items: center; padding: 0 5px;
  color: var(--ink-dim); text-transform: lowercase;
  transition: color 0.12s;
}
.lang a::before { content: '['; visibility: hidden; }
.lang a::after { content: ']'; visibility: hidden; }
.lang a.is-active { color: var(--ph); font-weight: 700; }
.lang a.is-active::before, .lang a.is-active::after { visibility: visible; color: var(--ph-dim); font-weight: 400; }
.lang a:hover, .lang a:focus-visible { color: var(--ph); outline: none; }

/* ---------- bracket frames (augmented-ui style, no library) ---------- */
.frame { --c: var(--ph); --s: 14px; --w: 1px; position: relative; }
.frame::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / var(--s) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) 0 0 / var(--w) var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--s) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--w) var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / var(--s) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / var(--w) var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--s) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--w) var(--s) no-repeat;
}
.frame--cut {
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  background: rgba(var(--bg-rgb), 0.72);
}
.frame--dim { --c: var(--ph-dim); }

.ticks {
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--ph-dim) 0 1px, transparent 1px 8px);
}

.label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ph-dim);
}
.label b { color: var(--ph); font-weight: 500; }
.label .amber { color: var(--amber); }

/* ---------- hero ---------- */
/* El hero queda clavado arriba y la salida sube por encima, asi el objeto sigue
   visible mientras se baja y el home deja de terminar en la primera pantalla. */
.hero {
  position: sticky; top: 0; height: 100vh; height: 100svh; width: 100%;
  overflow: hidden; background: var(--bg); z-index: 0;
}

/* ---------- home: la salida ---------- */
.outro {
  position: relative; z-index: 1;
  max-width: 1120px; margin: 0 auto; padding: 72px var(--gutter) 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  background: rgba(var(--bg-rgb), 0.78);
  box-shadow: 0 -40px 60px 30px rgba(var(--bg-rgb), 0.78);
}
.outro[hidden] { display: none; }
.outro-card {
  display: grid; gap: 10px; align-content: start; padding: 22px 24px 20px;
  min-width: 0; transition: color 0.2s;
}
.outro-card:hover { --c: var(--amber); }
.outro-art { display: block; width: 116px; aspect-ratio: 1 / 1; overflow: hidden; background: #000; }
.outro-art img { width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(0.4) sepia(0.2) hue-rotate(72deg) saturate(1.5) brightness(0.9); }
.outro-name {
  font-weight: 700; font-size: 22px; line-height: 1.15; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ph); overflow-wrap: anywhere;
}
.outro-sub { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ph-dim); }
.outro-go {
  margin-top: 6px; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ph-dim); transition: color 0.2s;
}
.outro-card:hover .outro-go { color: var(--amber); }
#fe-screen {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  image-rendering: pixelated; touch-action: none; cursor: grab;
  opacity: 0; transition: opacity 0.6s ease;
}
#fe-screen:active { cursor: grabbing; }
#fe-screen.is-live { opacity: 1; }

.hud { position: absolute; inset: 0; pointer-events: none; z-index: 10; }
.hud > * { pointer-events: auto; }

/* marcas de registro: una cruz en cada esquina, centrada donde antes iba el vertice del angulo */
.corner {
  position: absolute; width: 17px; height: 17px;
  background:
    linear-gradient(var(--ph), var(--ph)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--ph), var(--ph)) 0 50% / 100% 1px no-repeat;
}
.corner.tl { top: 44px; left: calc(var(--gutter) - 8px); }
.corner.tr { top: 44px; right: calc(var(--gutter) - 8px); }
.corner.bl { bottom: 10px; left: calc(var(--gutter) - 8px); }
.corner.br { bottom: 10px; right: calc(var(--gutter) - 8px); }

.hud-tl { position: absolute; top: 60px; left: calc(var(--gutter) + 14px); }
.hud-tr { position: absolute; top: 60px; right: calc(var(--gutter) + 14px); text-align: right; }
.hud-bl { position: absolute; bottom: 28px; left: calc(var(--gutter) + 14px); max-width: min(680px, 66vw); }
.hud-br { position: absolute; bottom: 28px; right: calc(var(--gutter) + 14px); text-align: right; }

.registers { display: grid; grid-template-columns: auto auto; gap: 2px 14px; font-size: 11px; }
.registers dt { color: var(--ph-dim); text-transform: uppercase; letter-spacing: 0.12em; font-size: 10px; }
.registers dd { margin: 0; color: var(--ph); }
.registers dd.amber { color: var(--amber); }

.status-dot {
  display: inline-block; width: 7px; height: 7px; background: var(--amber); margin-right: 8px;
  vertical-align: 1px;
}
.status-dot.is-locked { background: var(--ph); }

/* memory dump */
.dump {
  font-size: 11px; line-height: 1.45; white-space: pre; overflow: hidden;
  color: var(--ph); padding: 10px 14px;
}
.dump .row { display: block; opacity: 0; transform: translateY(2px); transition: opacity 0.18s, transform 0.18s; }
.dump .row.is-in { opacity: 1; transform: none; }
.dump .addr { color: var(--ph-dim); }
.dump .hex { color: rgba(var(--ph-rgb), 0.22); }
.dump .txt { color: var(--ph); }
.dump .row.is-hi .txt { color: var(--amber); }

.hud-br .links a { display: inline-block; margin-left: 14px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.hud-br .links a::before { content: '['; color: var(--ph-dim); }
.hud-br .links a::after { content: ']'; color: var(--ph-dim); }
.hud-br .links a:hover { color: var(--amber); }
.hud-br .tag { margin-top: 8px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ph-dim); }

/* things that pass by */
.passers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 6; }
.passers--fixed { position: fixed; z-index: 4; }
.passer {
  position: absolute; left: 100%; white-space: nowrap;
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--ph); opacity: 0.42;
  animation: passLeft 9s linear forwards;
}
@keyframes passLeft {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100vw - 100%)); }
}
.scanbar {
  position: absolute; left: 0; right: 0; top: -2px; height: 1px;
  background: var(--ph); opacity: 0; box-shadow: 0 0 8px var(--ph);
}
.scanbar.is-run { animation: scanDown 2.4s linear forwards; }
@keyframes scanDown {
  0% { top: -2px; opacity: 0.5; }
  100% { top: 100%; opacity: 0.12; }
}

.fallback {
  display: none; position: absolute; inset: 0; z-index: 5;
  align-items: center; justify-content: center; text-align: center;
  font-weight: 700; font-size: clamp(40px, 12vw, 160px);
  color: var(--ph); line-height: 0.9;
}
.no-webgl .fallback { display: flex; }
.no-webgl #fe-screen { display: none; }

/* ---------- debug panel (?debug) ---------- */
.fe-debug {
  position: fixed; top: 60px; right: 12px; z-index: 100; width: 250px;
  background: rgba(var(--bg-rgb), 0.88); border: 1px solid var(--ph-dim); padding: 10px 12px 12px;
  font-size: 10px; max-height: calc(100vh - 80px); overflow: auto;
}
.fe-debug h4 { margin: 0 0 8px; font-size: 10px; letter-spacing: 0.16em; color: var(--amber); }
.fe-debug label { display: grid; grid-template-columns: 1fr 44px; gap: 0 8px; align-items: center; margin: 6px 0; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ph-dim); }
.fe-debug label output { text-align: right; color: var(--ph); }
.fe-debug input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--ph); margin: 0; }
.fe-debug .row { display: flex; gap: 8px; margin-top: 10px; }
.fe-debug button { flex: 1; background: none; border: 1px solid var(--ph-dim); color: var(--ph); font: inherit; padding: 5px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.1em; }
.fe-debug button:hover { border-color: var(--ph); }

/* ---------- glitch transition overlay ---------- */
#fe-glitch {
  position: fixed; inset: 0; z-index: 1000; width: 100%; height: 100%;
  background: #000; image-rendering: pixelated; display: block;
  opacity: 1; transition: opacity 0.25s ease;
}
#fe-glitch.is-out { opacity: 0; pointer-events: none; }

/* ---------- document pages (music, gigs, about, contact) ---------- */
/* the same screen as the home, behind the content */
#fe-bg {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0;
  pointer-events: none; image-rendering: pixelated; display: block;
  opacity: 0; transition: opacity 0.8s ease;
}
#fe-bg.is-live { opacity: 1; }
.topbar, .foot { position: relative; z-index: 2; }
.doc {
  position: relative; z-index: 1;
  max-width: 1120px; margin: 0 auto; padding: 96px var(--gutter) 80px;
  display: grid; gap: 56px;
  background: rgba(var(--bg-rgb), 0.62);
  box-shadow: 0 0 60px 30px rgba(var(--bg-rgb), 0.62);
}

/* emblem: one object per page, top right */
.emblem {
  position: absolute; top: 44px; right: var(--gutter); width: 220px; height: 220px; z-index: 3;
}
.emblem canvas {
  display: block; width: 100%; height: 100%; image-rendering: pixelated;
  cursor: grab; touch-action: none; opacity: 0; transition: opacity 0.8s ease;
}
.emblem canvas:active { cursor: grabbing; }
.emblem canvas.is-live { opacity: 1; }
.emblem .label { position: absolute; left: 0; bottom: -18px; white-space: nowrap; }

/* reveals */
.rv { opacity: 0; transform: translateY(6px); transition: opacity 0.35s ease, transform 0.35s ease; }
.rv.is-in { opacity: 1; transform: none; }

/* corner brackets draw on */
@property --s { syntax: '<length>'; inherits: true; initial-value: 14px; }
@keyframes frameIn { from { --s: 0px; } to { --s: 14px; } }
.frame { animation: frameIn 0.7s ease both; }

.ep {
  display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 40px;
  padding: 28px;
}
.cover { margin: 0; position: relative; aspect-ratio: 1 / 1; }
.cover canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; cursor: crosshair; }
/* Un <canvas> es un elemento reemplazado: su contenido minimo es el tamano de su bufer, que
   js/ascii-cover.js genera a clientWidth * DPR. El minimo automatico de un item de grid es su
   contenido minimo, asi que sin esto la pista toma esos pixeles de bufer (el doble en pantalla
   retina) y la columna se desborda. No se usa overflow: hidden porque recortaria el figcaption,
   que va posicionado fuera de la caja. */
.doc > *, .ep > *, .about-hero > *, .about-body > *, .about-photos > *, .sets > * { min-width: 0; }
.cover canvas, .rel-art canvas, .video canvas, .emblem canvas { max-width: 100%; max-height: 100%; }
.cover figcaption { position: absolute; left: 0; bottom: -22px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ph-dim); }
.cover .amber { color: var(--amber); }

.ep-meta { display: grid; align-content: start; gap: 18px; }

/* glyph titles: drawn by js/glyph-title.js, like the wordmark on the home */
.gt { display: block; margin: 0; line-height: 0; }
.gt-canvas { display: block; max-width: 100%; image-rendering: pixelated; }
.gt-sub { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ph-dim); margin-top: 2px; }
.page-title { margin: 0 0 24px; }

/* about */
.cover--tall { aspect-ratio: 935 / 1400; }
.cover--wide { aspect-ratio: 3 / 2; }

/* about: panoramic photo on top with the title above it, then bio | stacked photos */
.about-hero { display: grid; gap: 18px; padding: 0 0 22px; }
.about-head { padding: 26px 28px 0; max-width: 58%; display: grid; gap: 14px; }
.cover--pano { aspect-ratio: 21 / 9; margin: 0; }
.about-hero .cover figcaption { position: static; padding: 8px 28px 0; }
.about-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }
.about-text { display: grid; gap: 18px; align-content: start; }
.about-photos { display: grid; gap: 34px; align-content: start; }
.about-photos figure { aspect-ratio: 3 / 2; }
.about-photos figcaption { font-size: 9px; }
.bio p { margin: 0 0 12px; font-size: 12.5px; line-height: 1.75; color: var(--paper); max-width: 60ch; }
.bio a { border-bottom: 1px solid var(--ph-dim); }
.bio a:hover { color: var(--ph); border-bottom-color: var(--ph); }

/* ---------- contact form ---------- */
.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; padding: 28px; }
.cform-row { display: grid; gap: 6px; align-content: start; min-width: 0; }
.cform-row--wide { grid-column: 1 / -1; }
.cform label {
  font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ph-dim);
}
.cform input, .cform select, .cform textarea {
  font: inherit; font-size: 13px; color: var(--paper);
  background: rgba(var(--ph-rgb), 0.05); border: 1px solid var(--ph-faint);
  padding: 11px 12px; border-radius: 0; width: 100%; min-width: 0;
  transition: border-color 0.18s, background 0.18s;
}
.cform textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.cform input::placeholder, .cform textarea::placeholder { color: var(--ink-dim); }
.cform input:focus, .cform select:focus, .cform textarea:focus {
  outline: none; border-color: var(--ph); background: rgba(var(--ph-rgb), 0.09);
}
/* la flecha del desplegable, dibujada, para no heredar la del sistema operativo */
.cform select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ph) 50%),
                    linear-gradient(135deg, var(--ph) 50%, transparent 50%);
  background-position: calc(100% - 17px) center, calc(100% - 12px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.cform select option { background: #000; color: var(--paper); }
/* el campo trampa: fuera de la vista sin display:none, que algunos bots detectan */
.cform-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform-foot {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 14px; margin-top: 4px;
}
.cform-foot .btn { cursor: pointer; background: none; font: inherit; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em; transition: background 0.18s, color 0.18s; }
.cform-foot .btn:hover:not(:disabled) { background: var(--ph); color: #000; }
.cform-foot .btn:disabled { opacity: 0.45; cursor: wait; }
.cform-msg { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--paper); }
.cform-msg.is-err { color: var(--amber); }
.cform-done { padding: 26px 28px; display: grid; gap: 10px; }
.cform-done[hidden] { display: none; }
.cform-done p { margin: 0; color: var(--paper); font-size: 12.5px; }

/* draft blocks (amber dashed, never mistaken for finished content) */
.draft { border: 1px dashed var(--amber); padding: 16px 18px; display: grid; gap: 10px; justify-items: start; }
.draft p { margin: 0; font-size: 12px; color: var(--ph-dim); max-width: 52ch; }

/* sets */
.sets { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: stretch; }
.set { padding: 16px; display: grid; grid-template-rows: auto 1fr auto; gap: 12px; justify-items: start; }
.set > .btn { align-self: end; }

/* video: poster in the screen's palette, iframe only after play */
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; justify-self: stretch; }
.video canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.video .play {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: none; padding: 0;
  cursor: pointer; display: grid; place-content: center; gap: 10px; color: var(--ph); font: inherit;
}
.video .play-k {
  font-size: 14px; letter-spacing: 0.22em; padding: 12px 22px; border: 1px solid var(--ph);
  background: rgba(var(--bg-rgb), 0.7); transition: background 0.2s, color 0.2s;
}
.video .play:hover .play-k, .video .play:focus-visible .play-k { background: var(--ph); color: #000; }
.video .play-t {
  position: absolute; left: 12px; right: 12px; bottom: 10px; text-align: left;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ph-dim);
  background: rgba(var(--bg-rgb), 0.6); padding: 4px 8px;
}
.video.is-playing { aspect-ratio: 16 / 9; }
.video .yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* soundcloud: our own player over the hidden widget (js/sc-player.js); real artwork colours */
.set .sc { display: block; width: 100%; border: 0; background: #000; }
.scp { position: relative; width: 100%; justify-self: stretch; }
.scp-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.scp-now { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.scp-art { width: 96px; height: 96px; object-fit: cover; display: block; background: #000; image-rendering: auto; }
.scp-title { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ph); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scp-meta { font-size: 10px; color: var(--ph-dim); letter-spacing: 0.14em; margin: 4px 0 10px; }
.scp-btn { border: 1px solid var(--ph); background: none; color: var(--ph); font: inherit; font-size: 11px; letter-spacing: 0.2em; padding: 8px 14px; cursor: pointer; }
.scp-btn:hover, .scp.is-playing .scp-btn { background: var(--ph); color: #000; }
.scp-bar { height: 6px; background: var(--ph-faint); margin: 12px 0 10px; cursor: pointer; position: relative; }
.scp-bar:focus-visible { outline: 1px solid var(--amber); }
.scp-fill { height: 100%; width: 0; background: var(--ph); }
.scp-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ph-faint); }
.scp-list li { display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid var(--ph-faint); }
.scp-row {
  display: grid; grid-template-columns: 34px 28px 1fr auto; gap: 10px; align-items: center; width: 100%;
  padding: 7px 0; background: none; border: 0; color: var(--ph); font: inherit; font-size: 11px; text-align: left; cursor: pointer;
}
.scp-row:hover, .scp-list li.is-active .scp-row { color: var(--amber); }
.scp-art-sm { width: 34px; height: 34px; object-fit: cover; display: block; background: #000; }
.scp-idx { color: var(--ph-dim); }
.scp-name { text-transform: uppercase; letter-spacing: 0.04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scp-len { color: var(--ph-dim); }
.scp-ext { padding: 0 8px; color: var(--ph-dim); }
.scp-ext:hover { color: var(--ph); }

/* gigs */
.empty { padding: 26px 24px; display: grid; gap: 12px; justify-items: start; }
.empty[hidden] { display: none; }
.empty p { margin: 0; color: var(--paper); font-size: 12.5px; }
.gig-row .gig-date { color: var(--amber); }

/* contact */
.contact { padding: 32px 28px; display: grid; gap: 14px; justify-items: start; }
.contact h1 { margin: 0; }
.mail {
  font-weight: 700;
  font-size: clamp(18px, 3.6vw, 44px); line-height: 1.1; color: var(--ph); letter-spacing: 0.02em;
  border-bottom: 2px solid var(--ph-dim); padding-bottom: 6px; word-break: break-all;
}
.mail:hover { color: var(--amber); border-bottom-color: var(--amber); }
.contact .note { margin: 0; color: var(--paper); font-size: 12.5px; max-width: 60ch; }

.spec { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin: 0; font-size: 11px; }
.spec dt { color: var(--ph-dim); text-transform: uppercase; letter-spacing: 0.12em; font-size: 10px; align-self: baseline; }
.spec dd { margin: 0; color: var(--paper); }
.spec dd a { border-bottom: 1px solid var(--ph-dim); }
.spec dd a:hover { color: var(--ph); border-bottom-color: var(--ph); }

.tracklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ph-faint); }
.tracklist li {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--ph-faint); font-size: 12px;
}
.tracklist .n { color: var(--ph-dim); }
.tracklist .t { font-weight: 700; font-size: 14px; text-transform: uppercase; color: var(--ph); letter-spacing: 0.08em; }
.tracklist .w { color: var(--ph-dim); font-size: 11px; text-align: right; }

.btns { display: flex; flex-wrap: wrap; gap: 10px; }
/* display: flex le gana a [hidden], igual que le pasaba a .empty con display: grid */
.btns[hidden] { display: none; }
.gigs-cta { margin-top: 22px; }
.btn {
  display: inline-block; padding: 10px 14px; border: 1px solid var(--ph); color: var(--ph);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.btn:hover { background: var(--ph); color: #000; }
.btn.ghost { border-color: var(--ph-dim); color: var(--ph-2); }
.btn.ghost:hover { background: none; border-color: var(--ph); color: var(--ph); }

.section-head {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ph-dim);
}
.section-head h2 { margin: 0; font: inherit; color: var(--ph); }
.section-head .rule { flex: 1; height: 1px; background: var(--ph-faint); }

.manifest { display: grid; border-top: 1px solid var(--ph-faint); }
.m-row {
  display: grid; grid-template-columns: 34px 1fr auto 24px; gap: 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--ph-faint);
}
.m-row:hover { background: var(--ph-faint); }
.m-idx { color: var(--ph-dim); }
.m-title { font-weight: 700; font-size: 14px; text-transform: uppercase; color: var(--ph); line-height: 1.2; letter-spacing: 0.08em; }
.m-sub { font-size: 11px; color: var(--ph-dim); margin-top: 4px; }
.m-sub b { color: var(--ph); font-weight: 500; }
.m-plays { font-size: 11px; color: var(--ph); text-align: right; white-space: nowrap; }
.m-plays small { display: block; color: var(--ink-dim); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }
.m-arr { color: var(--ph-dim); text-align: right; }
.m-row:hover .m-arr { color: var(--amber); }

/* releases: grid of covers, one panel open at a time */
.rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rel-card {
  display: block; width: 100%; padding: 0; margin: 0; background: none; border: 0;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.rel-art { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #000; }
.rel-art canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.rel-art::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  border: 1px solid transparent; transition: border-color 0.2s;
}
.rel-card:hover .rel-art::after, .rel-card:focus-visible .rel-art::after, .rel-card.is-open .rel-art::after { border-color: var(--ph); }
.rel-idx {
  position: absolute; top: 8px; left: 8px; font-size: 10px; letter-spacing: 0.14em;
  color: var(--ph); background: rgba(var(--bg-rgb), 0.7); padding: 2px 6px;
}
.rel-card.is-open .rel-idx { background: var(--ph); color: #000; }
.rel-meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 2px 0; font-size: 10.5px; letter-spacing: 0.06em; }
.rel-meta .rel-year { color: var(--amber); }
.rel-meta .rel-name { color: var(--ph); font-weight: 700; text-transform: uppercase; }
.rel-meta .rel-type { grid-column: 2; color: var(--ph-dim); text-transform: uppercase; }
.rel-meta .rel-label { grid-column: 2; color: var(--ink-dim); text-transform: uppercase; }
.rel-card:focus-visible { outline: none; }

.rel-panel {
  grid-column: 1 / -1; padding: 22px 24px 20px; margin-top: 4px;
  opacity: 0; transform: translateY(-6px); transition: opacity 0.22s ease, transform 0.22s ease;
}
.rel-panel.is-in { opacity: 1; transform: none; }
.rel-panel-head { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: end; margin-bottom: 12px; }
.rel-panel-head .label { grid-column: 1; }
.rel-panel-title { grid-column: 1; margin: 0; font-weight: 700; font-size: 20px; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ph); }
.rel-close { grid-column: 2; grid-row: 1 / 3; align-self: start; background: none; border: 1px solid var(--ph-dim); color: var(--ph); font: inherit; font-size: 10px; letter-spacing: 0.14em; padding: 6px 10px; cursor: pointer; }
.rel-close:hover { border-color: var(--amber); color: var(--amber); }
.rel-panel .m-arr { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.rel-panel .m-row { grid-template-columns: 34px 1fr auto auto; }
.rel-panel-foot { margin-top: 14px; }

/* all tracks, grouped by release */
.rel-head {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: baseline;
  padding: 22px 0 8px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ph-dim); border-bottom: 1px solid var(--ph-faint);
}
.rel-head .rel-year { color: var(--amber); }
.rel-head .rel-name { color: var(--ph); font-weight: 500; }
.rel-head .rel-type a { border-bottom: 1px solid var(--ph-dim); }
.rel-head .rel-type a:hover { color: var(--ph); border-bottom-color: var(--ph); }
.m-row--sm { padding: 9px 0; }
.m-row--sm .m-title { font-size: 13px; }
.m-row--sm .m-sub { margin-top: 2px; font-size: 10.5px; }
.manifest--all .m-plays { color: var(--ph-dim); }
.tracklist a.t:hover { color: var(--ph); }

.listen { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.listen a { display: block; padding: 14px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; }
.listen a small { display: block; margin-top: 4px; font-size: 10px; text-transform: none; letter-spacing: 0.04em; color: var(--ph-dim); }
.listen a:hover { color: var(--amber); --c: var(--amber); }

.doc .dump { padding: 10px 0 0; font-size: 10.5px; border-top: 1px solid var(--ph-faint); }

.foot {
  padding: 24px var(--gutter) 32px; border-top: 1px solid var(--ph-faint);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ph-dim);
}
.foot a:hover { color: var(--ph); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- narrow ---------- */
@media (max-width: 860px) {
  /* el objeto sale de la esquina flotante y entra al flujo como primera fila de .doc:
     asi deja de taparse con la portada y su etiqueta no se sale de la pantalla */
  .emblem {
    position: static; width: auto; height: auto;
    display: flex; align-items: flex-end; gap: 14px;
  }
  .emblem canvas { flex: none; width: 108px; height: 108px; }
  .emblem .label { position: static; padding-bottom: 8px; white-space: normal; }
  /* el padding de arriba existia para que el objeto flotante cupiera sobre el contenido;
     con el objeto en flujo solo dejaria un hueco negro bajo la barra */
  .doc { padding-top: 28px; }
  .ep { grid-template-columns: 1fr; padding: 20px; }
  .sets { grid-template-columns: 1fr; }
  .set .sc:not(.scp-hidden) { height: 300px; }
  .cover--tall { aspect-ratio: 1 / 1; }
  .about-body { grid-template-columns: 1fr; }
  .about-head { max-width: 100%; }
  .cover--pano { aspect-ratio: 16 / 10; }
  .rel-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hud-tr { display: none; }
  .hud-bl { max-width: calc(100vw - 2 * var(--gutter) - 28px); }
  .hud-br { position: static; text-align: left; margin: 0; }
  .hud-br-wrap { position: absolute; bottom: 28px; right: calc(var(--gutter) + 14px); }
}

@media (max-width: 600px) {
  body { font-size: 11px; }
  .topbar { height: auto; padding: 8px var(--gutter) 0; }
  .brand { padding-bottom: 6px; }
  /* en el telefono el idioma sube a la fila de la marca, a la derecha */
  .brand { order: 0; }
  .lang { order: 1; margin-left: auto; padding-bottom: 6px; }
  .lang a { min-width: 40px; min-height: 32px; justify-content: center; padding: 0 4px; }
  .nav { order: 2; }
  /* en el telefono el menu baja a una fila de cinco teclas a todo el ancho, 44px de alto */
  .nav { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-left: 0; }
  /* sin salto de linea: en /es/ y /pt/ las palabras son mas largas y el asterisco del activo caia abajo */
  .nav a { justify-content: center; min-height: 44px; padding: 0; font-size: 10px; letter-spacing: 0; white-space: nowrap; }
  .nav-i { font-size: 9px; }
  .dump { font-size: 9.5px; padding: 8px 10px; }
  .hud-br-wrap { display: none; }
  .corner.bl, .corner.br { display: none; }
  .hud-bl { bottom: 22px; left: var(--gutter); }
  .m-row { grid-template-columns: 28px 1fr 24px; }
  .m-plays { display: none; }
  /* el contador de plays se puede esconder, la fecha de un gig no: se recoloca arriba
     del nombre, que es como se lee una lista de fechas en un telefono */
  .gig-row { grid-template-columns: 28px 1fr; gap: 2px 14px; align-items: start; }
  .gig-row .m-idx { grid-column: 1; grid-row: 1 / 3; align-self: center; }
  .gig-row .gig-date { display: block; grid-column: 2; grid-row: 1; text-align: left; }
  .gig-row > div:not(.gig-date) { grid-column: 2; grid-row: 2; }
  .gig-row .m-arr { display: none; }
  .rel-head { grid-template-columns: 28px 1fr; }
  .rel-head .rel-type { grid-column: 2; }
  .rel-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  /* la ficha bajo cada portada: el nombre va arriba con dos lineas siempre reservadas y el
     ano y el tipo comparten la de abajo. Asi toda tarjeta mide igual y las filas de portadas
     quedan alineadas, en vez de desparejas segun el largo del titulo */
  .rel-meta { grid-template-columns: auto 1fr; gap: 4px 8px; padding: 8px 2px 0; font-size: 9.5px; line-height: 1.35; }
  .rel-meta .rel-name {
    grid-column: 1 / -1; grid-row: 1; min-height: 2.7em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .rel-meta .rel-year { grid-column: 1; grid-row: 2; }
  .rel-meta .rel-type { grid-column: 2; grid-row: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rel-meta .rel-label { grid-column: 2; grid-row: 3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* sin esto los rotulos se parten adentro y el cintillo queda apretado en dos columnas */
  .section-head { flex-wrap: wrap; gap: 6px 12px; }
  .section-head h2, .section-head > span { white-space: nowrap; }
  .section-head .rule { flex: 1 0 20px; }
  .rel-panel { padding: 16px; }
  .rel-panel .m-row { grid-template-columns: 28px 1fr auto; }
  .rel-panel .m-plays { display: none; }
  .m-title { font-size: 12px; }
  .tracklist li { grid-template-columns: 28px 1fr; }
  .tracklist .w { grid-column: 2; text-align: left; }
  .doc { padding-top: 22px; gap: 34px; }
  .cover figcaption { position: static; margin-top: 8px; }
  /* la obra ajustada al telefono: entra completa y deja ver el titulo sin bajar */
  .ep .cover { max-width: min(100%, 280px); }
  .cover--pano { aspect-ratio: 3 / 2; }
  .emblem canvas { width: 92px; height: 92px; }
  /* el correo es el centro de la pagina de contacto: a 393px el clamp caia al minimo de 18px.
     El tamano y el padding estan calzados para que booking@fisheye.live entre en una linea
     y no se parta a la mitad por el word-break */
  .contact { padding: 24px 18px; }
  .mail { font-size: clamp(20px, 6vw, 44px); }
  .outro { grid-template-columns: 1fr; padding: 48px var(--gutter) 44px; gap: 16px; }
  .outro-name { font-size: 18px; }
  .cform { grid-template-columns: 1fr; gap: 16px; padding: 20px 18px; }
  .cform-foot { flex-direction: column; align-items: stretch; }
  .cform-foot .btn { text-align: center; padding: 14px; }
  .cform-done { padding: 20px 18px; }
  .scp-now { grid-template-columns: 72px 1fr; gap: 12px; }
  .scp-art { width: 72px; height: 72px; }
}

@media (max-width: 340px) {
  .nav a { font-size: 9px; }
  .nav-i { font-size: 8px; }
}
