/* =========================================================
   Age of Guilds — Immersive design (gallery / cinematic)
   Layered on top of the existing styles.css palette + type.
   ========================================================= */

@import url("styles.css");

/* override hero so wordmark sits centered over a single splash art and
   the rest of the page uses cinematic full-bleed panels */
body.immersive { background: var(--ink-deep); }

/* nav overrides — no blur, centered links */
.nav {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav__left { justify-self: start; display: flex; align-items: center; gap: 22px; }
.nav__brand { justify-self: start; }
.nav__links { justify-self: center; }
.nav__cta { justify-self: end; }

.nav__socials { display: flex; align-items: center; gap: 12px; }
.nav__socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  color: var(--gold-mid);
  transition: color .2s, transform .2s;
}
.nav__socials a:hover { color: var(--gold-hi); transform: translateY(-1px); }
.nav__socials svg { width: 100%; height: 100%; display: block; }
@media (max-width: 900px) { .nav__socials { display: none; } }

/* nav chip (Pre-alpha banner) */
.nav__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(228,194,141,.4);
  background: rgba(6,16,21,.55);
  font-family: "DM Sans", sans-serif;
  font-size: 10px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold-hi);
}
.nav__chip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (max-width: 900px) { .nav__chip { display: none; } }

/* ---------------------- HERO ---------------------- */
.imm-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: var(--ink-deep);
}
.imm-hero__art {
  position: relative;
  width: 100%;
  height: 100vh;
  margin: 0 auto;
  overflow: hidden;
}
.imm-hero__bg {
  position: absolute; inset: 0;
  /* cover with object-position anchored to the flag column (47%) and the
     upper flag/merchant area (32%) so the dark banner stays visible at top
     and the merchant stays roughly centered as aspect changes */
  background: url("assets/hero-cover.png") 47% 32% / cover no-repeat, var(--ink-deep);
  z-index: 0;
  animation: heroDrift 32s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.0) translate(0, 0); }
  to   { transform: scale(1.03) translate(-0.8%, -1.2%); }
}
/* veil + grain disabled — the splash art has its own natural light/dark
   balance and the nav has its own gradient for legibility, so any extra
   overlay just darkens the scene vs the Figma reference */
.imm-hero__veil { display: none; }
.imm-hero__grain { display: none; }

.imm-hero__inner {
  position: absolute;
  /* vh-based top so the crest always clears the fixed nav (~70px tall),
     regardless of viewport aspect */
  top: 9vh; left: 0; right: 0;
  z-index: 3;
  display: flex; flex-direction: column; align-items: center;
  gap: 0;
  padding: 0 24px;
}
.imm-hero__crest {
  width: clamp(70px, 11vh, 150px);
  height: auto;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.7));
  margin-bottom: -2vh;
}
.imm-hero__wordmark {
  width: clamp(200px, 30vh, 440px);
  height: auto;
  filter: drop-shadow(0 6px 30px rgba(0,0,0,.6));
}
.imm-hero__chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px;
  border: 1px solid rgba(228,194,141,.45);
  background: rgba(6,16,21,.55);
  backdrop-filter: blur(6px);
  font-family: "DM Sans", sans-serif;
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-hi);
}
.imm-hero__chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.imm-hero__crest-removed { display: none; }
.imm-hero__wordmark-removed { display: none; }

.imm-hero__tagline {
  font-family: "Cardo", serif;
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: .12em;
  color: var(--gold-hi);
  text-shadow: 0 2px 22px rgba(0,0,0,.7);
}
.imm-hero__tagline .sep { display: inline-block; margin: 0 14px; opacity: .55; }

.imm-hero__ctas { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

.imm-hero__ctas-fixed {
  position: absolute;
  left: 0; right: 0;
  /* % so it floats higher on tall screens, but at least 150px so it always
     clears the "Begin the voyage" scroll cue on shorter laptops */
  bottom: max(14%, 150px);
  z-index: 4;
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  padding: 0 16px;
}
/* responsive button scaling — base .btn is 264×66.33; size against viewport
   height so they shrink on shorter laptops, not just narrow screens.
   The new .btn uses % background-size on its pseudo-elements, so scaling the
   container scales the artwork proportionally without further overrides */
.imm-hero__ctas-fixed .btn {
  width: clamp(200px, 26vh, 264px);
  height: clamp(50px, 6.5vh, 66.33px);
  font-size: clamp(15px, 1.95vh, 19.9px);
  line-height: 1.3;
}
@media (max-width: 700px) {
  /* mobile: stack vertically + hide scroll cue so the stack has room */
  .imm-hero__ctas-fixed { bottom: 14vh; gap: 10px; flex-direction: column; align-items: center; }
  .imm-hero__ctas-fixed .btn { width: 220px; height: 55px; font-size: 16px; }
  .imm-hero__scroll { display: none; }
  .imm-hero__inner { top: 8vh; }
  .imm-hero__crest { width: clamp(80px, 18vw, 140px); }
  .imm-hero__wordmark { width: clamp(220px, 52vw, 340px); }
}

.imm-hero__scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-family: "DM Sans", sans-serif; font-size: 10px; letter-spacing: .35em; text-transform: uppercase;
  color: rgba(241,229,201,.7);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.imm-hero__scroll .line { width: 1px; height: 56px; background: linear-gradient(180deg, transparent, var(--gold-mid), transparent); animation: trickle 2.8s ease-in-out infinite; }
@keyframes trickle { 0%,100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); } }

/* ---------------------- TICKER (just below hero) ---------------------- */
.imm-ticker {
  position: relative; z-index: 1;
  background: var(--ink-deep);
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  overflow: hidden;
  font-family: "Cardo", serif;
  font-size: 16px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold-mid);
}
.imm-ticker__rail {
  display: flex; gap: 64px;
  padding: 18px 0;
  white-space: nowrap;
  animation: tickerRoll 60s linear infinite;
  width: max-content;
}
.imm-ticker__rail span { display: inline-flex; align-items: center; gap: 18px; }
.imm-ticker__rail span::after { content: "✦"; color: var(--gold); opacity: .5; }
@keyframes tickerRoll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------------- CINEMATIC PANELS ---------------------- */
.cine {
  position: relative;
  height: 92vh; min-height: 720px; max-height: 1100px;
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.cine__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.06);
  transition: transform 1.2s ease-out;
  will-change: transform;
}
.cine.in-view .cine__bg { transform: scale(1.0); }
.cine__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,16,21,.55) 0%, transparent 30%, transparent 50%, rgba(6,16,21,.95) 100%),
    linear-gradient(90deg, rgba(6,16,21,.55) 0%, transparent 50%);
}
.cine__inner {
  position: relative;
  width: 100%;
  padding: 80px clamp(32px, 6vw, 120px);
  display: grid; grid-template-columns: minmax(320px, 600px) 1fr; gap: 40px;
  align-items: end;
}
.cine__inner.right { grid-template-columns: 1fr minmax(320px, 600px); }
.cine__inner.right .cine__copy { grid-column: 2; }

.cine__copy { position: relative; }
.cine__copy .num {
  font-family: "Cardo", serif; font-size: 13px; letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold-mid); margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px;
}
.cine__copy .num::before, .cine__copy .num::after {
  content:""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold-lo), transparent);
}
.cine__copy h2 {
  font-family: "Cardo", serif;
  font-size: clamp(34px, 4.2vw, 72px);
  line-height: .98;
  color: var(--gold-hi);
  letter-spacing: -.005em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0,0,0,.7);
}
.cine__copy h2 em { font-style: italic; color: #f7d999; }
.cine__copy p {
  margin-top: 22px;
  font-family: "Cardo", serif;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.65;
  color: rgba(241,229,201,.82);
  max-width: 460px;
  text-wrap: pretty;
  text-shadow: 0 1px 12px rgba(0,0,0,.6);
}

/* ---------------------- IMAGE-PLATE GALLERY (game UI screenshots) ---------------------- */
.imm-gallery {
  background: var(--ink-deep);
  padding: 140px clamp(24px, 4vw, 72px) 80px;
  position: relative;
  overflow: hidden;
}
.imm-gallery::before {
  /* decorative background sigil */
  content:""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 40% at 80% 10%, rgba(228,194,141,.06), transparent 60%),
    radial-gradient(35% 50% at 0% 90%, rgba(228,194,141,.05), transparent 60%);
  pointer-events: none;
}

.imm-gallery__head {
  text-align: center; max-width: 760px; margin: 0 auto 80px;
  position: relative;
}
.imm-gallery__head .kicker {
  font-family: "DM Sans", sans-serif;
  font-size: 12px; letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold-mid);
  display: flex; align-items: center; gap: 16px; justify-content: center;
}
.imm-gallery__head .kicker::before, .imm-gallery__head .kicker::after {
  content:""; width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-mid), transparent);
}
.imm-gallery__head h2 {
  font-family: "Cardo", serif;
  font-size: clamp(30px, 3.6vw, 60px);
  line-height: 1.0;
  color: var(--gold-hi);
  margin-top: 18px;
}
.imm-gallery__head h2 em { font-style: italic; }

/* asymmetric editorial grid */
.plates {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
  max-width: 1500px;
  margin: 0 auto;
}
.plate {
  position: relative; overflow: hidden;
  background: #0a1820;
  border: 1px solid var(--ink-line);
  cursor: pointer;
  isolation: isolate;
}
.plate::after {
  content:""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, transparent 55%, rgba(6,16,21,.9) 100%);
  pointer-events: none;
}
.plate img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .6s;
  filter: saturate(.95) brightness(.95);
}
.plate:hover img { transform: scale(1.04); filter: saturate(1.08) brightness(1.05); }

.plate__label {
  position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 3;
  display: flex; align-items: end; justify-content: space-between; gap: 16px;
}
.plate__label .l-num {
  font-family: "DM Sans", sans-serif; font-size: 10px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold-mid);
}
.plate__label .l-title {
  font-family: "Cardo", serif;
  font-size: clamp(18px, 1.6vw, 26px);
  color: var(--gold-hi);
  line-height: 1.05;
  margin-top: 4px;
}
.plate__label .l-arrow {
  width: 36px; height: 36px;
  border: 1px solid var(--gold-mid);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-hi);
  transition: all .3s;
  flex-shrink: 0;
}
.plate:hover .l-arrow { background: var(--gold); color: var(--ink-deep); transform: translate(2px, -2px); }

/* placement (12-col grid) */
.plate.p-world   { grid-column: span 8; aspect-ratio: 16/9; }
.plate.p-routes  { grid-column: span 4; aspect-ratio: 4/5; }
.plate.p-house   { grid-column: span 4; aspect-ratio: 4/5; }
.plate.p-market  { grid-column: span 4; aspect-ratio: 4/5; }
.plate.p-warehouse { grid-column: span 4; aspect-ratio: 4/5; }

/* ---------------------- LIGHTBOX ---------------------- */
.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,16,21,.92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lb.open { display: flex; }
.lb__img {
  max-width: 92vw; max-height: 88vh;
  border: 1px solid var(--gold-mid);
  box-shadow: 0 30px 80px rgba(0,0,0,.7);
}
.lb__close {
  position: absolute; top: 32px; right: 36px;
  width: 44px; height: 44px;
  background: transparent; color: var(--gold-hi);
  border: 1px solid var(--gold-mid);
  cursor: pointer;
  font-size: 20px;
}
.lb__caption {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  font-family: "Cardo", serif; color: var(--gold-hi); letter-spacing: .15em;
  text-transform: uppercase; font-size: 12px;
}

/* ---------------------- QUOTES STRIP ---------------------- */
.imm-quotes {
  background: linear-gradient(180deg, var(--ink-deep), var(--ink));
  padding: 120px 24px;
  text-align: center;
  border-top: 1px solid var(--ink-line);
}
.imm-quotes h3 {
  font-family: "Cardo", serif;
  font-size: clamp(26px, 3.2vw, 48px);
  font-style: italic;
  color: var(--gold-hi);
  max-width: 1000px; margin: 0 auto;
  line-height: 1.2;
  text-wrap: balance;
}
.imm-quotes .src {
  display: block; margin-top: 36px;
  font-family: "DM Sans", sans-serif; font-size: 11px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold-mid);
}

/* ---------------------- CTA BAR ---------------------- */
.imm-cta {
  position: relative;
  padding: 160px 24px 180px;
  text-align: center;
  overflow: hidden;
  background: var(--ink-deep);
}
.imm-cta__bg {
  position: absolute; inset: 0;
  background: url("assets/splash-forge.png") center/cover no-repeat;
  filter: blur(2px) brightness(.45) saturate(.85);
  opacity: .55;
}
.imm-cta__veil {
  position: absolute; inset: 0;
  background: radial-gradient(50% 60% at 50% 50%, rgba(6,16,21,.65), rgba(6,16,21,.95) 90%);
}
.imm-cta__inner { position: relative; z-index: 2; }
.imm-cta h2 {
  font-family: "Cardo", serif;
  font-size: clamp(34px, 4.6vw, 78px);
  line-height: 1; color: var(--gold-hi);
  letter-spacing: -.01em;
}
.imm-cta h2 em { font-style: italic; }
.imm-cta p {
  margin-top: 24px;
  font-family: "Cardo", serif;
  font-size: 18px; color: rgba(241,229,201,.78);
  max-width: 540px; margin-left: auto; margin-right: auto;
}
.imm-cta__row { display: flex; gap: 18px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }

/* ---------------------- WAITLIST CARD (compact, layered on art) ---------------------- */
.imm-waitlist {
  margin-top: 60px;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: rgba(6,16,21,.7);
  border: 1px solid var(--gold-lo);
  backdrop-filter: blur(8px);
}
.imm-waitlist input {
  background: transparent; border: 0; outline: 0;
  color: var(--gold-hi); font-family: "DM Sans", sans-serif; font-size: 14px;
  padding: 8px 12px; min-width: 240px;
  border-bottom: 1px solid var(--gold-mid);
}
.imm-waitlist input::placeholder { color: rgba(241,229,201,.45); letter-spacing: .1em; }

/* ---------------------- FOOTER ---------------------- */
.imm-foot {
  background: #050d12;
  padding: 50px 24px;
  text-align: center;
  border-top: 1px solid var(--ink-line);
  font-family: "DM Sans", sans-serif;
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: rgba(241,229,201,.45);
}
.imm-foot a { color: var(--gold-hi); margin: 0 14px; text-decoration: none; }

/* ---------------------- responsive ---------------------- */
@media (max-width: 1100px) {
  .cine__inner { grid-template-columns: 1fr !important; }
  .cine__inner.right .cine__copy { grid-column: 1; }
  .plate.p-world { grid-column: span 12; }
  .plate.p-routes, .plate.p-house, .plate.p-market, .plate.p-warehouse { grid-column: span 6; }
}
@media (max-width: 700px) {
  .plate.p-routes, .plate.p-house, .plate.p-market, .plate.p-warehouse { grid-column: span 12; aspect-ratio: 16/10; }
  .cine { height: auto; min-height: 0; }
  .cine__inner { padding: 60px 24px; }
  .imm-ticker { font-size: 13px; }
  /* hide scroll cue on mobile so it doesn't collide with the stacked CTAs
     (placed here so it wins over the base .imm-hero__scroll rule that
     comes after the earlier mobile block in source order) */
  .imm-hero__scroll { display: none; }
}
