/* ============================================================
   PSIrenity — The War on Black Men Part 2
   Cinematic scrollytelling stylesheet
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --ruby: #8B0000;
  --crimson: #B11226;
  --gold: #D4AF37;
  --gold-bright: #F2C14E;
  --black: #050505;
  --charcoal: #171717;
  --smoke: #2A2A2A;
  --burgundy: #3a0a12;
  --ivory: #F7F1E1;
  --white: #FAFAFA;

  --font-display: 'Anton', 'Bebas Neue', sans-serif;
  --font-head: 'Oswald', 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-quote: 'Playfair Display', serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--ivory);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--ruby); color: var(--gold-bright); }

.gold { color: var(--gold-bright); }
.ruby, .ruby-emph { color: var(--crimson); font-weight: 600; }

/* ---------- SCROLL PROGRESS ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--ruby), var(--gold-bright));
  z-index: 2000; box-shadow: 0 0 12px rgba(212,175,55,.7);
}

/* ---------- ATMOSPHERE ---------- */
.atmosphere { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
#emberCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.grain {
  position: absolute; inset: 0; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.7) 100%);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 5vw; transition: all .5s var(--ease);
}
.nav.scrolled {
  padding: 12px 5vw;
  background: rgba(5,5,5,.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(212,175,55,.18);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(212,175,55,.4)); }
.nav-brand-text { font-family: var(--font-head); font-weight: 700; letter-spacing: 1px; font-size: 1.35rem; color: var(--gold-bright); text-transform: uppercase; }
.nav-brand-text em { font-style: normal; color: var(--white); font-weight: 300; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-family: var(--font-head); font-weight: 500; font-size: .82rem;
  letter-spacing: 2px; text-transform: uppercase; color: var(--ivory);
  position: relative; transition: color .3s;
}
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--gold-bright); transition: width .35s var(--ease);
}
.nav-links a:not(.nav-cta):hover { color: var(--gold-bright); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  padding: 10px 22px; border: 1px solid var(--gold); border-radius: 40px;
  color: var(--gold-bright); overflow: hidden; position: relative; z-index: 0;
}
.nav-cta::before {
  content: ''; position: absolute; inset: 0; background: var(--ruby);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); z-index: -1;
}
.nav-cta:hover { color: var(--white); border-color: var(--crimson); box-shadow: 0 0 22px rgba(139,0,0,.6); }
.nav-cta:hover::before { transform: scaleX(1); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; z-index: 1001; }
.nav-toggle span { width: 26px; height: 2px; background: var(--gold-bright); transition: .35s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 6vw; position: relative; z-index: 5; }
.section { position: relative; padding: clamp(80px, 12vh, 160px) 0; z-index: 5; }

.section-tag {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 6px;
  font-size: .8rem; color: var(--crimson); margin-bottom: 14px; font-weight: 600;
}
.section-heading {
  font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: .98; text-transform: uppercase; letter-spacing: 1px; color: var(--white);
  margin-bottom: 26px;
}
.section-intro { max-width: 760px; font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(247,241,225,.82); margin-bottom: 50px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; font-size: .82rem; padding: 15px 30px;
  border-radius: 50px; position: relative; overflow: hidden; z-index: 0;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), color .3s, border-color .3s;
  will-change: transform;
}
.btn i { font-size: .9em; }

.btn-primary { background: linear-gradient(135deg, var(--ruby), var(--crimson)); color: var(--white); box-shadow: 0 6px 26px rgba(139,0,0,.4); }
.btn-primary:hover { box-shadow: 0 0 30px rgba(212,175,55,.55); }
.btn-primary::after {
  content: ''; position: absolute; inset: 0; border: 2px solid var(--gold-bright);
  border-radius: 50px; opacity: 0; transition: opacity .35s;
}
.btn-primary:hover::after { opacity: 1; }

.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-bright)); color: var(--black); box-shadow: 0 6px 26px rgba(212,175,55,.4); }
.btn-gold:hover { box-shadow: 0 0 34px rgba(242,193,78,.7); }

.btn-ghost { border: 1px solid rgba(212,175,55,.55); color: var(--ivory); background: rgba(255,255,255,.02); }
.btn-ghost::before {
  content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--ruby), var(--crimson));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); z-index: -1;
}
.btn-ghost:hover { color: var(--white); border-color: var(--gold-bright); box-shadow: 0 0 22px rgba(212,175,55,.4); }
.btn-ghost:hover::before { transform: scaleX(1); }

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 120px 6vw 90px; overflow: hidden;
}
.hero-skyline { position: absolute; inset: 0; z-index: 0; }
.skyline-layer { position: absolute; left: 0; right: 0; bottom: 0; background-repeat: repeat-x; background-position: bottom center; }
.hero-glow {
  position: absolute; top: 12%; left: 50%; transform: translateX(-50%);
  width: 80vw; height: 60vh;
  background: radial-gradient(ellipse at center, rgba(139,0,0,.5), rgba(139,0,0,.12) 45%, transparent 70%);
  filter: blur(30px);
}
.skyline-back {
  height: 40vh; opacity: .5;
  background: linear-gradient(to top, #120306, transparent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='300' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 300 V180 h60 v-40 h50 v60 h40 v-90 h60 v70 h50 v-50 h70 v80 h40 v-120 h50 v100 h60 v-60 h50 v90 h70 v-40 h40 v70 h60 v-100 h50 v80 h60 v-50 h50 v70 h70 v-90 h40 v110 h60 v-60 h50 v80 h60 v-40 h50 v60 h70 V300 Z'/%3E%3C/svg%3E") bottom / cover no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='300' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 300 V180 h60 v-40 h50 v60 h40 v-90 h60 v70 h50 v-50 h70 v80 h40 v-120 h50 v100 h60 v-60 h50 v90 h70 v-40 h40 v70 h60 v-100 h50 v80 h60 v-50 h50 v70 h70 v-90 h40 v110 h60 v-60 h50 v80 h60 v-40 h50 v60 h70 V300 Z'/%3E%3C/svg%3E") bottom / cover no-repeat;
}
.skyline-mid {
  height: 32vh; opacity: .8;
  background: linear-gradient(to top, #1a0508, #0a0203);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='260' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 260 V150 h80 v-60 h60 v90 h50 v-40 h70 v60 h50 v-110 h60 v130 h70 v-70 h50 v50 h80 v-90 h60 v100 h50 v-50 h70 v70 h60 v-100 h50 v120 h70 v-60 h60 v80 h50 v-40 h80 V260 Z'/%3E%3C/svg%3E") bottom / cover no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='260' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 260 V150 h80 v-60 h60 v90 h50 v-40 h70 v60 h50 v-110 h60 v130 h70 v-70 h50 v50 h80 v-90 h60 v100 h50 v-50 h70 v70 h60 v-100 h50 v120 h70 v-60 h60 v80 h50 v-40 h80 V260 Z'/%3E%3C/svg%3E") bottom / cover no-repeat;
}
.skyline-front {
  height: 22vh; opacity: 1;
  background: linear-gradient(to top, #000, #050505);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='200' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 200 V120 h100 v-50 h80 v70 h70 v-30 h90 v50 h70 v-80 h90 v100 h80 v-50 h90 v60 h70 v-70 h100 v90 h80 v-40 h90 v50 h70 V200 Z'/%3E%3C/svg%3E") bottom / cover no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='200' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 200 V120 h100 v-50 h80 v70 h70 v-30 h90 v50 h70 v-80 h90 v100 h80 v-50 h90 v60 h70 v-70 h100 v90 h80 v-40 h90 v50 h70 V200 Z'/%3E%3C/svg%3E") bottom / cover no-repeat;
}
.light-sweep {
  position: absolute; top: 20%; left: -30%; width: 60%; height: 50%;
  background: linear-gradient(105deg, transparent, rgba(242,193,78,.16), transparent);
  filter: blur(30px); animation: sweep 9s ease-in-out infinite;
}
@keyframes sweep { 0%,100% { transform: translateX(0); opacity: .4; } 50% { transform: translateX(120%); opacity: .9; } }

.hero-content { position: relative; z-index: 5; max-width: 940px; }
.hero-logo { width: clamp(110px, 16vw, 175px); margin: 0 auto 26px; filter: drop-shadow(0 0 22px rgba(212,175,55,.5)); }
.hero-eyebrow {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 5px;
  font-size: .85rem; color: var(--gold-bright); margin-bottom: 22px;
}
.hero-title { font-family: var(--font-display); line-height: .92; text-transform: uppercase; margin-bottom: 20px; }
.hero-title .line { display: block; font-size: clamp(2.8rem, 9vw, 7rem); color: var(--white); }
/* Keep the main title "THE WAR ON BLACK MEN" on a single line at every width */
.hero-title .line:first-child {
  white-space: nowrap;
  font-size: clamp(1.7rem, 8.2vw, 7rem);
  letter-spacing: 0;
}
.hero-title-accent {
  font-size: clamp(1.6rem, 5.2vw, 3.6rem) !important;
  background: linear-gradient(120deg, var(--gold), var(--gold-bright), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-top: 6px;
}
.hero-subtitle { font-family: var(--font-quote); font-style: italic; font-size: clamp(1.3rem, 3vw, 2rem); color: var(--ivory); margin-bottom: 24px; }
.hero-desc { max-width: 680px; margin: 0 auto 40px; font-size: clamp(.98rem, 1.5vw, 1.12rem); color: rgba(247,241,225,.85); }
.hero-buttons { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-head); letter-spacing: 3px; text-transform: uppercase; font-size: .72rem; color: var(--gold-bright);
}
.scroll-cue i { animation: bounce 1.8s infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(8px); opacity: 1; } }

/* letter split hero */
.hero-title .char { display: inline-block; transform: translateY(120%); opacity: 0; }

/* ============================================================
   SHARED CHAPTER STYLING
   ============================================================ */
.chapter-num { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 6px; color: var(--gold); font-size: .85rem; margin-bottom: 12px; }
.chapter-heading {
  font-family: var(--font-display); font-size: clamp(2.2rem, 6.5vw, 5rem);
  text-transform: uppercase; line-height: .98; color: var(--white); margin-bottom: 34px; letter-spacing: 1px;
}
.chapter-body { max-width: 780px; font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: rgba(247,241,225,.86); margin: 34px 0; }
.chapter-body em { color: var(--gold-bright); font-style: italic; }

/* MEGA QUOTE */
.mega-quote { max-width: 900px; margin: 50px 0; position: relative; }
.mega-quote p { font-family: var(--font-quote); font-size: clamp(1.5rem, 4vw, 3rem); line-height: 1.2; color: var(--white); font-weight: 600; }
.mega-quote cite { display: block; margin-top: 18px; font-family: var(--font-head); font-style: normal; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-bright); font-size: .9rem; }
.dual-quotes { display: grid; gap: 30px; margin-top: 40px; }
@media (min-width: 900px) { .dual-quotes { grid-template-columns: 1fr 1fr; } .dual-quotes .mega-quote { margin: 0; } }

/* ============================================================
   2. OPENING
   ============================================================ */
.opening { padding-top: clamp(100px, 16vh, 200px); }
.opening-texture {
  position: absolute; inset: 0; z-index: 0; opacity: .35;
  background:
    radial-gradient(circle at 20% 30%, rgba(139,0,0,.35), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(58,10,18,.5), transparent 50%);
  animation: drift 20s ease-in-out infinite alternate;
}
@keyframes drift { from { background-position: 0 0, 0 0; } to { background-position: 40px -30px, -40px 30px; } }
.timeline-marker { position: absolute; left: 6vw; top: 12vh; display: flex; flex-direction: column; align-items: center; z-index: 5; }
.timeline-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 16px var(--gold); }
.timeline-line { width: 2px; height: 0; background: linear-gradient(var(--gold), transparent); transition: height 1.4s var(--ease); }
.timeline-line.grow { height: 200px; }
.opening-heading { font-family: var(--font-display); font-size: clamp(2rem, 5.5vw, 4.4rem); line-height: 1.02; text-transform: uppercase; color: var(--white); max-width: 15ch; margin-bottom: 40px; }
.opening-body { max-width: 780px; }
.lead { font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--ivory); margin-bottom: 24px; }
.opening-body p { margin-bottom: 20px; font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(247,241,225,.82); }
@media (max-width: 700px) { .timeline-marker { display: none; } }

/* ============================================================
   3. HOSTS
   ============================================================ */
.host-grid { display: grid; gap: 34px; margin-bottom: 60px; }
@media (min-width: 820px) { .host-grid { grid-template-columns: 1fr 1fr; } }
.host-card {
  position: relative; border-radius: 22px; overflow: hidden;
  background: rgba(23,23,23,.55); border: 1px solid rgba(212,175,55,.18);
  backdrop-filter: blur(8px); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.host-card:hover, .host-card:focus-within { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 20px 60px rgba(139,0,0,.4), 0 0 40px rgba(212,175,55,.2); }
.host-media { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.host-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s var(--ease), opacity .6s var(--ease); }
.host-img-main { transform: scale(1.02); }
.host-card:hover .host-img-main { transform: scale(1.08); }
.host-img-hover { position: absolute; inset: 0; opacity: 0; }
.host-card:hover .host-img-hover { opacity: 1; }
.host-glow { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,5,5,.92) 8%, transparent 55%); pointer-events: none; }
.host-info { position: relative; padding: 26px 28px 32px; margin-top: -70px; z-index: 3; }
.host-name { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); text-transform: uppercase; color: var(--white); line-height: 1; }
.host-title { color: var(--gold-bright); font-family: var(--font-head); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; font-size: .82rem; margin-top: 8px; }
.host-org { color: rgba(247,241,225,.6); font-size: .82rem; margin-top: 3px; }
.host-role { margin-top: 14px; font-size: .95rem; color: rgba(247,241,225,.82); max-height: 0; opacity: 0; overflow: hidden; transition: all .5s var(--ease); }
.host-card:hover .host-role, .host-card:focus-within .host-role { max-height: 140px; opacity: 1; margin-top: 14px; }

.quote-callout { position: relative; max-width: 900px; margin: 0 auto; text-align: center; padding: 40px 30px; }
.quote-callout .quote-mark { font-family: var(--font-quote); font-size: 6rem; color: var(--ruby); line-height: 0; display: block; height: 40px; }
.quote-callout p { font-family: var(--font-quote); font-size: clamp(1.4rem, 3.6vw, 2.6rem); font-style: italic; color: var(--white); font-weight: 600; }
.quote-callout cite { display: block; margin-top: 20px; font-family: var(--font-head); font-style: normal; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-bright); }

/* ============================================================
   4. PANELISTS
   ============================================================ */
.panelists { background: linear-gradient(180deg, transparent, rgba(23,23,23,.5), transparent); }
.panel-grid { display: grid; gap: 40px; }
@media (min-width: 820px) { .panel-grid { grid-template-columns: 1fr 1fr; } }
.panel-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 40px 30px; border-radius: 22px;
  background: rgba(10,3,5,.5); border: 1px solid rgba(212,175,55,.15); backdrop-filter: blur(6px);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.panel-card:hover, .panel-card:focus-within { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 40px rgba(212,175,55,.18); }
.panel-media { position: relative; width: 220px; height: 220px; margin-bottom: 28px; }
.panel-rings { position: absolute; inset: -18px; border-radius: 50%; border: 1px dashed rgba(212,175,55,.5); animation: spin 24s linear infinite; }
.panel-rings::after { content: ''; position: absolute; inset: 10px; border-radius: 50%; border: 1px solid rgba(177,18,38,.5); }
@keyframes spin { to { transform: rotate(360deg); } }
.panel-img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; object-position: top center; border: 3px solid rgba(212,175,55,.4); box-shadow: 0 0 30px rgba(139,0,0,.4); }
.panel-name { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.4rem); text-transform: uppercase; color: var(--white); }
.panel-title { color: var(--gold-bright); font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-size: .84rem; margin-top: 8px; }
.panel-org { color: rgba(247,241,225,.6); font-size: .84rem; margin-top: 4px; }
.panel-desc { position: relative; margin-top: 20px; font-family: var(--font-quote); font-style: italic; font-size: 1.08rem; color: rgba(247,241,225,.9); line-height: 1.55; max-width: 42ch; }
.big-quote { position: absolute; top: -28px; left: 50%; transform: translateX(-50%); font-family: var(--font-quote); font-size: 4rem; color: rgba(212,175,55,.35); line-height: 0; opacity: 0; transition: opacity .6s .2s, transform .6s .2s var(--ease); }
.panel-card.in-view .big-quote { opacity: 1; transform: translateX(-50%) translateY(6px); }

/* ============================================================
   5. CHAPTER — MIRROR
   ============================================================ */
.chapter-mirror { text-align: center; }
.mirror-stage { position: relative; margin: 30px 0 20px; }
.mirror-words, .mirror-reflection { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.mirror-words span { font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 3.4rem); text-transform: uppercase; color: var(--white); line-height: 1; letter-spacing: 1px; }
.mirror-reflection { transform: scaleY(-1); opacity: .12; -webkit-mask: linear-gradient(to bottom, black, transparent 70%); mask: linear-gradient(to bottom, black, transparent 70%); }
.mirror-reflection span { color: var(--gold); }
.chapter-mirror .mega-quote { margin-left: auto; margin-right: auto; }
.chapter-mirror .chapter-body { margin-left: auto; margin-right: auto; }

/* ============================================================
   6. CHAPTER — HASHTAG
   ============================================================ */
.chapter-hashtag { overflow: hidden; }
.noise-fragments { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.noise-fragments span { position: absolute; font-family: var(--font-head); color: rgba(247,241,225,.06); font-size: clamp(1.2rem, 3vw, 2.4rem); font-weight: 700; white-space: nowrap; animation: floatFade 14s ease-in-out infinite; }
.noise-fragments span:nth-child(1) { top: 12%; left: 8%; } .noise-fragments span:nth-child(2) { top: 22%; left: 70%; animation-delay: 1s; }
.noise-fragments span:nth-child(3) { top: 40%; left: 15%; animation-delay: 2s; } .noise-fragments span:nth-child(4) { top: 55%; left: 78%; animation-delay: 3s; }
.noise-fragments span:nth-child(5) { top: 68%; left: 10%; animation-delay: 4s; } .noise-fragments span:nth-child(6) { top: 80%; left: 60%; animation-delay: 5s; }
.noise-fragments span:nth-child(7) { top: 30%; left: 45%; animation-delay: 1.5s; } .noise-fragments span:nth-child(8) { top: 88%; left: 30%; animation-delay: 2.5s; }
.noise-fragments span:nth-child(9) { top: 6%; left: 40%; animation-delay: 3.5s; } .noise-fragments span:nth-child(10) { top: 50%; left: 88%; animation-delay: 4.5s; }
@keyframes floatFade { 0%,100% { opacity: .04; transform: translateY(0); } 50% { opacity: .1; transform: translateY(-14px); } }

.stable-words { display: flex; flex-wrap: wrap; gap: 18px; margin: 40px 0; position: relative; z-index: 5; }
.stable-word {
  font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.4rem, 4vw, 2.6rem);
  color: var(--white); letter-spacing: 1px; padding: 8px 22px; border-radius: 12px;
  border: 1px solid rgba(212,175,55,.25); position: relative; transition: all .4s var(--ease); background: rgba(5,5,5,.4);
}
.stable-word::before { content: ''; position: absolute; inset: 0; border-radius: 12px; box-shadow: 0 0 0 0 rgba(212,175,55,.5); animation: pulseGold 3s ease-in-out infinite; }
@keyframes pulseGold { 0%,100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); } 50% { box-shadow: 0 0 22px 2px rgba(212,175,55,.3); } }
.stable-word:hover { color: var(--gold-bright); border-color: var(--gold); transform: translateY(-4px); }

.healing-progress { position: relative; z-index: 5; margin: 30px 0 50px; max-width: 620px; }
.hp-track { display: block; height: 5px; border-radius: 5px; background: rgba(255,255,255,.08); overflow: hidden; }
.hp-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ruby), var(--gold-bright)); box-shadow: 0 0 12px rgba(212,175,55,.6); transition: width 2s var(--ease); }
.hp-fill.filled { width: 100%; }
.hp-label { display: block; margin-top: 12px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; color: var(--gold-bright); }

/* ============================================================
   7. CHAPTER — ARMOR
   ============================================================ */
.chapter-armor { position: relative; overflow: hidden; }
.breathing-bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(circle at 50% 45%, rgba(139,0,0,.28), transparent 55%); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.12); opacity: .85; } }
.armor-stage { position: relative; height: clamp(220px, 34vw, 360px); margin: 20px 0 40px; display: flex; align-items: center; justify-content: center; }
.armor-panel { position: absolute; top: 0; bottom: 0; width: 50%; background: linear-gradient(135deg, #1a1a1a, #050505); border: 1px solid rgba(80,80,80,.4); transition: transform 1.3s var(--ease); }
.armor-left { left: 0; transform-origin: left; }
.armor-right { right: 0; transform-origin: right; }
.armor-stage.open .armor-left { transform: translateX(-105%) rotateY(-25deg); }
.armor-stage.open .armor-right { transform: translateX(105%) rotateY(25deg); }
.armor-light { position: relative; z-index: 2; text-align: center; opacity: 0; transition: opacity 1s .5s; }
.armor-stage.open .armor-light { opacity: 1; }
.armor-light::before { content: ''; position: absolute; inset: -60px; background: radial-gradient(circle, rgba(242,193,78,.4), transparent 70%); filter: blur(20px); z-index: -1; }
.armor-text { font-family: var(--font-display); font-size: clamp(1.6rem, 4.5vw, 3rem); text-transform: uppercase; color: var(--white); }

/* ============================================================
   8. CHAPTER — BROTHERHOOD
   ============================================================ */
.guardrail { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 50px 0; padding-top: 40px; }
.guardrail-track { position: absolute; top: 52px; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); z-index: 0; }
.guardrail-point { position: relative; text-align: center; z-index: 2; cursor: pointer; outline: none; }
.gp-node { display: block; width: 24px; height: 24px; margin: 0 auto 16px; border-radius: 50%; background: var(--charcoal); border: 2px solid var(--gold); box-shadow: 0 0 0 0 rgba(212,175,55,.6); transition: all .4s var(--ease); }
.guardrail-point:hover .gp-node, .guardrail-point:focus .gp-node { background: var(--gold-bright); box-shadow: 0 0 22px 4px rgba(212,175,55,.5); }
.gp-label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-size: clamp(.8rem, 1.6vw, 1.05rem); color: var(--ivory); font-weight: 600; }
.guardrail-point:hover .gp-label, .guardrail-point:focus .gp-label { color: var(--gold-bright); }
@media (max-width: 640px) { .guardrail { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; } .guardrail-track { display: none; } }

/* ============================================================
   9. CHAPTER — PIPELINE
   ============================================================ */
.chapter-pipeline { background: linear-gradient(180deg, transparent, rgba(10,3,5,.55), transparent); }
.pipeline { list-style: none; position: relative; margin: 50px 0; display: grid; gap: 4px; }
.pipeline::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--ruby), var(--gold)); }
.pipe-stage { position: relative; display: flex; align-items: center; gap: 22px; padding: 14px 0; }
.pipe-node { position: relative; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; background: var(--charcoal); border: 2px solid var(--gold); z-index: 2; transition: all .5s var(--ease); }
.pipe-stage.lit .pipe-node { background: var(--gold-bright); box-shadow: 0 0 20px 4px rgba(242,193,78,.6); }
.pipe-label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1.5px; font-size: clamp(1rem, 2.4vw, 1.7rem); color: rgba(247,241,225,.4); transition: color .5s; font-weight: 600; }
.pipe-stage.lit .pipe-label { color: var(--white); }

/* ============================================================
   10. CHAPTER — THRIVE
   ============================================================ */
.chapter-thrive { position: relative; text-align: center; overflow: hidden; transition: background 1.5s; }
.thrive-sky { position: absolute; inset: 0; z-index: 0; background: linear-gradient(to top, rgba(212,175,55,0), rgba(5,5,5,1)); transition: background 1.6s var(--ease); }
.chapter-thrive.dawn .thrive-sky { background: linear-gradient(to top, rgba(242,193,78,.55), rgba(139,0,0,.35) 40%, rgba(5,5,5,.9)); }
.chapter-thrive .chapter-heading, .chapter-thrive .chapter-body, .chapter-thrive .mega-quote { margin-left: auto; margin-right: auto; }
.thrive-word {
  font-family: var(--font-display); font-size: clamp(4rem, 22vw, 16rem); line-height: .85;
  text-transform: uppercase; margin: 20px 0;
  background: linear-gradient(120deg, var(--gold), var(--gold-bright), var(--white), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: 4px;
}
.thrive-word .word-char { display: inline-block; transform: translateY(60%); opacity: 0; }
.thrive-tagline { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 4px; font-size: clamp(1rem, 2.4vw, 1.6rem); color: var(--gold-bright); }

/* ============================================================
   11. QUOTE WALL
   ============================================================ */
.quote-wall { background: linear-gradient(180deg, transparent, rgba(23,23,23,.5)); }
.quote-masonry { columns: 3 280px; column-gap: 26px; }
.q-card {
  break-inside: avoid; margin-bottom: 26px; padding: 30px 26px; border-radius: 18px;
  background: rgba(10,3,5,.6); border: 1px solid rgba(212,175,55,.14); backdrop-filter: blur(6px);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.q-card:hover { transform: translateY(-6px) scale(1.015); border-color: var(--gold); box-shadow: 0 18px 44px rgba(139,0,0,.35), 0 0 30px rgba(212,175,55,.15); }
.q-card p { font-family: var(--font-quote); font-style: italic; font-size: clamp(1.1rem, 1.8vw, 1.4rem); line-height: 1.35; color: var(--white); font-weight: 600; }
.q-card cite { display: block; margin-top: 16px; font-family: var(--font-head); font-style: normal; letter-spacing: 2px; text-transform: uppercase; font-size: .78rem; color: var(--gold-bright); }
.q-card-wide { background: linear-gradient(135deg, rgba(139,0,0,.6), rgba(58,10,18,.7)); text-align: center; border-color: var(--gold); }
.q-tagline { font-family: var(--font-display) !important; font-style: normal !important; text-transform: uppercase; letter-spacing: 2px; font-size: clamp(1.2rem, 2.6vw, 1.9rem) !important; color: var(--gold-bright) !important; }
@media (max-width: 640px) { .quote-masonry { columns: 1; } }

/* ============================================================
   12. ARTICLE ACCORDION
   ============================================================ */
.accordion { max-width: 860px; margin: 0 auto 46px; }
.acc-item { border-bottom: 1px solid rgba(212,175,55,.16); }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 6px; text-align: left; font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: 1px; font-size: clamp(1.05rem, 2.2vw, 1.5rem); color: var(--ivory); transition: color .3s; font-weight: 600;
}
.acc-head:hover, .acc-head[aria-expanded="true"] { color: var(--gold-bright); }
.acc-head i { color: var(--crimson); transition: transform .4s var(--ease); font-size: .9rem; }
.acc-head[aria-expanded="true"] i { transform: rotate(45deg); color: var(--gold-bright); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.acc-body p { padding: 0 6px 26px; font-size: 1.05rem; color: rgba(247,241,225,.82); line-height: 1.75; }
.article-cta { text-align: center; }

/* ============================================================
   13. CLOSING
   ============================================================ */
.closing { text-align: center; overflow: hidden; padding-bottom: 0; }
.closing-glow { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse at 50% 40%, rgba(139,0,0,.4), transparent 60%); }
.closing-inner { position: relative; z-index: 5; }
.closing-logo { width: clamp(120px, 18vw, 200px); margin: 0 auto 34px; filter: drop-shadow(0 0 24px rgba(212,175,55,.5)); }
.closing-heading { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 4.6rem); text-transform: uppercase; line-height: 1; color: var(--white); margin-bottom: 30px; }
.closing-body { max-width: 760px; margin: 0 auto 44px; font-size: clamp(1.05rem, 1.8vw, 1.28rem); color: rgba(247,241,225,.88); }
.closing-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 60px; }
.closing-tagline { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 3px; font-size: clamp(1.3rem, 4vw, 3rem); background: linear-gradient(120deg, var(--gold), var(--gold-bright)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 60px; }
.closing-tagline .word-char { display: inline-block; opacity: 0; transform: translateY(40%); }

.site-footer { position: relative; z-index: 5; padding: 40px 6vw; border-top: 1px solid rgba(212,175,55,.16); background: rgba(0,0,0,.5); }
.site-footer p { font-size: .85rem; color: rgba(247,241,225,.6); }
.footer-motto { font-family: var(--font-quote); font-style: italic; color: var(--gold-bright); margin-top: 8px; font-size: 1rem; }

/* ============================================================
   ANIMATION UTILITIES
   ============================================================ */
.anim { opacity: 0; will-change: transform, opacity; }
.anim[data-anim="fade"] { transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.anim[data-anim="rise"] { transform: translateY(60px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.anim[data-anim="slide-left"] { transform: translateX(-70px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.anim[data-anim="slide-right"] { transform: translateX(70px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.anim[data-anim="mask"] { transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.anim.in-view { opacity: 1; transform: none; }

/* stagger children */
.host-grid .in-view:nth-child(2) { transition-delay: .15s; }
.stable-word.in-view:nth-child(2) { transition-delay: .12s; }
.stable-word.in-view:nth-child(3) { transition-delay: .24s; }

/* ============================================================
   DEFINITION POPUP
   ============================================================ */
.def-pop {
  position: fixed; z-index: 3000; max-width: 260px; padding: 14px 18px;
  background: rgba(5,5,5,.95); border: 1px solid var(--gold); border-radius: 12px;
  color: var(--ivory); font-size: .88rem; line-height: 1.5; pointer-events: none;
  opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s;
  box-shadow: 0 12px 40px rgba(0,0,0,.6), 0 0 24px rgba(212,175,55,.25);
}
.def-pop.show { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE / NAV MOBILE
   ============================================================ */
@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 340px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
    padding: 40px; background: rgba(5,5,5,.96); backdrop-filter: blur(20px);
    transform: translateX(100%); transition: transform .5s var(--ease);
    border-left: 1px solid rgba(212,175,55,.2);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .anim { opacity: 1 !important; transform: none !important; }
  .hero-title .char, .thrive-word .word-char, .closing-tagline .word-char { opacity: 1 !important; transform: none !important; }
  .light-sweep, .panel-rings, .breathing-bg, .noise-fragments span, .stable-word::before { display: none; }
  #emberCanvas { display: none; }
  .armor-stage .armor-left, .armor-stage .armor-right { transform: none !important; opacity: .3; }
  .armor-light { opacity: 1 !important; }
  .timeline-line { height: 200px !important; }
  .hp-fill { width: 100% !important; }
}
