/* TRMOG Records — landing + smartlink.
   Artwork carries the page; type stays quiet and separate from the image.
   One accent (steel, from The Guard ident). Brass stays inside the logo. */

/* Manrope cut to Latin (23 KB WOFF2 instead of the 165 KB TTF); see tools/prepare_assets.py. */
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/Manrope-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  --bg: #000000;
  --raise: #0a0d0f;
  --card: #0b0e11;
  --card-hover: #10141a;
  --line: rgba(229, 224, 213, 0.08);
  --line-2: rgba(229, 224, 213, 0.16);
  --bone: #e5e0d5;
  --text: #c3c7ca;
  --muted: #8a9299;
  --dim: #5d656c;
  --steel: #a9bccb;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1400px;
  --header: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ol, ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  padding: 10px 14px; background: var(--bone); color: var(--bg);
  font-size: 13px; font-weight: 700; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Shared type ---------- */

.kicker {
  display: flex; align-items: center; gap: 14px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.kicker .num { color: var(--steel); font-variant-numeric: tabular-nums; }
.kicker .rule { flex: 0 0 28px; height: 1px; background: var(--line-2); }
.kicker .aside { color: var(--dim); letter-spacing: 0.18em; }

.statement {
  color: var(--bone);
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.22;
  font-weight: 450;
  letter-spacing: -0.018em;
  max-width: 22ch;
  text-wrap: balance;
}

.body-copy { max-width: 46ch; color: var(--muted); font-size: 16.5px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 30;
  height: var(--header);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad);
  background: rgba(0, 0, 0, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--bone); }
.brand img { width: 16px; height: auto; }
.brand-name { font-size: 12px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; }
.brand-name span { color: var(--muted); font-weight: 500; }

.nav { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav a {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--bone); }

.button-line {
  display: inline-flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 16px;
  border: 1px solid var(--line-2);
  color: var(--bone);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
@media (hover: hover) {
  .button-line:hover { background: var(--bone); color: var(--bg); border-color: var(--bone); }
}
.button-line:active { background: var(--bone); color: var(--bg); border-color: var(--bone); }
.button-line svg { width: 15px; height: 15px; flex: none; }

/* ---------- Hero: identity + the smartlink ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  min-height: min(calc(100svh - var(--header)), 980px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 7vh, 96px) var(--pad) clamp(40px, 6vh, 72px);
}
.hero-copy > * { max-width: 540px; }

.hero-signature { width: clamp(300px, 27vw, 420px); margin: 26px 0 28px; }

.lead {
  color: var(--text);
  font-size: clamp(17px, 1.35vw, 19.5px);
  line-height: 1.55;
  max-width: 36ch;
}
.lead .contexts { display: block; margin-top: 10px; color: var(--muted); font-size: 0.86em; letter-spacing: 0.02em; }

.hero-art { position: relative; margin: 0; overflow: hidden; background: #000; }
.hero-art img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 24%;
  /* Feather the seam into the page black; nothing is laid over the figure. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14%);
}
.hero-art figcaption {
  position: absolute; right: var(--pad); bottom: 22px;
  font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(229, 224, 213, 0.34);
}

/* ---------- Playlist rows (landing) ---------- */

.playlists { margin-top: clamp(36px, 5vh, 56px); }
.playlists .kicker { margin-bottom: 14px; }

.pl-list { display: grid; gap: 10px; }

.pl-row {
  --accent: var(--steel);
  position: relative;
  display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; align-items: center; gap: 18px;
  min-height: 88px; padding: 10px 18px 10px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.pl-row::before {
  content: ''; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 2px;
  background: var(--accent); opacity: 0; transition: opacity 0.25s var(--ease);
}
.pl-row:focus-visible::before { opacity: 1; }
.pl-row, .go-card, .dock-item { -webkit-tap-highlight-color: transparent; }
.pl-row:active, .go-card:active, .dock-item:active { background: var(--card-hover); }

.pl-cover { width: 68px; height: 68px; object-fit: cover; }

.pl-text { display: grid; gap: 2px; min-width: 0; }
.pl-meta { font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.pl-title {
  color: var(--bone); font-size: 17px; font-weight: 650; letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pl-desc { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pl-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone);
}
.pl-cta .spotify { width: 18px; height: 18px; }
.pl-cta .arrow { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.pl-cta .label-more { display: none; }

/* Mouse only: on touch screens a tapped row would otherwise stay shifted after coming back from Spotify. */
@media (hover: hover) {
  .pl-row:hover { background: var(--card-hover); border-color: var(--line-2); transform: translateX(3px); }
  .pl-row:hover::before { opacity: 1; }
  .pl-row:hover .arrow { transform: translate(2px, -2px); }
}

/* TikTok, Instagram, Facebook and similar apps open links in their own browser, where a Spotify
   link usually lands on the web player instead of the app. The inline script in <head> marks those
   browsers with data-inapp before the first paint; only then is the tip shown. */
.inapp-hint { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
html[data-inapp] .inapp-hint { display: block; }
.inapp-hint b { color: var(--bone); font-weight: 700; }

/* ---------- Mobile dock (site.js shows it once the hero playlists scroll away) ---------- */

.dock { display: none; }

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 12vh, 140px) var(--pad); border-bottom: 1px solid var(--line); }
.section-inner { max-width: var(--max); margin: 0 auto; }

/* Latest releases (generated by tools/update_releases.py) */
.release-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.release a { display: grid; gap: 3px; -webkit-tap-highlight-color: transparent; }
.release img {
  width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--card); margin-bottom: 12px;
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease);
}
.release-title {
  color: var(--bone); font-size: 15px; font-weight: 700; letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.release-meta { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.release-meta + .release-meta { color: var(--dim); }
@media (hover: hover) {
  .release a:hover img { transform: translateY(-3px); }
  .release a:hover .release-title { color: #fff; }
}
.release a:active img { filter: brightness(1.15); }

/* Label */
.label-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px); align-items: center;
}
.label-media { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.label-media video, .label-media img { width: 100%; height: 100%; object-fit: cover; }
.label-copy .kicker { margin-bottom: 28px; }
.label-copy .body-copy { margin-top: 22px; }

.genres { margin-top: 40px; border-top: 1px solid var(--line); }
.genres li {
  display: grid; grid-template-columns: 44px 1fr; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.genres .num { color: var(--steel); font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; font-variant-numeric: tabular-nums; }
.genres .name { color: var(--bone); font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -0.01em; }

/* Artists */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 5vh, 48px); }

.roster { border-top: 1px solid var(--line); }
.artist {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px;
  padding: clamp(18px, 3vh, 30px) 0; border-bottom: 1px solid var(--line);
}
.artist-name {
  color: var(--bone);
  font-size: clamp(46px, 8.4vw, 132px); line-height: 0.95; font-weight: 500;
  letter-spacing: -0.035em; text-transform: uppercase;
}
.artist-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 560px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 13px;
  border: 1px solid var(--line-2); color: var(--text);
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip svg { width: 12px; height: 12px; }
@media (hover: hover) {
  .chip:hover { background: var(--bone); color: var(--bg); border-color: var(--bone); }
}
.chip:active { background: var(--bone); color: var(--bg); border-color: var(--bone); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.contact-grid .kicker { margin-bottom: 28px; }
.contact-lines { border-top: 1px solid var(--line); }
.contact-line {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  color: var(--bone); font-size: 17px; font-weight: 550;
  transition: padding 0.25s var(--ease), color 0.2s var(--ease);
}
.contact-line small { display: block; color: var(--dim); font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 4px; }
.contact-line .arrow { width: 18px; height: 18px; color: var(--muted); transition: transform 0.25s var(--ease), color 0.2s; }
@media (hover: hover) {
  .contact-line:hover { padding-left: 8px; }
  .contact-line:hover .arrow { transform: translate(2px, -2px); color: var(--bone); }
}

/* Signature + footer */
.signature { padding: clamp(80px, 14vh, 160px) var(--pad) clamp(56px, 9vh, 96px); display: grid; place-items: center; }
.signature img { width: clamp(220px, 22vw, 300px); opacity: 0.94; }

.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  padding: 28px var(--pad) 36px; border-top: 1px solid var(--line);
  color: var(--dim); font-size: 12.5px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer nav a { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.site-footer nav a:hover { color: var(--bone); }

/* ---------- Reveal (only when JS is present, never hides content otherwise) ---------- */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Smartlink page (/go) ---------- */

.page-go body, body.page-go { min-height: 100svh; }
.go {
  width: 100%; max-width: 600px; margin: 0 auto;
  padding: clamp(28px, 6vh, 72px) var(--pad) 40px;
}
.go-head { display: grid; justify-items: center; text-align: center; gap: 18px; margin-bottom: clamp(28px, 5vh, 48px); }
.go-head .signature-link img { width: min(320px, 76vw); }
.go-head h1 { font-size: 12px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }

.go-list { display: grid; gap: 14px; }

.go-card {
  --accent: var(--steel);
  --cover: clamp(104px, 28vw, 148px);
  display: grid;
  grid-template-columns: var(--cover) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto 1fr auto;
  column-gap: 18px;
  padding: 12px;
  background: var(--card); border: 1px solid var(--line);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}
@media (hover: hover) {
  .go-card:hover { border-color: var(--line-2); background: var(--card-hover); transform: translateY(-3px); }
  .go-card:hover .go-cta { background: #fff; }
}
.go-card img { grid-column: 1; grid-row: 1 / 5; width: var(--cover); height: var(--cover); object-fit: cover; }
/* The body's children join the card grid so the Spotify button can span the full width. */
.go-body { display: contents; }
.go-body .pl-meta { grid-column: 2; grid-row: 2; color: var(--dim); }
.go-body strong { grid-column: 2; grid-row: 3; margin: 2px 0; color: var(--bone); font-size: clamp(19px, 2.4vw, 23px); font-weight: 650; letter-spacing: -0.005em; line-height: 1.2; }
.go-body .pl-desc { grid-column: 2; grid-row: 4; align-self: start; white-space: normal; }
.go-cta {
  grid-column: 1 / -1; grid-row: 5;
  margin-top: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 54px; padding: 0 18px;
  background: var(--bone); color: var(--bg);
  font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 0.2s var(--ease);
}
.go-cta span { display: inline-flex; align-items: center; gap: 10px; }
.go-cta svg { width: 18px; height: 18px; }
.go-card:active .go-cta { background: #fff; }

.go .inapp-hint { margin-top: 16px; text-align: center; }
.go-foot { margin-top: clamp(32px, 6vh, 56px); display: grid; justify-items: center; gap: 12px; text-align: center; color: var(--dim); font-size: 12.5px; }
.go-foot a { color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.go-foot a:hover { color: var(--bone); }

/* 404 */
.not-found { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--pad); }
.not-found img { width: 34px; margin: 0 auto 28px; }
.not-found h1 { color: var(--bone); font-size: 28px; letter-spacing: -0.01em; margin-bottom: 10px; }
.not-found p { color: var(--muted); margin-bottom: 28px; }
.not-found .links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .release-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .label-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 900px) {
  :root { --header: 56px; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { order: -1; height: min(36svh, 330px); }
  .hero-art img {
    object-position: 50% 16%;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
    mask-image: linear-gradient(180deg, #000 72%, transparent);
  }
  .hero-art figcaption { display: none; }
  .hero-copy { padding-top: 0; padding-bottom: 48px; }
  .hero-signature { width: min(280px, 74vw); margin: 14px 0 14px; }
  .playlists { margin-top: 26px; }
  .artist { grid-template-columns: 1fr; gap: 14px; }
  .artist-links { justify-content: flex-start; }
  .section-head { flex-direction: column; gap: 10px; }
}

/* Phones. Most visitors arrive here from a Short and came for the playlists, so the first
   screen is: knight band, logo, both playlists with a clear Spotify button. The band takes
   whatever height is left, so both playlists fit from an iPhone SE up. */
@media (max-width: 640px) {
  .hero-art {
    height: clamp(120px, calc(100vh - var(--header) - 384px), 300px);
    height: clamp(120px, calc(100svh - var(--header) - 384px), 300px);
  }
  /* In-app browsers also show the tip under the cards: give it room on the first screen. */
  html[data-inapp] .hero-art {
    height: clamp(120px, calc(100vh - var(--header) - 440px), 300px);
    height: clamp(120px, calc(100svh - var(--header) - 440px), 300px);
  }
  .hero-art img { object-position: 50% 38%; }
  .hero-copy { padding-bottom: 44px; }
  .hero-signature { width: min(230px, 62vw); margin: 12px 0 0; }
  .playlists { order: 2; margin-top: 22px; }
  .playlists .kicker { margin-bottom: 12px; }
  .lead { order: 3; margin-top: 30px; font-size: 16px; }

  /* Two auto rows, no fr: a 1fr row stretches when the cover spans it. */
  .pl-row {
    grid-template-columns: 82px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: 14px; row-gap: 0;
    min-height: 0; padding: 12px;
    border-color: var(--line-2);
  }
  .pl-cover { grid-row: 1 / 3; width: 82px; height: 82px; }
  .pl-text { grid-column: 2; grid-row: 1; gap: 1px; }
  .pl-meta { display: none; }
  .pl-title { line-height: 1.25; }
  .pl-desc { font-size: 13px; line-height: 1.45; }
  .pl-cta {
    grid-column: 2; grid-row: 2; align-self: end; justify-self: start;
    height: 34px; padding: 0 14px 0 11px; gap: 8px;
    background: var(--bone); color: #000;
    font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em;
  }
  .pl-cta .spotify { width: 16px; height: 16px; }
  .pl-cta .label-more { display: inline; }
  .pl-cta .arrow { display: none; }
  .pl-row:active .pl-cta { background: #fff; }

  /* Releases: one swipeable row; the third cover peeks in so the row reads as scrollable. */
  .release-list {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 4px; scroll-padding: 0 var(--pad);
    scrollbar-width: none;
  }
  .release-list::-webkit-scrollbar { display: none; }
  .release { flex: 0 0 44vw; scroll-snap-align: start; }

  /* The dock replaces the header button on phones. */
  .js .site-header .button-line { display: none; }
  .js .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-2);
    transform: translateY(110%); visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .js .dock.is-shown { transform: none; visibility: visible; transition: transform 0.35s var(--ease), visibility 0s; }
  .dock-item {
    display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 9px;
    min-height: 54px; padding: 7px;
    background: var(--card); border: 1px solid var(--line-2);
  }
  .dock-item img { width: 38px; height: 38px; object-fit: cover; }
  .dock-item span { display: grid; min-width: 0; }
  .dock-item strong, .dock-item small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dock-item strong { color: var(--bone); font-size: 13px; font-weight: 700; line-height: 1.3; }
  .dock-item small { color: var(--muted); font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
  .js .site-footer { padding-bottom: calc(36px + 72px + env(safe-area-inset-bottom)); }

  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
