main {
  background: radial-gradient(1200px 600px at 65% 35%, rgba(255,230,0,.18), transparent 55%),
    radial-gradient(900px 500px at 20% 80%, rgba(0,180,255,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));;
}
/* lore.css (copy-ready) */

/* ---------- base ---------- */
:root{
  --nav-h: 64px;
  --bg: #0b0f19;
  --panel: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --yellow: #ffe600;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

}




main {
  background: radial-gradient(1200px 600px at 65% 35%, rgba(255,230,0,.18), transparent 55%),
    radial-gradient(900px 500px at 20% 80%, rgba(0,180,255,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));;
}


/* === FULL MAIN BACKGROUND === */
/*main {
  min-height: 100vh;
  background: 
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.15),
      rgba(0, 0, 0, 0.85)
    ),
    url("../images/4d-background.jpg") center center / cover no-repeat;
}

@media (min-width: 992px) {
  .lore-shell {
    background-attachment: fixed;
  }
}*/

/* ---------- top nav (simple) ---------- */
.topnav{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 999;
  background: rgba(7,10,18,.68);
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}

.topnav-inner{
  max-width: 1180px;
  margin: 0 auto;
  height: 100%;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand{
  font-family: "Exo", system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 13px;
  opacity: .9;
}

.navlinks{
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.navlinks a{
  text-decoration: none;
  color: rgba(255,255,255,.78);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.navlinks a:hover{
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
}

.navlinks a.active{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}

/* ---------- lore wrapper (centered container) ---------- */
/*.lore-shell{
  padding-top: var(--nav-h);
}*/

.lore-wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 18px 40px;
}

.lore-grid{
  display: grid;
  padding-top: 20px;
  padding-bottom: 0;
  grid-template-columns: 420px 1fr;
  gap: 100px;
  min-height: calc(100vh - var(--nav-h) - 62px);
}

/* ---------- left scroll panel ---------- */
.lore-right{
  height: calc(100vh - var(--nav-h) - 62px);
  /*overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background:
    radial-gradient(1200px 700px at 0% 0%, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));*/
}

.lore-right-inner{
  height: 100%;
  overflow-y: auto;
  padding: 22px 20px 34px;
}

.lore-right-inner::-webkit-scrollbar{ width: 10px; }
.lore-right-inner::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.14);
  border-radius: 10px;
}
.lore-right-inner::-webkit-scrollbar-track{ background: transparent; }

.lore-topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: .85;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 14px;
}

.lore-rec{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lore-rec .dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 0 0 4px rgba(255,230,0,.18);
}

.lore-meta{
  display: inline-flex;
  gap: 12px;
  color: rgba(255,255,255,.70);
}

.lore-header{ margin-bottom: 12px; }

.lore-title{
  margin: 0;
  font-family: "Exo", system-ui, sans-serif;
  font-size: 64px;
  letter-spacing: .02em;
  line-height: 1.0;
}

.lore-subtitle{
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.64);
}

.lore-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tag{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255,255,255,.80);
}

.lore-tabs{
  display: flex;
  gap: 10px;
  padding: 14px 0 16px;
  margin: 16px 0 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.tab{
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.80);
  border: 1px solid rgba(255,255,255,.10);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}

.tab.is-active{
  background: rgba(255,255,255,.10);
  border-color: white;
  color: white;
  font-weight: bold;
  box-shadow: 0 0 0 4px rgba(255,255,255,.10);
}

.lore-body h2{
  margin: 18px 0 10px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.80);
}

.lore-body p, .lore-body li{
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.lore-body ul{
  margin: 10px 0 0 18px;
}

.lore-divider{
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 22px 0;
}

.lore-cta{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.btn-primary, .btn-ghost{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn-primary{
  background: white;
  color: #0b0f19;
/*  border: 1px solid rgba(255,230,0,.6);*/
}

.btn-ghost{
  background: transparent;
  color: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.16);
}

/* ---------- right sticky art card ---------- */
.lore-left{
  min-height: calc(100vh - var(--nav-h) - 20px);
}

.lore-art{
  position: sticky;
  top: calc(var(--nav-h) + 22px);
  height: calc(100vh - var(--nav-h) - 62px);

  /*border-radius: 18px;
  border: 1px solid var(--stroke);
  overflow: hidden;

  background:
    radial-gradient(1200px 600px at 65% 35%, rgba(255,230,0,.18), transparent 55%),
    radial-gradient(900px 500px at 20% 80%, rgba(0,180,255,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));*/
}

/* header card (not empty) */
.art-header{
  position: absolute;
  top: 18px;
  left: 18px;
  width: min(560px, 72%);
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: rgba(255,230,0,.95);
  color: #0b0f19;
  border: 1px solid rgba(255,230,0,.6);
  z-index: 3;
}

.art-badge{
  display: inline-block;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .85;
}

.art-headline{
  margin-top: 8px;
  font-family: "Exo", system-ui, sans-serif;
  font-size: 18px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.art-sub{
  margin-top: 6px;
  font-size: 12px;
  opacity: .82;
}

/* subtle grid texture overlay */
.accent-grid{
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .12;
  z-index: 1;
}

/* character image */
.character-img{
  position: absolute;
  right: -16%;
  bottom: 0;
  height: 110%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.45));
  z-index: 2;

  /* fade last 20% of height */
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 80%,
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 80%,
    rgba(0,0,0,0) 100%
  );
}

/* === 4D subtle breathing animation === */
.character-img {
  transform-origin: center bottom; /* anchor at feet so she "breathes" upward */
  animation: subtleBreath 6s ease-in-out infinite;
}

/* Oscillate between 100% and 105% */
@keyframes subtleBreath {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}


/* giant faint text */
.bg-word{
  position: absolute;
  left: 18px;
  bottom: 24px;
  font-family: "Exo", system-ui, sans-serif;
  font-size: 140px;
  letter-spacing: .02em;
  color: rgba(255,255,255,.08);
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

/* top-left caption pill */
.art-caption{
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  gap: 10px;
  align-items: baseline;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  z-index: 3;
}



.cap-brand{
  font-family: "Exo", system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
  opacity: .9;
}

.cap-mode{
  color: rgba(255,230,0,.92);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
}

/* ---------- responsive: stack on mobile ---------- */
@media (max-width: 992px){
  .navlinks{ display: none; } /* simple: hide links on small screens */

  .lore-grid{
    grid-template-columns: 1fr;
  }

  .lore-right{
    height: auto;
    overflow: visible;
  }
  .lore-right-inner{
    height: auto;
    overflow: visible;
  }

  .lore-art{
    position: relative;
    top: auto;
    height: 520px;
  }

  .character-img{
    position: relative;
    left: 0;
    right: 0;
    top: 50px;
    height: 100%;
  }

  .art-header{
    width: calc(100% - 36px);
  }




}





/* === VIDEO BACKGROUND STAGE === */
.lore-shell{
  position: relative;
  min-height: 100vh;
/*  overflow: hidden;*/
/*  background: #05070b; */
}

/* video sits behind everything */
.lore-bg-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* like background-size: cover */
  object-position: center;
  z-index: 0;
  filter: saturate(1.05) contrast(1.05);
}

/* overlay for readability + cinematic tone */
.lore-bg-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;

  background: 
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.15),
      rgba(0, 0, 0, 0.65),
      rgba(0, 0, 0, 0.85)
    );

  /*background:
    radial-gradient(80% 70% at 20% 30%, rgba(0,0,0,0.35), rgba(0,0,0,0.75)),
    linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.85));*/
  pointer-events: none;
}

/* make sure your actual content renders above video + overlay */
.lore-shell > *:not(.lore-bg-video):not(.lore-bg-overlay){
  position: relative;
  z-index: 2;
}

/* motion accessibility: stop the loop for people who prefer reduced motion */
@media (prefers-reduced-motion: reduce){
  .lore-bg-video{ display: none; }
  .lore-shell{
    background: 
      linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.85)),
      url("../images/neo-city-bg.jpg") center / cover no-repeat;
  }
}

.site-footer {
  margin-top: 0px;
}




/* ---------- Mobile + iPad: center 4D, clip at bottom of video ---------- */
@media (max-width: 991.98px) {
  /* stack layout */
  .lore-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* make the art section a hero stage */
  .lore-left {
    order: -1;                 /* art first */
    position: relative;
    height: 62svh;             /* stage height; tweak 55–70svh */
    min-height: 520px;         /* prevents tiny stages on small devices */
  }

  /* IMPORTANT: clip inside the stage */
  .lore-art {
    position: absolute;
    inset: 0;
    overflow: hidden;          /* this is what clips her legs */
    display: flex;
    justify-content: center;   /* center horizontally */
    align-items: flex-end;     /* bottom align (legs clip at bottom) */
  }

  /* the actual PNG */
  .character-img {
    height: 102%;              /* >100% gives subtle crop + presence */
    width: auto;
    max-width: none;
    display: block;

    /* face framing knobs */
    transform: translateY(0%); /* move up/down if needed (try -2% / -4%) */
  }

  /* dossier becomes normal flow */
  .lore-right {
    position: relative;
  }


  /* make sure your actual content renders above video + overlay */
  section.hero-video-wrap{
    position: absolute !important;
  }
}

/* ---------- Optional: slightly different tuning for iPad landscape ---------- */
@media (min-width: 768px) and (max-width: 1024px) {
  .lore-left { height: 58svh; }
  .character-img { height: 104%; }

}