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

/* =====================================================================
   ROOT VARIABLES
   ===================================================================== */
:root{
  --accent: #A32000;
  --accent-bright: #E34646;
  --accent-rgba: 194,53,53;               /* used for rgba(var(--accent-rgba), x) */
  --bg-dark: #0A0A0A;
  --text-light: #D6D6D6;
  --header-font: 'Share Tech Mono', monospace;
}

/* =====================================================================
   BASE
   ===================================================================== */
body{
  font-family: 'Roboto', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* kill extension overlays (your original rule) */
html > div[style], body + div[is-visible], #detach-button-host{ display:none !important; }

/* =====================================================================
   STATIC GRAIN (CONSOLIDATED — single definition)
   ===================================================================== */
.grain{
  position: fixed;
  inset: 0;
  background: url("assets/images/grain.jpg") repeat;
  opacity: .05;
  pointer-events: none;
  z-index: 100;
}

/* =====================================================================
   UNIVERSAL ANIMATIONS (UNIFIED FLICKER)
   ===================================================================== */
@keyframes flickerBase{
  0%,100%{opacity:1}
  45%{opacity:.8}
  50%{opacity:.6}
  55%{opacity:.85}
}
/* header/intro fade-ins */
@keyframes fadeIn{from{opacity:0;transform:translate(-50%,-48%)}to{opacity:1;transform:translate(-50%,-50%)}}
@keyframes fadeIntro{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}

/* glitch animations (kept intact) */
@keyframes glitchShiftBefore{
  0%,19%,21%,59%,61%,100%{clip-path:inset(0 0 0 0)}
  20%{clip-path:inset(10% 0 85% 0);transform:translate(-2px,-2px)}
  60%{clip-path:inset(40% 0 43% 0);transform:translate(2px,2px)}
}
@keyframes glitchShiftAfter{
  0%,19%,21%,59%,61%,100%{clip-path:inset(0 0 0 0)}
  20%{clip-path:inset(60% 0 25% 0);transform:translate(2px,-1px)}
  60%{clip-path:inset(15% 0 70% 0);transform:translate(-2px,1px)}
}
@keyframes glitchColorShift{0%{filter:hue-rotate(0)}100%{filter:hue-rotate(-15deg)}}

/* =====================================================================
   HEADER (CONSOLIDATED — removes duplicate header block)
   ===================================================================== */
.site-header{
  position: sticky; top: 0; width: 100%;
  z-index: 1000;
  display: flex; justify-content: space-between; align-items: center;
  padding: .8rem 1.4rem;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(var(--accent-rgba), .3);
  box-shadow: 0 0 15px rgba(var(--accent-rgba), .05);
  box-sizing: border-box;
}
.site-header::after{
  content:""; position:absolute; inset:0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.05), rgba(255,255,255,.05) 1px, transparent 2px);
  pointer-events:none; opacity:.25; mix-blend-mode:overlay;
  animation: flickerBase 8s infinite linear;         /* replaced headerFlicker */
}
.site-header h1{
  font-family: "IM Fell Great Primer SC", serif;
  font-size: 1.6rem; color: var(--accent); letter-spacing: 4px;
  text-shadow: 0 0 4px rgba(var(--accent-rgba), .5), 0 0 12px rgba(var(--accent-rgba), .7);
}
.site-header nav{
  display:flex; gap:1.5rem; flex-wrap:wrap; align-items:center; justify-content:center;
}
.site-header nav a{
  color:#b8b8b8; text-decoration:none; letter-spacing:1px; text-transform:uppercase;
  font-size:.9rem; font-family: var(--header-font);
  transition: color .25s ease, text-shadow .25s ease;
}
.site-header nav a:hover{ color: var(--accent-bright); text-shadow:0 0 8px rgba(227,70,70,.7) }
.site-header nav a::after{
  content:""; display:block; height:1px; margin-top:4px;
  background: rgba(var(--accent-rgba), .4);
  transform: scaleX(0); transition: transform .3s ease;
}
.site-header nav a:hover::after{ transform: scaleX(1) }

/* header-left group */
.header-left{ display:flex; align-items:center; gap:.8rem; flex-shrink:1 }

/* Site title link */
.site-title-link{ color: var(--accent); text-decoration:none; display:inline-block; }
.site-title-link:hover{ color: var(--accent-bright); text-shadow: 0 0 8px rgba(227,70,70,.7) }

/* =====================================================================
   SOCIAL ICONS
   ===================================================================== */
.social-icons{ display:flex; align-items:center; justify-content:center; gap:.8rem }
.social-icons a{
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px; flex-shrink:0;
  transition: transform .2s ease, filter .2s ease; overflow:visible;
}
.social-icons img{
  width:100%; height:auto; aspect-ratio:1/1; object-fit:contain;
  filter: grayscale(80%) brightness(.8);
  transform: scale(1.6); transform-origin:center; pointer-events:none; border-radius:50%;
}
.social-icons a:hover img{
  filter: brightness(1.3) drop-shadow(0 0 4px var(--accent, #fff));
  transform: scale(1.8);
}

/* =====================================================================
   MOBILE NAV (kept; no changes beyond consolidation)
   ===================================================================== */
   @media (max-width: 800px){
     .site-header{ flex-wrap:wrap; justify-content:space-between }
     .header-left{ flex-direction:row; flex-wrap:nowrap; gap:.8rem }
     .site-header h1{ font-size:1.2rem; letter-spacing:2px; white-space:nowrap }

     .site-header nav{ display:none }
     .site-header nav.open{ display:flex; flex-direction:column }

     /* HAMBURGER → X (no morphing) */
     .menu-toggle{
       position:relative;
       display:flex; justify-content:center; align-items:center;
       cursor:pointer; width:40px; height:40px;
       background: rgba(0,0,0,.85); border-radius:50%;
       z-index:1001; margin-left:auto;
     }
     .menu-toggle span{
       position:absolute; left:50%;
       width:22px; height:2px; background:#e3e3e3;
       transform:translateX(-50%); transform-origin:center;
       transition: top .25s ease, transform .25s ease, opacity .2s ease;
       margin:0; /* kill the old margin-based layout that causes drift */
     }
     .menu-toggle span:nth-child(1){ top:12px }
     .menu-toggle span:nth-child(2){ top:19px }
     .menu-toggle span:nth-child(3){ top:26px }

     .menu-toggle.open span:nth-child(1){
       top:19px; transform:translateX(-50%) rotate(45deg);
     }
     .menu-toggle.open span:nth-child(2){
       opacity:0;
     }
     .menu-toggle.open span:nth-child(3){
       top:19px; transform:translateX(-50%) rotate(-45deg);
     }

     #mainNav{
       position:absolute; top:calc(100% + 6px); right:.5rem;
       width:200px; max-width:75vw; background: rgba(0,0,0,.9);
       border-radius:10px; overflow:hidden; opacity:0; transform: translateY(-6px); pointer-events:none;
       transition: opacity .22s ease, transform .22s ease;
       display:flex; flex-direction:column; align-items:stretch; box-shadow:0 8px 18px rgba(0,0,0,.8);
     }
     #mainNav.open{ opacity:1; transform:translateY(0); pointer-events:auto }
     #mainNav a{
       padding:1rem; border-bottom:1px solid rgba(255,255,255,.06);
       font-family: var(--header-font); color:#ccc; text-align:center; letter-spacing:1px; font-size:.95rem;
     }
     #mainNav a:hover{ background: rgba(var(--accent-rgba), .15); color: var(--accent-bright) }
   }


/* =====================================================================
   HERO
   ===================================================================== */
.hero{ position:relative; width:100%; height:330px; overflow:hidden }
.hero-video{ width:100%; height:100%; object-fit:cover; filter: grayscale(100%) brightness(.6) }
.hero::after{
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at center, transparent 50%, rgba(0,0,0,.6) 100%);
  pointer-events:none;
}
.hero-overlay{
  position:absolute; top:50%; left:50%; transform: translate(-50%,-50%);
  text-align:center; animation: fadeIn 2.5s ease-out;
}
.hero-text-bg{
  display:inline-block; background: rgba(10,10,10,.65); backdrop-filter: blur(3px);
  padding:1rem 2rem; border-radius:8px; box-shadow:0 0 12px rgba(0,0,0,.4);
  border:1px solid rgba(80,0,0,.3);
}

/* =====================================================================
   GLITCH TEXT
   ===================================================================== */
.hero-glitch{
  font-family:"Quintessential", serif; font-weight:400; line-height:1.5;
  position:relative; color: var(--accent); font-size:2.2rem; letter-spacing:1px;
  animation: glitchColorShift 6s infinite linear alternate;
  text-shadow:0 0 2px rgba(0,0,0,.8), 0 0 6px rgba(0,0,0,.3);
}
.hero-glitch::before,
.hero-glitch::after{
  content: attr(data-text);
  position:absolute; left:0; top:0; width:100%; color: var(--accent); opacity:.6;
}
.hero-glitch::before{ text-shadow:-2px 0 var(--accent); animation: glitchShiftBefore 2s infinite linear alternate-reverse }
.hero-glitch::after{  text-shadow: 2px 0 var(--accent); animation: glitchShiftAfter  3s infinite linear alternate-reverse }

.glitch-text{
  font-family:'Roboto Mono', monospace; color:#999; letter-spacing:.5px; transition: color .3s ease;
}
.glitch-text.stabilized{ color:#888; text-shadow:0 0 6px rgba(var(--accent-rgba), .5) }

/* =====================================================================
   CONTENT GRID + CARDS
   ===================================================================== */
.content-grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap:2rem; max-width:1400px; margin:0 auto 3rem; padding:0 2rem;
}
.content-card{
  display:flex; flex-direction:column; background:#141414;
  border:1px solid rgba(var(--accent-rgba), 0); border-radius:8px; overflow:hidden;
  color:inherit; text-decoration:none;
  box-shadow:0 0 0 rgba(var(--accent-rgba), 0);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.content-card:hover{
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgba), .45);
  box-shadow:0 0 12px rgba(var(--accent-rgba), .35);
  background-color: rgba(163,32,0,.04);
}
.card-img{ width:100%; height:160px; object-fit:cover; filter: grayscale(90%) }
.card-body{ padding:1rem }
.card-body h3{
  color:var(--accent); font-family:'Roboto Mono', monospace; font-size:1.2rem;
  transition: color .25s ease;
}
.card-body p{
  color:#bfbfbf; font-size:.95rem; margin-top:.5rem;
  transition: color .25s ease;
}
.content-card:hover h3{ color: var(--accent-bright) }
.content-card:hover p{ color:#ddd }

/* COMING SOON state */
.content-card.coming-soon{
  position:relative; filter: grayscale(70%) brightness(.85);
  cursor:default; pointer-events:none; overflow:hidden;
}
.content-card.coming-soon:hover{ transform:none; border-color: rgba(255,0,0,.2); box-shadow:none }
.content-card.coming-soon .card-img-container{
  position:relative; display:flex; justify-content:center; align-items:center; overflow:hidden; background:none;
}
.content-card.coming-soon .card-img-container img{ display:block; margin-bottom:-1px }
.content-card.coming-soon .card-img-container .card-overlay{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  background: rgba(0,0,0,.45); z-index:2; pointer-events:none;
}
.content-card.coming-soon .card-overlay span{
  display:block; font-family: var(--header-font); color:#ff2b2b; text-transform:uppercase; letter-spacing:2px; line-height:1.3;
  font-size: clamp(.9rem, 3vw, 1.2rem);
  text-shadow:0 0 10px rgba(255,0,0,.8);
  background: rgba(0,0,0,.5); padding:4px 10px; border-radius:4px; border:1px solid rgba(255,0,0,.25);
  animation: flickerBase 2.7s infinite ease-in-out;
}
.content-card.coming-soon p{ color:#aaa }

/* =====================================================================
   SECTION BANNERS (unified to flickerBase)
   ===================================================================== */
.section-banner,
.section-banner-nopad{
  display:block; position:relative; text-align:center;
  font-family: var(--header-font); font-size:1.1rem; letter-spacing:2px; text-transform:uppercase;
  color: var(--accent);
  background: linear-gradient(90deg, rgba(30,0,0,.8), rgba(70,0,0,.8));
  border-top:1px solid rgba(var(--accent-rgba), .3);
  border-bottom:1px solid rgba(var(--accent-rgba), .3);
  box-shadow: inset 0 0 15px rgba(0,0,0,.5);
  text-shadow: 0 0 8px rgba(var(--accent-rgba), .4);
}
.section-banner{ padding:.4rem 0; margin-bottom:1rem }
.section-banner-nopad{ padding:0; margin:0 }
.section-banner::after,
.section-banner-nopad::after{
  content:""; position:absolute; inset:0;
  background: rgba(var(--accent-rgba), .05);
  mix-blend-mode: overlay;
  animation: flickerBase 3s infinite ease-in-out alternate;          /* replaced bannerFlicker */
}

/* =====================================================================
   NAV BREADCRUMB BANNER
   ===================================================================== */
.nav-banner,
.nav-banner-nopad{
  display:flex; align-items:center; justify-content:center;
  text-transform:uppercase; font-family: var(--header-font); letter-spacing:2px;
  color: var(--accent);
  text-shadow:0 0 8px rgba(var(--accent-rgba), .4);
  background: rgba(10,0,0,.7);
  border-top:1px solid rgba(var(--accent-rgba), .25);
  border-bottom:1px solid rgba(var(--accent-rgba), .25);
  box-shadow: inset 0 0 10px rgba(0,0,0,.5);
  position:relative;
}
.nav-banner{ padding:.6rem 0; margin:0 0 1rem 0 }
.nav-banner-nopad{ padding:.25rem 0; margin:0 }
.nav-banner::after,
.nav-banner-nopad::after{
  content:""; position:absolute; inset:0;
  background: rgba(163,32,0,.06); mix-blend-mode: overlay; pointer-events:none; z-index:0;
  animation: flickerBase 4s infinite ease-in-out alternate;          /* replaced navBannerFlicker */
}
.nav-banner *, .nav-banner-nopad *{ position:relative; z-index:1 }
.nav-link{ color: var(--text-light); text-decoration:none; transition: color .25s ease, text-shadow .25s ease }
.nav-link:hover{ color: var(--accent-bright); text-shadow:0 0 6px rgba(227,70,70,.7) }
.nav-link.active{ color: var(--accent); text-shadow: 0 0 8px rgba(var(--accent-rgba), .6); pointer-events:none }
.nav-divider{ margin:0 .4rem; color: var(--accent); opacity:.9 }

/* =====================================================================
   INTRO CINEMATIC
   ===================================================================== */
.intro-cinematic{
  position:relative; height:44vh; display:flex; align-items:center; justify-content:center;
  background: url("../assets/images/record-2.png") center/cover no-repeat; overflow:hidden;
}
.intro-cinematic::after{
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at center, rgba(0,0,0,.6), rgba(0,0,0,.9));
  mix-blend-mode: multiply;
}
.intro-overlay {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 2rem;
  background: rgba(10,10,10,.55);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(var(--accent-rgba), .3);
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(0,0,0,.6);
  animation: fadeIntro 3.0s ease-in;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;       /* center both title + paragraph */
}

.intro-overlay h2 {
  font-family: "IM Fell Great Primer SC", serif;
  color: var(--accent);
  font-size: 2.8rem;        /* slightly bigger */
  letter-spacing: 3px;
  margin-bottom: 1.2rem;
  text-shadow: 0 0 12px rgba(var(--accent-rgba), .5);
  text-align: center;
}

.intro-overlay p {
  color: #cfcfcf;
  font-family: 'Roboto Mono', monospace;
  font-size: 1.1rem;
  line-height: 1.8;
  letter-spacing: .4px;
  text-align: center;
  max-width: 800px;         /* keeps nice readable width */
}

/* =====================================================================
   PANEL + RECORDS (kept; minor tidy)
   ===================================================================== */
.panel{
  display:flex; align-items:center; justify-content:center; position:relative;
  padding:4rem 0; overflow:hidden;
  background: linear-gradient(to right, rgba(0,0,0,.9) 0%, rgba(20,0,0,.85) 100%);
  border-top:1px solid rgba(255,0,0,.1);
}
/* Shared Image */
.panel img, .record-img{
  width:45%; height:600px; object-fit:cover; opacity:.85;
  filter: grayscale(70%) brightness(.8) contrast(1.1);
  mix-blend-mode: lighten;
  transition: transform .6s, filter .6s, opacity .6s;
  mask-image: linear-gradient(to right, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, black 90%, transparent);
}
.panel:hover img{ transform: scale(1.03); filter: grayscale(40%) brightness(.9); opacity:1 }

/* Shared Text */
.panel .text{
  width:55%; padding:3rem; position:relative;
  background: radial-gradient(circle at 40% 50%, rgba(10,0,0,.8), rgba(0,0,0,.95));
  box-shadow: inset 0 0 30px rgba(0,0,0,.6);
  z-index:2; color: var(--text-light);
  border:1px solid rgba(150,0,0,.2); backdrop-filter: blur(2px);
  text-shadow:0 0 6px rgba(0,0,0,.6);
}
.panel .text h2{
  position:relative; display:inline-block; padding:4px 10px;
  background: rgba(0,0,0,.6); border-radius:4px; box-shadow:0 0 10px rgba(0,0,0,.3);
  margin-bottom:1rem; font-family:"IM Fell Great Primer SC", serif; font-size:1.6rem; color:#ff3b3b; letter-spacing:1.2px;
  text-shadow:0 0 6px rgba(255,0,0,.8), 0 0 12px rgba(255,0,0,.5);
}
.panel .text h2 span{
  font-family: var(--header-font); font-size:.9rem; margin-left:.5rem; color: rgba(163,32,0,.7); letter-spacing:1px; opacity:.9;
  text-shadow: 0 0 4px rgba(255,255,255,.25), 0 0 8px rgba(255,60,60,.3);
}
.panel .text p{
  line-height:1.7; letter-spacing:.3px; color:#ccc; font-size:1.05rem; text-align:justify; margin-bottom:1rem;
}
.panel .text em{ color:#ff4d4d; text-shadow:0 0 6px rgba(255,0,0,.3) }

/* Records Page tweaks */
.records-main .panel{ min-height:87vh; display:flex; align-items:center }
.records-main .record-img{ height:100%; object-fit:cover }

/* Responsive Panels */
@media (max-width: 900px){
  .panel{ flex-direction:column !important }
  .panel img, .record-img{ width:100% !important; mask-image:none !important; -webkit-mask-image:none !important }
  .panel .text{ width:100% !important; padding:1.5rem !important; text-align:center }
  .panel .text h2{ font-size:1.4rem !important; margin-bottom:.5rem !important }
}
@media (max-width: 768px){
  .panel{ padding-top:2.5rem; padding-bottom:3rem }
  .panel .record-img{ margin-top:3rem; margin-bottom:1.5rem }
}
@media (max-width: 600px){ .panel .text h2{ font-size:1.2rem !important } }
@media (max-width: 480px){
  .panel{ padding-top:3rem; padding-bottom:2.5rem }
  .panel .record-img{ margin-top:4.25rem; margin-bottom:0 }
}

/* =====================================================================
   INFO PAGE TEMPLATE + STRUCTURE
   ===================================================================== */
.info-page{
  max-width:900px; margin:3rem auto 4rem; padding:2rem 2.5rem; position:relative;
  color: var(--text-light); z-index:1; background:none; border:none; box-shadow:none; border-radius:0;
}
.info-page::before, .info-page::after{ content:none }

@media (min-width:900px){
  .info-page{
    background: rgba(10,0,0,.35) url('../assets/images/texture-tile.png') repeat;
    background-size:512px 512px;
    border:1px solid rgba(163,32,0,.35);
    box-shadow:0 0 25px rgba(163,32,0,.15); border-radius:6px;
  }
  .info-page::before{
    content:""; position:absolute; inset:0; border:1px solid rgba(163,32,0,.25);
    box-shadow: inset 0 0 20px rgba(163,32,0,.15); border-radius:6px; pointer-events:none; z-index:0;
  }
  .info-page::after{
    content:""; position:absolute; inset:0; background: rgba(0,0,0,.4); backdrop-filter: blur(3px); border-radius:6px; z-index:-1;
  }
}
@media (max-width:899px){
  .info-page{ margin-top:0 }
  .info-header h1{ margin-top:0 }
  .info-header p{ margin-top:.75rem }
}

.info-header{ text-align:center; margin-bottom:2rem }
.info-header h1{
  font-family:"IM Fell Great Primer SC", serif; color: var(--accent); font-size:2rem; letter-spacing:2px;
  text-shadow:0 0 10px rgba(163,32,0,.6);
}
.info-header p{ font-family:'Roboto Mono', monospace; color:#aaa; margin-top:.6rem; line-height:1.6 }

.info-section{
  margin-bottom:2.5rem; padding-bottom:2rem; border-bottom:1px solid rgba(163,32,0,.15);
}
.info-section:last-child{ border-bottom:none }
.info-section h2{
  color: var(--accent); font-family: var(--header-font); letter-spacing:1px; text-transform:uppercase; font-size:1.3rem;
  margin-bottom:.75rem; text-shadow:0 0 8px rgba(163,32,0,.3);
}
.info-section h3{ color:#c44; font-size:1.1rem; margin:1rem 0 .5rem; font-family:'Roboto Mono', monospace }
.info-section p{ line-height:1.7; color:#ccc; margin-bottom:.75rem }
.info-section ul{ margin-left:1.5rem; margin-bottom:1rem }
.info-section li{ margin-bottom:.4rem }

/* INFO BOXES */
.info-box{
  background: rgba(40,0,0,.6); border:1px solid rgba(163,32,0,.4);
  padding:.9rem 1rem; border-radius:6px; font-family:'Roboto Mono', monospace; margin-top:1rem;
  box-shadow:0 0 12px rgba(0,0,0,.4); color:#ddd;
}
.info-box.warning{ border-color: rgba(227,70,70,.6); background: rgba(60,0,0,.7) }

/* ACCENT LINKS */
.link-accent{ color: var(--accent-bright); text-decoration:none }
.link-accent:hover{ text-shadow:0 0 6px rgba(227,70,70,.8) }

/* INFO LIST */
.info-list{ margin:1.5rem 0 }
.info-list ul{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap:.25rem 2rem; list-style:none; padding:0; margin:0;
}
.info-list li{
  padding:.6rem .75rem; background: rgba(255,255,255,.02);
  border:1px solid rgba(255,60,60,.08); border-radius:4px;
  transition: background .2s ease, border .2s ease;
  display:flex; flex-direction:column; justify-content:center;
}
.info-list li:hover{ background: rgba(255,60,60,.05); border-color: rgba(255,60,60,.15) }
.info-list .race{ font-size:1rem; color: var(--text-light); font-weight:600 }
.info-list .subrace{
  font-size:.85rem; color: rgba(255,120,120,.65); margin-top:.2rem; font-weight:400; letter-spacing:.3px;
}
@media (max-width:700px){
  .info-list ul{ grid-template-columns:1fr; gap:.1rem }
  .info-list li{ padding:.35rem .25rem; border-bottom:1px dotted rgba(255,60,60,.1) }
}

/* =====================================================================
   FAQ
   ===================================================================== */
.faq{ display:flex; flex-direction:column; gap:1.5rem; margin-top:1.5rem }
.faq-item{
  background: rgba(255,255,255,.02); border:1px solid rgba(255,60,60,.08);
  border-radius:6px; padding:1rem 1.25rem; transition: background .25s ease, border .25s ease;
}
.faq-item:hover{ background: rgba(255,60,60,.05); border-color: rgba(255,60,60,.15) }
.faq-item h3{ color: rgba(255,90,60,.95); font-size:1.1rem; font-weight:700; margin-bottom:.6rem }
.faq-item p, .faq-item li{ color: var(--text-light); line-height:1.6; margin:.25rem 0 }
.faq-item ul{ margin-top:.5rem; margin-left:1.25rem }

/* =====================================================================
   GUIDE NAVIGATION SYSTEM
   ===================================================================== */
.guide-container{ position:relative; overflow:hidden; width:100%; max-width:100vw }
.guide-slide{
  position:absolute; top:0; left:0; width:100%;
  opacity:0; transform: translateX(100%);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events:none;
}
.guide-slide.active{
  opacity:1; transform: translateX(0);
  position:relative; pointer-events:all;
}
.guide-slide:not(.active){ transform: translateX(-100%) }

/* avoid horizontal bleed */
html, body {
  overflow-x: clip;   /* safe */
  overflow-y: visible; /* restore sticky behavior */
}

/* shared nav styles */
.guide-nav{ display:flex; align-items:center; justify-content:center; gap:1.2rem; margin-top:1.5rem }
.guide-dots{ display:flex; gap:.5rem }
.dot{
  width:10px; height:10px; border-radius:50%;
  background: rgba(255,255,255,.2);
  border:1px solid rgba(255,0,0,.5);
  transition: background .3s; cursor:pointer;
}
.dot.active{ background:red }

/* nav buttons */
.guide-btn{
  background: rgba(0,0,0,.55);
  border:1px solid rgba(var(--accent-rgba), .6);
  color: var(--accent);
  font-size:1.5rem; padding:.25rem .75rem; border-radius:4px; cursor:pointer; transition: all .2s ease;
}
.guide-btn:hover{ background: rgba(255,0,0,.15); border-color: var(--accent-bright); color: var(--accent-bright) }

/* top variant */
.guide-nav-top{ margin:.5rem 0 1.5rem }
.guide-nav-top .guide-btn{ font-size:1.3rem; padding:.2rem .6rem }
.guide-nav-top .guide-dots{ gap:.4rem }

/* inside panel overlay variant */
.guide-nav.inside-panel{
  position:absolute; bottom:1.5rem; left:50%; transform: translateX(-50%);
  z-index:10; display:flex; align-items:center; justify-content:center; gap:1.2rem;
}
.guide-nav.inside-panel.top{
  top:0rem;
  bottom:auto
}

/* =====================================================================
   RESPONSIVE HERO + BANNERS
   ===================================================================== */
@media (max-width: 800px){
  .hero-text-bg {
    position: relative !important;
    width: 80vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    box-sizing: border-box !important;
    padding: 1rem 2rem !important;
    text-align: center !important;
  }

  .hero-glitch {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
    text-align: center !important;
    letter-spacing: .5px !important;
    word-break: keep-all !important;
  }

  .glitch-text {
    font-size: .8rem !important;
  }

  .section-banner {
    font-size: .8rem !important;
    letter-spacing: 1px !important;
    padding: .3rem 0 !important;
  }

  .hero-video,
  .hero {
    height: 42vh !important;
    object-fit: cover !important;
    object-position: center center !important;
    overflow: hidden !important;
  }

  #mainNav { gap: 0; padding: 0; }
  #mainNav a { margin: 0; }

  /* Fixed-height cinematic intro (mobile) */
  .intro-cinematic {
    height: 36vh;                    /* consistent height */
    min-height: 260px;               /* ensures readability on very small screens */
    padding: 0;                      /* removes extra space */
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
  }

  .intro-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 1.5rem !important;
    max-width: 95% !important;
    margin: 0 auto;
  }

  .intro-overlay h2 {
    font-size: 1.8rem !important;
    text-align: center !important;
    margin-bottom: 0.6rem !important;
  }

  .intro-overlay p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    text-align: left !important;
    max-width: 420px !important;
    margin: 0 auto;
  }

}

@media (max-width: 480px){
  /* tighten the space above the image on mobile */
  .records-main .panel {
    padding-top: 1rem;   /* was 2.5rem */
  }

  /* keep the nav pinned close to the banner */
  .guide-nav.inside-panel.top {
    top: 0rem;
    transform: translateX(-50%); /* no scale */
  }

}


/* =====================================================================
   FOOTER
   ===================================================================== */
footer{
  background:#111; border-top:1px solid #222; text-align:center;
  padding:1rem 0; color:#777; font-size:.9rem; margin-top:auto;
}

/* =====================================================================
   BULK ADDITIONS - NEED CONSOLIDATING
   ===================================================================== */

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 100%;           /* remove the restriction */
  margin: 0 auto 3rem;
  padding: 0 3rem;
}
@media (min-width: 1800px) {
  .content-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    padding: 0 6rem;
  }
}



/* === Shared Base Height === */
.hero,
.intro-cinematic {
  height: clamp(300px, 40vh, 600px);
}

/* === Mobile Adjustment === */
@media (max-width: 768px) {
  .hero,
  .intro-cinematic {
    height: clamp(220px, 32vh, 380px);
  }
}

@media (min-width: 1600px) {
  .hero,
  .intro-cinematic {
    height: clamp(500px, 55vh, 750px);
  }
}



.content-card {
  height: 280px;              /* set whatever height you want */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-body {
  flex-grow: 1;
}
.card-img {
  height: 160px;              /* keep consistent image height */
  object-fit: cover;
}

@media (max-width: 600px) {
  /* shrink entire recovered records section */
  .intro-cinematic {
    height: 15vh !important;     /* reduce from 36vh */
    min-height: 180px !important;
    padding: 0 !important;
  }

  .intro-overlay {
    padding: 0.6rem 1rem !important;  /* less internal spacing */
  }

  .intro-overlay h2 {
    font-size: 1.3rem !important;     /* smaller heading */
    margin-bottom: 0.3rem !important;
  }

  .intro-overlay p {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }
}

@media (max-width: 600px) {
  .content-card {
    height: auto !important;           /* let it size to content */
    margin-bottom: 1rem;               /* a bit of spacing between cards */
  }

  .card-img {
    height: 110px !important;          /* smaller image height */
  }

  .card-body {
    padding: 0.6rem 0.8rem !important; /* tighter internal spacing */
  }

  .card-body h3 {
    font-size: 1rem !important;        /* smaller title */
    margin-bottom: 0.3rem !important;
  }

  .card-body p {
    font-size: 0.85rem !important;     /* smaller text */
    line-height: 1.4 !important;
  }

  .content-grid {
    gap: 0rem !important;            /* reduce spacing between cards */
    padding: 0 1rem !important;        /* tighten horizontal padding */
  }
}

@media (max-width: 600px) {
  .content-card {
    height: 193px !important;              /* fixed uniform height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .card-img {
    height: 100px !important;              /* image takes top half */
    object-fit: cover;
  }

  .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;               /* centers text vertically */
    align-items: flex-start;
    padding: 0.5rem 0.8rem !important;
  }

  .card-body h3 {
    font-size: 1rem !important;
    margin-bottom: 0.25rem !important;
  }

  .card-body p {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
  }
}

@keyframes fadeZoomIn {
  from { opacity: 0; transform: scale(0.96); filter: blur(3px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}
.intro-overlay {
  animation: fadeZoomIn 1s ease-out;
}

/* FINAL MOBILE OVERRIDE */
@media (max-width: 600px){
  .hero,
  .hero-video { height: 20vh !important; }   /* tweak 18–24vh to taste */
  .intro-cinematic { height: 20vh !important; }
}

/* === Hide Character Creation description text on mobile === */
@media (max-width: 600px) {
  .info-header p {
    display: none !important;
  }
}

/* === CHARACTER TEMPLATE === */
.character-template {
  background: rgba(40, 0, 0, 0.5);
  border: 1px solid rgba(163, 32, 0, 0.4);
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  font-family: 'Roboto Mono', monospace;
  color: #ddd;
}

.character-template h3 {
  color: var(--accent);
  font-family: var(--header-font);
  text-transform: uppercase;
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(163, 32, 0, 0.4);
  border-bottom: 1px solid rgba(163, 32, 0, 0.2);
  padding-bottom: 0.3rem;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.8rem 1.5rem;
}

.template-grid div {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 60, 60, 0.1);
  padding: 0.7rem 0.9rem;
  border-radius: 4px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.template-grid div:hover {
  background: rgba(255, 60, 60, 0.05);
  border-color: rgba(255, 60, 60, 0.25);
}

.template-grid strong {
  color: #ff3b3b;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(255, 0, 0, 0.3);
}

.subtext {
  color: #aaa;
  font-size: 0.85rem;
  display: block;
  margin-top: 0.2rem;
  line-height: 1.4;
}

/* Mobile-friendly layout */
@media (max-width: 700px) {
  .template-grid {
    grid-template-columns: 1fr;
  }
}

/* === CHARACTER TEMPLATE INTERACTIVE === */
.character-template label {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 60, 60, 0.1);
  padding: 0.7rem 0.9rem;
  border-radius: 4px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.character-template label:hover {
  background: rgba(255, 60, 60, 0.05);
  border-color: rgba(255, 60, 60, 0.25);
}

.character-template textarea {
  background: rgba(0, 0, 0, 0.5);
  color: #ddd;
  border: none;
  resize: vertical;
  margin-top: 0.4rem;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  min-height: 2rem;
  border-radius: 3px;
  padding: 0.3rem 0.4rem;
  border: 1px solid rgba(163, 32, 0, 0.4);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.character-template textarea:focus {
  outline: none;
  border-color: var(--accent-bright);
  box-shadow: 0 0 6px rgba(227, 70, 70, 0.5);
}

.copy-btn {
  margin-top: 1.8rem;
  padding: 0.7rem 1.5rem;
  font-family: var(--header-font);
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(227, 70, 70, 0.6);
  color: var(--accent);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.copy-btn:hover {
  background: rgba(255, 0, 0, 0.1);
  color: var(--accent-bright);
  border-color: var(--accent-bright);
  box-shadow: 0 0 10px rgba(227, 70, 70, 0.3);
}

.copy-msg {
  text-align: center;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
  color: #8cff8c;
  opacity: 0;
  margin-top: 0.5rem;
  transition: opacity 0.3s ease;
}

.copy-msg.show {
  opacity: 1;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem; /* add this if spacing feels tight */
}

/* keep icons right-aligned */
.social-icons {
  margin-left: 1rem;
}

.social-icons {
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255,255,255,0.05);
}

.social-icons:hover {
  border-color: rgba(227,70,70,0.25);
}

.social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(227,70,70,0.25); /* brighter divider */
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.social-icons img {
  width: 100%;
  height: auto;
  filter: grayscale(60%) brightness(0.9);
  transform: scale(1.4);
  border-radius: 50%;
}

.social-icons a:hover img {
  filter: brightness(1.4) drop-shadow(0 0 6px rgba(227,70,70,0.7));
  transform: scale(1.6);
}

.social-icons:hover {
  border-color: rgba(227,70,70,0.4); /* glow on hover */
}

/* Hide burger on desktop */
.menu-toggle { display: none; }

.site-header{
  display: flex;
  justify-content: space-between;  /* left group vs right group */
  align-items: center;
}

/* NEW: group nav + icons so there’s no giant void */
.header-right{
  display: flex;
  align-items: center;
  gap: .8rem;                      /* space between nav and divider */
}

/* tighter nav spacing */
.site-header nav{ display:flex; gap:1rem; align-items:center; }

/* brighter divider + tight spacing to nav */
.social-icons{
  display:flex; align-items:center; gap:.6rem;
  padding-left:.9rem;               /* divider breathing room */
  border-left:1px solid rgba(227,70,70,.35); /* stronger at rest */
  margin-left:0;                    /* kill big gap */
}

/* optional tiny vertical nudge if needed */
.social-icons{ transform: translateY(1px); }

/* mobile: show burger + stack nav */
@media (max-width: 800px){
  .menu-toggle{ display:flex; }     /* already styled below in your CSS */
  .header-right{ gap:0 }            /* menu opens as panel anyway */
}

@media (max-width: 800px) {
  .site-header {
    padding: 0.4rem 0.8rem;
  }

  .header-right {
    gap: 0.4rem;
  }

  .social-icons {
    padding-left: 0.5rem;
    border-left: 1px solid rgba(227,70,70,0.25);
  }
}

/* Right group is a row */
.header-right{ display:flex; align-items:center; gap:.8rem; }

/* Desktop (menu hidden; icons sit left of where menu would be) */
.menu-toggle{ display:none; }
.social-icons{
  margin-left:0;
  padding-left:.9rem;
  border-left:1px solid rgba(227,70,70,.35);
}

/* Mobile: show menu, FLIP order so icon is left of the burger, burger is FAR RIGHT */
@media (max-width:800px){
  .menu-toggle{ display:flex; order:2; }           /* burger on the far right */
  #mainNav{ display:none; }                        /* your existing hide is fine */

  .social-icons{
    order:1;                                       /* icon before burger */
    border-left:none;                               /* move divider to the other side */
    padding-left:0;
    margin-left:0;
    border-right:1px solid rgba(227,70,70,.35);
    padding-right:.9rem;
    margin-right:.6rem;
  }
}

@media (max-width: 800px) {
  #mainNav {
    position: absolute;
    top: calc(100% + 6px);
    right: .5rem;
    width: 200px;
    max-width: 75vw;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 10px;
    overflow: hidden;

    display: flex;                        /* stay flex for animation */
    flex-direction: column;
    align-items: stretch;

    opacity: 0;                           /* hidden by fade */
    transform: translateY(-6px);          /* slight upward offset */
    pointer-events: none;                 /* disable clicks when hidden */
    transition: opacity .25s ease, transform .25s ease;
    z-index: 1002;
  }

  #mainNav.open {
    opacity: 1;                           /* fade in */
    transform: translateY(0);             /* slide down */
    pointer-events: auto;                 /* re-enable interaction */
  }
}

@media (max-width: 800px) {
  .site-header {
    flex-wrap: nowrap !important;
    overflow: visible !important; /* let the dropdown escape */
  }

  .header-left h1 {
    font-size: 1rem !important;     /* shrink text */
    white-space: nowrap;
  }

  .header-right {
    flex-shrink: 0;                 /* keep icons + burger visible */
  }
}

@media (max-width: 800px) {
  .hero,
  .hero-video {
    height: 40vh !important;
  }
}

    /* =====================================================================
       SYSTEMS PAGE TEMPLATE
       Reusable structure for long-form mechanical documentation.
       Copy this file and swap:
       - breadcrumb labels
       - header title/subtitle
       - overview cards
       - section content
       ===================================================================== */

    .systems-page {
      max-width: 1100px;
    }

    .systems-header {
      text-align: center;
      margin-bottom: 2.5rem;
      padding-bottom: 1.5rem;
      border-bottom: 1px solid rgba(var(--accent-rgba), .18);
    }

    .systems-kicker {
      display: inline-block;
      margin-bottom: .9rem;
      padding: .25rem .7rem;
      font-family: var(--header-font);
      font-size: .78rem;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--accent-bright);
      background: rgba(163,32,0,.14);
      border: 1px solid rgba(var(--accent-rgba), .28);
      border-radius: 999px;
    }

    .systems-header h1 {
      font-family: "IM Fell Great Primer SC", serif;
      font-size: clamp(2rem, 4vw, 3rem);
      color: var(--accent);
      letter-spacing: 2px;
      text-shadow: 0 0 14px rgba(var(--accent-rgba), .35);
      margin-bottom: .8rem;
    }

    .systems-header p {
      max-width: 760px;
      margin: 0 auto;
      color: #bdbdbd;
      line-height: 1.75;
      font-size: 1.02rem;
    }

    .systems-section {
      margin-bottom: 2.25rem;
      padding-bottom: 2rem;
      border-bottom: 1px solid rgba(var(--accent-rgba), .12);
    }

    .systems-section:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }

    .systems-section h2 {
      color: var(--accent);
      font-family: var(--header-font);
      font-size: 1.18rem;
      letter-spacing: 1.6px;
      text-transform: uppercase;
      margin-bottom: 1rem;
      text-shadow: 0 0 8px rgba(var(--accent-rgba), .22);
    }

    .systems-section p {
      color: #cfcfcf;
      line-height: 1.8;
      margin-bottom: .95rem;
    }

    .systems-lead {
      font-size: 1.04rem;
      color: #d9d9d9;
    }

    .systems-grid {
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      gap: 1rem;
      margin-top: 1.2rem;
    }

    .systems-card {
      grid-column: span 4;
      background: linear-gradient(180deg, rgba(40,0,0,.44), rgba(15,15,15,.82));
      border: 1px solid rgba(var(--accent-rgba), .18);
      border-radius: 8px;
      padding: 1.05rem 1rem;
      box-shadow: 0 0 16px rgba(0,0,0,.28);
    }

    .systems-card h3 {
      color: #f0d0d0;
      font-family: 'Roboto Mono', monospace;
      font-size: 1rem;
      margin-bottom: .75rem;
    }

    .systems-card p,
    .systems-card li {
      color: #c7c7c7;
      font-size: .95rem;
      line-height: 1.7;
    }

    .systems-card ul,
    .systems-bullets,
    .systems-facts {
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .systems-card li,
    .systems-bullets li,
    .systems-facts li {
      position: relative;
      padding-left: 1rem;
      margin-bottom: .55rem;
    }

    .systems-card li::before,
    .systems-bullets li::before,
    .systems-facts li::before {
      content: "•";
      position: absolute;
      left: 0;
      color: var(--accent-bright);
    }

    .systems-card--vitality { border-color: rgba(201, 62, 62, .28); }
    .systems-card--integrity { border-color: rgba(191, 108, 65, .28); }
    .systems-card--sanity { border-color: rgba(146, 77, 163, .28); }

    .systems-callout {
      margin-top: 1rem;
      background: rgba(22,22,22,.85);
      border-left: 3px solid var(--accent);
      padding: .95rem 1rem;
      border-radius: 6px;
      color: #d1d1d1;
      line-height: 1.75;
    }

    .systems-callout strong {
      color: #fff;
    }

    .systems-callout.warning {
      border-left-color: var(--accent-bright);
      background: rgba(45, 7, 7, .72);
    }

    .systems-timeline {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: .9rem;
      margin-top: 1rem;
    }

    .timeline-step {
      background: rgba(255,255,255,.02);
      border: 1px solid rgba(var(--accent-rgba), .14);
      border-radius: 8px;
      padding: 1rem;
      min-height: 100%;
    }

    .timeline-step .step-label {
      display: inline-block;
      margin-bottom: .55rem;
      font-family: var(--header-font);
      font-size: .72rem;
      letter-spacing: 1.6px;
      text-transform: uppercase;
      color: var(--accent-bright);
    }

    .timeline-step h3 {
      color: #ececec;
      font-size: 1rem;
      margin-bottom: .55rem;
      font-family: 'Roboto Mono', monospace;
    }

    .timeline-step p {
      margin: 0;
      font-size: .94rem;
      color: #c6c6c6;
    }

    .systems-table-wrap {
      overflow-x: auto;
      margin-top: 1rem;
      border: 1px solid rgba(var(--accent-rgba), .14);
      border-radius: 8px;
      background: rgba(255,255,255,.02);
    }

    .systems-table {
      width: 100%;
      border-collapse: collapse;
      min-width: 760px;
    }

    .systems-table th,
    .systems-table td {
      padding: .9rem 1rem;
      text-align: left;
      vertical-align: top;
      border-bottom: 1px solid rgba(var(--accent-rgba), .08);
    }

    .systems-table th {
      font-family: var(--header-font);
      text-transform: uppercase;
      letter-spacing: 1.2px;
      font-size: .78rem;
      color: var(--accent-bright);
      background: rgba(163,32,0,.12);
    }

    .systems-table td {
      color: #d0d0d0;
      line-height: 1.7;
      font-size: .95rem;
    }

    .systems-table tr:last-child td {
      border-bottom: none;
    }

    .systems-tags {
      display: flex;
      flex-wrap: wrap;
      gap: .45rem;
      margin-top: .85rem;
    }

    .systems-tag {
      display: inline-flex;
      align-items: center;
      padding: .3rem .55rem;
      border-radius: 999px;
      border: 1px solid rgba(var(--accent-rgba), .2);
      background: rgba(255,255,255,.03);
      font-size: .78rem;
      color: #d5d5d5;
      font-family: 'Roboto Mono', monospace;
    }

    .systems-split {
      display: grid;
      grid-template-columns: 1.1fr .9fr;
      gap: 1rem;
      align-items: start;
    }

    .systems-facts {
      background: rgba(255,255,255,.02);
      border: 1px solid rgba(var(--accent-rgba), .12);
      border-radius: 8px;
      padding: 1rem;
    }

    .systems-facts h3 {
      color: #ededed;
      margin-bottom: .7rem;
      font-size: .98rem;
      font-family: 'Roboto Mono', monospace;
    }

    .systems-facts li {
      color: #cccccc;
      line-height: 1.7;
    }

    .systems-example-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1rem;
      margin-top: 1rem;
    }

    .systems-example {
      background: rgba(255,255,255,.02);
      border: 1px solid rgba(var(--accent-rgba), .12);
      border-radius: 8px;
      padding: 1rem;
    }

    .systems-example h3 {
      color: #f2f2f2;
      font-size: .98rem;
      margin-bottom: .6rem;
      font-family: 'Roboto Mono', monospace;
    }

    .systems-example p {
      margin: 0;
      color: #cccccc;
      font-size: .95rem;
    }

    @media (max-width: 900px) {
      .systems-card,
      .timeline-step {
        grid-column: span 12;
      }

      .systems-timeline,
      .systems-example-grid,
      .systems-split {
        grid-template-columns: 1fr;
      }
    }

    .systems-page {
      max-width: 1100px;
    }

    .systems-header {
      text-align: center;
      margin-bottom: 2.5rem;
      padding-bottom: 1.5rem;
      border-bottom: 1px solid rgba(var(--accent-rgba), .18);
    }

    .systems-kicker {
      display: inline-block;
      margin-bottom: .9rem;
      padding: .25rem .7rem;
      font-family: var(--header-font);
      font-size: .78rem;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--accent-bright);
      background: rgba(163,32,0,.14);
      border: 1px solid rgba(var(--accent-rgba), .28);
      border-radius: 999px;
    }

    .systems-header h1 {
      font-family: "IM Fell Great Primer SC", serif;
      font-size: clamp(2rem, 4vw, 3rem);
      color: var(--accent);
      letter-spacing: 2px;
      text-shadow: 0 0 14px rgba(var(--accent-rgba), .35);
      margin-bottom: .8rem;
    }

    .systems-header p {
      max-width: 760px;
      margin: 0 auto;
      color: #bdbdbd;
      line-height: 1.75;
      font-size: 1.02rem;
    }

    .systems-section {
      margin-bottom: 2.25rem;
      padding-bottom: 2rem;
      border-bottom: 1px solid rgba(var(--accent-rgba), .12);
    }

    .systems-section:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }

    .systems-section h2 {
      color: var(--accent);
      font-family: var(--header-font);
      font-size: 1.18rem;
      letter-spacing: 1.6px;
      text-transform: uppercase;
      margin-bottom: 1rem;
      text-shadow: 0 0 8px rgba(var(--accent-rgba), .22);
    }

    .systems-section p {
      color: #cfcfcf;
      line-height: 1.8;
      margin-bottom: .95rem;
    }

    .systems-lead {
      font-size: 1.04rem;
      color: #d9d9d9;
    }

    .systems-grid {
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      gap: 1rem;
      margin-top: 1.2rem;
    }

    .systems-card {
      grid-column: span 4;
      background: linear-gradient(180deg, rgba(40,0,0,.44), rgba(15,15,15,.82));
      border: 1px solid rgba(var(--accent-rgba), .18);
      border-radius: 8px;
      padding: 1.05rem 1rem;
      box-shadow: 0 0 16px rgba(0,0,0,.28);
    }

    .systems-card h3 {
      color: #f0d0d0;
      font-family: 'Roboto Mono', monospace;
      font-size: 1rem;
      margin-bottom: .75rem;
    }

    .systems-card p,
    .systems-card li {
      color: #c7c7c7;
      font-size: .95rem;
      line-height: 1.7;
    }

    .systems-card ul,
    .systems-bullets,
    .systems-facts {
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .systems-card li,
    .systems-bullets li,
    .systems-facts li {
      position: relative;
      padding-left: 1rem;
      margin-bottom: .55rem;
    }

    .systems-card li::before,
    .systems-bullets li::before,
    .systems-facts li::before {
      content: "•";
      position: absolute;
      left: 0;
      color: var(--accent-bright);
    }

    .systems-card--vitality { border-color: rgba(201, 62, 62, .28); }
    .systems-card--integrity { border-color: rgba(191, 108, 65, .28); }
    .systems-card--sanity { border-color: rgba(146, 77, 163, .28); }

    .systems-callout {
      margin-top: 1rem;
      background: rgba(22,22,22,.85);
      border-left: 3px solid var(--accent);
      padding: .95rem 1rem;
      border-radius: 6px;
      color: #d1d1d1;
      line-height: 1.75;
    }

    .systems-callout strong {
      color: #fff;
    }

    .systems-callout.warning {
      border-left-color: var(--accent-bright);
      background: rgba(45, 7, 7, .72);
    }

    .systems-table-wrap {
      overflow-x: auto;
      margin-top: 1rem;
      border: 1px solid rgba(var(--accent-rgba), .14);
      border-radius: 8px;
      background: rgba(255,255,255,.02);
    }

    .systems-table {
      width: 100%;
      border-collapse: collapse;
      min-width: 760px;
    }

    .systems-table th,
    .systems-table td {
      padding: .9rem 1rem;
      text-align: left;
      vertical-align: top;
      border-bottom: 1px solid rgba(var(--accent-rgba), .08);
    }

    .systems-table th {
      font-family: var(--header-font);
      text-transform: uppercase;
      letter-spacing: 1.2px;
      font-size: .78rem;
      color: var(--accent-bright);
      background: rgba(163,32,0,.12);
    }

    .systems-table td {
      color: #d0d0d0;
      line-height: 1.7;
      font-size: .95rem;
    }

    .systems-table tr:last-child td {
      border-bottom: none;
    }

    .systems-split {
      display: grid;
      grid-template-columns: 1.1fr .9fr;
      gap: 1rem;
      align-items: start;
    }

    .systems-facts {
      background: rgba(255,255,255,.02);
      border: 1px solid rgba(var(--accent-rgba), .12);
      border-radius: 8px;
      padding: 1rem;
    }

    .systems-facts h3 {
      color: #ededed;
      margin-bottom: .7rem;
      font-size: .98rem;
      font-family: 'Roboto Mono', monospace;
    }

    .systems-facts li {
      color: #cccccc;
      line-height: 1.7;
    }

    .systems-example-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1rem;
      margin-top: 1rem;
    }

    .systems-example {
      background: rgba(255,255,255,.02);
      border: 1px solid rgba(var(--accent-rgba), .12);
      border-radius: 8px;
      padding: 1rem;
    }

    .systems-example h3 {
      color: #f2f2f2;
      font-size: .98rem;
      margin-bottom: .6rem;
      font-family: 'Roboto Mono', monospace;
    }

    .systems-example p {
      margin: 0;
      color: #cccccc;
      font-size: .95rem;
    }

    @media (max-width: 900px) {
      .systems-card {
        grid-column: span 12;
      }

      .systems-example-grid,
      .systems-split {
        grid-template-columns: 1fr;
      }
    }
	
.systems-callout {
  margin-bottom: 1.6rem;
}	

/* GLOBAL LINK COLORS (fix unreadable blue/purple on dark background) */

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

a:visited {
  color: var(--accent-bright);
}

a:hover {
  color: var(--accent);
  text-shadow: 0 0 6px rgba(var(--accent-rgba), .6);
}

a:active {
  color: var(--accent);
}

@media (max-width: 800px) {
  .systems-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .systems-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
  }

  .systems-table th,
  .systems-table td {
    padding: 0.7rem 0.75rem;
    font-size: 0.85rem;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}