/* ============================================================
   jasonabadi.com — dark cinematic
   Palette: purple-black night, bone, ember orange, electric violet
   (reference: fire on screen + LED glow)
   Type: Cinzel (display) · Archivo (body) · IBM Plex Mono (labels)
   ============================================================ */

:root {
  --ink:    #0a0712;
  --panel:  #140e20;
  --panel2: #1a1229;
  --bone:   #ede8f0;
  --smoke:  #99909f;
  --gold:   #d9524a;                      /* flame red (primary accent, from logo) */
  --gold-dim: rgba(217, 82, 74, 0.34);
  --red-fill: #b32c28;                    /* deep red for solid fills */
  --blood:  #dc413a;                      /* red atmospheric accent */
  --crimson: #a52a28;                     /* logo red */
  --line:   rgba(255, 255, 255, 0.10);
  --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: #e66d66; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--red-fill);
  color: var(--bone);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 1.4rem;
}
.skip-link:focus {
  left: 0;
  color: var(--bone);
}

/* ---------- film grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 999; 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.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- type ---------- */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

h1, h2, h3 { font-family: 'Cinzel', serif; color: var(--bone); }

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.8rem;
  letter-spacing: 0.01em;
}

.prose p { margin-bottom: 1.2rem; max-width: 62ch; color: #cfc8bc; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 5vw;
  background: linear-gradient(to bottom, rgba(11,9,8,0.92), rgba(11,9,8,0.75));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem; font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--bone);
}
.nav-brand span { color: var(--crimson); filter: brightness(1.35); }

::selection { background: var(--crimson); color: #fff; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--smoke);
}
.nav-links a:hover { color: var(--bone); }

.nav-cta {
  border: 1px solid var(--gold-dim);
  padding: 0.5rem 1.1rem;
  color: var(--gold) !important;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--red-fill); color: var(--bone) !important; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; margin: 5px 0;
  background: var(--bone);
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 8rem 5vw 5rem;
  position: relative;
  background:
    radial-gradient(ellipse 55% 60% at 12% 42%, rgba(190, 55, 40, 0.16), transparent 68%),
    radial-gradient(ellipse 55% 60% at 90% 45%, rgba(185, 47, 43, 0.10), transparent 68%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(185, 47, 43, 0.05), transparent 60%),
    var(--ink);
}

.hero-logo-wrap { margin: 0; line-height: 0; }
.hero-logo {
  width: min(780px, 92vw);
  height: auto;
  display: block;
  filter:
    drop-shadow(0 0 28px rgba(165, 42, 40, 0.35))
    drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
}

.hero-rule {
  width: 140px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--crimson), transparent);
  margin: 2.2rem 0 1.6rem;
}

.hero-roles {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}

.hero-lede {
  max-width: 34rem;
  margin-top: 1.4rem;
  color: var(--smoke);
  font-size: 1.05rem;
}

.hero-actions { display: flex; gap: 1rem; margin-top: 2.4rem; flex-wrap: wrap; justify-content: center; }

.hero-stats {
  display: flex; gap: 3.2rem; margin-top: 4.2rem; flex-wrap: wrap; justify-content: center;
}
.hero-stats div { text-align: center; }
.hero-stats strong {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem; font-weight: 600; color: var(--bone);
  display: block;
}
.hero-stats span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--smoke);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.9rem 1.8rem;
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-gold { background: var(--red-fill); color: var(--bone); }
.btn-gold:hover { background: #c23330; color: #fff; }
.btn-ghost { border-color: var(--gold-dim); color: var(--bone); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- sections ---------- */
.section {
  position: relative;
  padding: 7rem 5vw;
  border-top: 1px solid var(--line);
}
.section-tight { padding: 4rem 5vw; }

.section-inner { max-width: var(--max); margin: 0 auto; position: relative; }

.numeral {
  position: absolute;
  top: 4rem; left: -0.5rem;
  font-family: 'Cinzel', serif;
  font-size: clamp(7rem, 18vw, 15rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(185, 47, 43, 0.16);
  user-select: none;
  pointer-events: none;
}

/* ---------- projects ---------- */
.project {
  border-top: 1px solid var(--line);
  padding: 2.6rem 0;
}
.project:last-child { border-bottom: 1px solid var(--line); }

.project-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 0.9rem;
}
.project h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.project-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blood);
  filter: brightness(1.25);
}
.project p { max-width: 62ch; color: #cfc8bc; }

.project-links { display: flex; gap: 1.8rem; margin-top: 1.1rem; flex-wrap: wrap; }
.project-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 2px;
}
.project-links a:hover { border-color: var(--gold); }

/* ---------- latest videos ---------- */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 0.6rem;
}

.video-card { min-width: 0; }

.video-media {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.video-media:hover { border-color: var(--gold-dim); transform: translateY(-3px); }
.video-media img,
.video-media iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0;
}
.video-card.playing .video-media { cursor: default; transform: none; }

.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(10, 7, 18, 0.72);
  border: 1px solid var(--gold-dim);
  transition: background 0.2s, border-color 0.2s;
}

.play-btn::after {
  content: '';
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--bone);
}
.video-media:hover .play-btn { background: var(--red-fill); border-color: var(--red-fill); }

.video-media:hover .play-btn::after { border-left-color: var(--bone); }
.video-card.playing .play-btn { display: none; }

.video-title {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--bone);
  margin-top: 0.9rem;
}
.video-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-top: 0.35rem;
}

.video-card.skeleton {
  aspect-ratio: 16 / 11;
  background: linear-gradient(100deg, var(--panel) 40%, var(--panel2) 50%, var(--panel) 60%);
  background-size: 200% 100%;
  border: 1px solid var(--line);
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .video-card.skeleton { animation: none; }
}

.videos-fallback {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 2.4rem;
  text-align: center;
}
.videos-fallback p { color: var(--smoke); margin-bottom: 1.4rem; }

.videos-more { margin-top: 2rem; }
.videos-more a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
}

/* ---------- support ---------- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2.6rem;
}
.support-card {
  background: var(--panel);
  padding: 1.8rem 1.6rem;
  display: block;
  transition: background 0.2s;
}
.support-card:hover { background: var(--panel2); }
.support-card h3 {
  font-size: 1.02rem; font-weight: 600; margin-bottom: 0.5rem;
  color: var(--gold);
}
.support-card p { color: var(--smoke); font-size: 0.92rem; line-height: 1.55; }

.support-note { margin-top: 1.8rem; color: var(--smoke); font-size: 0.94rem; max-width: 62ch; }

/* ---------- newsletter ---------- */
.newsletter-band {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 100% at 0% 50%, rgba(165, 42, 40, 0.14), transparent 60%),
    var(--panel);
  padding: 2.6rem 2.8rem;
}
.newsletter-band h2 { margin-bottom: 0.5rem; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.newsletter-band p { color: var(--smoke); max-width: 46ch; }

/* ---------- contact form ---------- */
.contact-form { margin-top: 2.6rem; max-width: 640px; display: grid; gap: 1.3rem; }

.contact-form label {
  display: grid; gap: 0.45rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--smoke);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--bone);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-self: start; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 4rem 5vw 3rem;
  text-align: center;
}
.footer-name {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.footer-links { display: flex; gap: 1.8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.8rem; }
.footer-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--smoke);
}
.footer-links a:hover { color: var(--gold); }
.footer-copy { color: #8b8395; font-size: 0.78rem; max-width: 56ch; margin: 0 auto; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    gap: 0;
    background: rgba(11, 9, 8, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 5vw 1.4rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.9rem 0; width: 100%; }
  .nav-cta { border: 0; padding-left: 0; }

  .form-row { grid-template-columns: 1fr; }
  .videos-grid { grid-template-columns: 1fr; gap: 2rem; }
  .newsletter-band { padding: 2rem 1.6rem; }
  .section { padding: 5rem 6vw; }
  .hero-stats { gap: 2rem; }
}

/* ============================================================
   v4 additions — live hero, playlist rails, atlas, reading room,
   patreon band, donation card
   ============================================================ */

/* ---------- hero: latest release ---------- */
.hero-latest {
  width: min(680px, 92vw);
  margin-top: 2.6rem;
  text-align: left;
}
.hero-latest-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.9rem;
}
.hero-latest-card { text-align: center; }
.hero-latest-card.skeleton {
  aspect-ratio: 16 / 9;
  background: linear-gradient(100deg, var(--panel) 40%, var(--panel2) 50%, var(--panel) 60%);
  background-size: 200% 100%;
  border: 1px solid var(--line);
  animation: shimmer 1.4s infinite linear;
}
@media (prefers-reduced-motion: reduce) {
  .hero-latest-card.skeleton { animation: none; }
}
.hero-latest-card .video-media {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 40px rgba(165, 42, 40, 0.12);
}
.hero-latest-card .video-title { font-size: 1.05rem; }

/* ---------- playlist rails ---------- */
.rail { margin-top: 3.4rem; }
.prose + .rail { margin-top: 2.4rem; }

.rail-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.rail-head h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.rail-more {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  white-space: nowrap;
}
.rail-blurb { color: var(--smoke); max-width: 62ch; margin-top: 0.5rem; }

.rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 300px);
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 1.4rem 0.2rem 0.8rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) transparent;
}
.rail-track::-webkit-scrollbar { height: 6px; }
.rail-track::-webkit-scrollbar-thumb { background: var(--gold-dim); }
.rail-track::-webkit-scrollbar-track { background: transparent; }

.rail-card { scroll-snap-align: start; min-width: 0; }
.rail-card .video-title { font-size: 0.92rem; margin-top: 0.7rem; }
.rail-card.skeleton {
  aspect-ratio: 16 / 11;
  background: linear-gradient(100deg, var(--panel) 40%, var(--panel2) 50%, var(--panel) 60%);
  background-size: 200% 100%;
  border: 1px solid var(--line);
  animation: shimmer 1.4s infinite linear;
}
@media (prefers-reduced-motion: reduce) {
  .rail-card.skeleton { animation: none; }
}
.rail-track .videos-fallback { grid-column: span 3; }

/* ---------- atlas ---------- */
.atlas {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2.6rem;
}

.atlas-map-wrap {
  background:
    radial-gradient(ellipse 70% 60% at 60% 40%, rgba(185, 47, 43, 0.05), transparent 70%),
    var(--panel);
  padding: 1.2rem;
  min-width: 0;
}
.atlas-map { width: 100%; height: auto; display: block; }

.atlas-grid line { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }

.atlas-coast path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.atlas-sealabel text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.34em;
  fill: rgba(153, 144, 159, 0.5);
  text-anchor: middle;
}

.atlas-trailline {
  fill: none;
  stroke: var(--gold-dim);
  stroke-width: 1.5;
  stroke-dasharray: 6 7;
}
.atlas-trailline.animated { animation: trailmarch 30s linear infinite; }
@keyframes trailmarch { to { stroke-dashoffset: -520; } }

.atlas-marker { cursor: pointer; }
.atlas-marker:focus-visible { outline: none; }
.atlas-marker:focus-visible .marker-dot { stroke: var(--bone); stroke-width: 2; }

.marker-halo {
  fill: rgba(217, 82, 74, 0.14);
  transform-origin: center;
  transform-box: fill-box;
}
.marker-halo.pulse { animation: halopulse 3.2s ease-in-out infinite; }
@keyframes halopulse {
  0%, 100% { opacity: 0.5; transform: scale(0.8); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

.marker-dot {
  fill: var(--red-fill);
  stroke: rgba(237, 232, 240, 0.35);
  stroke-width: 1;
  transition: fill 0.2s;
}
.atlas-marker:hover .marker-dot { fill: var(--gold); }
.atlas-marker.active .marker-dot { fill: var(--gold); stroke: var(--bone); stroke-width: 1.5; }
.atlas-marker.active .marker-halo { fill: rgba(217, 82, 74, 0.28); }

.marker-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  fill: var(--gold);
  text-anchor: middle;
}
.marker-label {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 12px;
  fill: var(--smoke);
  text-anchor: middle;
  pointer-events: none;
  transition: fill 0.2s;
}
.atlas-marker:hover .marker-label,
.atlas-marker.active .marker-label { fill: var(--bone); }

.atlas-panel {
  background: var(--panel2);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}
.atlas-step {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--smoke);
}
.atlas-site {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 600;
}
.atlas-heading {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
}
.atlas-idea { color: #cfc8bc; font-size: 0.95rem; line-height: 1.65; }

.atlas-watch {
  aspect-ratio: 16 / 9;
  margin-top: 0.4rem;
}
.atlas-watch-title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(to top, rgba(10, 7, 18, 0.92), transparent);
  color: var(--bone);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: left;
}
.atlas-watch-link { align-self: flex-start; margin-top: 0.4rem; }
.atlas-player {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 0.4rem;
  background: var(--ink);
}
.atlas-player iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.atlas-nav {
  display: flex;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1.2rem;
  flex-wrap: wrap;
}
.atlas-nav .btn { padding: 0.7rem 1.2rem; font-size: 0.72rem; }

/* ---------- reading room ---------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.4rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  min-width: 0;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.post-card:hover {
  border-color: var(--gold-dim);
  background: var(--panel2);
  transform: translateY(-3px);
}
.post-card.skeleton {
  aspect-ratio: 4 / 5;
  background: linear-gradient(100deg, var(--panel) 40%, var(--panel2) 50%, var(--panel) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
@media (prefers-reduced-motion: reduce) {
  .post-card.skeleton { animation: none; }
}
.post-cover {
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.post-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9);
  transition: transform 0.4s ease;
}
.post-card:hover .post-cover img { transform: scale(1.04); }
.post-body {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.post-title {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 1.02rem; font-weight: 500;
  line-height: 1.4;
  color: var(--bone);
}
.post-excerpt { color: var(--smoke); font-size: 0.88rem; line-height: 1.6; }
.post-body .video-date { margin-top: auto; padding-top: 0.4rem; }

/* ---------- patreon band ---------- */
.patreon-band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 120% at 100% 0%, rgba(185, 47, 43, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 100% at 0% 100%, rgba(165, 42, 40, 0.20), transparent 60%),
    var(--panel);
  padding: 3.2rem 3rem;
}
.patreon-band::before {
  content: '';
  position: absolute; inset: -40%;
  background: radial-gradient(circle at 20% 80%, rgba(217, 82, 74, 0.10), transparent 40%);
  animation: emberdrift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes emberdrift {
  from { transform: translate(0, 0); }
  to   { transform: translate(6%, -6%); }
}
@media (prefers-reduced-motion: reduce) {
  .patreon-band::before { animation: none; }
}
.patreon-copy { position: relative; max-width: 640px; }
.patreon-copy > p { color: #cfc8bc; max-width: 58ch; }
.patreon-tiers {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-top: 1.6rem;
}
.patreon-tiers span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--smoke);
  border: 1px solid var(--line);
  padding: 0.45rem 0.9rem;
  transition: color 0.2s, border-color 0.2s;
}
.patreon-tiers span:hover { color: var(--gold); border-color: var(--gold-dim); }
.patreon-note {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--smoke);
  margin-top: 1rem;
}

/* ---------- donation card ---------- */
.donate-card {
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 2.2rem 2.4rem;
  margin-top: 2.6rem;
  transition: border-color 0.3s;
}
.donate-card:hover { border-color: var(--gold-dim); }
.donate-flame {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 90% at 8% 100%, rgba(217, 82, 74, 0.14), transparent 55%);
  opacity: 0.6;
  transition: opacity 0.4s;
  pointer-events: none;
}
.donate-card:hover .donate-flame { opacity: 1; }
.donate-copy { position: relative; }
.donate-copy h3 {
  font-size: 1.15rem; font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--gold);
}
.donate-copy p { color: var(--smoke); font-size: 0.94rem; }
.donate-card .btn { position: relative; }

/* ---------- responsive additions ---------- */
@media (max-width: 900px) {
  .atlas { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .posts-grid { grid-template-columns: 1fr; }
  .patreon-band { padding: 2.4rem 1.8rem; }
  .donate-card { padding: 1.8rem 1.6rem; }
  .rail-track { grid-auto-columns: minmax(230px, 260px); }
  .marker-label { font-size: 14px; }
  .atlas-map-wrap { padding: 0.8rem; }
}

/* ============================================================
   v6 — clean red / black / white identity
   ============================================================ */

:root {
  --ink: #070707;
  --panel: #101010;
  --panel2: #171717;
  --bone: #f2f0ed;
  --smoke: #a7a3a0;
  --gold: #dc413a;
  --gold-dim: rgba(220, 65, 58, .34);
  --red-fill: #b92f2b;
  --blood: #dc413a;
  --crimson: #b92f2b;
  --line: rgba(255, 255, 255, .10);
}

body { background: var(--ink); }

/* Keep the strong centered composition, but remove the violet atmosphere. */
.hero {
  background:
    radial-gradient(ellipse 62% 58% at 50% 42%, rgba(185, 47, 43, .15), transparent 68%),
    radial-gradient(ellipse 80% 55% at 50% 100%, rgba(185, 47, 43, .055), transparent 65%),
    var(--ink);
}

.hero-logo {
  filter: drop-shadow(0 0 24px rgba(185, 47, 43, .28)) drop-shadow(0 3px 12px rgba(0, 0, 0, .72));
}

.hero-rule {
  background: linear-gradient(90deg, transparent, var(--crimson), transparent);
}

/* Headings move away from the familiar classical-serif template language. */
h1,
h2,
h3,
.rail-head h3,
.research-block-head h3,
.support-divider h3,
.footer-newsletter strong,
.reading-list-title,
.footer-name {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}

h2 {
  font-weight: 600;
  letter-spacing: .015em;
  text-transform: uppercase;
}

.rail-head h3,
.research-block-head h3,
.support-divider h3,
.reading-list-title {
  font-weight: 600;
  letter-spacing: .01em;
}

.research-block-head h3,
.rail-head h3,
.support-divider h3,
.reading-list-title {
  text-transform: uppercase;
}

.research-block-head h3,
.reading-list-title {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1;
}

.project h3,
.post-title,
.atlas-site,
.donate-copy h3,
.support-card h3 {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 600;
  letter-spacing: .015em;
}

.eyebrow,
.hero-roles,
.nav-links a,
.project-tag,
.hero-latest-label {
  letter-spacing: .15em;
}

/* Primary actions are solid red. Secondary actions are clean text links. */
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.45rem;
  border: 0;
  border-radius: 4px;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .105em;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.btn-gold {
  color: #fff;
  background: var(--red-fill);
  box-shadow: 0 8px 28px rgba(185, 47, 43, .16);
}

.btn-gold:hover {
  color: #fff;
  background: #cf3933;
  transform: translateY(-2px);
}

.btn-ghost {
  min-height: auto;
  padding: .75rem .35rem;
  color: rgba(242, 240, 237, .82);
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, .28);
  border-radius: 0;
}

.btn-ghost::after {
  content: "  →";
  margin-left: .55rem;
  color: var(--gold);
}

.btn-ghost:hover {
  color: #fff;
  border-bottom-color: var(--gold);
  transform: none;
}

/* Quiet the decorative framework and eliminate purple lines. */
.section {
  background-color: #090909;
  border-top: 0;
  background-clip: border-box;
  box-shadow: inset 0 30px 54px -52px rgba(0, 0, 0, .95), inset 0 -30px 54px -52px rgba(0, 0, 0, .95);
}

#about,
#research,
#contact {
  background-image: linear-gradient(180deg, rgba(7, 7, 7, .88), rgba(10, 10, 10, .94)), url("assets/black-stone.jpg");
}

#work,
#sky-signal,
#support {
  background-image: linear-gradient(180deg, rgba(8, 8, 8, .90), rgba(9, 9, 9, .95)), url("assets/black-wood.jpg");
}

.section::after { display: none; }

.numeral {
  color: transparent;
  -webkit-text-stroke-color: rgba(185, 47, 43, .14);
  opacity: .45;
}

.nav {
  background: linear-gradient(180deg, rgba(7, 7, 7, .95), rgba(4, 4, 4, .99)), url("assets/black-wood.jpg") center 38% / cover;
  border-bottom-color: rgba(185, 47, 43, .30);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .34);
}

.nav-brand {
  border-color: rgba(185, 47, 43, .48);
  box-shadow: inset 0 0 18px rgba(185, 47, 43, .05);
}

.nav-links a:not(.nav-cta)::after {
  background: var(--gold);
}

.mini-signal {
  border-color: rgba(220, 65, 58, .34);
}

.about-portrait-frame {
  border-color: rgba(255, 255, 255, .20);
}

.about-portrait-frame::before {
  border-color: rgba(185, 47, 43, .18);
}

.about-portrait-frame::after {
  background: var(--gold);
  box-shadow: 0 0 12px rgba(220, 65, 58, .30);
}

.reading-list-feature,
.sky-signal-portal,
.patreon-band,
.newsletter-band,
.donate-card {
  border-color: rgba(255, 255, 255, .13);
  border-radius: 6px;
}

.reading-list-feature::before {
  background: linear-gradient(90deg, transparent 5%, #8f211f 35%, #dc413a 70%, transparent);
  box-shadow: 0 0 14px rgba(220, 65, 58, .38);
}

.reading-list-feature:hover {
  border-color: rgba(220, 65, 58, .50);
  box-shadow: 0 28px 72px rgba(0, 0, 0, .52);
}

.reading-list-kicker { color: #eb6a64; }

.reading-list-action,
.sky-signal-portal-action {
  color: #fff;
  border-color: rgba(220, 65, 58, .48);
  background: rgba(185, 47, 43, .12);
}

.reading-list-feature:hover .reading-list-action {
  border-color: rgba(220, 65, 58, .82);
  background: rgba(185, 47, 43, .22);
}

.member-benefits span,
.patreon-tiers span {
  border-color: rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .035);
}

.video-media,
.post-card,
.support-card,
.contact-form input,
.contact-form select,
.contact-form textarea {
  border-color: rgba(255, 255, 255, .10);
}

.video-media:hover,
.post-card:hover {
  border-color: rgba(220, 65, 58, .46);
}

.atlas-grid line { stroke: rgba(255, 255, 255, .07); }
.atlas-coast path { stroke: rgba(255, 255, 255, .21); }

.footer { background: #060606; }

/* These declarations intentionally outrank older component-level type rules. */
h2,
h3,
.project h3,
.rail-head h3,
.research-block-head h3,
.reading-list-title,
.support-divider h3,
.footer-newsletter strong,
.post-title,
.atlas-site,
.donate-copy h3,
.support-card h3,
.footer-name {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif !important;
  font-weight: 600 !important;
}

.footer-logo-link {
  width: min(340px, 78vw);
  display: block;
  margin: 0 auto 1.8rem;
  color: inherit;
}

.footer-logo {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 16px rgba(185, 47, 43, .18));
}

@media (max-width: 760px) {
  .hero-actions {
    gap: 1.15rem;
  }

  .btn-ghost {
    padding-inline: .1rem;
  }
}
