/* ============================================================
   AMRE — American Record Company
   Black marble · obsidian · silver-veined · archival letterpress
   No frameworks. No webfont lock-in beyond one editorial serif.
   ============================================================ */

:root {
  --bg: #070709;
  --bg-raised: #0d0d11;
  --bg-plate: #111117;
  --ink: #e9e7e2;
  --ink-dim: #a9a9a4;
  --ink-faint: #6d6d6a;
  --silver: #c3c9d4;
  --silver-bright: #eef1f6;
  --accent: #c3c9d4;            /* AMRE = silver. 3313 hosts override to copper below. */
  --accent-dim: rgba(195, 201, 212, 0.55);
  --hairline: rgba(195, 201, 212, 0.16);
  --hairline-strong: rgba(195, 201, 212, 0.32);
  --vein: rgba(210, 215, 225, 0.10);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --caps-track: 0.32em;
  --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-brand="3313"] {
  --accent: #c87a33;
  --accent-dim: rgba(200, 122, 51, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 340;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(195, 201, 212, 0.25); color: var(--silver-bright); }

a { color: inherit; text-decoration: none; }

/* ---------- Marble ground: canvas + gradients + grain ---------- */

.marble-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(30, 32, 40, 0.85) 0%, transparent 55%),
    radial-gradient(100% 80% at 90% 100%, rgba(22, 22, 30, 0.9) 0%, transparent 60%),
    linear-gradient(165deg, #0b0b0f 0%, #060608 45%, #0a0a0e 100%);
}

.marble-field canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* slow diagonal sheen sweeping the stone */
.marble-sheen {
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(210, 216, 228, 0.045) 50%,
    transparent 58%
  );
  animation: sheen-drift 26s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes sheen-drift {
  from { transform: translate3d(-12%, -6%, 0); }
  to   { transform: translate3d(12%, 6%, 0); }
}

/* film grain via inline SVG turbulence */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

/* ---------- Layout primitives ---------- */

.wrap {
  position: relative;
  z-index: 3;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.rule {
  border: 0;
  height: 1px;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--hairline-strong), transparent);
}

/* ---------- Letterpress editorial type ---------- */

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--caps-track);
  text-transform: uppercase;
  color: var(--accent-dim);
}

.display {
  font-size: clamp(44px, 8.5vw, 104px);
  font-weight: 250;
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--silver-bright);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8), 0 0 60px rgba(195, 201, 212, 0.08);
}

.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 10px;
}

.section-head .num {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}

.section-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--silver-bright);
}

.lede {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 340;
  color: var(--ink-dim);
  max-width: 58ch;
  margin: 18px 0 0;
}

.smallcaps {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Header ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--hairline);
  background: rgba(7, 7, 9, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.wordmark {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--silver-bright);
  white-space: nowrap;
}

.wordmark span { color: var(--accent-dim); }

.masthead nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.masthead nav a {
  color: var(--ink-dim);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.masthead nav a:hover { color: var(--silver-bright); }
.masthead nav a.is-live { color: var(--accent); }

@media (max-width: 720px) {
  .masthead nav { gap: 16px; }
  .masthead nav a.hide-sm { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(90px, 16vh, 170px) 0 clamp(60px, 10vh, 120px);
  position: relative;
}

.hero .eyebrow { display: block; margin-bottom: 26px; }

.hero .lede { margin-top: 30px; }

.hero-folio {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Buttons / links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid var(--hairline-strong);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--silver-bright);
  background: rgba(195, 201, 212, 0.06);
}

.btn--solid {
  background: var(--silver-bright);
  border-color: var(--silver-bright);
  color: #0a0a0c;
  font-weight: 600;
}

.btn--solid:hover {
  background: var(--silver);
  border-color: var(--silver);
  color: #060608;
}

.textlink {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 1px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.textlink:hover { color: var(--silver-bright); border-color: var(--silver-bright); }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 10vh, 120px) 0; }

/* ---------- Roster cards ---------- */

.roster-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.plate {
  position: relative;
  display: block;
  background: var(--bg-raised);
  padding: 34px 30px 30px;
  min-height: 240px;
  overflow: hidden;
  transition: background 0.4s ease;
}

.plate:hover { background: var(--bg-plate); }

.plate::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--reveal-ease);
}

.plate:hover::after { transform: scaleX(1); }

.plate .folio {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.plate .folio .no {
  font-size: 12px;
  font-style: italic;
  color: var(--ink-faint);
}

.plate h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--silver-bright);
}

.plate p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-dim);
  line-height: 1.55;
}

.plate .plate-foot {
  margin-top: 22px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dim);
  transition: color 0.3s ease;
}

.plate:hover .plate-foot { color: var(--accent); }

/* ---------- Network cards ---------- */

.network-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

/* ---------- Growth Record figures ---------- */

.record-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.plate--figure { min-height: 200px; }

.plate--figure .figure {
  margin: 0 0 12px;
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 250;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--silver-bright);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8), 0 0 40px rgba(195, 201, 212, 0.07);
}

.record-dateline {
  margin: 26px 0 0;
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

/* ---------- Artist page ---------- */

.artist-hero { padding: clamp(80px, 14vh, 150px) 0 clamp(48px, 8vh, 90px); }

.artist-hero .display { font-size: clamp(40px, 7.5vw, 88px); }

.provenance {
  display: inline-block;
  margin-left: 14px;
  padding: 4px 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-dim);
  vertical-align: middle;
}

.meta-line {
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.meta-line b { color: var(--ink-dim); font-weight: 500; }

.prose {
  font-size: clamp(16px, 1.9vw, 18.5px);
  line-height: 1.75;
  color: var(--ink-dim);
  max-width: 68ch;
}

.prose::first-letter {
  font-size: 3.1em;
  float: left;
  line-height: 0.82;
  padding: 6px 12px 0 0;
  font-weight: 300;
  color: var(--silver-bright);
}

/* Era timeline */
.timeline {
  margin-top: 44px;
  border-left: 1px solid var(--hairline-strong);
  padding-left: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 0 0 36px 34px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--accent);
}

.timeline .t-year {
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.12em;
  color: var(--accent-dim);
}

.timeline .t-era {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-left: 12px;
}

.timeline h4 {
  margin: 6px 0 8px;
  font-size: 20px;
  font-weight: 400;
  color: var(--silver-bright);
}

.timeline p { margin: 0; font-size: 15px; color: var(--ink-dim); max-width: 62ch; }

/* Release ledger */
.ledger { margin-top: 44px; border-top: 1px solid var(--hairline); }

.release {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid var(--hairline);
}

.release .r-art {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid var(--hairline-strong);
  filter: grayscale(0.25) contrast(1.05);
}

.release .r-art-blank {
  width: 96px;
  height: 96px;
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-style: italic;
  color: var(--ink-faint);
  background:
    radial-gradient(60% 60% at 30% 20%, rgba(195, 201, 212, 0.07), transparent 70%),
    var(--bg-raised);
}

.release h4 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 350;
  color: var(--silver-bright);
}

.release h4 .r-year { font-style: italic; font-weight: 300; color: var(--accent-dim); margin-left: 10px; font-size: 16px; }

.release .r-meta {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.release p { margin: 0; font-size: 14.5px; color: var(--ink-dim); max-width: 64ch; }

@media (max-width: 560px) {
  .release { grid-template-columns: 1fr; }
}

/* Personnel + press */
.credits {
  margin-top: 36px;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px 32px;
}

.credits li {
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
  font-size: 15px;
}

.credits .c-name { color: var(--silver-bright); }
.credits .c-role { display: block; font-size: 12.5px; color: var(--ink-faint); margin-top: 3px; }

blockquote.press {
  margin: 36px 0 0;
  padding-left: 26px;
  border-left: 1px solid var(--accent-dim);
  font-size: clamp(18px, 2.4vw, 23px);
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
  max-width: 56ch;
}

blockquote.press cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Ecosystem strip on artist pages */
.eco-strip {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Roster index groupings ---------- */

.group-head { margin: 64px 0 0; }
.group-head:first-of-type { margin-top: 0; }

/* ---------- Footer ---------- */

.colophon {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--hairline);
  padding: 52px 0 60px;
  background: rgba(7, 7, 9, 0.6);
}

.colophon nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 30px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.colophon nav a { color: var(--ink-faint); transition: color 0.3s ease; }
.colophon nav a:hover { color: var(--silver-bright); }
.colophon nav a.quiet { opacity: 0.45; }
.colophon nav a.quiet:hover { opacity: 1; }

.colophon .legal {
  margin-top: 30px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Slow cinematic reveals ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 1.1s var(--reveal-ease),
    transform 1.1s var(--reveal-ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marble-sheen { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .plate::after { transition: none; }
}
