/* ============================================================
   HIP PRIEST — Mark E. Smith / The Fall voice model page
   House base: The Elect terminal-grimoire aesthetic
   Persona register: Northern post-punk, clipped and contemptuous
   Accent: cold grey + sodium-yellow on near-black
   WITHHELD model — no weights, no download, no demo samples
   Distinct accent from the sibling pages; same grimoire family
   ============================================================ */

:root {
  /* ── House base (inherited from The Elect) ── */
  --bg:          #060606;
  --bg-card:     #0b0b0a;
  --bg-header:   #080807;
  --text:        #d8d6cc;   /* cold off-white — cheap-print paper */
  --text-dim:    #807d72;
  --text-muted:  #4a473f;
  --border:      #1a1a16;
  --border-dim:  #110f0c;
  --font-mono:   'Courier New', 'Lucida Console', 'DejaVu Sans Mono', monospace;

  /* ── Hip Priest / MES: sodium-yellow + cold grey ── */
  --void:        #000000;
  --amber:       #e6c233;          /* peak sodium yellow */
  --amber-mid:   #c0a020;          /* main accent (borders/surfaces) */
  --amber-dim:   #6f5c14;          /* border / dim accent (NON-text) */
  --amber-ember: #463a10;          /* very dark surface (NON-text) */
  --amber-glow:  rgba(214, 180, 50, 0.12);
  --amber-faint: rgba(214, 180, 50, 0.05);
  /* ── Legible accent TEXT — WCAG AA on the dark bg. The dim/ember/mid
     above stay for borders & surfaces; accent TEXT uses these so
     labels/links/headings clear 4.5:1 (3:1 large). Sodium-lamp yellow,
     not gold, not green. ── */
  --amber-text:    #d6b53a;        /* labels, links, captions */
  --amber-text-hi: #ecc94b;        /* peak/hover lift */
  --portrait-tint: #b8b3a0;        /* cold grey so the dense block portrait
                                      reads as a face, not a slab */
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── TEXTURE LAYERS ── */

/* Film grain / static */
.grain {
  position: fixed;
  inset: -200%;
  z-index: 999;
  pointer-events: none;
  width: 400%; height: 400%;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  animation: grain 0.5s steps(1) infinite;
}

@keyframes grain {
  0%   { transform: translate(0,0); }
  10%  { transform: translate(-3%,-4%); }
  20%  { transform: translate(-6%,2%); }
  30%  { transform: translate(3%,-1%); }
  40%  { transform: translate(-1%,6%); }
  50%  { transform: translate(-5%,1%); }
  60%  { transform: translate(2%,4%); }
  70%  { transform: translate(-4%,-2%); }
  80%  { transform: translate(4%,-3%); }
  90%  { transform: translate(1%,5%); }
  100% { transform: translate(-2%,-5%); }
}

/* Cold scanline + ember texture — terminal grimoire, barely visible */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 3px,
      rgba(180, 160, 60, 0.012) 3px,
      rgba(180, 160, 60, 0.012) 4px
    ),
    radial-gradient(1px 1px at 12% 18%, rgba(214,180,50,0.16) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 8%,  rgba(216,214,204,0.10) 0%, transparent 100%),
    radial-gradient(1px 1px at 67% 22%, rgba(214,180,50,0.10) 0%, transparent 100%),
    radial-gradient(1px 1px at 82% 5%,  rgba(216,214,204,0.12) 0%, transparent 100%),
    radial-gradient(1px 1px at 9%  44%, rgba(214,180,50,0.08) 0%, transparent 100%),
    radial-gradient(1px 1px at 91% 38%, rgba(216,214,204,0.08) 0%, transparent 100%),
    radial-gradient(1px 1px at 48% 60%, rgba(214,180,50,0.07) 0%, transparent 100%),
    radial-gradient(1px 1px at 24% 72%, rgba(216,214,204,0.08) 0%, transparent 100%),
    radial-gradient(1px 1px at 77% 66%, rgba(214,180,50,0.10) 0%, transparent 100%);
}

/* ── LAYOUT ── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* ============================================================
   HEADER — cheap-print broadsheet treatment
   ============================================================ */

.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--amber-dim);
  padding: 0 0 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(214,180,50,0.03), transparent);
  pointer-events: none;
}

/* Top rule — thick+thin pattern */
.void-rule-top {
  width: 100%;
  height: 5px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--amber-mid) 0px, var(--amber-mid) 3px,
      transparent 3px, transparent 8px,
      var(--amber-ember) 8px, var(--amber-ember) 9px,
      transparent 9px, transparent 18px
    );
  margin-bottom: 0;
}

.void-rule-thin {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber-ember), transparent);
  margin-bottom: 3rem;
  opacity: 0.6;
}

.header-inner {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  padding: 0 2rem;
}

.lab-crumb {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

.lab-crumb a {
  color: var(--amber-text);
  text-decoration: none;
  transition: color 0.2s;
}

.lab-crumb a:hover { color: var(--amber-text-hi); }

/* The name */
.persona-title {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 7vw, 4.8rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow:
    0 0 80px rgba(214, 180, 50, 0.18),
    0 0 30px rgba(214, 180, 50, 0.08);
}

.persona-epithet {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--amber-text);
  margin-bottom: 0.6rem;
  font-style: italic;
}

.persona-register {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
  display: block;
}

/* Header rule */
.header-void-rule {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 600px;
  margin: 0 auto;
}

.void-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber-ember));
}

.void-line:last-child {
  background: linear-gradient(90deg, var(--amber-ember), transparent);
}

.void-ornament {
  color: var(--amber-text);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

/* ============================================================
   PORTRAIT PANEL
   ============================================================ */

.portrait-section {
  padding: 3rem 0 0;
  border-bottom: 1px solid var(--border-dim);
  position: relative;
  z-index: 1;
}

.portrait-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  min-height: 400px;
}

.portrait-frame {
  background: rgba(0,0,0,0.6);
  border-right: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem;
  overflow: hidden;
  position: relative;
}

.portrait-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(214,180,50,0.025) 0%, transparent 70%);
  pointer-events: none;
}

.ascii-portrait {
  font-family: var(--font-mono);
  font-size: 0.46rem;
  line-height: 0.78;
  letter-spacing: 0;
  /* Dense block portrait reads as a cold-grey face, not a glowing slab. */
  color: var(--portrait-tint);
  opacity: 0.82;
  white-space: pre;
  display: block;
  overflow: hidden;
}

.portrait-caption {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.caption-tag {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--amber-text);
  text-transform: uppercase;
}

.caption-lead {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.85;
}

.caption-lead em {
  color: var(--amber-text-hi);
  font-style: normal;
}

.caption-meta {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  border-left: 2px solid var(--amber-dim);
  padding-left: 0.85rem;
}

/* ============================================================
   WITHHELD NOTICE — replaces the demo/download surfaces
   ============================================================ */

.withheld-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-dim);
  position: relative;
  z-index: 1;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--amber-text);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.heading-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}

.withheld-panel {
  border: 1px solid var(--amber-dim);
  border-left: 3px solid var(--amber-mid);
  background: var(--bg-card);
  padding: 2rem 2.25rem;
  position: relative;
  overflow: hidden;
}

.withheld-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 0%, rgba(214,180,50,0.04) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.withheld-stamp {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-text);
  border: 1px solid var(--amber-dim);
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.5rem;
  background: var(--amber-faint);
  position: relative;
  z-index: 1;
}

.withheld-panel p {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.withheld-panel p:last-child { margin-bottom: 0; }

.withheld-panel p.muted {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.withheld-panel strong { color: var(--amber-text-hi); font-weight: 700; }

/* ── DISCLAIMER ── */
.accuracy-note {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0 1.1rem;
  position: relative;
  z-index: 1;
}

.accuracy-note-text {
  color: var(--text-dim);
  font-size: 0.93rem;
  line-height: 1.65;
  max-width: 680px;
}

.persona-disclaimer {
  margin-top: 1rem;
  max-width: 680px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber-ember);
  background: var(--amber-faint);
  padding: 0.85rem 1.1rem;
}

.persona-disclaimer p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0;
}

.persona-disclaimer strong {
  color: var(--text);
  font-weight: 700;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-dim);
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 3.5rem;
  align-items: start;
}

.about-body p {
  margin-bottom: 1.2rem;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.85;
}

.about-body .lead {
  font-size: 0.95rem;
  line-height: 1.9;
}

.about-body a {
  color: var(--amber-text);
  text-decoration: none;
  transition: color 0.2s;
}

.about-body a:hover { color: var(--amber-text-hi); }

.about-footnote {
  font-size: 0.78rem !important;
  color: var(--text-dim) !important;
  font-style: italic;
  margin-top: 1.5rem;
}

.about-stats {
  border: 1px solid var(--border);
  padding: 1.5rem;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.stat-item { text-align: center; }

.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber-text);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 0.25rem;
  text-shadow: 0 0 20px rgba(214, 180, 50, 0.22);
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.stat-divider {
  color: var(--border);
  font-size: 1rem;
  opacity: 0.5;
}

/* ============================================================
   LINKS
   ============================================================ */

.links-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-dim);
  position: relative;
  z-index: 1;
}

.link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-decoration: none;
  border: 1px solid var(--amber-ember);
  color: var(--amber-text);
  background: transparent;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.link-btn:hover {
  background: rgba(214, 180, 50, 0.06);
  border-color: var(--amber-mid);
  color: var(--amber-text-hi);
  box-shadow: 0 0 16px rgba(214, 180, 50, 0.08);
}

.link-btn.elect {
  border-color: var(--border);
  color: var(--text-dim);
}

.link-btn.elect:hover {
  border-color: var(--amber-ember);
  color: var(--amber-text);
  background: var(--amber-faint);
}

.link-icon { font-size: 0.85rem; }

.license-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  border-left: 2px solid var(--border);
  padding-left: 0.85rem;
}

.license-note code {
  color: var(--amber-text);
  font-family: var(--font-mono);
}

/* ============================================================
   METHOD
   ============================================================ */

.method-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-dim);
  position: relative;
  z-index: 1;
}

.method-inner {
  border: 1px solid var(--border);
  overflow: hidden;
}

.method-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.method-step {
  padding: 1.75rem;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background 0.2s;
}

.method-rows .method-step:last-child {
  border-right: none;
}

.method-step:hover { background: rgba(214,180,50,0.015); }

.step-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--amber-text);
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}

.step-title {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--amber-text);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.method-step p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.75;
}

.method-stack {
  padding: 1.25rem 1.75rem;
  background: rgba(0,0,0,0.4);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stack-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
}

.stack-items {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.stack-item {
  font-size: 0.78rem;
  color: var(--amber-text);
  background: rgba(214, 180, 50, 0.04);
  border: 1px solid var(--amber-ember);
  padding: 0.18rem 0.55rem;
}

.stack-withheld {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  background: var(--bg-header);
  position: relative;
  z-index: 1;
}

.footer-inner { text-align: center; }

.footer-sigil {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--amber-text);
  margin-bottom: 0.85rem;
}

.footer-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 1.25rem;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--amber-text); }
.footer-sep { color: var(--text-muted); }

/* ============================================================
   ENTRANCE ANIMATIONS
   CRITICAL: default state is opacity:1, transform:none
   Animations are enhancement only — fill-mode:forwards
   Plain no-wait headless capture MUST see the full page
   ============================================================ */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .site-header      { animation: fade-up 0.6s 0.0s ease forwards; }
  .portrait-section { animation: fade-up 0.6s 0.1s ease forwards; }
  .withheld-section { animation: fade-up 0.6s 0.15s ease forwards; }
  .about-section    { animation: fade-up 0.6s 0.2s ease forwards; }
  .links-section    { animation: fade-up 0.6s 0.25s ease forwards; }
  .method-section   { animation: fade-up 0.6s 0.3s ease forwards; }
  .site-footer      { animation: fade-in 0.6s 0.4s ease forwards; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .portrait-section,
  .withheld-section,
  .about-section,
  .links-section,
  .method-section,
  .site-footer {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 780px) {
  .portrait-grid {
    grid-template-columns: 1fr;
  }
  .portrait-frame {
    border-right: none;
    border-bottom: 1px solid var(--border-dim);
    padding: 1.25rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-stats {
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
  }
  .method-rows {
    grid-template-columns: 1fr;
  }
  .method-rows .method-step {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .method-rows .method-step:last-child {
    border-bottom: none;
  }
}

@media (max-width: 500px) {
  .persona-title { letter-spacing: 0.1em; }
  .container { padding: 0 1rem; }
  .withheld-panel { padding: 1.5rem 1.25rem; }
  .link-grid { flex-direction: column; }
}
