/* Layout: the hand-drawn logo and an oscilloscope open the page; below, a hairline-ruled discography where grayscale covers regain colour on hover. Dark-first; light is an inversion. */
:root {
  --bg: #050505;
  --fg: #ecece9;
  --dim: #8b8b87;
  --line: #262625;
  --faint: #121212;
  --logo-filter: none;
  --logo-blend: screen;
  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Noto Sans Symbols 2', 'Noto Sans Symbols', 'Segoe UI Symbol', 'Apple Symbols', monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #ecece8; --fg: #070707; --dim: #62625e; --line: #c6c6c1; --faint: #e0e0db;
    --logo-filter: invert(1); --logo-blend: multiply;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #ecece8; --fg: #070707; --dim: #62625e; --line: #c6c6c1; --faint: #e0e0db;
  --logo-filter: invert(1); --logo-blend: multiply;
  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1.4 -.2'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  z-index: 50;
}
a { color: inherit; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 20px 36px;
}

/* top bar */
.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim);
}
.top .mark { display: block; line-height: 0; }
.top .mark img { height: 34px; width: auto; display: block; filter: var(--logo-filter); mix-blend-mode: var(--logo-blend); }
.top .jd b { font-weight: 400; color: var(--fg); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.btn {
  font: inherit; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  background: transparent; color: var(--fg);
  border: 1px solid var(--fg); padding: 8px 14px; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--fg); color: var(--bg); }

/* hero */
.hero { padding-top: clamp(24px, 5vw, 56px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 40px 56px;
  align-items: center;
}
.brand { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.logo-h { margin: 0; line-height: 0; }
.logo {
  display: block; width: 100%; max-width: 640px; height: auto;
  filter: var(--logo-filter); mix-blend-mode: var(--logo-blend);
}
.scope { margin: 0; border: 1px solid var(--line); position: relative; }
.scope canvas { display: block; width: 100%; aspect-ratio: 1; touch-action: none; }
.scope figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  padding: 10px 12px; border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
}
.scope figcaption b { color: var(--fg); font-weight: 400; font-variant-numeric: tabular-nums; }

/* service icons */
.links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.links a {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--fg); color: var(--fg);
  transition: background .2s, color .2s, transform .2s;
}
.links a:hover, .links a:focus-visible { background: var(--fg); color: var(--bg); transform: translateY(-2px); }
.links svg { width: 22px; height: 22px; display: block; }

/* sections */
.label {
  display: flex; justify-content: space-between; gap: 16px;
  margin: clamp(56px, 9vw, 112px) 0 0;
  padding-bottom: 14px; border-bottom: 1px solid var(--fg);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
}
.label span:last-child { color: var(--dim); }

/* albums */
.album {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 24px 48px;
  padding-block: 36px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.art {
  position: relative; display: block;
  aspect-ratio: 1; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--faint);
  max-width: 100%;
}
.art .ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 14px; text-align: center;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.05;
  color: var(--fg); overflow-wrap: anywhere;
}
.art .ph small { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--dim); }
.art img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  filter: grayscale(1);
  transition: filter .6s ease, transform .8s ease, opacity .3s ease;
}
.art img.ok { opacity: 1; }
.art:hover img, .art:focus-visible img, .art:active img { filter: none; transform: scale(1.035); }
.album .cat { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.album h3 {
  margin: 6px 0 10px;
  font-family: var(--display); font-weight: 400; font-style: normal;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1; overflow-wrap: anywhere;
}
.album .meta { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 20px; }
.album .meta a { text-decoration: none; border-bottom: 1px solid var(--dim); }
.album .meta a:hover { color: var(--fg); border-color: var(--fg); }
.tracks { list-style: none; margin: 0; padding: 0; counter-reset: t; max-width: 560px; }
.tracks li {
  counter-increment: t;
  display: flex; align-items: baseline; gap: 12px;
  padding: 8px 0; border-bottom: 1px dotted var(--line);
}
.tracks li::before { content: counter(t) "."; color: var(--dim); font-size: 11px; min-width: 1.6em; }
.tracks .tt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tracks .td { color: var(--dim); font-variant-numeric: tabular-nums; }

.end { margin-top: clamp(56px, 9vw, 112px); padding-block: clamp(16px, 3vw, 40px); }
.end .scope { max-width: 560px; margin-inline: auto; }

footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px;
  margin-top: clamp(48px, 8vw, 96px);
  padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
footer .eq { color: var(--fg); letter-spacing: .08em; text-transform: none; }
footer .links a { width: 38px; height: 38px; }
footer .links svg { width: 18px; height: 18px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .scope { max-width: 560px; }
}
@media (max-width: 700px) {
  .album { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .art { max-width: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; }
