/* ============================================================
   ABYSS — launch page + wiki.
   Loaded after site.css and concept.css on /abyss/ pages only.

   IMAGES: every .slot is an empty art frame. To fill one, just
   drop an <img> inside it — the placeholder label hides itself:
     <div class="slot" data-label="Key art"><img src="..." alt=""></div>
   ============================================================ */

.page-abyss { --abyss-deep: #050a12; --abyss-glow: rgba(64, 150, 196, .5); }
.page-abyss main { position: relative; z-index: 1; }

/* ---------- shared art placeholder ---------- */
.slot {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(233, 238, 245, .12);
  background:
    radial-gradient(120% 120% at 28% 0%, rgba(46, 116, 160, .22), transparent 62%),
    radial-gradient(90% 90% at 80% 100%, rgba(191, 41, 65, .16), transparent 60%),
    linear-gradient(160deg, #141822, #080a10);
}
.slot::after {
  content: attr(data-label);
  font: 9px/1 var(--mono);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(233, 238, 245, .28);
}
.slot img, .slot video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.slot:has(img)::after, .slot:has(video)::after { display: none; }

/* ---------- hero ---------- */
.abyss-hero {
  position: relative;
  min-height: 94svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 26px;
  padding: calc(var(--nav-inset) + 120px) calc(var(--nav-inset) + 28px) 40px;
  overflow: hidden;
}
.abyss-hero__media {
  position: absolute; inset: 0; z-index: 0;
  border: 0; border-radius: 0; aspect-ratio: auto;
  place-items: start end;
  padding: 106px 30px 0 0;
}
.abyss-hero__media::after { letter-spacing: .4em; }
.abyss-hero__grade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(4, 7, 12, .96) 0%, rgba(4, 7, 12, .55) 34%, rgba(4, 7, 12, .1) 66%, rgba(4, 7, 12, .5) 100%),
    linear-gradient(to right, rgba(4, 7, 12, .8) 0%, rgba(4, 7, 12, .2) 46%, transparent 74%);
}
.abyss-hero > *:not(.abyss-hero__media):not(.abyss-hero__grade) { position: relative; z-index: 2; }

.abyss-kicker {
  display: flex; align-items: center; gap: 14px;
  font: 10px/1.5 var(--mono);
  letter-spacing: .3em; text-transform: uppercase;
  color: #9fb3c4; margin: 0;
}
.abyss-kicker i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #46a0c8; box-shadow: 0 0 12px var(--abyss-glow);
  animation: abyssPulse 2.6s ease-in-out infinite;
}
@keyframes abyssPulse { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }

.abyss-mark {
  margin: 0;
  font-family: var(--display);
  font-size: min(27svh, 20vw);
  line-height: .84;
  letter-spacing: .01em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #dfe7ee 40%, #8fa5b6 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 14px 40px rgba(0, 0, 0, .6));
}
.abyss-tagline {
  margin: 0;
  max-width: 44ch;
  font: 400 clamp(17px, 1.8vw, 23px)/1.5 var(--body);
  color: rgba(238, 243, 248, .84);
}
.abyss-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- intel strip ---------- */
.abyss-intel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(233, 238, 245, .12);
  border: 1px solid rgba(233, 238, 245, .12);
  border-radius: 16px;
  overflow: hidden;
  margin: 0 calc(var(--nav-inset) + 28px);
}
.abyss-intel div { background: #080b11; padding: 22px 20px; }
.abyss-intel dt {
  font: 9px/1.5 var(--mono); letter-spacing: .28em;
  text-transform: uppercase; color: #7f8c9b; margin: 0 0 9px;
}
.abyss-intel dd {
  margin: 0; font-family: var(--display); font-size: 25px;
  letter-spacing: .02em; text-transform: uppercase; color: #eef3f8;
}

/* ---------- sections ---------- */
.abyss-section { padding: clamp(70px, 9vw, 130px) calc(var(--nav-inset) + 28px); }
.abyss-section h2 {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(42px, 6vw, 96px); line-height: .95; margin: 0 0 30px;
}
.abyss-lede { max-width: 62ch; font: 400 clamp(16px, 1.5vw, 19px)/1.7 var(--body); color: rgba(233, 240, 246, .76); }

.abyss-quote {
  margin: clamp(46px, 6vw, 80px) 0 0;
  padding-left: 26px;
  border-left: 2px solid var(--red);
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 52px);
  line-height: 1.06;
  text-transform: uppercase;
  color: #eef3f8;
  max-width: 20ch;
}

.abyss-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.abyss-gallery .slot:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: 16 / 10.4; }

.abyss-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.abyss-pillar {
  border: 1px solid rgba(233, 238, 245, .12);
  border-radius: 16px;
  padding: 26px 24px 30px;
  background: linear-gradient(165deg, rgba(22, 27, 36, .6), rgba(9, 11, 16, .6));
  transition: border-color .35s, transform .35s var(--ease), background .35s;
}
.abyss-pillar:hover { border-color: rgba(70, 160, 200, .4); transform: translateY(-3px); }
.abyss-pillar span { font: 9px/1 var(--mono); letter-spacing: .3em; color: #5f8fa8; }
.abyss-pillar h3 {
  margin: 16px 0 12px; font-family: var(--display); text-transform: uppercase;
  font-size: 27px; line-height: 1; color: #eef3f8;
}
.abyss-pillar p { margin: 0; font: 400 15px/1.65 var(--body); color: rgba(233, 240, 246, .68); }

/* ---------- wiki call-out band ---------- */
.abyss-band {
  margin: 0 calc(var(--nav-inset) + 28px) clamp(70px, 9vw, 130px);
  border: 1px solid rgba(233, 238, 245, .14);
  border-radius: 20px;
  padding: clamp(30px, 4vw, 52px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  background:
    radial-gradient(120% 200% at 12% 0%, rgba(46, 116, 160, .2), transparent 58%),
    linear-gradient(160deg, rgba(20, 25, 34, .8), rgba(8, 10, 15, .8));
}
.abyss-band h2 { margin: 0 0 8px; font-size: clamp(30px, 3.6vw, 52px); }
.abyss-band p { margin: 0; font: 400 15px/1.6 var(--body); color: rgba(233, 240, 246, .7); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .abyss-intel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .abyss-gallery, .abyss-pillars { grid-template-columns: 1fr 1fr; }
  .abyss-gallery .slot:first-child { grid-column: span 2; }
}
@media (max-width: 700px) {
  .abyss-hero { padding: calc(var(--nav-inset) + 96px) 18px 34px; min-height: 88svh; }
  .abyss-mark { font-size: 24vw; }
  .abyss-intel { margin: 0 18px; }
  .abyss-section, .abyss-band { padding-left: 18px; padding-right: 18px; }
  .abyss-band { margin-left: 18px; margin-right: 18px; }
  .abyss-gallery, .abyss-pillars { grid-template-columns: 1fr; }
  .abyss-gallery .slot:first-child { grid-column: span 1; aspect-ratio: 16 / 9; }
}

/* ---------- the run loop ---------- */
.abyss-loop {
  list-style: none;
  margin: clamp(34px, 4vw, 54px) 0 0;
  padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.abyss-loop li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 12px 18px;
  border: 1px solid rgba(233, 238, 245, .14);
  border-radius: var(--r-sm, 14px);
  background: linear-gradient(160deg, rgba(26, 30, 40, .5), rgba(10, 12, 18, .5));
  font: 500 11px/1 var(--mono);
  letter-spacing: .2em; text-transform: uppercase; color: #dfe6ee;
}
.abyss-loop li span { font-size: 9px; color: #5f8fa8; letter-spacing: .18em; }

/* ---------- creature grid ---------- */
.abyss-creatures {
  margin-top: clamp(30px, 3.6vw, 46px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.creature {
  border: 1px solid rgba(233, 238, 245, .12);
  border-radius: var(--r-md, 18px);
  padding: 22px 20px 24px;
  background: linear-gradient(165deg, rgba(20, 25, 34, .58), rgba(8, 10, 15, .58));
  transition: border-color .35s ease, transform .35s var(--ease), background .35s ease;
}
.creature:hover { border-color: rgba(191, 41, 65, .5); transform: translateY(-3px); }
.creature h3 {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: 30px; line-height: 1; letter-spacing: -.02em;
  text-transform: uppercase; color: #f1f5f9;
}
.creature__press {
  margin: 9px 0 12px !important;
  font: 400 9px/1.5 var(--mono) !important;
  letter-spacing: .2em; text-transform: uppercase; color: #bf2941 !important;
}
.creature p { margin: 0; font: 400 14px/1.65 var(--body); color: rgba(228, 237, 245, .7); }
.abyss-note {
  margin: 26px 0 0;
  font: 400 10px/1.7 var(--mono);
  letter-spacing: .16em; text-transform: uppercase; color: rgba(233, 240, 246, .4);
}

@media (max-width: 900px) { .abyss-creatures { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .abyss-creatures { grid-template-columns: 1fr; }
  .abyss-loop li { flex: 1 1 auto; justify-content: center; }
}
