/* =====================================================================
   BlockSeed Artists — Roster shell
   ---------------------------------------------------------------------
   The root landing for artists.blockseedlabs.com. A tasteful on-brand
   SHELL listing the digital-identity roster (one card today: Kyloe),
   designed to scale to more cards. Shares the design language of the
   /kyloe homepage (tokens, atmosphere, editorial restraint) so the
   roster → artist transition feels like one world.
   Matches DESIGN.md: teal+gold on deep navy, Cabinet Grotesk display,
   sharp edges, left-aligned editorial layout.
   ===================================================================== */

/* =====================================================================
   SELF-HOSTED FONTS — no render-blocking CDNs (matches .com approach)
   ===================================================================== */
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('/assets/fonts/cabinet-grotesk-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('/assets/fonts/cabinet-grotesk-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* palette (DESIGN.md) */
  --bg: #0d1117;
  --bg-soft: #11161e;
  --bg-deep: #080b10;
  --teal: #2d9b7b;
  --teal-light: #5bb89a;
  --gold: #c4a46c;
  --gold-dim: #8b7448;
  --gold-bright: #d6b97e;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --text-dim: #5a564c;
  --rule: #1f2530;
  --rule-bright: #2a3140;

  --font-display: 'Cabinet Grotesk', 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --max-w: 1180px;
  --gutter-mobile: 22px;
  --gutter-desktop: 72px;

  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-soft: cubic-bezier(0.16, 0.68, 0.4, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(ellipse 80% 60% at 30% 0%, #131a25 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 90% 100%, #0e151f 0%, transparent 55%),
    var(--bg);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--gold);
  text-decoration: none;
}

main {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter-mobile);
  position: relative;
  z-index: 2;
}

/* skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--bg);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 1000;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =====================================================================
   ATMOSPHERE — film grain + slow mist (shared with /kyloe)
   ===================================================================== */
.atmos {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.atmos-grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.atmos-mist {
  position: absolute;
  inset: -10% -10%;
  opacity: 0.16;
  background:
    radial-gradient(ellipse 50% 30% at 12% 18%, rgba(45, 155, 123, 0.07), transparent 70%),
    radial-gradient(ellipse 60% 40% at 88% 78%, rgba(196, 164, 108, 0.05), transparent 70%);
  filter: blur(20px);
  animation: mist-drift 32s ease-in-out infinite alternate;
}
@keyframes mist-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(2%, -1.5%, 0) scale(1.04); }
}

/* =====================================================================
   CHAPTER MARKER — editorial section break (shared with /kyloe)
   ===================================================================== */
.chapter {
  border: 0;
  position: relative;
  margin: 64px 0;
  height: 1px;
  background: transparent;
}
.chapter::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(45, 155, 123, 0.40) 0%, rgba(45, 155, 123, 0.18) 55%, transparent 100%);
  transform: scaleX(1);
  transform-origin: left center;
}
.chapter::before {
  content: attr(data-chapter);
  position: absolute;
  top: -8px;
  left: 0;
  /* the label's own background masks the rule → a true gap, not a clip */
  background: var(--bg);
  padding: 0 16px 0 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--teal-light);
  z-index: 1;
}

/* draw-in on scroll into view (gated by JS + reduced-motion) */
.js-enabled .reveal-chapter::after {
  transform: scaleX(0);
  transition: transform 700ms var(--ease-out-quint);
}
.js-enabled .reveal-chapter::before {
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 420ms ease-out 260ms, transform 420ms ease-out 260ms;
}
.js-enabled .reveal-chapter.is-visible::after {
  transform: scaleX(1);
}
.js-enabled .reveal-chapter.is-visible::before {
  opacity: 1;
  transform: translateY(0);
}

/* scroll reveal for sections */
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 560ms var(--ease-out-quint), transform 560ms var(--ease-out-quint);
}
.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================================
   HEADER
   ===================================================================== */
.roster-head {
  padding: 84px 0 8px;
}
.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin: 0 0 26px;
}
.eyebrow-mark {
  color: var(--gold-dim);
}
.eyebrow-text {
  color: var(--teal-light);
}
.roster-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(60px, 17vw, 168px);
  line-height: 0.86;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  margin-left: -0.04em;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}
.roster-lede {
  font-family: var(--font-body);
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  max-width: 48ch;
}

/* =====================================================================
   ROSTER LIST + CARD
   A featured identity reads as a FEATURE: a real media band (cropped
   portrait, object-fit cover) beside oversized type + metadata. Plus a
   ghost coming-soon slot so the roster never reads as empty.
   Sharp edges, no rounded corners, no SaaS shadow.
   ===================================================================== */
.roster {
  padding: 8px 0 8px;
}
.roster-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.roster-card-wrap {
  border-bottom: 1px solid var(--rule);
}

/* --- Featured card (the whole row is the link) --- */
.roster-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 28px 6px;
  color: var(--text);
  position: relative;
  transition:
    background-color 200ms var(--ease-out-soft),
    padding-left 220ms var(--ease-out-soft);
}
.roster-card::before {
  /* teal left-edge chisel mark that grows on hover */
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 64%;
  background: var(--teal);
  transition: width 240ms var(--ease-out-quint);
}
.roster-card:hover,
.roster-card:focus-visible {
  outline: none;
  background-color: rgba(45, 155, 123, 0.04);
  padding-left: 20px;
}
.roster-card:hover::before,
.roster-card:focus-visible::before {
  width: 3px;
}

/* media band — cropped portrait fills it (object-fit cover) */
.card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(160deg, #11161e 0%, #08090d 100%);
  border-top: 1px solid var(--rule-bright);
  border-bottom: 1px solid var(--rule);
}
.card-media::after {
  /* navy vignette + teal seam, folds the photo into the page */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 120% at 50% 28%, transparent 55%, rgba(8, 9, 13, 0.5) 100%),
    linear-gradient(180deg, transparent 60%, rgba(8, 9, 13, 0.45) 100%);
}
.card-media-img {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  object-fit: cover;
  object-position: 50% 28%;
  opacity: 0.96;
  filter: saturate(0.86) contrast(1.04) brightness(0.97);
  transform: translate3d(0, var(--parallax, 0px), 0) scale(1);
  transition: transform 500ms var(--ease-out-soft);
  will-change: transform;
}
.roster-card:hover .card-media-img,
.roster-card:focus-visible .card-media-img {
  transform: translate3d(0, var(--parallax, 0px), 0) scale(1.04);
}
.card-num {
  position: absolute;
  left: 14px;
  top: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-shadow: 0 1px 6px rgba(8, 9, 13, 0.7);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.card-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 0.92;
  letter-spacing: 0.005em;
  color: var(--text);
}
.card-line {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.9vw, 17px);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 46ch;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.card-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 3px 8px;
}
.card-coords {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

.card-visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal-light);
  white-space: nowrap;
}
.card-visit-arrow {
  transition: transform 220ms var(--ease-out-soft);
}
.roster-card:hover .card-visit-arrow,
.roster-card:focus-visible .card-visit-arrow {
  transform: translateX(5px);
}

/* --- Ghost coming-soon slot --- */
.roster-ghost {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 28px 6px;
  position: relative;
}
.ghost-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(135deg, rgba(45, 155, 123, 0.04) 0 10px, transparent 10px 20px),
    linear-gradient(160deg, #0e131b 0%, #080b10 100%);
  border: 1px dashed var(--rule-bright);
}
.ghost-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  position: absolute;
  left: 14px;
  top: 12px;
}
.ghost-name {
  color: var(--text-dim);
  font-weight: 800;
  font-size: clamp(26px, 4.4vw, 40px);
}
.ghost-tag {
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--rule-bright);
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  padding: 56px 0 72px;
  border-top: 1px solid var(--rule);
  margin-top: 72px;
}
.footer-mission {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: -0.005em;
  color: var(--gold);
  margin: 0 0 16px;
}
.footer-text {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0;
}
.footer a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
}
.footer a:hover {
  color: var(--teal-light);
  border-bottom-color: var(--teal-light);
}

/* =====================================================================
   Desktop (>= 760px)
   ===================================================================== */
@media (min-width: 760px) {
  main {
    padding: 0 var(--gutter-desktop);
  }
  .roster-head {
    padding: 120px 0 16px;
  }
  .chapter {
    margin: 88px 0;
  }
  /* featured card becomes a 2-col feature: media left, body right */
  .roster-card,
  .roster-ghost {
    grid-template-columns: minmax(280px, 0.9fr) 1.1fr;
    align-items: center;
    gap: 40px;
    padding: 40px 6px;
  }
  .card-media,
  .ghost-media {
    aspect-ratio: 4 / 5;
    max-height: 420px;
  }
  .footer {
    padding: 72px 0 88px;
    margin-top: 96px;
  }
}

/* =====================================================================
   Reduced motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
  .atmos-mist { animation: none; }
  .js-enabled .reveal,
  .js-enabled .reveal-chapter::before {
    opacity: 1 !important;
    transform: none !important;
  }
  .js-enabled .reveal-chapter::after {
    transform: scaleX(1) !important;
  }
  .card-media-img {
    transform: none !important;
  }
}

/* =====================================================================
   Focus ring
   ===================================================================== */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
