@font-face {
  font-family: 'Against';
  src: url('/public/fonts/against-regular.otf') format('opentype'),
       url('/public/fonts/against-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0e0d0b;
  --bg-2: #141210;
  --ink: #e8e3db;
  --ink-dim: #c6c0b5;
  --muted: #8a857c;
  --rule: rgba(232, 227, 219, 0.10);
  --accent: #c8a572;
  --max: 1160px;
  --gutter-x: clamp(20px, 4vw, 48px);

  --brand-font: 'Against', ui-serif, Georgia, serif;
  --body-font: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono-font: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(200, 165, 114, 0.35); color: var(--ink); }

/* === Texture overlays ================================================ */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 260px 260px;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  background:
    radial-gradient(140% 100% at 50% -10%, rgba(200,165,114,0.06) 0%, transparent 55%),
    radial-gradient(120% 100% at 50% 110%, rgba(0,0,0,0.55) 0%, transparent 50%);
}

/* === Shared type primitives ========================================== */
.section-title {
  font-family: var(--brand-font);
  font-weight: 400;
  font-size: clamp(44px, 9vw, 96px);
  line-height: 0.95;
  letter-spacing: 0.005em;
  margin: 0 0 48px;
}

/* Generic section shell */
section, footer {
  position: relative;
  padding: clamp(80px, 12vw, 160px) var(--gutter-x);
  max-width: var(--max);
  margin: 0 auto;
}

/* === HERO: candle in the dark ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: var(--bg);
  isolation: isolate;
}

.hero__candle {
  position: absolute;
  left: 50%; top: 38%;
  width: 60vmin; height: 60vmin;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(220,170,110,0.55) 0%,
    rgba(180, 90, 60,0.25) 18%,
    rgba( 60, 30, 40,0.10) 38%,
    transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  animation: hero-candle 7s ease-in-out infinite;
  will-change: transform, opacity;
}
.hero__candle::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 14vmin; height: 14vmin;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,220,170,0.85), transparent 65%);
  filter: blur(8px);
}
@keyframes hero-candle {
  0%, 100% { transform: translate(-50%, -50%) scale(1.00); opacity: 0.92; }
  35%      { transform: translate(-49.6%, -50.3%) scale(1.04); opacity: 1; }
  65%      { transform: translate(-50.4%, -49.7%) scale(0.97); opacity: 0.85; }
}

.hero__mark { text-shadow: 0 0 80px rgba(0,0,0,0.9); }

/* Wordmark + sub (shared, baseline) */
.hero__mark {
  position: relative;
  z-index: 5;
  margin: 0 0 clamp(110px, 18vh, 180px);
  padding: 0 var(--gutter-x);
  font-family: var(--brand-font);
  font-weight: 400;
  font-size: clamp(96px, 18vw, 220px);
  line-height: 0.9;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
  user-select: none;
}
/* Quiet brand wordmark — felt-piano soft, breathing opacity */
.hero__mark {
  position: relative;
  z-index: 5;
  margin: 0 0 clamp(110px, 18vh, 180px);
  padding: 0 var(--gutter-x);
  font-family: var(--brand-font);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(96px, 18vw, 220px);
  line-height: 0.9;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
  user-select: none;
  text-shadow: 0 0 60px rgba(8, 7, 11, 0.85);
  will-change: opacity;
  animation: hero-breathe 9s ease-in-out infinite;
}
@keyframes hero-breathe {
  0%, 100% { opacity: 0.86; }
  50%      { opacity: 0.98; }
}

.hero__sub {
  position: absolute;
  z-index: 5;
  bottom: 56px; left: 0; right: 0;
  padding: 0 var(--gutter-x);
  color: var(--ink-dim);
  font-family: var(--mono-font);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  text-align: center;
  opacity: 0.75;
}
.hero__sub .sep { opacity: 0.5; margin: 0 8px; }

/* Hero quick-link icons — instant access for visitors arriving from a
   bio link. Discreet under the sub-text; no labels. */
.hero__socials {
  position: absolute;
  z-index: 5;
  bottom: 22px; left: 0; right: 0;
  padding: 0 var(--gutter-x);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
}
.hero__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--ink-dim);
  opacity: 0.65;
  transition: opacity .25s ease, color .25s ease, transform .25s ease;
}
.hero__socials a:hover {
  opacity: 1;
  color: var(--accent);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .hero__mark { font-size: clamp(72px, 22vw, 160px); margin-bottom: clamp(140px, 24vh, 200px); }
}

/* === INTRO (combined: bio text + duo portrait) ======================== */
.intro {
  max-width: 920px;
}

.intro__figure {
  margin: 0 0 clamp(32px, 5vw, 56px);
  padding: 0;
  overflow: hidden;
  border-radius: 6px;
}

.intro__figure img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.95) contrast(1.03);
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .8s ease;
}

.intro__figure:hover img {
  transform: scale(1.015);
  filter: saturate(1) contrast(1.05);
}

.intro__text {
  display: grid;
  gap: 28px;
}

.bio__lead {
  font-family: var(--brand-font);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1.2;
  letter-spacing: 0.002em;
  margin: 0;
  color: var(--ink);
}
.bio__lead em { font-style: italic; color: var(--accent); }

.bio__body {
  max-width: 60ch;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;
  color: var(--ink-dim);
  margin: 0;
}


/* === LISTEN =========================================================== */
.latest {
  max-width: 820px;
}

.latest__pair {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  margin-bottom: clamp(28px, 4vw, 44px);
}

.latest__player {
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-2);
}
.latest__player iframe {
  display: block;
  width: 100%;
  height: 152px;
  border: 0;
  background: transparent;
}

.latest__link {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 4px;
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s ease, letter-spacing .3s ease;
}
.latest__link:hover { color: var(--accent); letter-spacing: 0.28em; }


/* === CATALOGUE ======================================================== */
.catalogue { position: relative; }

.cat {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.cat__row { border-bottom: 1px solid var(--rule); }

.cat__row > a {
  display: grid;
  grid-template-columns: 46px 92px 1fr auto 24px;
  align-items: baseline;
  gap: 18px;
  padding: clamp(18px, 2.4vw, 28px) 4px;
  transition: padding .4s cubic-bezier(.2,.7,.2,1), color .2s ease;
}

.cat__row > a:hover { padding-left: 18px; color: var(--accent); }

.cat__n {
  font-family: var(--mono-font);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.cat__d {
  font-family: var(--mono-font);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cat__t {
  font-family: var(--brand-font);
  font-weight: 400;
  font-size: clamp(22px, 3.6vw, 40px);
  line-height: 1.1;
  color: var(--ink);
  transition: color .2s ease;
}
.cat__t em {
  font-style: italic;
  color: var(--muted);
  font-size: 0.7em;
  margin-left: 4px;
  letter-spacing: 0.01em;
}

.cat__row > a:hover .cat__t { color: var(--accent); }

.cat__l {
  font-family: var(--mono-font);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: right;
}

.cat__go {
  font-family: var(--mono-font);
  color: var(--muted);
  font-size: 14px;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), color .2s ease;
}
.cat__row > a:hover .cat__go { transform: translate(4px, -2px); color: var(--accent); }

/* Floating cover preview on hover (desktop only) */
.cover-preview {
  position: fixed;
  top: 0; left: 0;
  width: 200px;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  pointer-events: none;
  z-index: 45;
  opacity: 0;
  transform: translate3d(-9999px, -9999px, 0) scale(0.96);
  transition: opacity .18s ease, transform .25s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 2px 10px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
}
.cover-preview.is-visible { opacity: 1; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 720px) {
  .cover-preview { display: none; }
  .cat__row > a {
    grid-template-columns: 36px 1fr 20px;
    grid-template-areas:
      "n t go"
      "n l go"
      "n d go";
    row-gap: 4px;
  }
  .cat__n { grid-area: n; align-self: center; }
  .cat__t { grid-area: t; font-size: 24px; }
  .cat__l { grid-area: l; text-align: left; }
  .cat__d { grid-area: d; }
  .cat__go { grid-area: go; align-self: center; }
  .cat__row > a:hover { padding-left: 4px; }
}

/* === STUDIO =========================================================== */

/* === LABELS =========================================================== */
.lbl {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.lbl li { border-bottom: 1px solid var(--rule); }

.lbl a {
  display: grid;
  grid-template-columns: 96px 1fr 32px;
  gap: 28px;
  align-items: center;
  padding: clamp(20px, 2.4vw, 28px) 4px;
  transition: padding .4s cubic-bezier(.2,.7,.2,1), color .2s ease;
}
.lbl a:hover { padding-left: 16px; color: var(--accent); }

.lbl__logo {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  object-fit: contain;
  box-sizing: border-box;
  padding: 8px;
  background: #0f0f11;
  border: 1px solid var(--rule);
  /* Contrast crushes any near-black source backgrounds to pure black so
     all three logos sit on the same panel color. Whites stay white. */
  filter: saturate(0.95) contrast(1.4);
  transition: filter .3s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
/* Per-logo padding evens out the visual size — Traum fills its source
   image edge-to-edge, Blank Dust has lots of native padding. */
.lbl li:nth-child(1) .lbl__logo { padding: 18px; }
.lbl li:nth-child(3) .lbl__logo { padding: 4px; }
.lbl a:hover .lbl__logo { filter: saturate(1.05) contrast(1.4); transform: scale(1.04); }

.lbl__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.lbl__name {
  font-family: var(--brand-font);
  font-weight: 400;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.1;
  color: var(--ink);
  transition: color .2s ease;
}
.lbl a:hover .lbl__name { color: var(--accent); }

.lbl__meta {
  font-family: var(--mono-font);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.lbl__go {
  font-family: var(--mono-font);
  color: var(--muted);
  font-size: 16px;
  text-align: right;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), color .2s ease;
}
.lbl a:hover .lbl__go { transform: translate(4px, -2px); color: var(--accent); }

@media (max-width: 560px) {
  .lbl a {
    grid-template-columns: 72px 1fr 24px;
    gap: 18px;
    padding: 18px 2px;
  }
  .lbl__logo { width: 72px; height: 72px; }
  .lbl__name { font-size: 22px; }
}

.press__k {
  font-family: var(--mono-font);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.press__t {
  font-family: var(--brand-font);
  font-size: clamp(17px, 2vw, 22px);
  color: var(--ink);
  line-height: 1.2;
}

.press__m {
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 560px) {
  .press__list a {
    grid-template-columns: 48px 1fr;
    grid-template-areas:
      "logo t"
      "logo m"
      "logo k";
    column-gap: 14px;
    row-gap: 2px;
    align-items: center;
  }
  .press__logo { grid-area: logo; align-self: center; }
  .press__k { grid-area: k; }
  .press__t { grid-area: t; }
  .press__m { grid-area: m; }
}

/* === CONTACT / FOOTER ================================================= */
.contact {
  border-top: 1px solid var(--rule);
  padding-top: clamp(60px, 8vw, 110px);
  padding-bottom: 48px;
}

.contact__inner {
  display: flex;
  justify-content: flex-end;
}

.contact__mail {
  display: block;
  margin-top: 4px;
  font-family: var(--brand-font);
  font-size: clamp(22px, 4.2vw, 56px);
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--ink);
  word-break: break-all;
  transition: color .2s ease;
}
.contact__mail:hover { color: var(--accent); }

.contact__meta {
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.contact__socials {
  display: grid;
  gap: 10px;
  justify-items: end;
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact__socials a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  color: var(--ink-dim);
  transition: color .2s ease, gap .3s ease;
}
.contact__socials a svg { flex: none; opacity: 0.85; transition: opacity .2s ease; }
.contact__socials a:hover { color: var(--accent); gap: 14px; }
.contact__socials a:hover svg { opacity: 1; }

.contact__foot {
  display: flex;
  justify-content: space-between;
  margin-top: clamp(60px, 8vw, 110px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 560px) {
  .contact__inner { grid-template-columns: 1fr; }
  .contact__socials { text-align: left; }
}

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