/* =========================================================
   IN-2 SPACE / THE NULL - CONSOLIDATED SITE CSS
   Generated from the current separated CSS files.

   Source order preserved:
   01 style.css
   02 cookie.css
   03 cursor.css
   04 footer-legal.css
   05 starfield-lite.css
   06 media.css
   07 guided.css
   08 vessels.css

   Notes:
   - Class names and JS hooks have been preserved.
   - Module-level :root fallback variables are intentionally retained.
   - Final override section at the bottom adds nav compression helpers
     and a few safe responsive/layout polish rules.
   ========================================================= */



/* =========================================================
   01 - MAIN SITE STYLES
   Source: style.css
   ========================================================= */

:root {
  --bg: #030507;
  --bg-soft: #080d11;
  --panel: rgba(9, 12, 14, 0.78);
  --panel-strong: rgba(8, 10, 12, 0.92);
  --line: rgba(196, 145, 65, 0.38);
  --line-bright: rgba(245, 192, 90, 0.85);
  --gold: #c99445;
  --gold-soft: #8f6634;
  --text: #f2eadb;
  --muted: #a89d89;
  --shadow: rgba(0, 0, 0, 0.72);
  --font-title: "Cinzel", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container: min(1180px, calc(100vw - 38px));

  --z-page-noise: 40;
  --z-header: 100;
  --z-fx-toggles: 120;

  --z-modal: 9000;
  --z-media-lightbox: 9100;

  --z-cookie-banner: 11000;
  --z-cookie-modal: 11100;
  --z-legal-modal: 11200;

  --z-custom-cursor: 2147483647;

}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #16120c 0%, var(--bg) 46%, #010203 100%);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; display: block; }

.site-noise {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background:
    radial-gradient(circle at 20% 18%, rgba(255,255,255,.55) 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 12%, rgba(255,215,142,.55) 0 1px, transparent 1.5px),
    radial-gradient(circle at 64% 75%, rgba(255,255,255,.35) 0 1px, transparent 1.5px),
    radial-gradient(circle at 34% 62%, rgba(255,255,255,.3) 0 1px, transparent 1.5px);
  background-size: 220px 220px, 340px 340px, 280px 280px, 420px 420px;
  animation: drift 32s linear infinite;
}
@keyframes drift { to { transform: translate3d(-80px, 60px, 0); } }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 72px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 54px);
  background: linear-gradient(180deg, rgba(2,4,5,.94), rgba(3,5,6,.55));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 14px; }
.mini-sigil, .list-icon {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background-image: url("../images/sigil-card.png");
  background-size: cover;
  position: relative;
}
.brand-mark {
  position: relative;
  width: 50px;
}
.brand-text img {
  width: 120px !important;
  position: absolute;
  top: 16px;
}
.brand-text, .section-kicker, .inline-action, .text-link { font-family: var(--font-title); letter-spacing: .16em; text-transform: uppercase; }
.brand-text { font-size: .95rem; font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.main-nav a { color: var(--muted); font-family: var(--font-title); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; transition: .25s; }
.main-nav a:hover { color: var(--text); text-shadow: 0 0 18px var(--gold); }
.menu-toggle { display: none; background: transparent; border: 0; width: 42px; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 6px 0; background: var(--gold); }

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 110px 20px 70px;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.9), transparent 20%, transparent 80%, rgba(0,0,0,.9)),
    linear-gradient(180deg, transparent 60%, var(--bg) 98%);
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -4;
  background: url("../images/a_dark_cinematic_high_detail_sci_fi_fantasy_post.png") center 36% / cover no-repeat;
  filter: saturate(.85) contrast(1.08) brightness(.72);
  /*transform: scale(1.06);*/
}
.hero-gate {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 17%, transparent 0 14%, rgba(219,167,77,.15) 14.2% 14.6%, transparent 14.8% 23%, rgba(219,167,77,.13) 23.2% 23.6%, transparent 24%),
    linear-gradient(90deg, transparent 49.65%, rgba(255,218,141,.58) 50%, transparent 50.35%);
  opacity: .75;
}

.hero-content { width: min(760px, 92vw); text-align: center; margin-top: 4vh; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .36em; font-family: var(--font-title); font-size: .78rem; margin-bottom: 18px; }
.hero-logo { margin: 0; display: grid; justify-items: center; gap: 0; }
.small-the { font: 600 clamp(1.1rem, 2.2vw, 2rem) var(--font-title); letter-spacing: .55em; margin-right: -.55em; }
.hero-logo img { width: min(560px, 88vw); filter: drop-shadow(0 0 18px rgba(255,218,141,.25)); }
.hero-copy { max-width: 620px; margin: 18px auto 30px; line-height: 1.8; color: #d9ceb9; }
.hero-actions { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }


.scroll-cue { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 1px solid var(--line); border-radius: 30px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 7px; border-radius: 10px; background: var(--gold); translate: -50% 0; animation: wheel 1.7s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(18px); } }

.section-wrap, .content-section, .null-section, .join-section { width: var(--container); margin: 0 auto 28px; }
#story {
  margin-top: 20px;
}
.story-band {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 215px;
  display: grid;
  grid-template-columns: 180px 1fr 330px;
  gap: 28px;
  align-items: center;
  padding: 26px;
  background: linear-gradient(90deg, rgba(10,12,13,.96), rgba(12,13,12,.75)), url("../images/story-band.png") right center / cover no-repeat;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}
.sigil-card { height: 194px; border-right: 1px solid var(--line); display: grid; place-items: center; background-image: url(../images/sigil-card.png); background-size: cover; }

.section-kicker { color: var(--gold); font-weight: 700; font-size: .7rem; margin-bottom: 10px; }
h2 { font-family: var(--font-title); font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.1; margin: 0 0 16px; font-weight: 500; }
p { color: var(--muted); line-height: 1.7; }
.story-copy p { max-width: 640px; }
.story-image { min-height: 170px; border-left: 1px solid var(--line); background: radial-gradient(circle at 50% 50%, rgba(255,199,93,.18), transparent 42%); }
.text-link, .inline-action { color: var(--gold); font-size: .72rem; font-weight: 800; border: 0; background: none; cursor: pointer; padding: 0; }
.text-link::after, .inline-action::after { content: "  ›"; }

.content-section { padding: 18px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; border-bottom: 1px solid rgba(201,148,69,.22); padding-bottom: 10px; }
.section-heading h2 { margin: 0; font-size: clamp(1.35rem, 2vw, 2rem); letter-spacing: .12em; text-transform: uppercase; }
.character-grid,
.faction-grid {
  display: grid;
  gap: 16px;
}

.character-grid {
  grid-template-columns: repeat(5, 1fr);
}

.faction-grid {
  grid-template-columns: repeat(4, 1fr);
}
.character-card {
  min-height: 180px;
  border: 1px solid var(--line);
  background: #050607;
  position: relative;
  overflow: hidden;
  /*cursor: pointer;*/
  border-radius: 7px;
  box-shadow: 0 16px 50px rgba(0,0,0,.3);
}
.character-card img { width: 100%; height: 100%; min-height: 210px; object-fit: cover; filter: grayscale(.08) contrast(1.06) brightness(.82); transition: .5s; }
.character-card:hover img { transform: scale(1.08); filter: grayscale(0) brightness(.95); }
.card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 28%, rgba(0,0,0,.9)); }
/*
.card-content { position: absolute; inset: auto 14px 14px; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; }
.card-content h3 { margin: 0; font-family: var(--font-title); text-transform: uppercase; letter-spacing: .18em; font-size: .92rem; }
.card-content p { margin: 2px 0 0; grid-column: 2; text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; color: #d9c599; }
*/
.card-content {
  position: absolute;
  inset: auto 14px 16px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: 58px auto;
  column-gap: 12px;
  align-items: end;
}

.card-content .mini-sigil {
  grid-row: 1 / 3;
  align-self: end;
  margin-bottom: 18px;
}

.card-content h3 {
  grid-column: 2;
  grid-row: 1;

  min-height: 58px;
  display: flex;
  align-items: flex-end;

  margin: 0;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .92rem;
  line-height: 1.16;
}

.card-content p {
  grid-column: 2;
  grid-row: 2;

  min-height: 34px;
  margin: 6px 0 0;

  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .68rem;
  line-height: 1.45;
  color: #d9c599;
}

.faction-card {
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 22px;
  background:
    radial-gradient(circle at 20% 20%, rgba(201,148,69,.14), transparent 42%),
    linear-gradient(135deg, rgba(14,16,16,.94), rgba(5,7,8,.8));
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: end;
  transition: .3s;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}


.faction-card:hover { transform: translateY(-4px); border-color: var(--line-bright); box-shadow: 0 18px 38px rgba(0,0,0,.35), 0 0 24px rgba(201,148,69,.12); }
.faction-card h3 { margin: 0 0 6px; font-family: var(--font-title); letter-spacing: .08em; text-transform: uppercase; font-size: .86rem; position: relative; z-index: 2; text-shadow: 0 2px 14px rgba(0,0,0,.95); }
.faction-card p { margin: 0; font-size: .86rem; grid-column: 2; position: relative; z-index: 2; color: #dfd3bd; text-shadow: 0 2px 12px rgba(0,0,0,.95); }
.faction-icon { width: 46px; height: 46px; border: 1px solid var(--line); display: block; position: relative; z-index: 2; background: rgba(0,0,0,.42); box-shadow: 0 0 20px rgba(201,148,69,.14), inset 0 0 18px rgba(0,0,0,.75); backdrop-filter: blur(2px); }

/*
.faction-card-video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 50% 18%, rgba(201,148,69,.22), transparent 38%),
    linear-gradient(135deg, rgba(14,16,16,.94), rgba(5,7,8,.86));
}
.faction-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.46) contrast(1.15) saturate(.9);
  transform: scale(1.03);
  transition: transform .65s ease, filter .65s ease;
}
.faction-card:hover .faction-video {
  transform: scale(1.1);
  filter: brightness(.62) contrast(1.18) saturate(1.08);
}
.faction-video-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.45) 42%, rgba(0,0,0,.9) 100%),
    linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.2));
  pointer-events: none;
}
.faction-card-video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(245,192,90,.08);
  background: linear-gradient(120deg, transparent 0 42%, rgba(255,229,166,.08), transparent 58% 100%);
  opacity: 0;
  transform: translateX(-26%);
  transition: .45s ease;
}
.faction-card-video:hover::after {
  opacity: 1;
  transform: translateX(26%);
}
*/

.icon-gate::before, .icon-ring::before, .icon-triangle::before, .icon-star::before { content: ""; position: absolute; inset: 9px; border: 1px solid var(--gold); }
.icon-ring::before { border-radius: 50%; box-shadow: inset 0 0 0 8px rgba(201,148,69,.08); }
.icon-triangle::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); background: rgba(201,148,69,.06); }
.icon-star::before { inset: 21px 4px; border-width: 1px 0 0; box-shadow: 0 0 0 1px transparent; transform: rotate(45deg); }
.icon-star::after { content:""; position:absolute; inset:21px 4px; border-top:1px solid var(--gold); transform: rotate(-45deg); }

.null-section {
  min-height: 255px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: clamp(22px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1fr 260px 1fr;
  align-items: center;
  gap: 30px;
  background: linear-gradient(90deg, rgba(6,8,10,.96), rgba(8,9,9,.76)), url("../images/book-cover-1.jpg") center / cover no-repeat;
  background: linear-gradient(90deg, rgba(6,8,10,.96), rgba(8,9,9,.76)), url("../images/null-band.png") center / cover no-repeat;
  overflow: hidden;
}
.null-orb { height: 210px; display: grid; place-items: center; }

.null-list { display: grid; gap: 18px; }
.null-list div { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; }
.null-list h3 { margin: 0; font-family: var(--font-title); text-transform: uppercase; letter-spacing: .12em; font-size: .88rem; }
.null-list p { margin: 4px 0 0; grid-column: 2; font-size: .88rem; }

.join-section {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  display: grid;
  grid-template-columns: 240px 1fr 420px;
  gap: 28px;
  align-items: center;
}
.footer-logo span { display: block; font-family: var(--font-title); letter-spacing: .5em; font-size: .8rem; color: var(--muted); margin-left: 28px; }
.footer-logo img { width: 190px; }
.join-copy h2 { font-size: 1rem; margin: 0; color: var(--muted); font-family: var(--font-body); font-weight: 400; }
.join-form { display: flex; gap: 10px; }
.join-form input { flex: 1; min-width: 0; border: 1px solid rgba(201,148,69,.32); background: rgba(2,3,4,.75); color: var(--text); padding: 0 16px; min-height: 48px; outline: 0; }
.join-form input:focus { border-color: var(--line-bright); box-shadow: 0 0 18px rgba(201,148,69,.15); }
.site-footer { width: var(--container); margin: 0 auto; padding: 18px 0 36px; display: flex; justify-content: space-between; gap: 20px; color: #766c5d; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer p { margin: 0; color: #766c5d; }
.site-footer div { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--gold); }

.modal, .lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal, 9000);
  display: none;
  place-items: center;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(8px);
  padding: 22px;
}
.modal.active, .lightbox.active { display: grid; }
.modal-card {
  width: min(760px, 92vw);
  max-height: 86vh;
  overflow: auto;
  border: 1px solid var(--line-bright);
  background: linear-gradient(135deg, rgba(8,10,12,.98), rgba(16,13,8,.94));
  padding: clamp(22px, 4vw, 42px);
  position: relative;
  box-shadow: 0 0 80px rgba(0,0,0,.75), 0 0 42px rgba(201,148,69,.18);
  z-index: 1;
}
.modal-card h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.modal-close, .lightbox-close { position: absolute; top: 12px; right: 14px; border: 1px solid var(--line); color: var(--gold); background: rgba(0,0,0,.5); width: 38px; height: 38px; font-size: 1.5rem; cursor: pointer; z-index: 2; }
.modal-media-placeholder { display: grid; place-items: center; min-height: 280px; border: 1px dashed var(--line); margin-bottom: 22px; color: var(--gold); text-transform: uppercase; letter-spacing: .16em; background: radial-gradient(circle, rgba(201,148,69,.12), transparent 60%); }
.dossier { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: center; }
.dossier img { width: 220px; aspect-ratio: 3/4; object-fit: cover; border: 1px solid var(--line); }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; border: 1px solid var(--line-bright); box-shadow: 0 0 80px rgba(0,0,0,.86); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .main-nav { position: fixed; top: 72px; right: 14px; left: 14px; display: none; flex-direction: column; align-items: stretch; padding: 18px; background: rgba(4,6,8,.96); border: 1px solid var(--line); }
  .main-nav.active { display: flex; }
  .main-nav a { padding: 12px; border-bottom: 1px solid rgba(201,148,69,.14); }
  .hero-character { opacity: .42; width: 48vw; }
  .story-band, .null-section, .join-section { grid-template-columns: 1fr; }
  .sigil-card, .story-image { display: none; }
  .character-grid, .faction-grid { grid-template-columns: repeat(3, 1fr); }
  .media-strip { grid-template-columns: repeat(2, 1fr); }
  .join-form { flex-direction: column; }
}

@media (max-width: 580px) {
  .site-header { height: 64px; }
  .brand-text { font-size: .78rem; }
  .hero { min-height: 92vh; padding-top: 92px; }
  .hero-character { display: none; }
  .hero-copy { font-size: .92rem; }
  .btn { width: 100%; }
  .section-heading { align-items: start; flex-direction: column; }
  .character-grid, .faction-grid, .media-strip { grid-template-columns: 1fr; }
  .dossier { grid-template-columns: 1fr; }
  .dossier img { width: 100%; max-height: 420px; }
  .site-footer { flex-direction: column; }
}

.btn {
  border: 1px solid var(--line-bright);
  background: rgba(9, 8, 5, .48);
  color: var(--text);
  min-height: 48px;
  padding: 0 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  position: relative;
  overflow: hidden;

  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 800;
  font-size: .78rem;
  border-radius: 6px;

  box-shadow:
    0 0 24px rgba(201,148,69,.12),
    inset 0 0 22px rgba(201,148,69,.05);

  transition:
    box-shadow .25s ease,
    border-color .25s ease,
    color .25s ease,
    transform .25s ease,
    background .25s ease;
}

/* keeps text above decorative layers */
.btn > span {
  position: relative;
  z-index: 3;
}

/* existing sweep/shine effect */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  transform: translateX(-110%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.22),
    transparent
  );
  transition: .55s;
}

/* NEW: duller inner border */
.btn::after {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(196, 145, 65, 0.28);
  border-radius: 4px;
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.42),
    0 0 8px rgba(201, 148, 69, 0.08);
  opacity: 0.95;
  transition:
    border-color .25s ease,
    box-shadow .25s ease,
    opacity .25s ease;
}

.btn:hover::before {
  transform: translateX(110%);
}

.btn:hover {
  border-color: rgba(255, 224, 154, 0.95);
  color: #fff4c5;
  transform: translateY(-1px);
  box-shadow:
    0 0 34px rgba(201,148,69,.35),
    inset 0 0 30px rgba(201,148,69,.12);
}

.btn:hover::after {
  border-color: rgba(245, 192, 90, 0.48);
  box-shadow:
    inset 0 0 14px rgba(0, 0, 0, 0.5),
    0 0 14px rgba(201, 148, 69, 0.16);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn-primary {
  background:
    linear-gradient(180deg, rgba(113,69,21,.56), rgba(15,11,6,.76));
}

.btn-ghost {
  background:
    linear-gradient(180deg, rgba(9, 8, 5, .34), rgba(2, 3, 4, .56));
}

.btn-small {
  min-height: 42px;
  padding-inline: 18px;
}



.faction-card {
  isolation: isolate;
  overflow: hidden;
  background-clip: padding-box;
}

.faction-card-video::before {
  content: "";
  position: absolute;
  background-clip: padding-box;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(201,148,69,.22), transparent 38%),
    linear-gradient(135deg, rgba(14,16,16,.94), rgba(5,7,8,.86));
}

.faction-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.46) contrast(1.15) saturate(.9);
  transform: scale(1.03);
  transition:
    transform .65s ease,
    filter .65s ease,
    opacity .35s ease;
}

.faction-video-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.45) 42%, rgba(0,0,0,.9) 100%),
    linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.2));
  pointer-events: none;
}

.faction-icon,
.faction-card h3,
.faction-card p {
  position: relative;
  z-index: 4;
}

.faction-icon img {
  width: 100%;
  height: 100%;
}

.faction-card-video::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -85%;
  width: 85%;
  z-index: 3;
  pointer-events: none;

  border: 0;
  border-radius: inherit;

  background:
    linear-gradient(
      115deg,
      transparent 0%,
      transparent 28%,
      rgba(255, 229, 166, 0.03) 40%,
      rgba(255, 229, 166, 0.14) 50%,
      rgba(255, 229, 166, 0.03) 60%,
      transparent 72%,
      transparent 100%
    );

  opacity: 0;
  transform: translateX(0);
  transition:
    transform 720ms ease,
    opacity 260ms ease;
}

.faction-card-video .faction-video-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(245, 192, 90, 0.08);
  border-radius: inherit;
  pointer-events: none;
}

.faction-card-video:hover::after,
.faction-card-video:focus-within::after {
  opacity: 1;
  transform: translateX(230%);
}

/*
.faction-card-video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(245,192,90,.08);
  background: linear-gradient(120deg, transparent 0 42%, rgba(255,229,166,.08), transparent 58% 100%);
  opacity: 0;
  transform: translateX(-26%);
  transition: .45s ease;
}

.faction-card-video:hover::after {
  opacity: 1;
  transform: translateX(26%);
}
*/

.faction-card:hover .faction-video {
  transform: scale(1.1);
  filter: brightness(.62) contrast(1.18) saturate(1.08);
}

/* FX-off fallback: JS sets --faction-poster from each video poster. */
/*
.faction-card-video.fx-video-fallback::before {
  background:
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.86)),
    var(--faction-poster, none) center / cover no-repeat,
    radial-gradient(circle at 50% 18%, rgba(201,148,69,.22), transparent 38%),
    linear-gradient(135deg, rgba(14,16,16,.94), rgba(5,7,8,.86));
}

.faction-card-video.fx-video-fallback .faction-video {
  opacity: 0;
}
*/

.faction-card-video.fx-video-fallback .faction-video {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}

.faction-card-video.fx-video-fallback::before {
  background: transparent !important;
}





/* =========================================================
   FACTION DOSSIER MODALS
   ========================================================= */

.faction-dossier-modal {
  width: min(1040px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(22px, 4vw, 42px);
}

.faction-dossier-header {
  margin: 0 48px 24px 0;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(245, 192, 90, 0.18);
}

.faction-dossier-header h2 {
  margin-bottom: 8px;
}

.faction-dossier-header p {
  max-width: 780px;
  margin: 0;
  color: #d9ceb9;
}

.faction-dossier-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 34px);
  align-items: start;
}

.faction-dossier-side {
  display: grid;
  gap: 16px;
}

.faction-dossier-logo {
  width: 100%;
  height: 100%;
  /*aspect-ratio: 1 / 1;*/
  object-fit: cover;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.42);
  box-shadow:
    0 0 28px rgba(201, 148, 69, 0.16),
    inset 0 0 26px rgba(0, 0, 0, 0.62);
}

.faction-dossier-stats {
  border: 1px solid rgba(245, 192, 90, 0.22);
  border-radius: 10px;
  padding: 16px;
  background:
    radial-gradient(circle at 20% 0%, rgba(201, 148, 69, 0.12), transparent 38%),
    rgba(0, 0, 0, 0.28);
  box-shadow:
    inset 0 0 20px rgba(0, 0, 0, 0.46),
    0 18px 40px rgba(0, 0, 0, 0.22);
}

.faction-dossier-stats h3,
.faction-dossier-text h3 {
  margin: 0 0 12px;
  color: #f3cf83;
  font-family: var(--font-title);
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.faction-dossier-stats dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.faction-dossier-stats dl div {
  display: grid;
  gap: 3px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(245, 192, 90, 0.11);
}

.faction-dossier-stats dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.faction-dossier-stats dt {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.faction-dossier-stats dd {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
}

.faction-dossier-text {
  min-height: 100%;
  border: 1px solid rgba(245, 192, 90, 0.22);
  border-radius: 12px;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(135deg, rgba(8, 10, 12, 0.82), rgba(16, 13, 8, 0.62)),
    radial-gradient(circle at 80% 0%, rgba(201, 148, 69, 0.10), transparent 34%);
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.48),
    0 18px 48px rgba(0, 0, 0, 0.24);
}

.faction-dossier-text h3 {
  margin-top: 22px;
}

.faction-dossier-text h3:first-child {
  margin-top: 0;
}

.faction-dossier-text p {
  margin: 0 0 16px;
  color: #cfc2aa;
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Make faction cards feel clickable */
.faction-card[data-modal-open] {
  cursor: pointer;
}

.faction-card[data-modal-open]:focus-visible {
  outline: 2px solid rgba(245, 192, 90, 0.72);
  outline-offset: 4px;
}

/* Mobile / tablet */
@media (max-width: 760px) {
  .faction-dossier-modal {
    width: min(94vw, 620px);
    padding: 22px;
  }

  .faction-dossier-header {
    margin-right: 42px;
  }

  .faction-dossier-layout {
    grid-template-columns: 1fr;
  }

  .faction-dossier-side {
    order: 1;
  }

  .faction-dossier-text {
    order: 2;
  }

  .faction-dossier-logo {
    max-width: 240px;
    margin-inline: auto;
  }
}

/* Fixed header anchor offset */
section[id],
#top {
  scroll-margin-top: 92px;
}

@media (max-width: 760px) {
  section[id],
  #top {
    scroll-margin-top: 82px;
  }
}

/* =========================================================
   SHARED MODAL SCROLLBAR STYLE
   Matches footer legal modal scrollbar
   ========================================================= */

.modal-card,
.faction-dossier-modal,
.dossier,
.media-lightbox-frame,
.site-legal-card {
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 148, 69, 0.65) rgba(0, 0, 0, 0.28);
}

.modal-card::-webkit-scrollbar,
.faction-dossier-modal::-webkit-scrollbar,
.dossier::-webkit-scrollbar,
.media-lightbox-frame::-webkit-scrollbar,
.site-legal-card::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.modal-card::-webkit-scrollbar-track,
.faction-dossier-modal::-webkit-scrollbar-track,
.dossier::-webkit-scrollbar-track,
.media-lightbox-frame::-webkit-scrollbar-track,
.site-legal-card::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.24);
}

.modal-card::-webkit-scrollbar-thumb,
.faction-dossier-modal::-webkit-scrollbar-thumb,
.dossier::-webkit-scrollbar-thumb,
.media-lightbox-frame::-webkit-scrollbar-thumb,
.site-legal-card::-webkit-scrollbar-thumb {
  background: rgba(201, 148, 69, 0.65);
  border-radius: 999px;
}

.modal-card::-webkit-scrollbar-thumb:hover,
.faction-dossier-modal::-webkit-scrollbar-thumb:hover,
.dossier::-webkit-scrollbar-thumb:hover,
.media-lightbox-frame::-webkit-scrollbar-thumb:hover,
.site-legal-card::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 192, 90, 0.78);
}

/* =========================================================
   NULL HISTORY MODAL
   Uses standard modal styling / close button
   ========================================================= */

.null-history-modal {
  width: min(1180px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(22px, 4vw, 42px);
}

/* Do not move or restyle the close button */
.null-history-modal .modal-close {
  top: 12px;
  right: 14px;
}

.null-history-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(24px, 4vw, 42px);
  align-items: stretch;
}

.null-history-timeline h2 {
  margin: 0 0 34px;
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--text);
}

.null-timeline-list {
  position: relative;
  display: grid;
  gap: 22px;
  padding-left: 26px;
}

.null-timeline-list::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(
    180deg,
    var(--line-bright),
    rgba(196, 145, 65, 0.14)
  );
}

.null-timeline-item {
  position: relative;
}

.null-timeline-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--line-bright);
  box-shadow:
    0 0 10px rgba(245, 192, 90, 0.68),
    0 0 22px rgba(201, 148, 69, 0.28);
}

.null-timeline-item h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}

.null-timeline-item p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.84rem;
  line-height: 1.5;
}

.null-history-panel {
  align-self: center;
  border: 1px solid rgba(245, 192, 90, 0.22);
  border-radius: 12px;
  padding: clamp(20px, 3vw, 30px);
  background: rgba(0, 0, 0, 0.24);
  box-shadow:
    inset 0 0 28px rgba(0, 0, 0, 0.42),
    0 18px 48px rgba(0, 0, 0, 0.24);
}

.null-history-panel h3 {
  margin: 0 0 16px;
  color: var(--text);
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.15;
}

.null-history-panel p {
  margin: 0 0 14px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.68;
}

.null-history-panel p:last-child {
  margin-bottom: 0;
  color: #d9ceb9;
}

/* Mobile */
@media (max-width: 860px) {
  .null-history-grid {
    grid-template-columns: 1fr;
  }

  .null-history-timeline h2 {
    margin-bottom: 24px;
  }

  .null-history-panel {
    align-self: stretch;
  }
}

@media (max-width: 580px) {
  .null-history-modal {
    padding: 22px;
  }

  .null-timeline-list {
    gap: 18px;
    padding-left: 22px;
  }

  .null-timeline-item::before {
    left: -24px;
  }

  .null-history-panel {
    border-radius: 10px;
    padding: 18px;
  }

  .null-history-panel p {
    font-size: 0.84rem;
  }
}

/* =========================================================
   GAME OVERVIEW SECTION
   ========================================================= */

.game-section {
  position: relative;
}

.game-overview-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(22px, 4vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(8, 10, 12, 0.92), rgba(16, 13, 8, 0.72)),
    radial-gradient(circle at 20% 0%, rgba(201, 148, 69, 0.10), transparent 34%);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.35),
    inset 0 0 32px rgba(0, 0, 0, 0.38);
}

.game-overview-copy {
  min-width: 0;
}

.game-lead {
  margin-top: 0;
  color: #d9ceb9;
  font-size: 1rem;
}

.game-note {
  margin: -4px 0 22px;
  color: rgba(168, 157, 137, 0.72);
  font-size: 0.74rem;
  line-height: 1.5;
}

.game-overview-copy h3 {
  margin: 26px 0 8px;
  color: var(--text);
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-overview-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.72;
}

.game-field-reports {
  align-self: start;
  border: 1px solid rgba(245, 192, 90, 0.22);
  border-radius: 12px;
  padding: clamp(18px, 3vw, 24px);
  background:
    linear-gradient(135deg, rgba(8, 10, 12, 0.88), rgba(16, 13, 8, 0.66));
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.46),
    0 18px 48px rgba(0, 0, 0, 0.22);
}

.game-report-header h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-family: var(--font-title);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-report-header p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.86rem;
}

.story-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.story-btn {
  border: 1px solid rgba(245, 192, 90, 0.24);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  min-height: 34px;
  padding: 0 12px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.story-btn:hover,
.story-btn.active {
  color: #fff4c5;
  border-color: var(--line-bright);
  background: rgba(201, 148, 69, 0.10);
  box-shadow:
    0 0 16px rgba(201, 148, 69, 0.18),
    inset 0 0 16px rgba(201, 148, 69, 0.06);
}

.story-btn:active {
  transform: scale(0.98);
}

.story-content {
  display: none;
}

.story-content.active {
  display: block;
}

.story-content h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
}

.audio-toggle {
  margin: 0 0 16px;
  min-height: 38px;
  border: 1px solid rgba(245, 192, 90, 0.36);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  color: var(--gold);
  padding: 0 14px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow:
    inset 0 0 16px rgba(0, 0, 0, 0.48),
    0 0 14px rgba(201, 148, 69, 0.08);
}

.audio-toggle:hover,
.audio-toggle.playing {
  color: #fff1bb;
  border-color: var(--line-bright);
  box-shadow:
    0 0 18px rgba(201, 148, 69, 0.24),
    inset 0 0 20px rgba(201, 148, 69, 0.08);
}

.story-body {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 8px;
}

.story-body p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.68;
}

/* Match modal scrollbar style */
.story-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 148, 69, 0.65) rgba(0, 0, 0, 0.28);
}

.story-body::-webkit-scrollbar {
  width: 7px;
}

.story-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.24);
}

.story-body::-webkit-scrollbar-thumb {
  background: rgba(201, 148, 69, 0.65);
  border-radius: 999px;
}

.story-body::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 192, 90, 0.78);
}

@media (max-width: 980px) {
  .game-overview-panel {
    grid-template-columns: 1fr;
  }

  .game-field-reports {
    align-self: stretch;
  }
}

@media (max-width: 580px) {
  .game-overview-panel {
    padding: 18px;
  }

  .story-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .story-btn {
    width: 100%;
    justify-content: center;
  }

  .story-body {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

/* =========================================================
   VESSEL REGISTRY SECTION
   ========================================================= */

.vessels-section {
  position: relative;
}

.vessels-heading-note {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  text-align: right;
}

.vessels-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.vessel-card {
  min-height: 520px;
  position: relative;
  overflow: hidden;
  isolation: isolate;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 148, 69, 0.14), transparent 38%),
    linear-gradient(135deg, rgba(8, 10, 12, 0.94), rgba(16, 13, 8, 0.72));

  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.34),
    inset 0 0 28px rgba(0, 0, 0, 0.46);

  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.vessel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.42;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.82)),
    radial-gradient(circle at 50% 18%, rgba(245, 192, 90, 0.12), transparent 34%);
}

.vessel-card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -85%;
  width: 85%;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(
      115deg,
      transparent 0%,
      transparent 28%,
      rgba(255, 229, 166, 0.03) 40%,
      rgba(255, 229, 166, 0.13) 50%,
      rgba(255, 229, 166, 0.03) 60%,
      transparent 72%,
      transparent 100%
    );
  opacity: 0;
  transform: translateX(0);
  transition:
    transform 720ms ease,
    opacity 260ms ease;
}

.vessel-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-bright);
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.48),
    0 0 26px rgba(201, 148, 69, 0.16),
    inset 0 0 30px rgba(0, 0, 0, 0.48);
}

.vessel-card:hover::after {
  opacity: 1;
  transform: translateX(230%);
}

.vessel-class {
  position: relative;
  z-index: 2;
  min-height: 92px;

  display: grid;
  place-items: center;

  border-bottom: 1px solid rgba(245, 192, 90, 0.18);
  background:
    radial-gradient(circle at 50% 45%, rgba(201, 148, 69, 0.16), transparent 52%),
    rgba(0, 0, 0, 0.18);

  color: #f3cf83;
  font-family: var(--font-title);
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.vessel-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.vessel-tag {
  display: block;
  min-height: 32px;
  margin-bottom: 12px;
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.vessel-card h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vessel-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.vessel-meta-list {
  display: grid;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 18px;
}

.vessel-meta-list div {
  padding: 10px 0 0;
  border-top: 1px solid rgba(245, 192, 90, 0.13);
}

.vessel-meta-list strong {
  display: block;
  margin-bottom: 4px;
  color: #f3cf83;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.vessel-meta-list span {
  display: block;
  color: #cfc2aa;
  font-size: 0.78rem;
  line-height: 1.5;
}

.vessel-info-btn {
  width: 100%;
  margin-top: auto;
}

/* subtle class variation */
.vessel-card-small::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.82)),
    radial-gradient(circle at 50% 18%, rgba(245, 192, 90, 0.10), transparent 34%);
}

.vessel-card-medium::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.82)),
    radial-gradient(circle at 50% 18%, rgba(201, 148, 69, 0.13), transparent 34%);
}

.vessel-card-large::before,
.vessel-card-huge::before,
.vessel-card-carrier::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.86)),
    radial-gradient(circle at 50% 18%, rgba(245, 192, 90, 0.16), transparent 36%);
}

/* Tablet */
@media (max-width: 1180px) {
  .vessels-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vessel-card {
    min-height: 460px;
  }

  .vessel-card-carrier {
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .vessels-heading-note {
    text-align: left;
  }

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

  .vessel-card,
  .vessel-card-carrier {
    min-height: auto;
    grid-column: auto;
  }

  .vessel-class {
    min-height: 74px;
  }

  .vessel-card-body {
    padding: 18px;
  }
}

/* =========================================================
   GAMEPLAY PILLARS SECTION
   ========================================================= */

.gameplay-pillars-section {
  position: relative;
}

.gameplay-heading-note {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  text-align: right;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pillar-card {
  min-height: 300px;
  position: relative;
  overflow: hidden;
  isolation: isolate;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;

  background:
    radial-gradient(circle at 20% 0%, rgba(201, 148, 69, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(8, 10, 12, 0.94), rgba(16, 13, 8, 0.72));

  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.34),
    inset 0 0 28px rgba(0, 0, 0, 0.46);

  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.pillar-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.55;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.78)),
    radial-gradient(circle at 50% 12%, rgba(245, 192, 90, 0.10), transparent 38%);
}

.pillar-card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -85%;
  width: 85%;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;

  background:
    linear-gradient(
      115deg,
      transparent 0%,
      transparent 28%,
      rgba(255, 229, 166, 0.03) 40%,
      rgba(255, 229, 166, 0.13) 50%,
      rgba(255, 229, 166, 0.03) 60%,
      transparent 72%,
      transparent 100%
    );

  opacity: 0;
  transform: translateX(0);
  transition:
    transform 720ms ease,
    opacity 260ms ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-bright);
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.48),
    0 0 26px rgba(201, 148, 69, 0.16),
    inset 0 0 30px rgba(0, 0, 0, 0.48);
}

.pillar-card:hover::after {
  opacity: 1;
  transform: translateX(230%);
}

.pillar-number {
  position: relative;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 192, 90, 0.36);
  color: #f3cf83;
  font-family: var(--font-title);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;

  box-shadow:
    0 0 18px rgba(201, 148, 69, 0.14),
    inset 0 0 18px rgba(0, 0, 0, 0.58);
}

.pillar-content {
  position: relative;
  z-index: 2;
}

.pillar-content h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.pillar-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.68;
}

/* Tablet */
@media (max-width: 1080px) {
  .pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillar-card {
    min-height: 260px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .gameplay-heading-note {
    text-align: left;
  }

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

  .pillar-card {
    min-height: auto;
    padding: 20px;
  }

  .pillar-content {
    margin-top: 28px;
  }
}

/* =========================================================
   NOVEL CTA SECTION
   ========================================================= */

.novel-section {
  position: relative;
}

.novel-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: stretch;

  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(24px, 5vw, 46px);

  background:
    linear-gradient(90deg, rgba(6, 8, 10, 0.97), rgba(12, 13, 12, 0.82)),
    radial-gradient(circle at 82% 18%, rgba(201, 148, 69, 0.13), transparent 36%);

  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.35),
    inset 0 0 32px rgba(0, 0, 0, 0.38);
}

.novel-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.18;
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(255, 229, 166, 0.11), transparent 58% 100%);
}

.novel-copy {
  min-width: 0;
}

.novel-copy h2 {
  max-width: 760px;
  margin-bottom: 16px;
}

.novel-lead {
  max-width: 780px;
  color: #d9ceb9;
  font-size: 1rem;
  line-height: 1.75;
}

.novel-copy p {
  max-width: 820px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.72;
}

.novel-btn {
  margin-top: 12px;
}

.novel-card {
  align-self: center;
  border: 1px solid rgba(245, 192, 90, 0.22);
  border-radius: 12px;
  padding: clamp(20px, 3vw, 28px);

  background:
    linear-gradient(135deg, rgba(8, 10, 12, 0.88), rgba(16, 13, 8, 0.66));

  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.46),
    0 18px 48px rgba(0, 0, 0, 0.22);
}

.novel-card h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.novel-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.68;
}

.novel-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.novel-list li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-top: 1px solid rgba(245, 192, 90, 0.12);
  color: #d9ceb9;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.novel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--line-bright);
  box-shadow:
    0 0 10px rgba(245, 192, 90, 0.68),
    0 0 22px rgba(201, 148, 69, 0.28);
}

@media (max-width: 920px) {
  .novel-panel {
    grid-template-columns: 1fr;
  }

  .novel-card {
    align-self: stretch;
  }
}

@media (max-width: 580px) {
  .novel-panel {
    padding: 20px;
  }

  .novel-copy p,
  .novel-card p {
    font-size: 0.86rem;
  }
}

/* =========================================================
   NAV LABEL COMPRESSION
   Hides optional wording before the menu collides with logo
   ========================================================= */

.nav-trim {
  display: inline;
}

/* Adjust this breakpoint to match your exact danger point */
@media (max-width: 1450px) {
  .nav-trim {
    display: none;
  }
}



/* =========================================================
   02 - COOKIE CONSENT MODULE
   Source: cookie.css
   ========================================================= */

/* =========================================================
   THE NULL / IN-2 SPACE - COOKIE CONSENT MODULE
   Standalone CSS. Does not use .modal or .btn to avoid clashes.
   ========================================================= */

:root {
  --cookie-gold: var(--gold, #c99445);
  --cookie-gold-bright: var(--line-bright, rgba(245, 192, 90, 0.85));
  --cookie-text: var(--text, #f2eadb);
  --cookie-muted: var(--muted, #a89d89);
  --cookie-bg: rgba(6, 7, 8, 0.88);
  --cookie-bg-strong: rgba(8, 9, 10, 0.96);
  --cookie-border: rgba(245, 192, 90, 0.34);
}

.cookie-banner {
  position: fixed;
  left: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 24px);
  z-index: var(--z-cookie-banner, 11000);

  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;

  border: 1px solid var(--cookie-border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 0%, rgba(245, 192, 90, 0.15), transparent 34%),
    linear-gradient(135deg, rgba(8, 10, 12, 0.94), rgba(5, 5, 6, 0.82));
  color: var(--cookie-text);
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.62),
    0 0 28px rgba(201, 148, 69, 0.12);
  backdrop-filter: blur(14px);

  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner.hidden,
.cookie-modalcookie.hidden {
  display: none !important;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
}

.cookie-text {
  flex: 1 1 340px;
  min-width: 0;
}

.cookie-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--cookie-gold);
  font-family: var(--font-title, Georgia, serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cookie-text h4 {
  margin: 0 0 5px;
  color: var(--cookie-text);
  font-family: var(--font-title, Georgia, serif);
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.cookie-text p {
  margin: 0;
  max-width: 760px;
  color: var(--cookie-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.cookie-actions,
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 192, 90, 0.36);
  background: rgba(0, 0, 0, 0.38);
  color: var(--cookie-text);
  cursor: pointer;

  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;

  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.55),
    0 0 14px rgba(201, 148, 69, 0.07);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.cookie-btn:hover {
  transform: translateY(-1px);
  border-color: var(--cookie-gold-bright);
  color: #fff4c5;
  box-shadow:
    0 0 16px rgba(201, 148, 69, 0.24),
    inset 0 0 22px rgba(201, 148, 69, 0.08);
}

.cookie-btn:active {
  transform: translateY(0) scale(0.98);
}

.cookie-btn-primary {
  background:
    linear-gradient(180deg, rgba(245, 192, 90, 0.82), rgba(132, 82, 22, 0.86));
  color: #161008;
  border-color: rgba(255, 224, 154, 0.92);
  text-shadow: none;
}

.cookie-btn-primary:hover {
  color: #050403;
  box-shadow:
    0 0 18px rgba(245, 192, 90, 0.4),
    inset 0 0 18px rgba(255, 255, 255, 0.12);
}

.cookie-btn-ghost {
  background: transparent;
}

.cookie-btn-soft {
  background: rgba(255, 255, 255, 0.045);
}

/* Overlay/modal uses its own name to avoid collisions with your existing modal system. */
.cookie-modalcookie {
  position: fixed;
  inset: 0;
  z-index: var(--z-cookie-modal, 11100);
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 35%, rgba(201, 148, 69, 0.12), transparent 38%),
    rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.cookie-card {
  width: min(560px, 94vw);
  max-height: 88vh;
  overflow: auto;
  position: relative;
  border: 1px solid var(--cookie-gold-bright);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(8, 10, 12, 0.98), rgba(16, 13, 8, 0.96));
  color: var(--cookie-text);
  padding: clamp(20px, 4vw, 32px);
  box-shadow:
    0 0 80px rgba(0, 0, 0, 0.82),
    0 0 38px rgba(201, 148, 69, 0.18);
}

.cookie-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(120deg, transparent 0 36%, rgba(245, 192, 90, 0.08), transparent 56% 100%);
}

.cookie-card > * {
  position: relative;
  z-index: 1;
}

.cookie-card h2 {
  margin: 0 0 10px;
  color: var(--cookie-text);
  font-family: var(--font-title, Georgia, serif);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.cookie-subtext {
  margin: 0 0 18px;
  color: var(--cookie-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid rgba(245, 192, 90, 0.16);
}

.cookie-option h3 {
  margin: 0 0 4px;
  color: var(--cookie-text);
  font-family: var(--font-title, Georgia, serif);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookie-option p {
  margin: 0;
  color: var(--cookie-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.cookie-switch {
  position: relative;
  width: 50px;
  height: 26px;
  flex: 0 0 auto;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(245, 192, 90, 0.28);
  background: rgba(0, 0, 0, 0.56);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.65);
  cursor: pointer;
  transition: 200ms ease;
}

.cookie-slider::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #73501f, #20150a);
  border: 1px solid rgba(245, 192, 90, 0.46);
  transition: 200ms ease;
}

.cookie-switch input:checked + .cookie-slider {
  border-color: var(--cookie-gold-bright);
  box-shadow:
    inset 0 0 14px rgba(201, 148, 69, 0.16),
    0 0 14px rgba(201, 148, 69, 0.14);
}

.cookie-switch input:checked + .cookie-slider::before {
  transform: translateX(24px);
  background: radial-gradient(circle at 45% 35%, #fff1bb, #d6a04b 46%, #4d3211 100%);
  box-shadow:
    0 0 12px rgba(245, 192, 90, 0.58),
    0 0 24px rgba(201, 148, 69, 0.26);
}

.cookie-switch input:disabled + .cookie-slider {
  cursor: not-allowed;
  opacity: 0.72;
}

.cookie-modal-actions {
  margin-top: 20px;
}

/* Optional footer/settings link styling */
.cookie-settings-link {
  color: var(--cookie-gold);
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  text-decoration: none;
}

.cookie-settings-link:hover {
  color: #fff1bb;
  text-shadow: 0 0 12px rgba(245, 192, 90, 0.36);
}

@media (max-width: 680px) {
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .cookie-btn {
    flex: 1 1 100%;
  }

  .cookie-option {
    align-items: flex-start;
  }

  .cookie-card {
    padding: 20px;
  }

  .cookie-modal-actions {
    justify-content: stretch;
  }

  .cookie-modal-actions .cookie-btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner,
  .cookie-btn,
  .cookie-slider,
  .cookie-slider::before {
    transition: none !important;
  }
}



/* =========================================================
   03 - CURSOR AND FX CONTROLS
   Source: cursor.css
   ========================================================= */

/* =========================================================
   THE NULL - CURSOR + GOLD FX CONTROLS
   Separate from style.css. Handles only toggles, cursor, sparks,
   text sparkle visuals, and FX-off video fallback behaviour.
   ========================================================= */

:root {
  --fx-panel-left: 8px;
  --fx-panel-top: 78px;
  --fx-gold: var(--gold, #c99445);
  --fx-gold-bright: var(--line-bright, rgba(245, 192, 90, 0.85));
}

.fx-switch-panel {
  position: fixed;
  left: var(--fx-panel-left);
  top: var(--fx-panel-top);
  z-index: var(--z-fx-toggles, 120);
  display: grid !important;
  gap: 8px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.fx-switch-row {
  display: grid;
  grid-template-columns: 46px auto;
  align-items: center;
  gap: 8px;
  min-height: 26px;
}

.fx-switch-label {
  color: #f2eadb;
  font-family: var(--font-title, Georgia, serif);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(201, 148, 69, 0.34), 0 2px 8px rgba(0, 0, 0, 0.8);
  user-select: none;
  line-height: 1;
}

.fx-switch {
  width: 46px;
  height: 24px;
  border: 1px solid rgba(245, 192, 90, 0.36);
  border-radius: 999px;
  padding: 2px;
  background: rgba(0, 0, 0, 0.66);
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.74), 0 2px 10px rgba(0,0,0,.45);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.fx-switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #73501f, #20150a);
  border: 1px solid rgba(245, 192, 90, 0.48);
  box-shadow: 0 0 10px rgba(201, 148, 69, 0.1);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.fx-switch.is-on {
  border-color: var(--fx-gold-bright);
  box-shadow: inset 0 0 16px rgba(201, 148, 69, 0.18), 0 0 16px rgba(201, 148, 69, 0.18), 0 2px 10px rgba(0,0,0,.45);
}

.fx-switch.is-on span {
  transform: translateX(21px);
  background: radial-gradient(circle at 45% 35%, #fff1bb, #d6a04b 46%, #4d3211 100%);
  box-shadow: 0 0 14px rgba(245, 192, 90, 0.62), 0 0 26px rgba(201, 148, 69, 0.34);
}

.fx-switch[disabled],
.fx-switch.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

html.cursor-fx-on,
html.cursor-fx-on body,
html.cursor-fx-on a,
html.cursor-fx-on button,
html.cursor-fx-on input,
html.cursor-fx-on textarea,
html.cursor-fx-on [role="button"] {
  cursor: none !important;
}

/* Custom image cursor */
.gold-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: var(--z-custom-cursor, 2147483647);

  width: 42px;
  height: 42px;

  pointer-events: none;
  transform: translate3d(-80px, -80px, 0);
  will-change: transform;

  background: url("../images/cursor-small.png") center / contain no-repeat;

  filter:
    drop-shadow(0 0 6px rgba(245, 192, 90, 0.72))
    drop-shadow(0 0 16px rgba(201, 148, 69, 0.34));
}

/* Disable old CSS-drawn cursor pieces */
.gold-cursor::before,
.gold-cursor::after,
.gold-cursor-core {
  display: none !important;
}

.gold-spark,
.gold-text-spark {
  position: fixed;
  z-index: calc(var(--z-custom-cursor, 2147483647) - 1);
  left: 0;
  top: 0;
  width: 5px;
  height: 5px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, #fff4bf 0 12%, #dba34b 45%, rgba(201, 148, 69, 0) 72%);
  box-shadow: 0 0 8px rgba(245, 192, 90, 0.8), 0 0 18px rgba(201, 148, 69, 0.28);
  transform: translate3d(0, 0, 0) scale(var(--spark-scale, 1));
  animation: goldSparkFall 760ms ease-out forwards;
}

.gold-text-spark {
  width: 7px;
  height: 7px;
  animation: goldTextSpark 900ms ease-out forwards;
}

@keyframes goldSparkFall {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(var(--spark-scale, 1)); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--spark-x, 0), var(--spark-y, 34px), 0) scale(0.12); }
}

@keyframes goldTextSpark {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.25); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--spark-x, 0), var(--spark-y, -36px), 0) scale(0.05); }
}

html.text-fx-on .section-kicker,
html.text-fx-on .section-heading h2,
html.text-fx-on .faction-card h3,
html.text-fx-on .null-list h3,
html.text-fx-on .eyebrow,
html.text-fx-on .text-link,
html.text-fx-on .inline-action,
html.text-fx-on .text-sparkle {
  position: relative;
}

html.text-fx-on .spark-text-active,
html.text-fx-on .section-kicker:hover,
html.text-fx-on .section-heading h2:hover,
html.text-fx-on .faction-card h3:hover,
html.text-fx-on .null-list h3:hover,
html.text-fx-on .eyebrow:hover,
html.text-fx-on .text-link:hover,
html.text-fx-on .inline-action:hover,
html.text-fx-on .text-sparkle:hover {
  color: #f1c46e;
  text-shadow: 0 0 8px rgba(245, 192, 90, 0.44), 0 0 22px rgba(201, 148, 69, 0.28);
}



@media (hover: none), (pointer: coarse) {
  html.cursor-fx-on,
  html.cursor-fx-on body,
  html.cursor-fx-on a,
  html.cursor-fx-on button,
  html.cursor-fx-on input,
  html.cursor-fx-on textarea,
  html.cursor-fx-on [role="button"] {
    cursor: auto !important;
  }

  .gold-cursor {
    display: none;
  }
}

@media (max-width: 920px) {
  .fx-switch-panel {
    display: none !important;
  }

  .gold-cursor {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gold-spark,
  .gold-text-spark,
  .gold-cursor {
    display: none !important;
  }
}

.gold-cursor.is-hand {
  width: 46px;
  height: 46px;

  background-image: url("../images/cursor-hand-small.png");

  filter:
    drop-shadow(0 0 7px rgba(245, 192, 90, 0.78))
    drop-shadow(0 0 18px rgba(201, 148, 69, 0.38));
}



/* =========================================================
   04 - FOOTER LEGAL MODALS
   Source: footer-legal.css
   ========================================================= */

/* =========================================================
   THE NULL / IN-2 SPACE - FOOTER LEGAL MODALS
   Standalone styling. Avoids .modal to prevent clashes.
   ========================================================= */

.site-footer-actions {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer-actions button,
.site-footer-actions a {
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  text-decoration: none;
}

.site-footer-actions button:hover,
.site-footer-actions a:hover {
  color: var(--gold, #c99445);
  text-shadow: 0 0 12px rgba(201, 148, 69, 0.28);
}

.site-legal-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-legal-modal, 11200);
  display: none;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 35%, rgba(201, 148, 69, 0.12), transparent 38%),
    rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
}

.site-legal-modal.active {
  display: grid;
}

.site-legal-card {
  position: relative;
  width: min(820px, 94vw);
  max-height: 86vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line-bright, rgba(245, 192, 90, 0.85));
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(8, 10, 12, 0.98), rgba(16, 13, 8, 0.96));
  color: var(--text, #f2eadb);
  box-shadow:
    0 0 90px rgba(0, 0, 0, 0.84),
    0 0 42px rgba(201, 148, 69, 0.18);
}

.site-legal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(120deg, transparent 0 38%, rgba(245, 192, 90, 0.07), transparent 56% 100%);
}

.site-legal-card > * {
  position: relative;
  z-index: 1;
}

.site-legal-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--gold, #c99445);
  font-family: var(--font-title, Georgia, serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-legal-card h2 {
  margin: 0 42px 16px 0;
  font-family: var(--font-title, Georgia, serif);
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--text, #f2eadb);
}

.site-legal-card h3 {
  margin: 24px 0 8px;
  font-family: var(--font-title, Georgia, serif);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f3cf83;
}

.site-legal-card p,
.site-legal-card li {
  color: var(--muted, #a89d89);
  font-size: 0.92rem;
  line-height: 1.7;
}

.site-legal-card p {
  margin: 0 0 12px;
}

.site-legal-card ul {
  margin: 0 0 14px 20px;
  padding: 0;
}

.site-legal-note {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 192, 90, 0.18);
  border-radius: 12px;
  background: rgba(201, 148, 69, 0.055);
}

.site-legal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(245, 192, 90, 0.36);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: var(--gold, #c99445);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.site-legal-close:hover {
  color: #fff1bb;
  border-color: var(--line-bright, rgba(245, 192, 90, 0.85));
  box-shadow: 0 0 18px rgba(201, 148, 69, 0.24);
  transform: rotate(4deg);
}

/* Scrollbar polish */
/*
.site-legal-card {
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 148, 69, 0.65) rgba(0, 0, 0, 0.28);
}

.site-legal-card::-webkit-scrollbar {
  width: 7px;
}

.site-legal-card::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.24);
}

.site-legal-card::-webkit-scrollbar-thumb {
  background: rgba(201, 148, 69, 0.65);
  border-radius: 999px;
}
*/

@media (max-width: 640px) {
  .site-footer-actions {
    gap: 14px;
  }

  .site-legal-modal {
    padding: 14px;
  }

  .site-legal-card {
    max-height: 88vh;
    padding: 22px;
  }

  .site-legal-card p,
  .site-legal-card li {
    font-size: 0.86rem;
  }
}



/* =========================================================
   05 - STARFIELD LITE
   Source: starfield-lite.css
   ========================================================= */

/* Safe JS starfield layer.
   Only styles its own canvas. Does not alter site/header/modal stacking. */

#jsStarfieldCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms ease;
}

html.js-starfield-on #jsStarfieldCanvas {
  opacity: 0.5;
}

html.js-starfield-on .starfield {
  opacity: 0.12;
}

@media (max-width: 920px) {
  #jsStarfieldCanvas {
    display: none !important;
  }

  html.js-starfield-on .starfield {
    opacity: 0.28;
  }
}

@media (prefers-reduced-motion: reduce) {
  #jsStarfieldCanvas {
    display: none !important;
  }

  html.js-starfield-on .starfield {
    opacity: 0.28;
  }
}



/* =========================================================
   06 - MEDIA SLIDER MODULE
   Source: media.css
   ========================================================= */

/* =========================================================
   IN-2 SPACE / THE NULL - MEDIA SLIDER MODULE
   Fully scoped. No dependency on old .media-strip / .lightbox.
   ========================================================= */

.media-section {
  position: relative;
}

.media-heading {
  margin-bottom: 14px;
}

.media-slider-shell {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.media-slider-viewport {
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
}

.media-slider-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px;
}

.media-slider-track::-webkit-scrollbar {
  display: none;
}

.media-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.42));
}

.media-card {
  flex: 0 0 calc((100% - 48px) / 5);
  min-width: 0;
  height: 300px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line, rgba(196, 145, 65, 0.38));
  border-radius: 6px;
  background: #050607;
  padding: 0;
  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.32),
    inset 0 0 18px rgba(201, 148, 69, 0.04);
}

/*
.media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(120deg, transparent 0 36%, rgba(245, 192, 90, 0.08), transparent 56% 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.42));
  opacity: 0.65;
  transition:
    opacity 220ms ease,
    transform 360ms ease;
}
*/

.media-card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -85%;
  width: 85%;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;

  background:
    linear-gradient(
      115deg,
      transparent 0%,
      transparent 28%,
      rgba(245, 192, 90, 0.03) 40%,
      rgba(245, 192, 90, 0.14) 50%,
      rgba(245, 192, 90, 0.03) 60%,
      transparent 72%,
      transparent 100%
    );

  opacity: 0;
  transform: translateX(0);
  transition:
    transform 720ms ease,
    opacity 260ms ease;
}

.media-card:hover::after,
.media-card:focus-visible::after {
  opacity: 1;
  transform: translateX(230%);
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.66) contrast(1.12) saturate(0.88);
  transform: scale(1.01);
  transition:
    transform 420ms ease,
    filter 420ms ease;
}

.media-card:hover,
.media-card:focus-visible {
  border-color: var(--line-bright, rgba(245, 192, 90, 0.85));
  outline: none;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.44),
    0 0 24px rgba(201, 148, 69, 0.14);
}

.media-card:hover img,
.media-card:focus-visible img {
  transform: scale(1.08);
  filter: brightness(0.92) contrast(1.14) saturate(1.02);
}

/*
.media-card:hover::after,
.media-card:focus-visible::after {
  opacity: 0.95;
  transform: translateX(8%);
}
*/

.media-play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line-bright, rgba(245, 192, 90, 0.85));
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(245, 192, 90, 0.16), rgba(0, 0, 0, 0.58));
  box-shadow:
    0 0 18px rgba(201, 148, 69, 0.22),
    inset 0 0 18px rgba(0, 0, 0, 0.55);
}

.media-play-dot::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 11px;
  width: 0;
  height: 0;
  border-left: 11px solid var(--gold, #c99445);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  filter: drop-shadow(0 0 8px rgba(245, 192, 90, 0.45));
}

.media-arrow {
  width: 34px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--gold, #c99445);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  opacity: 0.78;
  text-shadow:
    0 0 12px rgba(201, 148, 69, 0.42),
    0 2px 8px rgba(0, 0, 0, 0.85);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    color 180ms ease;
}

.media-arrow:hover,
.media-arrow:focus-visible {
  opacity: 1;
  color: var(--line-bright, rgba(245, 192, 90, 0.85));
  transform: scale(1.08);
  outline: none;
}

.media-arrow[disabled] {
  opacity: 0.22;
  cursor: default;
  transform: none;
}

/* LIGHTBOX */

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-media-lightbox, 9100);
  display: none;
  place-items: center;
  padding: 24px;
}

.media-lightbox.is-open {
  display: grid;
}

.media-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(201, 148, 69, 0.10), transparent 42%),
    rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.media-lightbox-frame {
  position: relative;
  z-index: 1;
  width: min(1180px, 92vw);
  max-height: 86vh;
  margin: 0;
  border: 1px solid var(--line-bright, rgba(245, 192, 90, 0.85));
  border-radius: 10px;
  overflow: hidden;
  background: #020304;
  box-shadow:
    0 0 80px rgba(0, 0, 0, 0.82),
    0 0 42px rgba(201, 148, 69, 0.2);
}

.media-lightbox-frame img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  background: #020304;
}

.media-lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-bright, rgba(245, 192, 90, 0.85));
  border-radius: 999px;
  background: rgba(5, 6, 7, 0.82);
  color: var(--text, #f2eadb);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  box-shadow:
    0 0 24px rgba(201, 148, 69, 0.18),
    inset 0 0 18px rgba(0, 0, 0, 0.62);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.media-lightbox-close:hover,
.media-lightbox-close:focus-visible {
  transform: scale(1.06);
  color: var(--line-bright, rgba(245, 192, 90, 0.85));
  box-shadow:
    0 0 28px rgba(201, 148, 69, 0.32),
    inset 0 0 20px rgba(201, 148, 69, 0.08);
  outline: none;
}

/* TABLET */

@media (max-width: 980px) {
  .media-card {
    flex-basis: calc((100% - 24px) / 3);
    height: 220px;
  }

  .media-slider-shell {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 6px;
  }

  .media-arrow {
    width: 30px;
  }
}

/* MOBILE */

@media (max-width: 640px) {
  .media-slider-shell {
    grid-template-columns: 1fr;
  }

  .media-slider-viewport {
    overflow: visible;
  }

  .media-slider-track {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    gap: 12px;
    padding: 0;
  }

  .media-card {
    width: 50%;
    height: 240px;
    flex: none;
    margin: auto;
  }

  .media-slider-track .media-card:nth-child(n + 5) {
    display: none;
  }

  .media-arrow {
    display: none;
  }

  .media-lightbox {
    padding: 14px;
  }

  .media-lightbox-close {
    top: 12px;
    right: 12px;
  }
}



/* =========================================================
   07 - GUIDED CHAT MODULE
   Source: guided.css
   ========================================================= */

/* =========================================================
   IN-2 SPACE / THE NULL - GUIDED CHAT MODULE
   Standalone. Does not use .modal or .btn.
   ========================================================= */

.guided-chat {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: calc(var(--z-modal, 9000) - 50);
  font-family: var(--font-body, Inter, system-ui, sans-serif);
}

.guided-chat-toggle {
  position: relative;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;

  border: 1px solid var(--line-bright, rgba(245, 192, 90, 0.85));
  border-radius: 999px;
  background:
    radial-gradient(circle at 45% 35%, rgba(245, 192, 90, 0.22), rgba(0, 0, 0, 0.74)),
    linear-gradient(135deg, rgba(8, 10, 12, 0.92), rgba(16, 13, 8, 0.72));

  cursor: pointer;
  box-shadow:
    0 0 28px rgba(201, 148, 69, 0.22),
    0 16px 44px rgba(0, 0, 0, 0.56),
    inset 0 0 18px rgba(0, 0, 0, 0.62);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.guided-chat-toggle:hover,
.guided-chat-toggle:focus-visible {
  transform: translateY(-2px) scale(1.04);
  border-color: #fff1bb;
  box-shadow:
    0 0 34px rgba(245, 192, 90, 0.34),
    0 18px 52px rgba(0, 0, 0, 0.62),
    inset 0 0 22px rgba(201, 148, 69, 0.08);
  outline: none;
}

.guided-chat-toggle img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter:
    drop-shadow(0 0 8px rgba(245, 192, 90, 0.45))
    drop-shadow(0 3px 8px rgba(0, 0, 0, 0.8));
}

.guided-chat-pulse {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(245, 192, 90, 0.24);
  border-radius: inherit;
  animation: guidedPulse 2.4s ease-out infinite;
}

@keyframes guidedPulse {
  0% {
    opacity: 0.75;
    transform: scale(0.92);
  }

  75%,
  100% {
    opacity: 0;
    transform: scale(1.28);
  }
}

.guided-chat-panel {
  position: absolute;
  right: 0;
  bottom: 84px;

  width: min(390px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 125px));

  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;

  border: 1px solid var(--line-bright, rgba(245, 192, 90, 0.85));
  border-radius: 18px;
  overflow: hidden;

  background:
    radial-gradient(circle at 12% 0%, rgba(245, 192, 90, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(8, 10, 12, 0.98), rgba(16, 13, 8, 0.96));

  color: var(--text, #f2eadb);
  box-shadow:
    0 0 80px rgba(0, 0, 0, 0.78),
    0 0 38px rgba(201, 148, 69, 0.18);

  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;

  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.guided-chat.is-open .guided-chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.guided-chat.is-open .guided-chat-toggle {
  transform: scale(0.96);
}

.guided-chat-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(245, 192, 90, 0.18);
  background: rgba(0, 0, 0, 0.18);
}

.guided-chat-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--gold, #c99445);
  font-family: var(--font-title, Georgia, serif);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.guided-chat-header h2 {
  margin: 0;
  color: var(--text, #f2eadb);
  font-family: var(--font-title, Georgia, serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guided-chat-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;

  border: 1px solid rgba(245, 192, 90, 0.36);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--gold, #c99445);

  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;

  transition:
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.guided-chat-close:hover,
.guided-chat-close:focus-visible {
  color: #fff1bb;
  border-color: var(--line-bright, rgba(245, 192, 90, 0.85));
  box-shadow: 0 0 18px rgba(201, 148, 69, 0.24);
  transform: rotate(4deg);
  outline: none;
}

.guided-chat-log {
  min-height: 260px;
  max-height: 430px;
  overflow-y: auto;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 12px;

  scrollbar-width: thin;
  scrollbar-color: rgba(201, 148, 69, 0.65) rgba(0, 0, 0, 0.28);
}

.guided-chat-log::-webkit-scrollbar {
  width: 7px;
}

.guided-chat-log::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.24);
}

.guided-chat-log::-webkit-scrollbar-thumb {
  background: rgba(201, 148, 69, 0.65);
  border-radius: 999px;
}

.guided-message {
  max-width: 88%;
  padding: 11px 12px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.55;

  opacity: 0;
  transform: translateY(8px);
  animation: guidedMessageIn 220ms ease forwards;
}

@keyframes guidedMessageIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.guided-message p {
  margin: 0;
  color: inherit;
}

.guided-message a {
  color: #f3cf83;
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 192, 90, 0.35);
}

.guided-message a:hover {
  color: #fff1bb;
  border-bottom-color: var(--line-bright, rgba(245, 192, 90, 0.85));
}

.guided-message-bot {
  justify-self: start;
  border: 1px solid rgba(245, 192, 90, 0.18);
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.36), rgba(201, 148, 69, 0.055));
  color: var(--muted, #a89d89);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.28);
}

.guided-message-user {
  justify-self: end;
  border: 1px solid rgba(245, 192, 90, 0.34);
  background: rgba(201, 148, 69, 0.12);
  color: #f2eadb;
}

.guided-chat-options {
  padding: 14px;
  display: grid;
  gap: 9px;
  border-top: 1px solid rgba(245, 192, 90, 0.18);
  background: rgba(0, 0, 0, 0.20);
}

.guided-option {
  min-height: 40px;
  padding: 0 13px;

  border: 1px solid rgba(245, 192, 90, 0.30);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--text, #f2eadb);

  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-align: left;

  box-shadow:
    inset 0 0 14px rgba(0, 0, 0, 0.46),
    0 0 12px rgba(201, 148, 69, 0.06);

  transition:
    transform 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.guided-option:hover,
.guided-option:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-bright, rgba(245, 192, 90, 0.85));
  color: #fff4c5;
  background: rgba(201, 148, 69, 0.10);
  box-shadow:
    0 0 16px rgba(201, 148, 69, 0.20),
    inset 0 0 18px rgba(201, 148, 69, 0.06);
  outline: none;
}

.guided-option:active {
  transform: translateY(0) scale(0.985);
}

/* Hide on smaller screens to avoid fighting the menu, cookie banner and media lightbox */
@media (max-width: 760px), (hover: none), (pointer: coarse) {
  .guided-chat {
    display: none !important;
  }
}



/* =========================================================
   08 - VESSEL REGISTRY MODULE
   Source: vessels.css
   ========================================================= */

/* =========================================================
   IN-2 SPACE - VESSEL REGISTRY MODULE
   Standalone CSS. Load after your main stylesheet.
   Works with the gold/Null theme, with fallbacks for the older blue/orange theme.
   ========================================================= */

:root {
  --vessel-bg: var(--bg, #030507);
  --vessel-panel: var(--panel, rgba(9, 12, 14, 0.82));
  --vessel-panel-strong: var(--panel-strong, rgba(8, 10, 12, 0.96));
  --vessel-line: var(--line, rgba(196, 145, 65, 0.38));
  --vessel-line-bright: var(--line-bright, rgba(245, 192, 90, 0.85));
  --vessel-gold: var(--gold, var(--accent-2, #c99445));
  --vessel-blue: var(--accent, #4fd1ff);
  --vessel-text: var(--text, #f2eadb);
  --vessel-muted: var(--muted, #a89d89);
  --vessel-font-title: var(--font-title, Georgia, serif);
  --vessel-font-body: var(--font-body, Inter, system-ui, sans-serif);
  --vessel-z-modal: 11300;
}

/* =============================
   SECTION / CARDS
   ============================= */
.vessels-section {
  position: relative;
}

.vessels-heading-note {
  max-width: 360px;
  margin: 0;
  color: var(--vessel-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.vessels-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.vessel-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid var(--vessel-line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 192, 90, 0.12), transparent 38%),
    linear-gradient(145deg, rgba(13, 16, 18, 0.96), rgba(3, 5, 7, 0.92));
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.42),
    inset 0 0 24px rgba(201, 148, 69, 0.04);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.vessel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.42;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.72)),
    radial-gradient(circle at 50% 18%, var(--vessel-class-glow, rgba(201, 148, 69, 0.2)), transparent 42%);
}

.vessel-card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -90%;
  width: 80%;
  z-index: -1;
  opacity: 0;
  background:
    linear-gradient(115deg, transparent 0 30%, rgba(245, 192, 90, 0.05) 42%, rgba(245, 192, 90, 0.18) 50%, rgba(245, 192, 90, 0.05) 58%, transparent 72% 100%);
  transition: opacity 260ms ease, transform 720ms ease;
}

.vessel-card:hover,
.vessel-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--vessel-line-bright);
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.52),
    0 0 28px rgba(201, 148, 69, 0.16),
    inset 0 0 30px rgba(201, 148, 69, 0.06);
}

.vessel-card:hover::after,
.vessel-card:focus-within::after {
  opacity: 1;
  transform: translateX(235%);
}

.vessel-card-small { --vessel-class-glow: rgba(79, 209, 255, 0.18); }
.vessel-card-medium { --vessel-class-glow: rgba(95, 255, 185, 0.14); }
.vessel-card-large { --vessel-class-glow: rgba(255, 208, 96, 0.16); }
.vessel-card-huge { --vessel-class-glow: rgba(255, 123, 58, 0.18); }
.vessel-card-carrier { --vessel-class-glow: rgba(190, 146, 255, 0.18); }

.vessel-class {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  min-width: 72px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(245, 192, 90, 0.42);
  background: rgba(0, 0, 0, 0.46);
  color: var(--vessel-gold);
  font-family: var(--vessel-font-title);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow:
    0 0 18px rgba(201, 148, 69, 0.12),
    inset 0 0 16px rgba(0, 0, 0, 0.6);
}

.vessel-card-body {
  position: relative;
  z-index: 1;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 74px 18px 18px;
}

.vessel-tag {
  color: var(--vessel-gold);
  font-family: var(--vessel-font-title);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.vessel-card h3 {
  margin: 0;
  color: var(--vessel-text);
  font-family: var(--vessel-font-title);
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vessel-card p,
.vessel-meta-list span {
  color: var(--vessel-muted);
  font-size: 0.84rem;
  line-height: 1.62;
}

.vessel-meta-list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.vessel-meta-list div {
  padding-left: 11px;
  border-left: 1px solid rgba(245, 192, 90, 0.26);
}

.vessel-meta-list strong {
  display: block;
  margin-bottom: 2px;
  color: #f3cf83;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vessel-info-btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 42px;
  margin-top: 4px;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid rgba(245, 192, 90, 0.56);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(245, 192, 90, 0.08), rgba(0, 0, 0, 0.26)),
    rgba(0, 0, 0, 0.46);
  color: #f3cf83;
  cursor: pointer;
  font-family: var(--vessel-font-title);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.56),
    0 0 14px rgba(201, 148, 69, 0.08);
  transition:
    transform 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.vessel-info-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 40%, rgba(255, 241, 187, 0.22), transparent 60% 100%);
  transform: translateX(-115%);
  transition: transform 560ms ease;
}

.vessel-info-btn:hover,
.vessel-info-btn:focus-visible {
  transform: translateY(-1px);
  color: #fff1bb;
  border-color: var(--vessel-line-bright);
  box-shadow:
    0 0 20px rgba(201, 148, 69, 0.24),
    inset 0 0 20px rgba(201, 148, 69, 0.08);
  outline: none;
}

.vessel-info-btn:hover::after,
.vessel-info-btn:focus-visible::after {
  transform: translateX(115%);
}

/* =============================
   MODAL
   ============================= */
.in2-vessel-modal {
  position: fixed;
  inset: 0;
  z-index: var(--vessel-z-modal);
  display: none;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 35%, rgba(201, 148, 69, 0.12), transparent 38%),
    rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.in2-vessel-modal.is-open {
  display: grid;
}

.in2-vessel-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.in2-vessel-modal__card {
  position: relative;
  z-index: 1;
  width: min(1180px, 94vw);
  max-height: 88vh;
  overflow: hidden;
  border: 1px solid var(--vessel-line-bright);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(8, 10, 12, 0.98), rgba(16, 13, 8, 0.96)),
    radial-gradient(circle at 84% 12%, rgba(245, 192, 90, 0.1), transparent 35%);
  color: var(--vessel-text);
  box-shadow:
    0 0 90px rgba(0, 0, 0, 0.86),
    0 0 46px rgba(201, 148, 69, 0.2);
}

.in2-vessel-modal__card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 38%, rgba(245, 192, 90, 0.06), transparent 56% 100%),
    repeating-linear-gradient(0deg, rgba(245, 192, 90, 0.024), rgba(245, 192, 90, 0.024) 1px, transparent 1px, transparent 9px);
}

.in2-vessel-modal__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 0;
  min-height: 580px;
}

.in2-vessel-modal__panel {
  min-width: 0;
  padding: clamp(22px, 3vw, 42px);
  border-right: 1px solid rgba(245, 192, 90, 0.18);
  overflow-y: auto;
  max-height: 88vh;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 148, 69, 0.65) rgba(0, 0, 0, 0.24);
}

.in2-vessel-modal__panel::-webkit-scrollbar,
.in2-vessel-schematic::-webkit-scrollbar {
  width: 7px;
}

.in2-vessel-modal__panel::-webkit-scrollbar-track,
.in2-vessel-schematic::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.24);
}

.in2-vessel-modal__panel::-webkit-scrollbar-thumb,
.in2-vessel-schematic::-webkit-scrollbar-thumb {
  background: rgba(201, 148, 69, 0.65);
  border-radius: 999px;
}

.in2-vessel-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--vessel-gold);
  font-family: var(--vessel-font-title);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.in2-vessel-title {
  margin: 0 44px 10px 0;
  color: var(--vessel-text);
  font-family: var(--vessel-font-title);
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  font-weight: 500;
  line-height: 1.08;
}

.in2-vessel-summary {
  margin: 0 0 20px;
  color: var(--vessel-muted);
  font-size: 0.94rem;
  line-height: 1.72;
}

.in2-vessel-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.in2-vessel-stat {
  min-height: 68px;
  padding: 12px;
  border: 1px solid rgba(245, 192, 90, 0.18);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
}

.in2-vessel-stat strong {
  display: block;
  margin-bottom: 5px;
  color: #f3cf83;
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.in2-vessel-stat span {
  color: var(--vessel-text);
  font-size: 0.86rem;
  line-height: 1.42;
}

.in2-vessel-details {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}

.in2-vessel-detail {
  padding-left: 13px;
  border-left: 1px solid rgba(245, 192, 90, 0.3);
}

.in2-vessel-detail h3 {
  margin: 0 0 5px;
  color: var(--vessel-text);
  font-family: var(--vessel-font-title);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.in2-vessel-detail p {
  margin: 0;
  color: var(--vessel-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.in2-vessel-schematic {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: clamp(22px, 3vw, 38px);
  max-height: 88vh;
  overflow-y: auto;
}

.in2-vessel-schematic__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  border-bottom: 1px solid rgba(245, 192, 90, 0.16);
  padding-bottom: 14px;
}

.in2-vessel-schematic__head p {
  max-width: 520px;
  margin: 0;
  color: var(--vessel-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.in2-vessel-current {
  color: var(--vessel-gold);
  font-family: var(--vessel-font-title);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.in2-vessel-schematic__stage {
  position: relative;
  min-height: 410px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(245, 192, 90, 0.16);
  border-radius: 16px;
  background:
    radial-gradient(circle at center, rgba(201, 148, 69, 0.16), transparent 44%),
    linear-gradient(rgba(245, 192, 90, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 192, 90, 0.045) 1px, transparent 1px),
    rgba(0, 0, 0, 0.25);
  background-size: auto, 32px 32px, 32px 32px, auto;
}

.in2-vessel-schematic__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.42), transparent 22%, transparent 78%, rgba(0,0,0,0.42)),
    linear-gradient(0deg, rgba(0,0,0,0.42), transparent 18%, transparent 82%, rgba(0,0,0,0.42));
}

.in2-vessel-schematic__image {
  position: relative;
  z-index: 1;
  width: min(92%, 680px);
  max-height: 360px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 22px rgba(245, 192, 90, 0.22))
    drop-shadow(0 18px 32px rgba(0, 0, 0, 0.56));
}

.in2-vessel-hotspots {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.in2-vessel-hotspot {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 192, 90, 0.34);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff1bb;
  cursor: pointer;
  font-size: 0;
  box-shadow:
    0 0 12px rgba(201, 148, 69, 0.18),
    inset 0 0 12px rgba(0, 0, 0, 0.52);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.in2-vessel-hotspot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vessel-gold);
  box-shadow: 0 0 12px rgba(245, 192, 90, 0.8);
}

.in2-vessel-hotspot:hover,
.in2-vessel-hotspot:focus-visible,
.in2-vessel-hotspot.is-active {
  transform: scale(1.08);
  border-color: var(--vessel-line-bright);
  background: rgba(201, 148, 69, 0.12);
  box-shadow:
    0 0 16px rgba(245, 192, 90, 0.38),
    0 0 34px rgba(201, 148, 69, 0.18),
    inset 0 0 12px rgba(245, 192, 90, 0.12);
  outline: none;
}

.in2-vessel-class-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.in2-vessel-tab {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(245, 192, 90, 0.26);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--vessel-muted);
  cursor: pointer;
  font-family: var(--vessel-font-title);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.in2-vessel-tab:hover,
.in2-vessel-tab:focus-visible,
.in2-vessel-tab.is-active {
  color: #fff1bb;
  border-color: var(--vessel-line-bright);
  box-shadow: 0 0 14px rgba(201, 148, 69, 0.18);
  outline: none;
}

.in2-vessel-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 192, 90, 0.36);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.48);
  color: var(--vessel-gold);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.in2-vessel-close:hover,
.in2-vessel-close:focus-visible {
  color: #fff1bb;
  border-color: var(--vessel-line-bright);
  box-shadow: 0 0 18px rgba(201, 148, 69, 0.26);
  transform: rotate(4deg);
  outline: none;
}

html.in2-vessel-lock,
html.in2-vessel-lock body {
  overflow: hidden;
}

/* Optional: if your current page has #starfield, this class lets the JS wake it up while the modal is open. */
body.in2-vessel-open #starfield,
body.in2-vessel-open .starfield {
  opacity: 0.42;
}

@media (max-width: 1100px) {
  .vessels-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vessel-card-carrier {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .vessels-heading-note {
    max-width: none;
  }

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

  .vessel-card,
  .vessel-card-carrier {
    grid-column: auto;
    min-height: auto;
  }

  .vessel-card-body {
    min-height: auto;
  }

  .in2-vessel-modal {
    padding: 12px;
    place-items: start center;
    overflow-y: auto;
  }

  .in2-vessel-modal__card {
    max-height: none;
    overflow: visible;
    margin: 16px 0;
  }

  .in2-vessel-modal__inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .in2-vessel-modal__panel {
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid rgba(245, 192, 90, 0.18);
  }

  .in2-vessel-schematic {
    max-height: none;
  }

  .in2-vessel-schematic__head {
    align-items: start;
    flex-direction: column;
  }

  .in2-vessel-current {
    white-space: normal;
  }

  .in2-vessel-schematic__stage {
    min-height: 300px;
  }

  .in2-vessel-schematic__image {
    max-height: 245px;
  }

  .in2-vessel-stat-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   99 - SAFE FINAL OVERRIDES / CLEANUP HELPERS
   These are intentionally placed last so they can tidy behaviour
   without changing the existing module class names or JS hooks.
   ========================================================= */

/* Global media safety */
img,
video,
canvas,
svg,
iframe {
  max-width: 100%;
}

img,
video {
  height: auto;
}

/* Header/nav compression helpers.
   Example:
   <a href="/book/"><span class="nav-trim nav-trim-early">Read the </span>Novel</a>
   <a href="#game"><span class="nav-trim nav-trim-early">Explore the </span>Game</a>
   <a href="#join"><span class="nav-trim nav-trim-mid">Join the </span>Transmission</a>
*/
.nav-trim {
  display: inline;
}

@media (min-width: 921px) {
  .site-header {
    gap: clamp(14px, 2vw, 34px);
  }

  .brand {
    flex: 0 0 auto;
    min-width: 0;
  }

  .main-nav {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: clamp(12px, 1.55vw, 28px);
  }

  .main-nav a {
    white-space: nowrap;
  }
}

/* First desktop squeeze: shorten Explore the Game / Read the Novel */
@media (max-width: 1500px) and (min-width: 921px) {
  .nav-trim-early {
    display: none;
  }

  .main-nav {
    gap: clamp(10px, 1.2vw, 20px);
  }
}

/* Second desktop squeeze: shorten Join the Transmission */
@media (max-width: 1380px) and (min-width: 921px) {
  .nav-trim-mid {
    display: none;
  }
}

/* Final pre-mobile squeeze: reduce letter-spacing slightly before the hamburger layout takes over */
@media (max-width: 1180px) and (min-width: 921px) {
  .main-nav a {
    letter-spacing: 0.11em;
    font-size: 0.7rem;
  }

  .main-nav {
    gap: 10px;
  }
}

/* Safer long-word handling in content cards */
.card-content h3,
.faction-card h3,
.vessel-card h3,
.section-heading h2,
.guided-chat-header h2 {
  overflow-wrap: anywhere;
}

/* Keep fixed UI layers from fighting each other */
.fx-switch-panel {
  z-index: var(--z-fx-toggles, 120);
}

.guided-chat {
  z-index: calc(var(--z-modal, 9000) - 50);
}

.modal,
.lightbox {
  z-index: var(--z-modal, 9000);
}

.in2-vessel-modal {
  z-index: var(--vessel-z-modal, 11300);
}

/* Mobile polish */
@media (max-width: 920px) {
  .fx-switch-panel {
    display: none !important;
  }

  .guided-chat {
    display: none;
  }

  .main-nav {
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }
}

/* Accessibility: reduce heavy motion if the visitor requests it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Public newsletter signup hookup */
.join-form {
  flex-wrap: wrap;
  align-items: stretch;
}

.join-form .btn:disabled {
  cursor: wait;
  opacity: .7;
}

.join-consent,
.join-form-message {
  flex: 0 0 100%;
}

.join-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 2px;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.45;
}

.join-consent input {
  width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
  margin-top: 2px;
  accent-color: var(--gold);
}

.join-form-message {
  min-height: 1.2em;
  margin: 0;
  font-size: .82rem;
  line-height: 1.45;
  color: var(--muted);
}

.join-form-message.is-success {
  color: #8fffd2;
}

.join-form-message.is-error {
  color: #ffaaa0;
}

.join-form-message.is-loading {
  color: var(--gold);
}



/* Newsletter confirmation modal */
.newsletter-modal-card {
  width: min(620px, 92vw);
  text-align: center;
  overflow: hidden;
}

.newsletter-modal-card::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto;
  height: 220px;
  background: radial-gradient(circle, rgba(201,148,69,.22), transparent 62%);
  pointer-events: none;
}

.newsletter-modal-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--gold);
  font-family: var(--font-title);
  font-size: .76rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.newsletter-modal-kicker::before,
.newsletter-modal-kicker::after {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  opacity: .78;
}

.newsletter-modal-kicker::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.newsletter-modal-card h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}

.newsletter-modal-lead {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin: 0 auto 22px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

.newsletter-modal-note {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}

.newsletter-modal-signal {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 24px auto;
}

.newsletter-modal-signal span {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(201,148,69,.72);
  background: rgba(201,148,69,.18);
  box-shadow: 0 0 18px rgba(201,148,69,.26);
  transform: rotate(45deg);
  animation: newsletterPulse 1.4s ease-in-out infinite;
}

.newsletter-modal-signal span:nth-child(2) { animation-delay: .14s; }
.newsletter-modal-signal span:nth-child(3) { animation-delay: .28s; }

.newsletter-modal-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

@keyframes newsletterPulse {
  0%, 100% { opacity: .38; transform: rotate(45deg) scale(.82); }
  50% { opacity: 1; transform: rotate(45deg) scale(1.14); }
}

@media (max-width: 620px) {
  .newsletter-modal-card {
    text-align: left;
  }

  .newsletter-modal-kicker::before,
  .newsletter-modal-kicker::after {
    display: none;
  }

  .newsletter-modal-signal,
  .newsletter-modal-actions {
    justify-content: flex-start;
  }
}

/* Phase 28A: Transmission Relay contact section */
.contact-section {
  width: var(--container);
  margin: 0 auto 28px;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(320px, 1.18fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: stretch;
  border: 1px solid rgba(201,148,69,.24);
  background:
    radial-gradient(circle at 18% 18%, rgba(201,148,69,.13), transparent 34%),
    radial-gradient(circle at 86% 0%, rgba(90,155,255,.10), transparent 30%),
    linear-gradient(135deg, rgba(13, 15, 22, .92), rgba(4, 5, 8, .94));
  box-shadow: 0 28px 80px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.035);
  padding: clamp(22px, 4vw, 42px);
  position: relative;
  overflow: hidden;
}

.contact-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(201,148,69,.08), transparent),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 9px);
  opacity: .55;
}

.contact-copy,
.contact-form {
  position: relative;
  z-index: 1;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.contact-copy h2 {
  margin: 8px 0 14px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: .95;
}

.contact-copy p {
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.7;
}

.contact-signal-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
  color: rgba(238,231,214,.78);
  font-size: .92rem;
}

.contact-signal-list li {
  position: relative;
  padding-left: 22px;
}

.contact-signal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  box-shadow: 0 0 12px rgba(201,148,69,.42);
  transform: rotate(45deg);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(201,148,69,.24);
  background: rgba(2,3,4,.58);
  box-shadow: inset 0 0 28px rgba(201,148,69,.045);
}

.contact-form .form-group {
  display: grid;
  gap: 7px;
}

.contact-form label {
  color: var(--gold);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
}

.contact-form label span {
  color: rgba(238,231,214,.58);
  font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(201,148,69,.30);
  background: rgba(0,0,0,.54);
  color: var(--text);
  min-height: 48px;
  padding: 12px 14px;
  outline: none;
  font: inherit;
  border-radius: 0;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form select {
  cursor: pointer;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--line-bright);
  box-shadow: 0 0 20px rgba(201,148,69,.14);
  background: rgba(0,0,0,.68);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(238,231,214,.42);
}

.human-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(201,148,69,.22);
  background: rgba(201,148,69,.055);
  padding: 12px;
}

.human-check > span {
  color: rgba(238,231,214,.84);
  font-weight: 700;
}

.number-stepper {
  display: inline-grid;
  grid-template-columns: 38px 78px 38px;
  min-height: 38px;
  border: 1px solid rgba(201,148,69,.30);
}

.number-stepper button,
.number-stepper input {
  border: 0;
  min-height: 38px;
  text-align: center;
}

.number-stepper button {
  background: rgba(201,148,69,.12);
  color: var(--gold);
  cursor: pointer;
  font-size: 1.2rem;
}

.number-stepper button:hover {
  background: rgba(201,148,69,.22);
}

.number-stepper input {
  border-left: 1px solid rgba(201,148,69,.24);
  border-right: 1px solid rgba(201,148,69,.24);
  padding: 0 6px;
}

.transmit-btn:disabled {
  opacity: .62;
  cursor: wait;
}

.form-status {
  min-height: 1.2em;
  color: rgba(238,231,214,.72);
  font-size: .92rem;
  line-height: 1.45;
}

.form-status.is-error { color: #ff9c9c; }
.form-status.is-success { color: #8fffd2; }
.form-status.is-loading { color: var(--gold); }

.contact-modal-card {
  max-width: 620px;
  text-align: center;
  overflow: hidden;
}

.contact-modal-card::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg, transparent, rgba(201,148,69,.16), transparent, rgba(90,155,255,.10), transparent);
  opacity: .42;
  animation: newsletterModalSweep 9s linear infinite;
  pointer-events: none;
}

.contact-modal-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.contact-modal-card h2,
.contact-modal-lead,
.contact-modal-note,
.contact-modal-readout,
.contact-modal-actions {
  position: relative;
  z-index: 1;
}

.contact-modal-lead {
  color: rgba(238,231,214,.86);
  max-width: 46rem;
  margin: 0 auto 20px;
  line-height: 1.7;
}

.contact-modal-note {
  color: rgba(238,231,214,.62);
  font-size: .92rem;
  line-height: 1.55;
}

.contact-modal-readout {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.contact-modal-readout span {
  border: 1px solid rgba(201,148,69,.30);
  background: rgba(201,148,69,.08);
  color: var(--gold);
  padding: 7px 10px;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.contact-modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

@media (max-width: 860px) {
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .human-check {
    align-items: stretch;
    flex-direction: column;
  }

  .number-stepper {
    width: 100%;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
  }
}

@media (max-width: 560px) {
  .contact-shell {
    padding: 18px;
  }

  .contact-form {
    padding: 16px;
  }
}
