:root {
  --ink: #0a0908;
  --ink-soft: #141210;
  --charcoal: #1c1916;
  --stone: #2a2520;
  --ash: #8a8175;
  --parchment: #e8dcc8;
  --ivory: #f3ead9;
  --gold: #c9a227;
  --gold-bright: #e8c547;
  --gold-dim: #8a7020;
  --bronze: #a67c2d;
  --blood: #5c1a12;
  --fog: rgba(232, 220, 200, 0.08);
  --font-display: "Cinzel Decorative", "Cinzel", serif;
  --font-title: "Cinzel", serif;
  --font-body: "Cormorant Garamond", Georgia, serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--parchment);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold-bright);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

a:hover {
  color: var(--ivory);
}

/* ——— Atmosphere ——— */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.gold-dust {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

.gold-dust span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 6px var(--gold);
  opacity: 0;
  animation: drift linear infinite;
}

@keyframes drift {
  0% {
    transform: translateY(100vh) scale(0.4);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.35;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* ——— Nav ——— */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: linear-gradient(180deg, rgba(10, 9, 8, 0.92) 0%, rgba(10, 9, 8, 0.55) 70%, transparent 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}

.nav.scrolled {
  border-bottom-color: rgba(201, 162, 39, 0.25);
  background: rgba(10, 9, 8, 0.94);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ivory);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-logo {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 16px rgba(201, 162, 39, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
}

.nav-links a:hover {
  color: var(--gold-bright);
}

.nav-cta {
  padding: 0.55rem 1rem;
  border: 1px solid var(--gold);
  color: var(--gold-bright) !important;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), transparent);
}

.nav-cta:hover {
  background: rgba(201, 162, 39, 0.28);
  color: var(--ivory) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gold);
  transition: transform 0.3s, opacity 0.3s;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  transform: scale(1.05);
  will-change: transform;
  animation: heroBreath 28s ease-in-out infinite alternate;
}

@keyframes heroBreath {
  from {
    transform: scale(1.05) translate(0, 0);
  }
  to {
    transform: scale(1.12) translate(-1.5%, -1%);
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(10, 9, 8, 0.25) 0%, rgba(10, 9, 8, 0.75) 70%, rgba(10, 9, 8, 0.95) 100%),
    linear-gradient(180deg, rgba(10, 9, 8, 0.55) 0%, transparent 30%, transparent 55%, rgba(10, 9, 8, 0.98) 100%);
}

.hero-rays {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 210deg at 55% 30%, transparent 0deg, rgba(232, 197, 71, 0.06) 20deg, transparent 45deg, transparent 160deg, rgba(201, 162, 39, 0.05) 190deg, transparent 220deg);
  animation: rayPulse 10s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes rayPulse {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 44rem;
}

.hero-portrait {
  position: relative;
  width: min(280px, 58vw);
  margin: 0 auto 1.75rem;
}

.portrait-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.45);
  animation: ringSpin 24s linear infinite;
}

.portrait-ring::before,
.portrait-ring::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--gold-bright);
}

.portrait-ring::before {
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
}

.portrait-ring::after {
  bottom: 12%;
  right: 8%;
}

@keyframes ringSpin {
  to {
    transform: rotate(360deg);
  }
}

.portrait-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.45) 0%, transparent 70%);
  filter: blur(20px);
  animation: glowPulse 4s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  from {
    opacity: 0.55;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1.08);
  }
}

.portrait-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow:
    0 0 0 6px rgba(10, 9, 8, 0.6),
    0 0 40px rgba(201, 162, 39, 0.35),
    0 20px 50px rgba(0, 0, 0, 0.55);
  animation: portraitFloat 7s ease-in-out infinite;
}

@keyframes portraitFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-eyebrow {
  font-family: var(--font-title);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 11vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: var(--ivory);
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.4),
    0 0 40px rgba(201, 162, 39, 0.25);
}

.title-line {
  display: inline-block;
  background: linear-gradient(180deg, #fff6e0 0%, var(--ivory) 35%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleShimmer 6s ease-in-out infinite;
  background-size: 100% 200%;
}

@keyframes titleShimmer {
  0%,
  100% {
    background-position: 0 0%;
  }
  50% {
    background-position: 0 100%;
  }
}

.hero-subtitle {
  font-family: var(--font-title);
  font-size: clamp(1.15rem, 3.5vw, 1.65rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--parchment);
  margin-top: 0.65rem;
  font-weight: 600;
}

.hero-ticker {
  margin: 1rem 0 1.25rem;
}

.hero-ticker span {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  padding: 0.35rem 1.1rem;
  border: 1px solid rgba(201, 162, 39, 0.5);
  color: var(--gold-bright);
  background: rgba(10, 9, 8, 0.45);
  position: relative;
}

.hero-ticker span::before,
.hero-ticker span::after {
  content: "◆";
  font-size: 0.45rem;
  margin: 0 0.55rem;
  vertical-align: middle;
  color: var(--gold-dim);
}

.hero-lead {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  color: var(--ash);
  max-width: 32rem;
  margin: 0 auto 1.75rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.3s, color 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 45%, var(--bronze) 100%);
  border-color: var(--gold-bright);
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.35);
}

.btn-gold::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: btnGlint 4.5s ease-in-out infinite;
}

@keyframes btnGlint {
  0%,
  55% {
    left: -120%;
  }
  75%,
  100% {
    left: 140%;
  }
}

.btn-gold:hover {
  box-shadow: 0 12px 36px rgba(232, 197, 71, 0.5);
  color: var(--ink);
}

.btn-outline {
  color: var(--parchment);
  border-color: rgba(232, 220, 200, 0.35);
  background: rgba(10, 9, 8, 0.4);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: 0.8rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-title);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--ash);
  padding: 0.45rem 0.9rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}

.social-pill svg {
  width: 14px;
  height: 14px;
}

.social-pill:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash);
  animation: cueBob 2.4s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--gold), transparent);
}

@keyframes cueBob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateX(-50%) translateY(6px);
    opacity: 1;
  }
}

/* ——— Sections ——— */
.section {
  position: relative;
  padding: 6rem 1.5rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 720px;
}

.section-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-ornament span {
  display: block;
  width: min(120px, 20vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-ornament i {
  display: block;
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(201, 162, 39, 0.4);
}

.section-kicker {
  text-align: center;
  font-family: var(--font-title);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

.section-lead {
  text-align: center;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  color: var(--ash);
  max-width: 40rem;
  margin: 0 auto 3.5rem;
}

.section-lead em {
  color: var(--gold-bright);
  font-style: italic;
}

/* Lore */
.lore {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.07) 0%, transparent 55%),
    var(--ink);
}

.lore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.lore-block {
  text-align: center;
  padding: 1.5rem 0.5rem;
  border-top: 1px solid rgba(201, 162, 39, 0.2);
}

.lore-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.lore-block h3 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 0.65rem;
}

.lore-block p {
  font-size: 1.15rem;
  color: var(--ash);
}

/* Banner / Legion */
.legion {
  padding-top: 2rem;
  padding-bottom: 4rem;
  background: var(--ink-soft);
}

.banner-stage {
  max-width: 1200px;
  margin: 0 auto;
}

.banner-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.4);
  box-shadow:
    0 0 0 8px rgba(10, 9, 8, 0.85),
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(201, 162, 39, 0.12);
}

.banner-frame::before,
.banner-frame::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--gold);
  border-style: solid;
  z-index: 3;
  pointer-events: none;
}

.banner-frame::before {
  top: 10px;
  left: 10px;
  border-width: 2px 0 0 2px;
}

.banner-frame::after {
  bottom: 10px;
  right: 10px;
  border-width: 0 2px 2px 0;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.02);
  transition: transform 8s var(--ease-out);
}

.banner-stage:hover .banner-img {
  transform: scale(1.06);
}

.banner-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 245, 210, 0.12) 48%, transparent 62%);
  transform: translateX(-100%);
  animation: bannerSweep 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bannerSweep {
  0%,
  40% {
    transform: translateX(-100%);
  }
  70%,
  100% {
    transform: translateX(100%);
  }
}

.banner-caption {
  text-align: center;
  margin-top: 1.25rem;
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
}

/* Summon / ritual */
.summon {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(92, 26, 18, 0.18) 0%, transparent 50%),
    var(--ink);
}

.ritual-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.ritual-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}

.ritual-mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold);
  line-height: 1.2;
}

.ritual-list h3 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 0.35rem;
}

.ritual-list p {
  font-size: 1.2rem;
  color: var(--ash);
}

.ritual-list strong {
  color: var(--gold-bright);
  font-weight: 600;
}

.summon-cta {
  text-align: center;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  padding: 3rem 1.5rem 2.5rem;
  background: var(--ink-soft);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-logo {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ivory);
}

.footer-brand span {
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ash);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer-links a {
  font-family: var(--font-title);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
}

.footer-disclaimer {
  font-size: 0.95rem;
  color: rgba(138, 129, 117, 0.7);
  max-width: 28rem;
}

/* ——— Reveal animations ——— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.18s;
}
.delay-3 {
  transition-delay: 0.26s;
}
.delay-4 {
  transition-delay: 0.34s;
}
.delay-5 {
  transition-delay: 0.42s;
}
.delay-6 {
  transition-delay: 0.5s;
}
.delay-7 {
  transition-delay: 0.58s;
}

/* Hero reveals on load */
.hero .reveal {
  transition-delay: 0s;
}

.hero .reveal.delay-1 {
  transition-delay: 0.15s;
}
.hero .reveal.delay-2 {
  transition-delay: 0.28s;
}
.hero .reveal.delay-3 {
  transition-delay: 0.4s;
}
.hero .reveal.delay-4 {
  transition-delay: 0.52s;
}
.hero .reveal.delay-5 {
  transition-delay: 0.64s;
}
.hero .reveal.delay-6 {
  transition-delay: 0.76s;
}
.hero .reveal.delay-7 {
  transition-delay: 0.88s;
}

/* ——— Responsive ——— */
@media (max-width: 860px) {
  .lore-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 110;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(10, 9, 8, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 1.75rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 4.5rem 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
