/* =========================================================================
   MIRA新伝統 — stylesheet
   Change the look of the whole site from the variables below.
   ========================================================================= */
:root {
  --bg: #0b0a0d;            /* stage black, slightly violet */
  --bg-2: #131118;          /* raised panels */
  --bg-3: #1b1822;
  --fog: #a7a2b3;           /* secondary text, fog grey */
  --ink: #ffffff;           /* main text */
  --paper: rgba(255, 255, 255, 0.9);  /* large reading text: white, slightly transparent */
  --glow: #b5b3d7;          /* lantern lilac accent */
  --glow-2: #8a88b8;
  --line: rgba(236, 232, 244, 0.16);
  --line-strong: rgba(236, 232, 244, 0.32);
  --chrome: linear-gradient(180deg, #ffffff 0%, #cfcad8 22%, #6f6a7a 48%, #f4f1fa 54%, #9d97a8 75%, #ffffff 100%);

  --f-display: "Special Gothic Expanded One", "Arial Black", sans-serif;
  --f-cond: "Special Gothic Condensed One", "Arial Narrow", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --f-body: "Inter Tight", system-ui, -apple-system, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--glow); color: var(--bg); }

/* film grain + faint scanlines over everything */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 99; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px);
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } html { scroll-behavior: auto; } }

/* ---------- shared bits ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.label, .meta, .tile-num, .sec-num, .pill, .corner, .hero-count, .hero-credit, .idx, .cc, .yr, dt {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.label { color: var(--fog); margin: 0 0 14px; }
.meta { color: var(--fog); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
  border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); line-height: 1.5;
}
.pill-glow { border-color: var(--glow); color: var(--glow); box-shadow: 0 0 14px rgba(181,179,215,.35); }
.pill-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pill-btn {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  padding: 9px 16px; border-radius: 999px; background: var(--ink); color: var(--bg);
  transition: background .2s, box-shadow .2s;
}
.pill-btn:hover { background: var(--glow); box-shadow: 0 0 22px rgba(181,179,215,.5); }

/* the typed wordmark: chrome fill (replace with an image in settings if you like) */
.wordmark {
  font-family: var(--f-display); font-weight: 400; letter-spacing: .02em; line-height: .9;
  color: #fff;
}

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px var(--gutter);
  background: linear-gradient(180deg, rgba(11,10,13,.85), rgba(11,10,13,.55));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px dotted var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-size: 15px; letter-spacing: .04em; }
.sigil { width: 30px; height: 30px; object-fit: contain; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a, .footer-nav a {
  display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 10px; border-radius: 999px;
  text-decoration: none; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.nav a .n, .footer-nav a .n { color: var(--glow); font-size: 10px; }
.nav a:hover { background: var(--ink); color: var(--bg); }
.nav a:hover .n { color: var(--glow-2); }
.nav-toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--ink); transition: transform .25s; }
.nav-toggle span:first-child { top: 15px; } .nav-toggle span:last-child { top: 24px; }
.nav-open .nav-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 61px 0 auto 0; background: rgba(11,10,13,.97); border-bottom: 1px dotted var(--line);
    transform: translateY(-120%); transition: transform .3s ease; padding: 12px var(--gutter) 24px;
  }
  .nav-open .nav { transform: none; }
  .nav ul { flex-direction: column; }
  .nav a { font-size: 15px; padding: 12px 0; width: 100%; border-bottom: 1px dotted var(--line); border-radius: 0; }
  .nav a:hover { background: none; color: var(--glow); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 1000px); display: flex; align-items: flex-end;
  background: var(--bg) center 30% / cover no-repeat; transition: background-image .8s ease;
  padding: 120px var(--gutter) 110px; overflow: hidden;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 35%, transparent 0%, rgba(11,10,13,.35) 55%, rgba(11,10,13,.85) 100%),
    linear-gradient(180deg, rgba(11,10,13,.25) 0%, transparent 35%, rgba(11,10,13,.9) 100%);
}
.hero-inner { position: relative; max-width: var(--wrap); width: 100%; margin: 0 auto; }
.hero h1 { margin: 0; font-weight: 400; }
.hero-mark { display: block; font-size: clamp(48px, 11vw, 170px); }
.wordmark-img.hero-mark { width: min(900px, 90%); height: auto; }
.tagline { font-family: var(--f-serif); font-style: italic; font-size: clamp(20px, 2.4vw, 30px); color: var(--paper); margin: 18px 0 24px; }
.now { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 13px; text-decoration: none; letter-spacing: .04em; }
.now:hover { color: var(--glow); }
.corner { position: absolute; top: 84px; color: var(--paper); opacity: .8; }
.corner.tl { left: var(--gutter); } .corner.tr { right: var(--gutter); }
.hero-controls { position: absolute; right: var(--gutter); bottom: 44px; display: flex; align-items: center; gap: 14px; }
.hero-controls button {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: rgba(11,10,13,.35); backdrop-filter: blur(6px); transition: background .2s, color .2s;
}
.hero-controls button:hover { background: var(--ink); color: var(--bg); }
.hero-credit { position: absolute; left: var(--gutter); bottom: 44px; margin: 0; color: var(--fog); max-width: 55%; font-size: 10px; }
@media (max-width: 700px) {
  .hero { padding-bottom: 150px; }
  .hero-credit { max-width: none; right: var(--gutter); bottom: 100px; }
  .corner.tr { display: none; }
}

/* ---------- sections ---------- */
main section { padding: 40px 0 72px; }
.about { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding-top: 100px; }
.about-text { font-family: var(--f-serif); font-size: clamp(24px, 3vw, 38px); line-height: 1.22; color: var(--paper); }
.about-text p { margin: 0 0 .6em; }
@media (max-width: 700px) { .about { grid-template-columns: 1fr; gap: 0; padding-top: 64px; } }

.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 36px; }
.sec-num { color: var(--glow); }
.sec-head h2 {
  margin: 0; font-family: var(--f-cond); font-weight: 400; text-transform: uppercase;
  font-size: clamp(40px, 7vw, 96px); line-height: .9; letter-spacing: .005em;
}
.sec-rule { flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-10px); }
.more { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.more:hover { color: var(--glow); }

/* numbered tiles with dotted frames + corner star */
.tile {
  position: relative; display: block; width: 100%; padding: 10px; text-align: left;
  border: 1px dotted var(--line-strong); background: var(--bg-2);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.tile:hover { border-color: var(--glow); box-shadow: 0 0 0 1px rgba(181,179,215,.2), 0 0 40px rgba(181,179,215,.12); }
.tile-num { position: absolute; top: 16px; left: 18px; z-index: 2; color: var(--ink); mix-blend-mode: difference; }
.tile-star { position: absolute; top: 12px; right: 16px; z-index: 2; font-size: 13px; color: var(--ink); mix-blend-mode: difference; }
.tile img { width: 100%; border-radius: 2px; }

/* ---------- releases (spec-sheet layout) ---------- */
.release { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); padding: 8px 0 72px; }
.release + .release { border-top: 1px dotted var(--line); padding-top: 72px; }
.cover-tile img { aspect-ratio: 1; object-fit: cover; }
.players { display: grid; gap: 16px; margin-top: 16px; }
.release-info { min-width: 0; }
.spec-card {
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px; margin-bottom: 32px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06);
}
.release-title { margin: 0 0 12px; font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 3.4vw, 44px); line-height: 1; }
.spec { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; margin: 22px 0; }
.spec dt { color: var(--fog); padding-top: 3px; }
.spec dd { margin: 0; font-size: 15px; }
@media (max-width: 860px) { .release { grid-template-columns: 1fr; } }

/* ---------- prose (release text + articles) ---------- */
.prose { font-size: 18px; line-height: 1.7; color: rgba(255, 255, 255, 0.86); }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--ink); text-decoration-color: var(--glow); text-underline-offset: 3px; }
.prose a:hover { color: var(--glow); }
.prose h2, .prose h3, .prose h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.1; margin: 1.8em 0 .6em; color: var(--ink); }
.prose h2 { font-size: 30px; } .prose h3 { font-size: 22px; } .prose h4 { font-size: 18px; }
.prose em { font-family: var(--f-serif); font-size: 1.12em; }
.prose blockquote {
  position: relative; margin: 2em 0; padding: 28px 28px 24px; border: 1px dotted var(--line-strong);
  background: var(--bg-2); border-radius: 2px; font-family: var(--f-serif); font-size: 21px; line-height: 1.45; color: var(--paper);
}
.prose blockquote::before { content: "“"; position: absolute; top: -26px; left: 18px; font-size: 80px; line-height: 1; color: var(--glow); font-family: var(--f-serif); }
.prose blockquote p { margin: 0 0 .9em; }
.prose blockquote em { font-size: 1em; }
.prose cite { display: block; font: normal 11px/1.6 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fog); text-align: right; margin-top: 18px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--glow); }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; border: 1px dotted var(--line-strong); padding: 8px; background: var(--bg-2); }
.prose figcaption { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fog); margin-top: 10px; }
.prose hr { border: 0; border-top: 1px dotted var(--line-strong); margin: 2.4em 0; }
.prose code { font-family: var(--f-mono); font-size: .85em; background: var(--bg-3); padding: 2px 6px; border-radius: 4px; }

/* ---------- embeds ---------- */
.embed iframe { width: 100%; border: 0; display: block; }
.embed-bandcamp iframe { height: 472px; }
.embed-spotify iframe { height: 352px; border-radius: 12px; }
.embed-video { aspect-ratio: 16 / 9; position: relative; background: #000; overflow: hidden; }
.embed-video iframe { position: absolute; inset: 0; height: 100%; }
.yt-play { position: absolute; inset: 0; width: 100%; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) contrast(1.05) brightness(.8); transition: filter .3s; }
.yt-play:hover img { filter: none; }
.yt-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(11,10,13,.5); border: 1px solid var(--ink); backdrop-filter: blur(6px); font-size: 18px;
}
.yt-play:hover .yt-icon { background: var(--glow); color: var(--bg); border-color: var(--glow); }

/* ---------- grids ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.video-tile { margin: 0; }
.video-tile figcaption { font-family: var(--f-cond); text-transform: uppercase; font-size: 22px; padding: 12px 4px 2px; }
.grid-photos { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .grid-photos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .grid-photos { grid-template-columns: repeat(2, 1fr); gap: 8px; } .photo-tile { padding: 6px; } }
.photo-tile img { aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(.25); transition: filter .3s; }
.photo-tile:hover img { filter: none; }

/* ---------- index lists (live + press) ---------- */
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px dotted var(--line-strong); }
.index-list a, .press-item {
  display: grid; grid-template-columns: 48px 1fr 200px 90px 24px; align-items: baseline; gap: 12px;
  padding: 16px 8px; border-bottom: 1px dotted var(--line-strong); text-decoration: none;
  transition: background .2s, color .2s, padding .2s;
}
.index-list .name { font-family: var(--f-cond); text-transform: uppercase; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.05; }
.idx, .cc, .yr { color: var(--fog); }
.arrow { text-align: right; }
.index-list a:hover, .press-item:hover { background: var(--ink); color: var(--bg); padding-left: 16px; }
.index-list a:hover .idx, .index-list a:hover .cc, .index-list a:hover .yr,
.press-item:hover .idx, .press-item:hover .yr { color: var(--bg); }
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); column-gap: 32px; border-top: 1px dotted var(--line-strong); }
.press-item { grid-template-columns: 40px 1fr 74px 24px; }
.press-item .name { font-family: var(--f-display); font-size: 16px; letter-spacing: .02em; }
.press-item small { display: block; font-family: var(--f-body); font-size: 13px; letter-spacing: 0; color: var(--fog); margin-top: 4px; line-height: 1.4; }
.press-item:hover small { color: var(--bg); }
div.press-item:hover, .index-list div:hover { background: none; color: inherit; padding-left: 8px; }
.index-list div { display: grid; grid-template-columns: 48px 1fr 200px 90px 24px; align-items: baseline; gap: 12px; padding: 16px 8px; border-bottom: 1px dotted var(--line-strong); }
.index-list .pill { font-size: 9px; vertical-align: middle; margin-left: 10px; transform: translateY(-4px); }
.index-small .name { font-size: clamp(18px, 2vw, 24px); }
.index-small a, .index-small div { padding: 12px 8px; }
.index-small a, .index-small div { grid-template-columns: 110px 1fr 200px 90px 24px; }
@media (max-width: 700px) { .index-small a, .index-small div { grid-template-columns: 1fr 18px; } .index-small .idx, .index-small .name, .index-small .cc, .index-small .yr { grid-column: 1; } .index-small .arrow { grid-column: 2; } }
.sub-head { margin: 56px 0 18px; }
.sub-head .label { margin: 0; }
.perf { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.perf-card { position: sticky; top: 90px; }
@media (max-width: 860px) { .perf { grid-template-columns: 1fr; } .perf-card { position: static; } }
@media (max-width: 700px) {
  .index-list a, .index-list div { grid-template-columns: 40px 1fr 18px; row-gap: 2px; }
  .index-list .cc, .index-list .yr { grid-column: 2; font-size: 10px; }
  .index-list .arrow { grid-column: 3; grid-row: 1; }
}

/* ---------- journal cards (editorial) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; text-decoration: none; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--glow); transform: translateY(-3px); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 20px 22px 24px; }
.card h3 { font-family: var(--f-display); font-weight: 400; font-size: 22px; line-height: 1.1; margin: 14px 0 10px; text-transform: uppercase; }
.card p { margin: 0; color: var(--fog); font-size: 15px; }
.cards-journal .card-big { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; }
.cards-journal .card-big .card-img { aspect-ratio: auto; min-height: 380px; }
.cards-journal .card-big .card-body { padding: 36px; align-self: end; }
.cards-journal .card-big h3 { font-size: clamp(28px, 3.4vw, 44px); }
@media (max-width: 760px) { .cards-journal .card-big { grid-template-columns: 1fr; } .cards-journal .card-big .card-img { min-height: 240px; } }
.empty { color: var(--fog); font-family: var(--f-mono); font-size: 13px; }

/* ---------- journal pages ---------- */
.page-top { padding-top: 120px; padding-bottom: 80px; }
.page-title { font-family: var(--f-cond); font-weight: 400; text-transform: uppercase; font-size: clamp(64px, 14vw, 200px); line-height: .85; margin: 0 0 48px; }
.post { max-width: 760px; margin: 0 auto; }
.post-head { text-align: center; margin-bottom: 40px; }
.post-head .pill-row { justify-content: center; }
.back { display: inline-block; text-decoration: none; margin-bottom: 26px; }
.back:hover { color: var(--glow); }
.post-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 5.4vw, 64px); line-height: 1.02; margin: 0 0 22px; text-transform: uppercase; }
.standfirst { font-family: var(--f-serif); font-style: italic; font-size: 24px; line-height: 1.35; color: var(--paper); margin: 28px 0 0; }
.post-cover { margin: 0 0 48px; }
.post-cover img { width: 100%; max-height: 80vh; object-fit: cover; border: 1px dotted var(--line-strong); padding: 10px; background: var(--bg-2); }
.post-body { font-size: 19px; }
.post-body > p:first-of-type::first-letter { font-family: var(--f-display); float: left; font-size: 3.4em; line-height: .8; padding: 6px 10px 0 0; color: var(--glow); }
.post-nav { max-width: 760px; margin: 64px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pn { display: block; padding: 20px; border: 1px dotted var(--line-strong); text-decoration: none; font-family: var(--f-display); font-size: 15px; }
.pn .label { display: block; margin-bottom: 8px; }
.pn.next { grid-column: 2; text-align: right; }
.pn:hover { border-color: var(--glow); }

/* ---------- footer ---------- */
.footer { border-top: 1px dotted var(--line-strong); padding: 56px var(--gutter) 28px; margin-top: 40px; }
.footer-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col p { margin: 0 0 10px; }
.mail { font-family: var(--f-display); font-size: 18px; text-decoration: none; }
.mail:hover { color: var(--glow); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-strong); text-decoration: none; font-size: 18px; transition: background .2s, color .2s, border-color .2s;
}
.socials a:hover { background: var(--glow); color: var(--bg); border-color: var(--glow); }
.footer-nav { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.footer-nav a { padding: 4px 0; }
.footer-nav a:hover { color: var(--glow); }
.footer-mark { max-width: var(--wrap); margin: 56px auto 16px; text-align: center; overflow: hidden; }
.footer-mark .big { font-size: clamp(44px, 12.5vw, 176px); display: block; white-space: nowrap; }
.footer-mark .wordmark-img { margin: 0 auto; width: 100%; }
.footer-base { max-width: var(--wrap); margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fog); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,7,10,.96); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; padding: 48px 0; }
.lightbox img { max-height: calc(100vh - 140px); max-width: 100%; object-fit: contain; }
.lightbox figcaption { margin-top: 16px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fog); text-align: center; }
.lightbox button { height: 64px; font-size: 22px; }
.lightbox button:hover { color: var(--glow); }
.lb-close { position: absolute; top: 16px; right: 16px; width: 48px; }

/* discography rows: separate Bandcamp / Spotify links */
.index-list .disco-row { grid-template-columns: 100px 1fr 200px 44px 290px; padding: 12px 8px; }
.links { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.mini {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: 999px; transition: background .2s, color .2s, border-color .2s;
}
.mini:hover { background: var(--glow); color: var(--bg); border-color: var(--glow); }
@media (max-width: 860px) {
  .index-list .disco-row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .disco-row .idx, .disco-row .name, .disco-row .cc { grid-column: 1; }
  .disco-row .yr { grid-column: 2; grid-row: 1; text-align: right; }
  .disco-row .links { grid-column: 1 / -1; justify-content: flex-start; margin-top: 4px; }
}
.index-list .mini { display: inline-block; padding: 4px 9px; border: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); grid-template-columns: none; }
.index-list .mini:hover { background: var(--glow); color: var(--bg); border-color: var(--glow); padding-left: 9px; }
.index-list .disco-row:hover { background: none; color: inherit; padding-left: 8px; }

/* background video: fixed behind the page, hidden by the top banner, heavily veiled so text stays readable */
.bg-video { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.bg-video video { width: 100%; height: 100%; object-fit: cover; opacity: .8; filter: grayscale(.3) contrast(1.05) blur(1px); }
.bg-video::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(11,10,13,.35) 0%, rgba(11,10,13,.8) 80%),
    linear-gradient(180deg, rgba(11,10,13,.45), rgba(11,10,13,.6));
}
body { background: transparent; }
html { background: var(--bg); }
.hero { position: relative; z-index: 0; }
.footer { background: rgba(11,10,13,.85); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (prefers-reduced-motion: reduce) { .bg-video video { display: none; } .bg-video { background: var(--bg) url("../images/bg-poster.jpg") center / cover; } }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid-3 .video-tile figcaption { font-size: 19px; }

/* banner photo fades gradually into the background video (no hard edge) */
.hero { background: none; }
.hero-photo {
  position: absolute; inset: 0; z-index: -1;
  background: center 30% / cover no-repeat; transition: background-image .8s ease;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, rgba(0,0,0,.6) 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 50%, rgba(0,0,0,.6) 72%, transparent 100%);
}
.hero-photo .hero-shade {
  background:
    radial-gradient(ellipse at 50% 35%, transparent 0%, rgba(11,10,13,.3) 60%, rgba(11,10,13,.6) 100%),
    linear-gradient(180deg, rgba(11,10,13,.25) 0%, transparent 35%, rgba(11,10,13,.35) 100%);
}

/* archive videos: play button on the tile, player inside the viewer */
.photo-tile { position: relative; }
.photo-tile.is-video .yt-icon { pointer-events: none; }
.photo-tile.is-video:hover .yt-icon { background: var(--glow); color: var(--bg); border-color: var(--glow); }
.lightbox img[hidden] { display: none; }
.lb-video { width: min(100%, calc((100vh - 160px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.lb-video.vertical { width: min(100%, calc((100vh - 160px) * 9 / 16)); aspect-ratio: 9 / 16; }
.lb-video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =========================================================================
   Sharp edges everywhere: no rounded corners. Replaced by square frames,
   cut-corner buttons and viewfinder corner brackets.
   ========================================================================= */
*, *::before, *::after { border-radius: 0 !important; }

/* viewfinder corners: 4 small L-shaped brackets on framed panels */
.spec-card, .card, .pn, .device-full .device-info { position: relative; }
.spec-card::before, .card::before, .pn::before, .device-full .device-info::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none; z-index: 2;
  --c: rgba(255,255,255,.75); --l: 14px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px var(--l) no-repeat;
}
.card:hover::before, .pn:hover::before { --c: var(--glow); }
.spec-card { border: 1px dotted var(--line-strong); background: rgba(19,17,24,.82); box-shadow: none; }
.card { border: 1px dotted var(--line-strong); background: rgba(19,17,24,.82); }

/* tags: square, mono, bracketed */
.pill { border: 1px dotted var(--line-strong); padding: 3px 8px; }
.pill::before { content: "["; opacity: .5; margin-right: 2px; }
.pill::after { content: "]"; opacity: .5; margin-left: 2px; }
.pill-glow { border-style: solid; }

/* buttons: hard-edged with a cut corner */
.pill-btn, .mini { --cut: 8px; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.pill-btn { padding: 10px 18px 10px 14px; border: 0; }
.pill-btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.pill-btn.ghost:hover { background: var(--glow); color: var(--bg); }
.mini { --cut: 6px; border: 0 !important; box-shadow: inset 0 0 0 1px var(--line-strong); padding: 5px 12px 5px 9px !important; }
.index-list .mini:hover, .mini:hover { box-shadow: none; }
.yt-icon { width: 58px; height: 58px; }

/* ---------- Coriolis Lab ---------- */
.lab-intro { display: grid; grid-template-columns: 180px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; margin-bottom: 40px; }
.lab-logo { width: 100%; max-width: 180px; height: auto; opacity: .95; }
.lab-logo.big { max-width: 240px; }
.lab-text { font-size: clamp(22px, 2.4vw, 30px); margin: 0 0 22px; }
.lab-intro .pill-row, .lab-head .pill-row { gap: 12px; }
.devices { display: grid; gap: 20px; }
.devices-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.device { display: flex; flex-direction: column; gap: 14px; }
.device-img { padding: 10px; }
.device-img img { aspect-ratio: 16 / 9; object-fit: cover; }
.device-title { font-family: var(--f-display); font-weight: 400; font-size: 22px; line-height: 1.1; margin: 0 0 8px; text-transform: uppercase; }
.device-type { margin: 0 0 6px; }
.device .pill-row { margin-top: 12px; }
.lab-head { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; margin-bottom: 24px; }
.lab-head .page-title { margin-bottom: 24px; }
.devices:not(.devices-3) { gap: 56px; }
.device-full { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.device-full .device-info { border: 1px dotted var(--line-strong); background: rgba(19,17,24,.82); padding: 26px; }
.device-full .device-title { font-size: clamp(26px, 3vw, 40px); }
.device-full:nth-child(even) .device-img { order: 2; }
.device-text { font-size: 16px; margin-top: 8px; }
@media (max-width: 860px) {
  .lab-intro, .lab-head { grid-template-columns: 1fr; }
  .lab-logo, .lab-logo.big { max-width: 120px; }
  .device-full { grid-template-columns: 1fr; }
  .device-full:nth-child(even) .device-img { order: 0; }
}

/* =========================================================================
   Private listening page
   ========================================================================= */
.listen .l-top { justify-content: space-between; }
.l-tag { margin: 0; color: var(--glow); }
.l-wrap { padding-top: 110px; padding-bottom: 140px; max-width: 1100px; }
.l-status { text-align: center; padding: 80px 0; }
.l-gate { max-width: 460px; margin: 60px auto; display: flex; flex-direction: column; gap: 16px; }
.l-gate .release-title { font-size: 26px; margin: 0; }
.l-field { display: flex; flex-direction: column; gap: 8px; }
.l-field input { background: rgba(0,0,0,.5); border: 1px solid var(--line-strong); color: var(--ink); padding: 12px 14px; font: 16px var(--f-body); }
.l-field input:focus { outline: 2px solid var(--glow); outline-offset: -1px; }
.l-error { color: #ff9c9c; margin: 0; font-size: 14px; }
.l-gate .pill-btn { align-self: flex-start; cursor: pointer; }

.l-head { display: grid; grid-template-columns: 220px 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; margin-bottom: 40px; }
.l-head:has(#l-cover-box[hidden]) { grid-template-columns: 1fr; }
.l-cover img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.l-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 4.6vw, 56px); line-height: 1.02; margin: 6px 0 8px; }
.l-artist { font-family: var(--f-serif); font-style: italic; font-size: 22px; color: var(--paper); margin: 0 0 18px; }
.l-desc { font-size: 16px; position: relative; background: rgba(19,17,24,.7); border: 1px dotted var(--line-strong); padding: 16px 18px; }
.l-desc p { margin: 0 0 .8em; } .l-desc p:last-child { margin: 0; }
.l-desc.clamped { max-height: 150px; overflow: hidden; }
.l-desc.clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, rgba(19,17,24,.95)); }
.l-more { background: none; border: 0; color: var(--ink); cursor: pointer; padding: 10px 0 0; text-decoration: underline; text-underline-offset: 3px; }

.l-tracks { list-style: none; margin: 0; padding: 0; border-top: 1px dotted var(--line-strong); }
.l-track { display: grid; grid-template-columns: 52px minmax(140px, 1.1fr) minmax(120px, 1.6fr) 56px auto; gap: 16px; align-items: center;
  padding: 14px 8px; border-bottom: 1px dotted var(--line-strong); background: rgba(11,10,13,.45); transition: background .2s; }
.l-track:hover { background: rgba(27,24,34,.75); }
.l-track.is-current { background: rgba(181,179,215,.08); box-shadow: inset 2px 0 0 var(--glow); }
.l-num { width: 40px; height: 40px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; position: relative; font: 11px var(--f-mono); }
.l-num .ic { display: none; } .l-num:hover .n, .is-current .l-num .n { display: none; } .l-num:hover .ic, .is-current .l-num .ic { display: inline; }
.is-current .l-num { background: var(--glow); color: var(--bg); border-color: var(--glow); }
.l-meta { display: flex; flex-direction: column; min-width: 0; }
.l-ttitle { font-family: var(--f-cond); text-transform: uppercase; font-size: 22px; line-height: 1.1; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l-tartist { font-size: 12px; color: var(--fog); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l-wave { width: 100%; height: 44px; cursor: pointer; display: block; }
.l-dur { text-align: right; color: var(--fog); }
.l-dl { display: flex; gap: 6px; }
.l-dl .mini { background: transparent; color: var(--ink); cursor: pointer; font-family: var(--f-mono); }
.l-dl .mini:hover { background: var(--glow); color: var(--bg); }
.l-note { margin-top: 24px; text-align: center; }

.l-player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  padding: 14px var(--gutter); background: rgba(11,10,13,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px dotted var(--line-strong); }
.l-controls { display: flex; gap: 6px; }
.l-controls button { width: 40px; height: 40px; background: transparent; color: var(--ink); border: 1px solid var(--line-strong); cursor: pointer; font-size: 13px; }
.l-controls .l-play { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.l-controls button:hover { border-color: var(--glow); }
.l-now { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.l-now-title { font-family: var(--f-cond); text-transform: uppercase; font-size: 20px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.l-scrub { height: 6px; background: rgba(255,255,255,.14); cursor: pointer; }
.l-scrub-fill { height: 100%; width: 0; background: var(--glow); }
.l-time { color: var(--fog); white-space: nowrap; }

@media (max-width: 760px) {
  .l-head { grid-template-columns: 1fr; } .l-cover { max-width: 260px; }
  .l-track { grid-template-columns: 44px 1fr auto; gap: 10px; }
  .l-wave { grid-column: 1 / -1; grid-row: 2; }
  .l-dur { grid-column: 3; grid-row: 1; }
  .l-dl { grid-column: 1 / -1; }
  .l-player { grid-template-columns: auto 1fr; } .l-time { display: none; }
}
.listen [hidden] { display: none !important; }
