/* =====================================================
   NORTHELD · dungeon strategy
   ===================================================== */

/* ---------- design tokens ---------- */
:root {
  /* color */
  --c-void:        #07060a;
  --c-pitch:       #0d0b09;
  --c-shadow:      #15110d;
  --c-stone:       #221b14;
  --c-stone-2:     #2e261b;
  --c-bone:        #efe2c6;
  --c-bone-soft:   #d6c69e;
  --c-parchment:   #cfb98a;
  --c-mute:        #8b7c5e;
  --c-ember:       #ff7a2d;
  --c-ember-2:     #ff9248;
  --c-ember-deep:  #b3380a;
  --c-gold:        #d4a64a;
  --c-gold-deep:   #8a6322;
  --c-magic:       #5fa8d8;
  --c-crimson:     #8b1a1a;

  /* type */
  --ff-display: "Cinzel Decorative", "Cinzel", "Trajan Pro", serif;
  --ff-sub:     "Cinzel", "Trajan Pro", serif;
  --ff-body:    "EB Garamond", "Iowan Old Style", "Apple Garamond", Georgia, serif;
  --ff-mark:    "MedievalSharp", "Cinzel", serif;

  /* type scale */
  --fs-hero:    clamp(4.2rem, 13.5vw, 11rem);
  --fs-h2:      clamp(2.4rem, 5.2vw, 5rem);
  --fs-h3:      clamp(1.5rem, 2.6vw, 2.4rem);
  --fs-h4:      1.25rem;
  --fs-eyebrow: 0.78rem;
  --fs-body:    1.0625rem;
  --fs-lede:    1.1875rem;
  --fs-small:   0.8125rem;

  /* spacing */
  --gutter:     clamp(1.25rem, 4vw, 5rem);
  --section-y:  clamp(5rem, 10vw, 9.5rem);

  /* misc */
  --easing:     cubic-bezier(.2,.7,.2,1);
  --border:     1px solid rgba(212, 166, 74, 0.18);
  --border-2:   1px solid rgba(212, 166, 74, 0.32);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { border: 0; background: none; color: inherit; cursor: pointer; font: inherit; }
input { font: inherit; color: inherit; background: none; border: 0; }
::selection { background: var(--c-ember); color: var(--c-void); }

/* ---------- base ---------- */
body {
  background:
    radial-gradient(120% 90% at 50% -10%, #1a140d 0%, var(--c-void) 60%, var(--c-void) 100%),
    var(--c-void);
  color: var(--c-bone);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  letter-spacing: 0.005em;
}

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- atmospheric overlays ---------- */
.grain {
  pointer-events: none;
  position: fixed; inset: -50%;
  z-index: 9000;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  animation: grain 7.2s steps(8) infinite;
}
@keyframes grain {
  0%   { transform: translate(0,0); }
  10%  { transform: translate(-3%, -2%); }
  20%  { transform: translate(2%, 1%); }
  30%  { transform: translate(-1%, 3%); }
  40%  { transform: translate(3%, -2%); }
  50%  { transform: translate(-2%, 2%); }
  60%  { transform: translate(1%, -3%); }
  70%  { transform: translate(-3%, 1%); }
  80%  { transform: translate(2%, 2%); }
  90%  { transform: translate(-2%, -1%); }
  100% { transform: translate(0,0); }
}

.vignette {
  pointer-events: none;
  position: fixed; inset: 0;
  z-index: 8500;
  background:
    radial-gradient(120% 80% at 50% 50%, transparent 50%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, transparent 8%, transparent 92%, rgba(0,0,0,0.4) 100%);
}

.embers {
  pointer-events: none;
  position: fixed; inset: 0;
  z-index: 200;
  overflow: hidden;
}
.embers span {
  position: absolute;
  bottom: -20px;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-ember-2) 0%, var(--c-ember) 40%, transparent 70%);
  filter: blur(.4px);
  opacity: 0;
  animation: ember 18s linear infinite;
}
.embers span:nth-child(1)  { left: 5%;  animation-delay: 0s;   animation-duration: 18s; }
.embers span:nth-child(2)  { left: 12%; animation-delay: 4s;   animation-duration: 22s; width: 2px; height: 2px; }
.embers span:nth-child(3)  { left: 19%; animation-delay: 2s;   animation-duration: 25s; }
.embers span:nth-child(4)  { left: 26%; animation-delay: 8s;   animation-duration: 20s; }
.embers span:nth-child(5)  { left: 33%; animation-delay: 6s;   animation-duration: 28s; width: 2px; height: 2px; }
.embers span:nth-child(6)  { left: 41%; animation-delay: 11s;  animation-duration: 19s; }
.embers span:nth-child(7)  { left: 50%; animation-delay: 3s;   animation-duration: 24s; }
.embers span:nth-child(8)  { left: 58%; animation-delay: 13s;  animation-duration: 21s; width: 2px; height: 2px; }
.embers span:nth-child(9)  { left: 66%; animation-delay: 9s;   animation-duration: 26s; }
.embers span:nth-child(10) { left: 73%; animation-delay: 1s;   animation-duration: 23s; }
.embers span:nth-child(11) { left: 80%; animation-delay: 15s;  animation-duration: 18s; width: 2px; height: 2px; }
.embers span:nth-child(12) { left: 86%; animation-delay: 5s;   animation-duration: 27s; }
.embers span:nth-child(13) { left: 91%; animation-delay: 10s;  animation-duration: 20s; }
.embers span:nth-child(14) { left: 96%; animation-delay: 14s;  animation-duration: 25s; width: 2px; height: 2px; }
.embers span:nth-child(15) { left: 45%; animation-delay: 16s;  animation-duration: 22s; }

@keyframes ember {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.8; }
  50%  { transform: translateY(-50vh) translateX(20px); opacity: 0.55; }
  90%  { opacity: 0; }
  100% { transform: translateY(-110vh) translateX(-10px); opacity: 0; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.1rem var(--gutter);
  gap: 1rem;
  transition: backdrop-filter .3s, background .3s, border-color .3s;
}
.nav::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,166,74,0.25), transparent);
  opacity: 0;
  transition: opacity .4s var(--easing);
}
.nav.is-scrolled {
  background: rgba(7,6,10,0.7);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}
.nav.is-scrolled::after { opacity: 1; }

.nav-brand {
  display: flex; align-items: center; gap: .7rem;
  color: var(--c-gold);
  letter-spacing: 0.25em;
  font-family: var(--ff-sub);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
}
.nav-mark { width: 28px; height: 28px; }
.nav-brand-text { color: var(--c-bone); }

.nav-links {
  display: flex;
  justify-content: center;
  gap: 2.4rem;
  font-family: var(--ff-sub);
  font-size: .76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  color: rgba(239, 226, 198, 0.7);
  transition: color .25s var(--easing);
  padding: .4rem 0;
}
.nav-links a::before {
  content: "·";
  position: absolute;
  left: -1.2rem; top: 50%;
  color: var(--c-gold);
  transform: translateY(-50%) scale(0);
  transition: transform .25s var(--easing);
}
.nav-links a:hover { color: var(--c-bone); }
.nav-links a:hover::before { transform: translateY(-50%) scale(1); }

.nav-cta {
  justify-self: end;
  font-family: var(--ff-sub);
  font-size: .76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-bone);
  padding: .7rem 1.1rem;
  border: 1px solid rgba(212, 166, 74, 0.35);
  background: linear-gradient(180deg, rgba(212,166,74,0.05), rgba(212,166,74,0));
  transition: all .25s var(--easing);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.nav-cta:hover {
  border-color: var(--c-ember);
  color: var(--c-ember-2);
  box-shadow: 0 0 24px -8px var(--c-ember);
}
.nav-cta span { color: var(--c-ember); }

.nav-burger { display: none; }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-cta { display: none; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 5px;
    justify-self: end;
    width: 36px; height: 36px;
    align-items: center; justify-content: center;
  }
  .nav-burger span {
    display: block;
    width: 22px; height: 1.5px;
    background: var(--c-bone);
    transition: transform .3s var(--easing), opacity .3s;
  }
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    padding: 2rem var(--gutter) 2.4rem;
    background: rgba(7,6,10,0.96);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(212,166,74,0.2);
  }
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem var(--gutter) 5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-art-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transform: scale(1.08);
  animation: heroKen 24s ease-in-out infinite alternate;
  filter: saturate(0.85) contrast(0.95) brightness(0.78);
}
@keyframes heroKen {
  0%   { transform: scale(1.06) translateY(0); }
  100% { transform: scale(1.14) translateY(-2%); }
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 50% 38%, rgba(7,6,10,0.2) 0%, rgba(7,6,10,0.7) 50%, rgba(7,6,10,0.92) 100%),
    linear-gradient(180deg, rgba(7,6,10,0.5) 0%, transparent 30%, transparent 50%, rgba(7,6,10,0.6) 100%);
}
.hero-veil-bottom {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 30vh;
  background: linear-gradient(180deg, transparent 0%, var(--c-void) 90%);
}

.hero-content {
  position: relative;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  animation: heroFade 1.6s var(--easing) both;
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--ff-sub);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: var(--fs-eyebrow);
  color: var(--c-gold);
}
.hero-eyebrow .line {
  width: 36px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-gold));
}
.hero-eyebrow .line:last-child {
  background: linear-gradient(90deg, var(--c-gold), transparent);
}

.hero-title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: var(--fs-hero);
  line-height: .9;
  letter-spacing: 0.05em;
  color: var(--c-bone);
  text-shadow:
    0 0 60px rgba(255, 122, 45, 0.18),
    0 0 8px rgba(255, 146, 72, 0.4),
    0 2px 0 rgba(0,0,0,0.6);
  margin: 0;
  display: inline-block;
}
.ht-letter {
  display: inline-block;
  animation: letterIn 1.2s var(--easing) both;
  animation-delay: var(--d, 0s);
  background: linear-gradient(180deg, var(--c-bone) 0%, var(--c-parchment) 40%, var(--c-gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.ht-letter::after {
  content: attr(data-c);
}
@keyframes letterIn {
  0%   { opacity: 0; transform: translateY(40px) rotateX(-30deg); filter: blur(8px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) rotateX(0); filter: blur(0); }
}

.hero-flourish {
  width: clamp(220px, 30vw, 320px);
  color: var(--c-gold);
  opacity: .75;
}

.hero-tagline {
  font-family: var(--ff-body);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--c-bone-soft);
  max-width: 560px;
  line-height: 1.55;
}
.hero-tagline em {
  font-style: italic;
  color: var(--c-ember-2);
  font-family: var(--ff-body);
}

.hero-ctas {
  display: flex; gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: 1.05rem 1.7rem;
  font-family: var(--ff-sub);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: transform .3s var(--easing), box-shadow .3s var(--easing), color .3s, background .3s;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary {
  background: linear-gradient(180deg, var(--c-ember) 0%, var(--c-ember-deep) 100%);
  color: #1a0e05;
  border: 1px solid rgba(255, 146, 72, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 4px rgba(0,0,0,0.3),
    0 8px 30px -10px rgba(255, 122, 45, 0.6);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-100%);
  transition: transform .8s var(--easing);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 4px rgba(0,0,0,0.3),
    0 14px 40px -10px rgba(255, 122, 45, 0.8);
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-arrow { font-size: 1.1em; }

.btn-ghost {
  background: transparent;
  color: var(--c-bone);
  border: 1px solid rgba(239, 226, 198, 0.25);
}
.btn-ghost:hover {
  border-color: var(--c-bone);
  background: rgba(239, 226, 198, 0.04);
}
.btn-play {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 20px; height: 20px;
  font-size: .65rem;
  color: var(--c-ember-2);
}

.hero-meta {
  margin-top: .6rem;
  font-family: var(--ff-sub);
  font-size: .72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--c-mute);
  display: flex; gap: .8rem;
  align-items: center;
}
.hero-meta .dot { color: var(--c-gold); }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  color: var(--c-mute);
  font-family: var(--ff-sub);
  font-size: .68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  animation: scrollPulse 2.6s var(--easing) infinite;
}
.hero-scroll svg { width: 12px; height: 24px; }
@keyframes scrollPulse {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .6; }
  50%      { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* =====================================================
   SHARED SECTION BITS
   ===================================================== */
.section-eyebrow {
  display: inline-flex; align-items: baseline; gap: .8rem;
  font-family: var(--ff-sub);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 1.2rem;
}
.section-eyebrow .num {
  font-family: var(--ff-mark);
  font-size: 1.1rem;
  letter-spacing: 0;
  color: var(--c-ember);
}

.section-h {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--c-bone);
  max-width: 18ch;
}
.section-h em {
  font-style: italic;
  color: var(--c-ember-2);
  font-family: var(--ff-body);
  font-weight: 500;
  letter-spacing: 0;
}
.centered { text-align: center; display: flex; flex-direction: column; align-items: center; max-width: 760px; margin: 0 auto 4rem; }
.centered .section-h { max-width: none; }
.centered .section-eyebrow .num { color: var(--c-gold); }

.lede {
  font-size: var(--fs-lede);
  color: var(--c-bone-soft);
  line-height: 1.6;
  max-width: 56ch;
  margin-top: 1.4rem;
  font-style: italic;
}
.prose { color: var(--c-bone-soft); max-width: 54ch; margin-bottom: 1.1rem; }
.prose:last-of-type { margin-bottom: 0; }

.rule {
  width: 80px; height: 1px;
  background: linear-gradient(90deg, var(--c-gold), transparent);
  margin: 1.6rem 0 1.8rem;
}

/* ornament divider */
.ornament {
  padding: 1rem var(--gutter);
  color: rgba(212, 166, 74, 0.4);
}
.ornament svg { max-width: 1080px; margin: 0 auto; width: 100%; }

/* reveal animations (JS toggles .is-in) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--easing), transform 1s var(--easing);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* =====================================================
   WORLD section
   ===================================================== */
.world { padding: var(--section-y) 0; position: relative; }
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.split-text { max-width: 540px; }

.stat-grid {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.6rem;
  border-top: 1px dashed rgba(212, 166, 74, 0.25);
}
.stat-grid div { display: flex; flex-direction: column; }
.stat-grid dt {
  font-family: var(--ff-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--c-ember-2);
  line-height: 1;
  letter-spacing: 0.02em;
}
.stat-grid dd {
  margin: .4rem 0 0;
  font-family: var(--ff-sub);
  font-size: .72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-mute);
}

.split-art {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
}
.phone-caption {
  margin-top: 1.6rem;
  font-style: italic;
  color: var(--c-mute);
  font-size: .95rem;
}

/* ---------- phone frame ---------- */
.phone {
  position: relative;
  width: clamp(220px, 28vw, 320px);
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(160deg, #1c1812 0%, #0a0807 50%, #1a1510 100%);
  border-radius: 38px;
  padding: 10px;
  box-shadow:
    inset 0 0 0 1px rgba(212, 166, 74, 0.15),
    inset 0 0 14px rgba(0,0,0,0.6),
    0 30px 60px -20px rgba(0,0,0,0.8),
    0 0 80px -20px rgba(255, 122, 45, 0.15);
  transform: rotate(-2.5deg);
  transition: transform .8s var(--easing);
}
.phone:hover { transform: rotate(0deg) translateY(-6px); }

.phone--sm { width: clamp(180px, 22vw, 240px); transform: rotate(2.5deg); }
.phone--sm:hover { transform: rotate(0deg) translateY(-6px); }

.phone-notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #050404;
  border-radius: 12px;
  z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  background: #0a0807;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-shine {
  position: absolute; inset: 10px;
  border-radius: 30px;
  background: linear-gradient(140deg, rgba(255,255,255,0.08) 0%, transparent 35%, transparent 70%, rgba(255,255,255,0.03) 100%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.phone-shadow {
  position: absolute;
  bottom: -30px; left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 30px;
  background: radial-gradient(50% 100% at 50% 50%, rgba(255, 122, 45, 0.25), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}

/* =====================================================
   LOOP section
   ===================================================== */
.loop { padding: var(--section-y) 0; position: relative; }
.loop::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 60px;
  background: linear-gradient(180deg, var(--c-gold), transparent);
  opacity: .5;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  counter-reset: pillar;
}
.pillar {
  position: relative;
  padding: 2.4rem 1.8rem 2.6rem;
  background:
    linear-gradient(160deg, rgba(34, 27, 20, 0.6) 0%, rgba(13, 11, 9, 0.85) 100%);
  border: 1px solid rgba(212, 166, 74, 0.18);
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--easing), border-color .4s, box-shadow .4s;
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 110%, rgba(255, 122, 45, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity .5s var(--easing);
  pointer-events: none;
}
.pillar::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
  opacity: 0;
  transition: opacity .4s var(--easing);
}
.pillar:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 166, 74, 0.45);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(255, 122, 45, 0.1);
}
.pillar:hover::before { opacity: 1; }
.pillar:hover::after { opacity: 1; }

.pillar-num {
  display: inline-block;
  font-family: var(--ff-mark);
  font-size: 2.5rem;
  color: var(--c-ember);
  line-height: 1;
  margin-bottom: 1.4rem;
  letter-spacing: 0.04em;
  text-shadow: 0 0 18px rgba(255, 122, 45, 0.35);
}
.pillar h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  margin-bottom: .8rem;
  color: var(--c-bone);
}
.pillar p {
  color: var(--c-bone-soft);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 30ch;
}
.pillar-rune {
  position: absolute;
  top: 1.4rem; right: 1.4rem;
  font-size: 1.6rem;
  color: rgba(212, 166, 74, 0.35);
  transition: color .4s, transform .5s var(--easing);
}
.pillar:hover .pillar-rune { color: var(--c-ember); transform: rotate(8deg) scale(1.1); }

/* =====================================================
   FEATURES section
   ===================================================== */
.features { padding: var(--section-y) 0; }
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  margin-bottom: clamp(4rem, 7vw, 7rem);
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-art  { order: 1; }

.feature-tag {
  display: inline-block;
  padding: .35rem 1rem;
  font-family: var(--ff-sub);
  font-size: .68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-ember);
  background: rgba(255, 122, 45, 0.08);
  border: 1px solid rgba(255, 122, 45, 0.3);
  margin-bottom: 1.4rem;
}
.feature-text h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--c-bone);
  margin-bottom: 1.2rem;
}
.feature-text h3 em {
  font-style: italic;
  color: var(--c-ember-2);
  font-family: var(--ff-body);
  font-weight: 500;
}
.feature-text p {
  color: var(--c-bone-soft);
  max-width: 50ch;
  margin-bottom: 1.4rem;
}
.feature-points {
  margin-top: 1rem;
  display: flex; flex-direction: column; gap: .7rem;
}
.feature-points li {
  display: flex; gap: .8rem;
  padding-left: 1rem;
  position: relative;
  color: var(--c-bone-soft);
  font-style: italic;
}
.feature-points li::before {
  content: "❖";
  position: absolute;
  left: -.4rem;
  color: var(--c-gold);
}
.feature-art {
  display: flex; justify-content: center;
  position: relative;
}
.feature-art::before {
  content: "";
  position: absolute;
  inset: -10% 0% 0% 0%;
  background: radial-gradient(60% 50% at 50% 50%, rgba(255, 122, 45, 0.15), transparent 70%);
  z-index: -1;
}

/* =====================================================
   TRAILER section
   ===================================================== */
.trailer { padding: var(--section-y) 0; }
.trailer-frame {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #050404;
  border: 1px solid rgba(212, 166, 74, 0.2);
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
}
.trailer-frame video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.trailer-veil {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 30%, rgba(7,6,10,0.4) 100%);
  pointer-events: none;
  transition: opacity .4s;
}
.trailer-frame.is-playing .trailer-veil,
.trailer-frame.is-playing .trailer-play { opacity: 0; pointer-events: none; }

.trailer-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90px; height: 90px;
  color: var(--c-bone);
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s var(--easing), color .25s, opacity .35s;
  filter: drop-shadow(0 0 30px rgba(255, 122, 45, 0.45));
}
.trailer-play:hover { transform: translate(-50%, -50%) scale(1.08); color: var(--c-ember-2); }
.trailer-play svg { width: 100%; height: 100%; }

/* =====================================================
   SCROLLS / gallery
   ===================================================== */
.scrolls { padding: var(--section-y) 0; }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 1.2rem;
}
.g-card {
  position: relative;
  overflow: hidden;
  background: #0a0807;
  border: 1px solid rgba(212, 166, 74, 0.15);
  aspect-ratio: 9 / 16;
  transition: transform .5s var(--easing), border-color .4s, box-shadow .5s;
  cursor: zoom-in;
  isolation: isolate;
}
.g-card--tall { grid-row: span 1; }
.g-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--easing), filter .6s;
  filter: saturate(0.9) brightness(0.85);
}
.g-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7,6,10,0.9) 100%);
  pointer-events: none;
}
.g-card:hover { transform: translateY(-4px); border-color: rgba(212, 166, 74, 0.4); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8); }
.g-card:hover img { transform: scale(1.06); filter: saturate(1.05) brightness(1); }

.g-card figcaption {
  position: absolute;
  left: 1.1rem; right: 1.1rem; bottom: 1rem;
  font-family: var(--ff-sub);
  font-size: .8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-bone);
  display: flex; gap: .7rem;
  z-index: 1;
}
.g-card figcaption span {
  color: var(--c-ember);
  font-family: var(--ff-mark);
  font-size: .9rem;
  letter-spacing: 0;
}

@media (max-width: 800px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
}

/* =====================================================
   CREED
   ===================================================== */
.creed { padding: var(--section-y) 0; }
.creed-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}
.creed-list {
  display: flex; flex-direction: column; gap: 2rem;
}
.creed-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(212, 166, 74, 0.15);
}
.creed-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.creed-bullet {
  font-family: var(--ff-mark);
  color: var(--c-ember);
  font-size: 1.4rem;
  line-height: 1;
  padding-top: .25rem;
}
.creed-list h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  margin-bottom: .4rem;
  color: var(--c-bone);
}
.creed-list p {
  color: var(--c-bone-soft);
  max-width: 52ch;
}

/* =====================================================
   DESCEND / CTA
   ===================================================== */
.descend {
  position: relative;
  padding: calc(var(--section-y) * 1.15) 0;
  overflow: hidden;
  isolation: isolate;
}
.descend-bg {
  position: absolute; inset: 0; z-index: -2;
}
.descend-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.6) brightness(0.4) blur(2px);
}
.descend::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 70% at 50% 50%, rgba(7,6,10,0.4), rgba(7,6,10,0.9) 70%),
    linear-gradient(180deg, rgba(7,6,10,0.6), rgba(7,6,10,0.9));
}

.descend-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.descend-h { max-width: none; }

.raven {
  margin-top: 2.4rem;
  display: flex;
  gap: 0;
  width: 100%;
  max-width: 520px;
  border: 1px solid rgba(212, 166, 74, 0.35);
  background: rgba(7,6,10,0.5);
  backdrop-filter: blur(8px);
  transition: border-color .3s;
}
.raven:focus-within { border-color: var(--c-ember); box-shadow: 0 0 30px -10px rgba(255, 122, 45, 0.5); }
.raven input {
  flex: 1;
  padding: 1.1rem 1.3rem;
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--c-bone);
  outline: none;
}
.raven input::placeholder { color: var(--c-mute); font-style: italic; }
.raven button {
  display: flex; align-items: center; gap: .6rem;
  padding: 1.1rem 1.5rem;
  background: linear-gradient(180deg, var(--c-ember) 0%, var(--c-ember-deep) 100%);
  color: #1a0e05;
  font-family: var(--ff-sub);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: filter .25s;
}
.raven button:hover { filter: brightness(1.1); }
.raven button svg { width: 18px; height: 12px; }
.raven-note {
  margin-top: .8rem;
  font-size: .85rem;
  color: var(--c-mute);
  font-style: italic;
}
.raven-note.success { color: var(--c-ember-2); font-style: normal; }

.stores {
  margin-top: 3rem;
  display: flex; gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  padding: .9rem 1.4rem;
  background: rgba(7,6,10,0.6);
  border: 1px solid rgba(212, 166, 74, 0.25);
  text-align: left;
  transition: all .3s var(--easing);
}
.store:hover {
  border-color: var(--c-gold);
  background: rgba(212, 166, 74, 0.05);
  transform: translateY(-2px);
}
.store-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: var(--c-bone);
}
.store-icon svg { width: 100%; height: 100%; }
.store-pre {
  display: block;
  font-family: var(--ff-sub);
  font-size: .62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-mute);
}
.store-name {
  display: block;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--c-bone);
  margin-top: 2px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  padding: 5rem 0 2.4rem;
  border-top: 1px solid rgba(212, 166, 74, 0.15);
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 60%; max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
  opacity: .5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-brand { display: flex; flex-direction: column; gap: .6rem; }
.footer-mark { width: 36px; color: var(--c-gold); }
.footer-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--c-bone);
}
.footer-sub {
  color: var(--c-mute);
  font-style: italic;
  font-size: .95rem;
}
.footer-col h5 {
  font-family: var(--ff-sub);
  font-size: .72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 1rem;
}
.footer-col p {
  color: var(--c-bone-soft);
  font-size: .95rem;
  line-height: 1.65;
}
.footer-col a {
  color: var(--c-bone-soft);
  display: inline-block;
  transition: color .2s;
}
.footer-col a:hover { color: var(--c-ember); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 166, 74, 0.1);
  font-family: var(--ff-sub);
  font-size: .68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-mute);
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-mantra { color: var(--c-gold); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 4rem; }
  .split-art { order: -1; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }
  .feature-row.reverse .feature-text { order: 2; }
  .feature-row.reverse .feature-art  { order: 1; }
  .creed-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .pillars { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .stat-grid dt { font-size: 1.7rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .raven { flex-direction: column; }
  .raven input { width: 100%; }
  .raven button { width: 100%; justify-content: center; }
  .hero-ctas { flex-direction: column; width: 100%; align-items: stretch; max-width: 320px; }
  .btn { justify-content: center; }
  .hero-meta { flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .embers, .grain { display: none; }
  .reveal { opacity: 1; transform: none; }
}
