/* ============================================================
   CITADELS — section styles (continued)
   Raid loop · Revenants · Armory · Citadel/GRIM · Partners · Beta
   ============================================================ */

/* ============================================================
   THE RAID LOOP — Venture / Ascend / Extract
   ============================================================ */
.loop { background: linear-gradient(180deg, var(--void), var(--ink) 50%, var(--void)); }
.loop__grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 60px; border-top: 1px solid var(--hair2); border-left: 1px solid var(--hair2); }
.phase {
  position: relative; padding: 44px 38px 48px; border-right: 1px solid var(--hair2); border-bottom: 1px solid var(--hair2);
  min-height: 460px; display: flex; flex-direction: column; overflow: hidden;
  transition: background 0.4s var(--ease);
}
.phase:hover { background: rgba(var(--accent-rgb), 0.045); }
.phase::before {
  content: ""; position: absolute; top: 0; left: 0; width: 0; height: 2px; background: var(--accent);
  transition: width 0.6s var(--ease);
}
.phase:hover::before { width: 100%; }
.phase__no { font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em; color: var(--mute); margin-bottom: 28px; display: flex; align-items: center; gap: 10px; }
.phase__no .bx { width: 10px; height: 10px; color: var(--accent); }
.phase__ico { width: 56px; height: 56px; margin-bottom: 26px; color: var(--accent); }
.phase__ico svg { width: 100%; height: 100%; }
.phase__name { font-family: var(--display); font-weight: 600; font-size: 46px; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; color: var(--bone); }
.phase__tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-top: 12px; }
.phase__body { margin-top: 22px; font-size: 16px; line-height: 1.6; color: var(--bone-d); }
.phase__body em { color: var(--bone); font-style: normal; }
.phase__meta { margin-top: auto; padding-top: 26px; display: flex; gap: 26px; }
.phase__meta .m { display: flex; flex-direction: column; gap: 5px; }
.phase__meta .m .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
.phase__meta .m .v { font-family: var(--mono); font-size: 17px; color: var(--bone); font-variant-numeric: tabular-nums; }
.phase__meta .m .v.g { color: var(--green); }
.phase__meta .m .v.d { color: var(--danger); }
.loop__foot { margin-top: 34px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.loop__foot .warn { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; color: var(--danger); display: inline-flex; align-items: center; gap: 12px; text-transform: uppercase; }
.loop__foot .warn .bx { width: 12px; height: 12px; }

/* ============================================================
   THE REVENANTS — character roster
   ============================================================ */
.rev { background: var(--void); }
.rev__stage { display: grid; grid-template-columns: 300px 1fr; gap: 0; margin-top: 56px; border: 1px solid var(--hair2); height: 680px; }
.rev__roster { border-right: 1px solid var(--hair2); display: flex; flex-direction: column; }
.rev__tab {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 26px 24px;
  border-bottom: 1px solid var(--hair); text-align: left; flex: 1;
  transition: background 0.25s var(--ease);
}
.rev__tab:hover { background: rgba(208,216,210,0.03); }
.rev__tab.active { background: rgba(var(--accent-rgb), 0.07); }
.rev__tab.active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.rev__tab__no { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.rev__tab.active .rev__tab__no { color: var(--accent); }
.rev__tab__nm { display: flex; flex-direction: column; gap: 3px; }
.rev__tab__nm .a { font-family: var(--display); font-weight: 600; font-size: 24px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--bone-d); line-height: 1; }
.rev__tab.active .rev__tab__nm .a { color: var(--bone); }
.rev__tab__nm .b { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); }
.rev__tab.active .rev__tab__nm .b { color: var(--accent); }
.rev__tab__chev { margin-left: auto; color: var(--mute); opacity: 0; transition: opacity 0.2s; }
.rev__tab.active .rev__tab__chev { opacity: 1; color: var(--accent); }

.rev__panel-wrap { position: relative; overflow: hidden; }
.rev__panel { position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr 1fr; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.5s var(--ease); }
.rev__panel.active { opacity: 1; visibility: visible; pointer-events: auto; }
.rev__media { position: relative; overflow: hidden; background: radial-gradient(80% 80% at 50% 30%, rgba(var(--accent-rgb),0.10), transparent 60%), linear-gradient(180deg, var(--ink2), var(--void)); display: flex; align-items: flex-end; justify-content: center; }
.rev__media img { height: 100%; width: 100%; object-fit: cover; object-position: center top; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.55)); }
.rev__media .glyph { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-family: var(--display); font-weight: 700; font-size: 280px; color: rgba(208,216,210,0.04); text-transform: uppercase; pointer-events: none; line-height: 1; }
.rev__media .codes { position: absolute; left: 18px; bottom: 18px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--mute2); text-transform: uppercase; line-height: 1.8; }
.rev__info { padding: 44px 44px 40px; display: flex; flex-direction: column; }
.rev__era { font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.rev__name { font-family: var(--display); font-weight: 700; font-size: 56px; text-transform: uppercase; line-height: 0.94; color: var(--bone); }
.rev__alias { font-size: 19px; color: var(--bone-d); font-style: italic; margin-top: 8px; }
.rev__quote { margin-top: 26px; font-size: 19px; line-height: 1.5; color: var(--bone); border-left: 2px solid var(--accent); padding-left: 20px; }
.rev__lore { margin-top: 22px; font-size: 15px; line-height: 1.65; color: var(--mute); }
.rev__ability { margin-top: auto; padding-top: 28px; border-top: 1px solid var(--hair2); display: flex; align-items: flex-start; gap: 20px; }
.rev__ability .ico { width: 46px; height: 46px; border: 1px solid var(--accent); color: var(--accent); display: grid; place-items: center; clip-path: polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px); flex: 0 0 auto; }
.rev__ability .ico svg { width: 24px; height: 24px; }
.rev__ability .meta { display: flex; flex-direction: column; gap: 4px; }
.rev__ability .meta .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
.rev__ability .meta .n { font-family: var(--display); font-weight: 600; font-size: 24px; text-transform: uppercase; color: var(--bone); letter-spacing: 0.04em; line-height: 1; }
.rev__ability .meta .d { font-size: 13px; line-height: 1.5; color: var(--bone-d); margin-top: 2px; }

/* DNA dossier (replaces tactical ability) */
.rev__dossier { margin-top: auto; padding-top: 26px; border-top: 1px solid var(--hair2); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rev__spec { display: flex; flex-direction: column; gap: 8px; position: relative; padding-left: 14px; }
.rev__spec::before { content: ""; position: absolute; left: 0; top: 2px; width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid var(--accent); }
.rev__spec .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
.rev__spec .v { font-family: var(--display); font-weight: 600; font-size: 17px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--bone); line-height: 1.1; }
.rev__spec .v.acc { color: var(--accent); }

/* ============================================================
   THE ARMORY — loadout / rarity / item
   ============================================================ */
.armory { background: linear-gradient(180deg, var(--void), var(--ink)); }
.armory__layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; margin-top: 56px; align-items: stretch; }
.armory__showcase { position: relative; min-height: 540px; overflow: hidden; }
.armory__showcase video, .armory__showcase img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.armory__showcase .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6,8,10,0.92)); z-index: 1; }
.armory__showcase .head { position: absolute; top: 24px; left: 24px; right: 24px; z-index: 2; display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
.armory__showcase .rar { color: var(--transc); border: 1px solid var(--transc); padding: 5px 12px; letter-spacing: 0.26em; }
.armory__item { position: absolute; left: 28px; right: 28px; bottom: 28px; z-index: 2; }
.armory__item .nm { font-family: var(--display); font-weight: 600; font-size: 38px; text-transform: uppercase; color: var(--bone); line-height: 1; }
.armory__item .stats { display: flex; gap: 30px; margin-top: 20px; flex-wrap: wrap; }
.armory__item .stat { display: flex; flex-direction: column; gap: 5px; }
.armory__item .stat .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
.armory__item .stat .v { font-family: var(--mono); font-size: 18px; color: var(--bone); font-variant-numeric: tabular-nums; }
.armory__item .stat .v em { color: var(--accent); font-style: normal; }

.armory__side { display: flex; flex-direction: column; gap: 18px; }
.armory__copy .h3 { font-family: var(--display); font-weight: 600; font-size: 30px; text-transform: uppercase; line-height: 1.05; color: var(--bone); }
.armory__copy p { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--bone-d); }
.armory__copy p em { color: var(--accent); font-style: normal; }
.armory__feats { display: flex; flex-direction: column; }
.armory__feat { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--hair); }
.armory__feat:first-child { border-top: 0; }
.armory__feat .ic { width: 38px; height: 38px; color: var(--accent); flex: 0 0 auto; border: 1px solid var(--hair2); display: grid; place-items: center; clip-path: polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px); }
.armory__feat .ic svg { width: 20px; height: 20px; }
.armory__feat .tx { display: flex; flex-direction: column; gap: 4px; }
.armory__feat .tx .t { font-family: var(--display); font-weight: 600; font-size: 18px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--bone); line-height: 1; }
.armory__feat .tx .d { font-size: 14px; line-height: 1.5; color: var(--mute); }

/* rarity strip */
.rarity__head { display: flex; align-items: baseline; justify-content: space-between; gap: 36px; margin-top: 60px; margin-bottom: 20px; flex-wrap: wrap; }
.rarity__head__note { font-size: 15px; line-height: 1.5; color: var(--mute); max-width: 64ch; }
.rarity { display: flex; gap: 0; margin-top: 0; border: 1px solid var(--hair2); }
.rarity__cell { flex: 1; padding: 22px 20px; border-right: 1px solid var(--hair); position: relative; transition: background 0.3s var(--ease); }
.rarity__cell:hover { background: rgba(208,216,210,0.03); }
.rarity__cell:last-child { border-right: 0; }
.rarity__cell .bar { height: 3px; width: 100%; margin-bottom: 16px; }
.rarity__cell .nm { font-family: var(--display); font-weight: 600; font-size: 17px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--bone); }
.rarity__cell .ds { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin-top: 6px; }

/* ============================================================
   THE CITADEL + GRIM
   ============================================================ */
.citadel { position: relative; overflow: hidden; }
.citadel__bg { position: absolute; inset: 0; z-index: 0; }
.citadel__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0.5; }
.citadel__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--void) 0%, rgba(6,8,10,0.5) 35%, rgba(6,8,10,0.7) 70%, var(--void)); }
.citadel .container { position: relative; z-index: 1; }
.citadel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 50px; align-items: center; }
.citadel__copy .h2 { margin-bottom: 26px; }
.citadel__facts { margin-top: 38px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hair2); border: 1px solid var(--hair2); }
.citadel__fact { background: var(--ink); padding: 24px; }
.citadel__fact .v { font-family: var(--mono); font-weight: 500; font-size: 34px; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; }
.citadel__fact .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); margin-top: 10px; }
.grim {
  position: relative; padding: 36px; border: 1px solid var(--hair2); background: var(--panel);
  clip-path: polygon(18px 0,100% 0,100% calc(100% - 18px),calc(100% - 18px) 100%,0 100%,0 18px);
}
.grim__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.grim__sig { width: 46px; height: 46px; border: 1px solid var(--danger); color: var(--danger); display: grid; place-items: center; position: relative; }
.grim__sig::before, .grim__sig::after { content: ""; position: absolute; background: var(--danger); }
.grim__sig::before { width: 60%; height: 1px; }
.grim__sig::after { width: 1px; height: 60%; }
.grim__sig i { width: 12px; height: 12px; border: 1px solid var(--danger); border-radius: 50%; animation: grimpulse 2s var(--ease) infinite; }
@keyframes grimpulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.grim__title { font-family: var(--display); font-weight: 700; font-size: 26px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bone); }
.grim__title span { color: var(--danger); }
.grim__sub { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--danger); }
.grim__body { font-size: 16px; line-height: 1.65; color: var(--bone-d); }
.grim__body em { color: var(--bone); font-style: normal; }
.grim__log { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--hair); font-family: var(--mono); font-size: 12px; line-height: 2; color: var(--mute); }
.grim__log b { color: var(--danger); font-weight: 400; }

/* ============================================================
   SALES
   ============================================================ */
.sales { background: linear-gradient(180deg, var(--void), var(--ink) 45%, var(--void)); }
.sales__cta { margin-top: 44px; }

/* ============================================================
   PARTNERS
   ============================================================ */
.partners { background: var(--void); padding: 90px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.partners__head { text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--mute); margin-bottom: 44px; }
.partners__row { display: flex; align-items: center; justify-content: center; gap: 64px; flex-wrap: wrap; }
.partners__row img { height: 34px; width: auto; opacity: 0.55; filter: grayscale(1) brightness(1.6); transition: opacity 0.3s var(--ease), filter 0.3s var(--ease); }
.partners__row img:hover { opacity: 0.95; filter: grayscale(1) brightness(2); }
.partners__row .txt { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); opacity: 0.6; }

/* ============================================================
   BETA / ENLIST CTA
   ============================================================ */
.enlist { position: relative; padding: 150px 0; overflow: hidden; }
.enlist__bg { position: absolute; inset: 0; z-index: 0; }
.enlist__bg video, .enlist__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.enlist__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 80% at 50% 50%, rgba(6,8,10,0.7), var(--void)); }
.enlist .container { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.enlist__h { font-family: var(--display); font-weight: 700; font-size: clamp(48px, 8vw, 120px); text-transform: uppercase; line-height: 0.9; color: var(--bone); letter-spacing: 0.01em; }
.enlist__h em { font-style: normal; color: var(--accent); }
.enlist__sub { margin-top: 26px; font-size: clamp(16px,1.4vw,20px); line-height: 1.6; color: var(--bone-d); max-width: 50ch; }
.enlist__form { margin-top: 44px; display: flex; gap: 0; width: min(560px, 90vw); }
.enlist__form input {
  flex: 1; height: 58px; padding: 0 22px; background: var(--panel2); border: 1px solid var(--hair3); border-right: 0;
  color: var(--bone); font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; outline: none;
  clip-path: polygon(10px 0,100% 0,100% 100%,0 100%,0 10px);
}
.enlist__form input::placeholder { color: var(--mute); text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; }
.enlist__form input:focus { border-color: var(--accent); }
.enlist__form button { height: 58px; }
.enlist__note { margin-top: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); display: inline-flex; align-items: center; gap: 10px; }
.enlist__note .bx { width: 11px; height: 11px; color: var(--green); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { background: var(--ink); border-top: 1px solid var(--hair); padding: 60px 0 40px; }
.foot__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot__brand { display: flex; flex-direction: column; gap: 16px; }
.foot__brand .wm { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: 0.3em; text-indent: 0.3em; text-transform: uppercase; color: var(--bone); }
.foot__brand .by { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: 12px; }
.foot__brand .by img { height: 22px; opacity: 0.7; }
.foot__links { display: flex; gap: 60px; flex-wrap: wrap; }
.foot__col { display: flex; flex-direction: column; gap: 12px; }
.foot__col .ct { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.foot__col a { font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bone-d); transition: color 0.2s; }
.foot__col a:hover { color: var(--accent); }
.foot__bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--hair); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--mute2); text-transform: uppercase; }
.foot__socials { display: flex; gap: 18px; }
.foot__socials a { color: var(--mute); transition: color 0.2s; }
.foot__socials a:hover { color: var(--accent); }
.foot__socials svg { width: 18px; height: 18px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .loop__grid { grid-template-columns: 1fr; }
  .rev__stage { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .rev__roster { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--hair2); }
  .rev__tab { flex: 0 0 200px; }
  .rev__panel { grid-template-columns: 1fr; }
  .rev__panel.active { position: relative; }
  .rev__panel-wrap { min-height: 0; }
  .rev__media { min-height: 380px; }
  .armory__layout { grid-template-columns: 1fr; }
  .citadel__grid { grid-template-columns: 1fr; gap: 44px; }
  .rarity { flex-wrap: wrap; }
  .rarity__cell { flex: 1 1 33%; border-bottom: 1px solid var(--hair); }
}
@media (max-width: 640px) {
  .section { padding: 100px 0; }
  .hero__hud, .hero__stamp { display: none; }
  .phase__meta { flex-wrap: wrap; gap: 16px; }
  .partners__row { gap: 36px; }
  .citadel__facts { grid-template-columns: 1fr; }
  .enlist__form { flex-direction: column; }
  .enlist__form input { border-right: 1px solid var(--hair3); }
}

/* ============================================================
   GAMEPLAY MODAL
   ============================================================ */
.vid-modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 5vh 4vw;
  background: rgba(4, 6, 7, 0.92); backdrop-filter: blur(8px);
}
.vid-modal.open { display: flex; }
.vid-modal__close {
  position: absolute; top: 26px; right: 32px; font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--bone);
  border: 1px solid var(--hair3); padding: 10px 16px; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.vid-modal__close:hover { color: var(--accent); border-color: var(--accent); background: rgba(var(--accent-rgb), 0.08); }
.vid-modal__frame { position: relative; width: min(1180px, 100%); aspect-ratio: 16 / 9; border: 1px solid var(--hair2); background: #000; }
.vid-modal__embed, .vid-modal__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-modal .ticks > i { width: 18px; height: 18px; }

