/* SSC — Shadow Scribe Collective
   Design system carried over from the approved Claude Design build.
   Fonts load from Google Fonts (see <head>); everything else is self-contained. */

:root {
  --paper: #F5F4F0;
  --paper-2: #EEEDE8;
  --ink: #0A0A0A;
  --ink-2: #171717;
  --line: rgba(10, 10, 10, 0.12);
  --line-strong: rgba(10, 10, 10, 0.24);
  --mute: rgba(10, 10, 10, 0.56);
  --mute-2: rgba(10, 10, 10, 0.72);

  /* Sub-brand accents — low chroma, shared lightness */
  --accent-beats: oklch(0.62 0.12 40);        /* ember */
  --accent-lofi:  oklch(0.62 0.06 240);       /* mist blue */
  --accent-songwriting: oklch(0.42 0.09 20);  /* burgundy */

  --container: 1320px;
  --gutter: 28px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 20px;
}
.skip-link:focus { left: 0; }

/* Dark (inverted) section util */
.invert { background: var(--ink); color: var(--paper); }
.invert .muted { color: rgba(245, 244, 240, 0.6); }

.muted { color: var(--mute); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
.display {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-transform: uppercase;
}
.display-xxl { font-size: clamp(56px, 11.5vw, 220px); }
.display-xl  { font-size: clamp(48px, 8vw, 140px); }
.display-lg  { font-size: clamp(40px, 6vw, 96px); }
.display-md  { font-size: clamp(32px, 4.4vw, 64px); }

.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.mono {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; color: var(--mute-2); max-width: 58ch; }
.invert .lede { color: rgba(245,244,240,.75); }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--paper); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.invert .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.invert .btn:hover { background: transparent; color: var(--paper); }
.invert .btn-ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.invert .btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 11px; }
.arrow-btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 1px solid currentColor;
  transition: gap .25s ease; cursor: pointer;
}
.arrow-btn:hover { gap: 18px; }

hr.hair { border: 0; height: 1px; background: var(--line); margin: 0; }
.invert hr.hair { background: rgba(245,244,240,.18); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  height: 84px; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
}
.nav-brand { display: flex; align-items: center; gap: 16px; cursor: pointer; }
.nav-marks { display: flex; align-items: center; gap: 8px; }
.nav-name { font-size: 15px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.15; }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; margin-right: 12px; }
.nav-link {
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mute-2); position: relative; padding: 8px 0;
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; }
@media (max-width: 980px) {
  .nav-links, .nav-cta .btn-desktop { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: 84px 0 0 0; z-index: 40;
  background: var(--paper); padding: 32px var(--gutter);
  transform: translateY(-110%); transition: transform .35s cubic-bezier(.6,.1,.2,1);
  border-top: 1px solid var(--line);
  overflow-y: auto;
}
.drawer.open { transform: translateY(0); }
.drawer a { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }

/* Grid helpers */
.row { display: grid; gap: 28px; }
.row-2 { grid-template-columns: repeat(2, 1fr); }
.row-3 { grid-template-columns: repeat(3, 1fr); }
.row-4 { grid-template-columns: repeat(4, 1fr); }
.row-12 { grid-template-columns: repeat(12, 1fr); }
@media (max-width: 900px) {
  .row-2, .row-3, .row-4 { grid-template-columns: 1fr; }
  .row-12 { grid-template-columns: repeat(4, 1fr); }
}

/* Sections */
section.block { padding: clamp(80px, 10vw, 160px) 0; }
section.block.tight { padding: clamp(56px, 7vw, 96px) 0; }

.section-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px;
  padding-bottom: 40px; border-bottom: 1px solid var(--line); margin-bottom: 56px;
}
.invert .section-head { border-color: rgba(245,244,240,.18); }
@media (max-width: 700px) { .section-head { grid-template-columns: 1fr; } }

/* Cards */
.card {
  border: 1px solid var(--line); background: var(--paper); padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
  transition: border-color .3s ease, transform .3s ease;
  position: relative; overflow: hidden;
}
.card:hover { border-color: var(--ink); }
.invert .card { background: var(--ink-2); border-color: rgba(245,244,240,.14); }
.invert .card:hover { border-color: var(--paper); }

/* Halftone / texture block */
.tex { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; isolation: isolate; }
.tex .tex-label {
  position: absolute; left: 16px; top: 14px; z-index: 3;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(245,244,240,.7);
}
.tex .tex-meta {
  position: absolute; right: 16px; bottom: 14px; z-index: 3;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(245,244,240,.5);
}
.tex-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.28) 1.2px, transparent 1.6px);
  background-size: 9px 9px;
  mask-image: linear-gradient(120deg, black, transparent 70%);
  -webkit-mask-image: linear-gradient(120deg, black, transparent 70%);
}
.tex-grain::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9' 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.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  mix-blend-mode: overlay; opacity: .35; pointer-events: none;
}
.tex-stripes {
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 10px, transparent 10px 20px),
    var(--ink);
}
.tex-gradient { background: radial-gradient(120% 120% at 30% 30%, #2a2a2a, #050505 70%); }

/* Marquee */
.marquee {
  display: flex; overflow: hidden; gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.invert .marquee { border-color: rgba(245,244,240,.18); }
.marquee-track {
  display: flex; gap: 56px; flex-shrink: 0;
  animation: marquee 50s linear infinite;
  padding-right: 56px; white-space: nowrap;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-weight: 800; font-size: clamp(28px, 4vw, 60px);
  letter-spacing: -0.03em; text-transform: uppercase;
  display: flex; align-items: center; gap: 24px;
}
.marquee-item .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: .5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}

/* Footer */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h5 { margin: 0 0 16px; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245,244,240,.5); }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; color: rgba(245,244,240,.7); }
.footer ul a:hover { color: var(--paper); }

/* Tag */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute-2);
  white-space: nowrap;
}
.invert .tag { border-color: rgba(245,244,240,.2); color: rgba(245,244,240,.7); }
.tag .sw { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* Inline email forms */
.form {
  display: flex; gap: 8px; align-items: stretch;
  border: 1px solid var(--ink); border-radius: 999px; padding: 6px; background: var(--paper);
}
.form input {
  flex: 1; border: 0; background: transparent; min-width: 0;
  padding: 0 18px; font-size: 15px; font-family: inherit; color: var(--ink); outline: none;
}
.form input::placeholder { color: var(--mute); }
.form .btn { padding: 12px 20px; }
.invert .form { background: transparent; border-color: var(--paper); }
.invert .form input { color: var(--paper); }
.invert .form input::placeholder { color: rgba(245,244,240,.5); }
.form-note { margin-top: 12px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* Full contact form fields */
.field { display: block; }
.field .field-label { margin-bottom: 8px; }
.field .field-box { border: 1px solid var(--line); padding: 14px 16px; background: var(--paper); }
.field input, .field textarea, .field select {
  width: 100%; border: 0; background: transparent; outline: none;
  font-family: inherit; font-size: 15px; color: var(--ink); resize: vertical;
}

/* Topic selector */
.topic-btn {
  text-align: left; width: 100%; padding: 22px 0; background: transparent;
  border: 0; border-bottom: 1px solid var(--line); cursor: pointer; color: inherit;
  display: grid; grid-template-columns: 24px 1fr; gap: 20px; align-items: center;
  font-family: inherit;
}
.topic-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--ink); }
.topic-btn[aria-pressed="true"] .topic-dot { background: var(--ink); }
.topic-title { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.topic-desc { font-size: 14px; color: var(--mute); }

/* Shape marks */
.mk { display: inline-block; background: currentColor; flex-shrink: 0; }
.mk-sq { border-radius: 2px; }
.mk-ci { border-radius: 50%; }
.mk-tr {
  background: transparent; width: 0; height: 0;
  border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-bottom: 12px solid currentColor;
}
.mk-14 { width: 14px; height: 14px; }
.mk-18 { width: 18px; height: 18px; }
.mk-10 { width: 10px; height: 10px; }

/* Roster sliding bars */
.persona-list { border-top: 1px solid var(--line); }
.persona-bar {
  position: relative; display: grid;
  grid-template-columns: 60px 1fr 180px 200px;
  align-items: center; gap: 24px; padding: 28px 24px;
  border-bottom: 1px solid var(--line); cursor: pointer; overflow: hidden;
  color: var(--ink); transition: color .5s cubic-bezier(.6,.1,.2,1);
}
.persona-bar-fill {
  position: absolute; inset: 0; z-index: 0; background: var(--ink);
  transform: translateX(-101%); transition: transform .6s cubic-bezier(.6,.1,.2,1);
}
.persona-bar:hover .persona-bar-fill { transform: translateX(0); }
.persona-bar:hover { color: var(--paper); }
.persona-bar > *:not(.persona-bar-fill) { position: relative; z-index: 1; }
.persona-bar-num { color: var(--mute); transition: color .5s ease; }
.persona-bar:hover .persona-bar-num { color: rgba(245,244,240,.6); }
.persona-bar-name {
  font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.025em; line-height: 1;
  transition: transform .5s cubic-bezier(.6,.1,.2,1);
}
.persona-bar:hover .persona-bar-name { transform: translateX(10px); }
.persona-bar-genre { color: var(--mute); transition: color .5s ease; }
.persona-bar:hover .persona-bar-genre { color: rgba(245,244,240,.6); }
@media (max-width: 800px) {
  .persona-bar { grid-template-columns: 44px 1fr auto; padding: 22px 16px; }
}

/* Console frame (players) */
.console {
  border: 1px solid var(--line-strong);
  background: var(--ink-2); color: var(--paper);
  padding: 14px; border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.18);
}
.console-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 14px; border-bottom: 1px solid rgba(245,244,240,.1);
}
.console-dots { display: flex; gap: 6px; }
.console-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(245,244,240,.3); }
.console iframe { display: block; width: 100%; border: 0; border-radius: 4px; background: var(--ink); }

/* Video embeds */
.video-frame { position: relative; aspect-ratio: 16/9; background: var(--ink); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Feature split */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.invert .split { border-color: rgba(245,244,240,.18); }
.split > div { padding: clamp(32px, 5vw, 80px); }
.split > div + div { border-left: 1px solid var(--line); }
.invert .split > div + div { border-left-color: rgba(245,244,240,.18); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* Helpers */
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.flex-center { display: flex; align-items: center; gap: 16px; }
