/* ── UNIT-13 INDUSTRIES — Global Styles ──────────────────────────────────── */

/* Fonts */
@font-face {
  font-family: 'GC Nordix';
  src: url('fonts/GCNordixDemo-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Nippo — primary body / UI face */
@font-face {
  font-family: 'Nippo';
  src: url('fonts/Nippo-Extralight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nippo';
  src: url('fonts/Nippo-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nippo';
  src: url('fonts/Nippo-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nippo';
  src: url('fonts/Nippo-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nippo';
  src: url('fonts/Nippo-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Space+Mono&display=swap');

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  /* Color — near-monochromatic, blood-red accent */
  --black: #000000;
  --ink-1: #0a0a0a;
  --ink-2: #111111;
  --ink-3: #1a1a1a;
  --white: #ffffff;
  --bone: #f0f0f0;
  --red: #000000;
  --red-hot: #444444;
  --red-deep: #222222;
  --line-white: rgba(240,240,240,0.14);
  --line-white-strong: rgba(240,240,240,0.28);
  --bone-70: rgba(240,240,240,0.7);
  --bone-50: rgba(240,240,240,0.5);
  --bone-35: rgba(240,240,240,0.35);

  /* Semantic aliases (dark default) */
  --bg: var(--black);
  --surface-1: var(--ink-1);
  --text-strong: var(--white);
  --text-body: var(--bone);
  --text-muted: var(--bone-50);
  --text-faint: var(--bone-35);
  --accent: var(--red);
  --accent-hover: var(--red-hot);
  --accent-press: var(--red-deep);
  --border: var(--line-white);
  --border-strong: var(--line-white-strong);

  /* Typography */
  --font-display: 'GC Nordix', 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Nippo', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
  --weight-light: 300;
  --weight-regular: 400;

  /* Spacing (4px base) */
  --space-2: 0.5rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;
  --space-16: 8rem;
  --gutter: 2rem;
  --gutter-wide: 3.5rem;
  --page-margin: 2.5rem;

  /* Motion — fast, cold */
  --dur-fast: 150ms;
  --dur-base: 200ms;
  --ease-in: cubic-bezier(0.4,0,1,1);
  --ease-std: cubic-bezier(0.4,0,0.2,1);
  --hairline: 1px;
}

/* Light theme — used by landing page sections */
[data-theme="light"] {
  --bg: #ffffff;
  --surface-1: #f4f4f4;
  --text-strong: #000000;
  --text-body: #0a0a0a;
  --text-muted: rgba(10,10,10,0.56);
  --text-faint: rgba(10,10,10,0.38);
  --border: rgba(10,10,10,0.14);
  --border-strong: rgba(10,10,10,0.30);
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text-body);
  font-family: var(--font-body); font-weight: var(--weight-light);
  font-size: 1rem; line-height: 1.55;
  /* brushed-metal (RVS) texture, softly washed so it reads as light industrial paper */
  background-color: #e9e9e9;
  background-image:
    linear-gradient(rgba(255,255,255,0.55), rgba(255,255,255,0.62)),
    url('rvs.jpeg');
  background-size: cover, 140% auto;
  background-position: center, center;
  background-attachment: fixed, fixed;
  background-repeat: no-repeat, no-repeat;
  background-blend-mode: normal, luminosity;
}
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,h5,h6 { margin: 0; font-family: var(--font-display); font-weight: var(--weight-regular); text-transform: uppercase; line-height: 0.92; color: var(--text-strong); }
p { margin: 0 0 1rem; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ── Layout helpers ──────────────────────────────────────────────────────── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--page-margin); }
.display { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; line-height: 0.92; color: var(--text-strong); margin: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--page-margin);
  transition: background var(--dur-base) var(--ease-in), border-color var(--dur-base) var(--ease-in);
  border-bottom: 1px solid transparent;
}
/* always visible — white plate once past hero */
.nav[data-stuck="true"] { background: rgba(255,255,255,0.96); border-bottom-color: rgba(10,10,10,0.14); }
.nav__mark { display: flex; align-items: center; }
.nav__mark img { height: 34px; width: auto; display: block; filter: brightness(1.6); transition: filter var(--dur-base) var(--ease-in); }
.nav[data-stuck="true"] .nav__mark img { filter: brightness(0); }
.nav__links { display: flex; gap: 30px; }
.nav__links a { font-size: 14px; color: rgba(255,255,255,0.82); text-transform: lowercase; letter-spacing: 0.02em; padding-bottom: 3px; border-bottom: 1px solid transparent; transition: color var(--dur-fast) var(--ease-in), border-color var(--dur-fast) var(--ease-in); }
.nav__links a:hover { color: #fff; border-bottom-color: var(--red); }
.nav[data-stuck="true"] .nav__links a { color: rgba(10,10,10,0.56); }
.nav[data-stuck="true"] .nav__links a:hover { color: #555; border-bottom-color: #555; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; background: #050505;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url('hero-doors.png') center / cover no-repeat;
  filter: grayscale(0.25) contrast(1.1) brightness(1.22);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(125% 95% at 50% 44%, rgba(5,5,5,0.18) 38%, rgba(5,5,5,0.65) 100%),
    linear-gradient(to bottom, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0.18) 26%, rgba(5,5,5,0.18) 64%, rgba(5,5,5,0.88) 100%);
}
.hero__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.18; z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner { position: relative; z-index: 3; width: 100%; text-align: center; }
.hero__logo { width: min(72vw, 880px); filter: invert(1); margin: 0 auto; display: block; }
.hero__tag { margin-top: 30px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.42em; text-transform: uppercase; color: rgba(255,255,255,0.66); }
.hero__cue {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.5);
}
.hero__cue span { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.3em; font-size: 11px; }
.hero__cue i { display: block; width: 1px; height: 42px; background: rgba(255,255,255,0.4); animation: cue 1.8s var(--ease-in) infinite; }
@keyframes cue { 0%,100%{ opacity:.25; transform:scaleY(.6); transform-origin:top; } 50%{ opacity:.8; transform:scaleY(1); } }

/* ── Section frame ───────────────────────────────────────────────────────── */
section.block { padding: 0; }
section.block > .wrap { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; margin-bottom: var(--space-8);
  border-top: var(--sep-width, 1px) solid var(--sep-color, var(--border-strong));
  padding-top: 22px;
  width: 100vw; position: relative;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  padding-left: var(--page-margin); padding-right: var(--page-margin);
}
.section-head h2 { font-size: clamp(44px, 6vw, 84px); }
.section-head .idx { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); letter-spacing: 0.1em; white-space: nowrap; }

/* ── Releases rail ───────────────────────────────────────────────────────── */
.rail {
  display: flex; gap: var(--gutter);
  overflow-x: auto; overflow-y: hidden;
  padding: 6px 0 26px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { height: 2px; }
.rail::-webkit-scrollbar-track { background: var(--border); }
.rail::-webkit-scrollbar-thumb { background: var(--red); }

.card { flex: 0 0 300px; scroll-snap-align: start; cursor: pointer; }
.card__art { position: relative; width: 300px; height: 300px; background: #0b0b0b; overflow: hidden; }
.card__art img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(0.35) contrast(1.12) brightness(0.92); transition: filter var(--dur-base) var(--ease-in), transform var(--dur-base) var(--ease-in); }
.card__ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.018) 0 2px, transparent 2px 7px), radial-gradient(120% 120% at 50% 30%, #161616 0%, #0a0a0a 70%);
}
.card__ph .pk { width: 56%; height: auto; opacity: 0.16; filter: brightness(2); }
.card__ph .pc { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em; color: rgba(255,255,255,0.42); text-transform: uppercase; }
.card__veil {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.25) 48%, rgba(0,0,0,0) 78%);
  opacity: 0; transition: opacity var(--dur-base) var(--ease-in);
}
.card:hover .card__art img { filter: grayscale(0.1) contrast(1.15) brightness(0.7); transform: scale(1.03); }
.card:hover .card__veil { opacity: 1; }
.card__play {
  position: absolute; top: 16px; left: 16px;
  width: 46px; height: 46px; border: 1px solid rgba(255,255,255,0.6);
  display: grid; place-items: center; background: rgba(0,0,0,0.35);
  transition: background var(--dur-fast) var(--ease-in), border-color var(--dur-fast) var(--ease-in);
}
.card__play svg { width: 14px; height: 14px; }
.card__play polygon { fill: #fff; }
.card__play .pause { display: none; }
.card:hover .card__play, .card.is-playing .card__play { background: var(--red); border-color: var(--red); }
.card__info { display: flex; flex-direction: column; gap: 8px; }
.card__meta { display: flex; gap: 14px; flex-wrap: wrap; }
.card__meta span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.card__links { display: flex; gap: 16px; margin-top: 2px; }
.card__links a { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: #fff; text-transform: lowercase; padding-bottom: 2px; border-bottom: 1px solid rgba(255,255,255,0.4); }
.card__links a:hover { border-bottom-color: var(--red); color: var(--red); }
.eq { position: absolute; top: 20px; right: 16px; z-index: 3; display: none; gap: 3px; align-items: flex-end; height: 22px; }
.card.is-playing .eq { display: flex; }
.eq i { width: 3px; background: var(--red); height: 40%; animation: eq 0.8s var(--ease-std) infinite; }
.eq i:nth-child(2){ animation-delay:.18s; } .eq i:nth-child(3){ animation-delay:.36s; } .eq i:nth-child(4){ animation-delay:.1s; }
@keyframes eq { 0%,100%{ height:25%; } 50%{ height:100%; } }
.card__cap { display: flex; flex-direction: column; gap: 5px; padding-top: 14px; }
.card__cap .c-cat { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--text-muted); }
.card__cap .c-title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; font-size: 26px; line-height: 0.96; color: var(--text-strong); }
.card:hover .card__cap .c-title { color: #555; }
.card__cap .c-artist { font-size: 13px; color: var(--text-muted); text-transform: capitalize; }
.rail-hint { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--text-faint); text-transform: uppercase; margin-top: 4px; }
.rail-empty { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); padding: 40px 0; }

/* catalogue sub-heading */
.catalogue-head { display: flex; align-items: baseline; gap: 16px; margin-top: var(--space-10); margin-bottom: var(--space-5); border-top: 1px solid var(--border); padding-top: 18px; }
.catalogue-label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.18em; font-size: 13px; color: var(--text-muted); }
/* dim the archive rail slightly to let the primary rail read as hero */
.rail--dim .card__cap .c-title { font-size: 22px; }
.rail--dim .card { flex-basis: 240px; }
.rail--dim .card__art { width: 240px; height: 240px; }

/* ── Card caption — each row on its own line ─────────────────────────────── */
.card__cap .c-cat,
.card__cap .c-title,
.card__cap .c-artist { display: block; }

/* ── Upcoming card — art left, big countdown right, caption spanning below ── */
.card--upcoming {
  flex: 0 0 600px;                              /* wider than a standard card */
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr); /* art | countdown */
  grid-template-rows: 240px auto;              /* row 1: art+countdown, row 2: caption */
  grid-template-areas:
    "art countdown"
    "cap cap";
  column-gap: 0;
}
.card--upcoming .card__art {
  grid-area: art;
  width: 240px; height: 240px;
}
.card--upcoming .card__cap { grid-area: cap; }

/* countdown panel — to the RIGHT of the artwork, big black text on white */
.card--upcoming .card__countdown {
  grid-area: countdown;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  gap: 18px;
  padding: 20px 28px;
  border-left: 1px solid var(--border);
}
.cd-digits { display: flex; align-items: flex-end; gap: 2px; }
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cd-unit b {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 400; color: #000; line-height: 1;
  letter-spacing: 0.02em;
}
.cd-unit small {
  font-family: var(--font-mono); font-size: 9px;
  color: rgba(0,0,0,0.38); text-transform: uppercase; letter-spacing: 0.14em;
}
.cd-sep {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 44px);
  color: rgba(0,0,0,0.18); line-height: 1; padding-bottom: 14px;
}
.cd-presave {
  display: inline-block;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.22em; font-size: 12px;
  color: #000; background: transparent; border: 1px solid #000;
  padding: 10px 20px; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-in), color var(--dur-fast) var(--ease-in);
}
.cd-presave:hover { background: #000; color: #fff; }
/* caption sits below the full row for upcoming cards */
.card--upcoming .card__cap { padding-top: 12px; }

/* ── Form error state ────────────────────────────────────────────────────── */
.form-error { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: #c00; padding: 10px 0; border-bottom: 1px solid #c00; margin-bottom: var(--space-4); }

/* ── Hero video ──────────────────────────────────────────────────────────── */
.hero__video {
  position: absolute; left: 0; right: 0; top: 0; z-index: 1;
  width: 100%;
  /* oversized + top-anchored so the bottom strip (and its watermark) is clipped
     by the hero's overflow:hidden */
  height: 112%;
  object-fit: cover; object-position: top center;
  opacity: 0;
  transition: opacity 1.2s ease;
  filter: grayscale(0.4) contrast(1.05) brightness(0.82);
}
.hero__video.ready { opacity: 1; }

/* ── Now-playing bar ─────────────────────────────────────────────────────── */
.nowbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  transform: translateY(100%); transition: transform var(--dur-base) var(--ease-in);
  background: #000; color: #fff; border-top: 1px solid var(--red);
  display: flex; align-items: center; gap: 18px; padding: 12px var(--page-margin);
}
.nowbar.show { transform: translateY(0); }
.nowbar .np-eq { display: flex; gap: 3px; align-items: flex-end; height: 18px; }
.nowbar .np-eq i { width: 3px; background: var(--red); animation: eq 0.8s var(--ease-std) infinite; }
.nowbar .np-eq i:nth-child(2){ animation-delay:.2s; } .nowbar .np-eq i:nth-child(3){ animation-delay:.4s; }
.nowbar .np-txt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; }
.nowbar .np-txt b { color: #fff; font-weight: 400; }
.nowbar .np-txt span { color: rgba(255,255,255,0.5); }
.nowbar .np-label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.24em; font-size: 11px; color: var(--red); }
.nowbar .np-close { margin-left: auto; background: none; border: 0; color: rgba(255,255,255,0.6); cursor: pointer; font-size: 18px; line-height: 1; }
.nowbar .np-close:hover { color: #fff; }

/* ── Submissions form ────────────────────────────────────────────────────── */
.subs-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--gutter-wide); align-items: start; }
.subs-intro .lead { font-size: 18px; color: var(--text-body); max-width: 34ch; margin: 0 0 var(--space-6); }
.subs-intro h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.22em; font-size: 12px; color: var(--text-muted); margin: 0 0 14px; font-weight: 400; }
.subs-intro a { display: block; font-size: 15px; margin-bottom: 10px; width: fit-content; padding-bottom: 2px; border-bottom: 1px solid transparent; transition: border-color var(--dur-fast) var(--ease-in); }
.subs-intro a:hover { border-bottom-color: var(--red); }
.subs-intro .channels { margin-top: var(--space-6); }
form.subs { display: flex; flex-direction: column; gap: var(--space-5); }
.field { display: flex; flex-direction: column; gap: 9px; }
.field > label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.2em; font-size: 12px; color: var(--text-muted); }
.field input, .field textarea { font: inherit; font-family: var(--font-body); font-weight: var(--weight-light); font-size: 16px; color: var(--text-strong); background: transparent; border: 0; border-bottom: 1px solid var(--border-strong); border-radius: 0; padding: 9px 0; outline: none; transition: border-color var(--dur-fast) var(--ease-in); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--red); }
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.links-stack { display: flex; flex-direction: column; gap: 12px; }
.link-row { display: flex; align-items: center; gap: 12px; }
.link-row input { flex: 1; }
.link-row .rm { background: none; border: 1px solid var(--border-strong); color: var(--text-muted); width: 34px; height: 34px; flex: none; cursor: pointer; font-size: 15px; line-height: 1; transition: border-color var(--dur-fast) var(--ease-in), color var(--dur-fast) var(--ease-in); }
.link-row .rm:hover { border-color: var(--red); color: var(--red); }
.add-link { align-self: flex-start; background: none; border: 0; cursor: pointer; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--text-muted); text-transform: lowercase; padding: 4px 0; border-bottom: 1px solid var(--border-strong); white-space: nowrap; transition: color var(--dur-fast) var(--ease-in), border-color var(--dur-fast) var(--ease-in); }
.add-link:hover { color: var(--red); border-bottom-color: var(--red); }
.submit { align-self: flex-start; margin-top: var(--space-2); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.16em; font-size: 18px; color: #fff; background: #000; border: 1px solid #000; border-radius: 0; padding: 15px 38px; cursor: pointer; transition: background var(--dur-fast) var(--ease-in), color var(--dur-fast) var(--ease-in); }
.submit:hover { background: var(--red); border-color: var(--red); }
.form-note { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text-faint); }
.form-done { font-family: var(--font-mono); font-size: 13px; color: var(--red); letter-spacing: 0.06em; display: none; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer { background: transparent; color: var(--text-muted); border-top: 1px solid var(--border); padding: 26px var(--page-margin); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
footer img { height: 22px; width: auto; filter: brightness(0); display: block; }
footer .mono { font-size: 11px; letter-spacing: 0.1em; color: var(--text-faint); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .subs-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}
@media (max-width: 760px) {
  .nav__links { gap: 18px; }
  .card, .card__art { flex-basis: 78vw; width: 78vw; }
  .card__art { height: 78vw; }
  .row2 { grid-template-columns: 1fr; }
  :root { --page-margin: 1.25rem; }
}
