:root {
  --bg: #070b12;
  --bg-soft: #0b111b;
  --panel: rgba(13, 20, 32, .78);
  --panel-solid: #0d1420;
  --line: rgba(210, 181, 122, .18);
  --line-strong: rgba(210, 181, 122, .38);
  --text: #ece7db;
  --muted: #9d9b92;
  --gold: #e1b66b;
  --gold-bright: #f4d08a;
  --teal: #5aa8ad;
  --danger: #b65a4d;
  --serif: Georgia, "Times New Roman", "Palatino Linotype", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: rgba(225, 182, 107, .28); color: #fff; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  padding: 18px clamp(20px, 4vw, 56px);
  transition: background .25s ease, border-color .25s ease, padding .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(7, 11, 18, .86);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .02em;
}
.brand em { color: var(--gold); font-style: normal; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 14px;
  box-shadow: 0 0 22px rgba(225, 182, 107, .12) inset;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  margin-left: auto;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #c9c4b7;
}
.nav a { position: relative; padding: 8px 0; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: linear-gradient(135deg, #d9a95d, #f0cc83 52%, #b9853e);
  color: #171006;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(225, 182, 107, .16);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 12px 38px rgba(225, 182, 107, .24); }
.btn:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.btn-ghost {
  color: var(--text);
  background: rgba(9, 14, 23, .35);
  border-color: rgba(236, 231, 219, .26);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(9, 14, 23, .65); border-color: var(--line-strong); box-shadow: none; }
.btn-small { min-height: 38px; padding: 0 18px; font-size: 11px; }
.btn-large { min-height: 54px; padding: 0 32px; font-size: 13px; }
.menu-toggle {
  display: none;
  width: 40px; height: 38px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
}
.menu-toggle span { display: block; height: 1px; background: var(--text); margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(920px, 94vh);
  padding: 150px clamp(20px, 6vw, 90px) 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero-art-wrap { position: absolute; inset: 0; z-index: -3; overflow: hidden; background: #050810; }
.hero-art {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 68% center;
  filter: saturate(.92) contrast(1.04);
  transform: scale(1.015);
}
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 8, 14, .97) 0%, rgba(5, 8, 14, .86) 28%, rgba(5, 8, 14, .34) 62%, rgba(5, 8, 14, .18) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 11, 18, 0) 34%),
    radial-gradient(ellipse at 70% 40%, rgba(225, 182, 107, .08), transparent 52%);
}
.hero-content { position: relative; z-index: 1; width: min(640px, 100%); min-width: 0; max-width: 100%; }
.eyebrow, .kicker {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(58px, 8.3vw, 118px);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-shadow: 0 8px 50px rgba(0, 0, 0, .5);
}
.hero h1 span { display: block; color: var(--gold); font-style: italic; }
.tagline {
  margin: 28px 0 0;
  max-width: min(520px, 100%);
  overflow-wrap: break-word;
  color: #dfd8c8;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  font-style: italic;
  letter-spacing: .01em;
}
.lead {
  margin: 18px 0 0;
  max-width: min(500px, 100%);
  overflow-wrap: break-word;
  color: #b9b5a9;
  font-size: 15px;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; min-width: 0; }
.hero-actions .btn { min-width: 0; max-width: 100%; }
.hero-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 34px;
  color: #918f86;
  font-size: 12px;
  letter-spacing: .04em;
}
.meta-dot { width: 6px; height: 6px; border-radius: 50%; background: #77b88d; box-shadow: 0 0 12px #77b88d; }
.meta-sep { width: 1px; height: 12px; background: rgba(255, 255, 255, .18); }
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #8f8b80;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  transform: translateX(-50%);
}
.hero-scroll i { display: block; width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); }

.section { position: relative; padding: clamp(76px, 10vw, 140px) clamp(20px, 6vw, 90px); }
.section:nth-of-type(even) { background: linear-gradient(180deg, var(--bg), var(--bg-soft) 50%, var(--bg)); }
.section-head { max-width: var(--max); margin: 0 auto 48px; }
.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.025em;
}
.section-head h2 span { color: var(--gold); font-style: italic; }
.section-head > p:last-child, .section-head-row > div > p:last-child {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.text-link { flex: 0 0 auto; color: var(--gold); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--line-strong); padding-bottom: 6px; }
.text-link span { display: inline-block; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

.world-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
}
.world-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 15% 20%, rgba(90, 168, 173, .12), transparent 52%),
    linear-gradient(145deg, rgba(19, 30, 42, .9), rgba(9, 14, 22, .92));
}
.world-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 1px, transparent 1px 9px);
  opacity: .7;
  pointer-events: none;
}
.world-card-tall { grid-row: span 2; min-height: 100%; }
.world-card-tall::after {
  content: "ᛟ";
  position: absolute;
  right: 28px; bottom: 4px;
  color: rgba(225, 182, 107, .13);
  font-family: var(--serif);
  font-size: 220px;
  line-height: 1;
  pointer-events: none;
}
.world-card-body { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; padding: 28px; }
.world-card-tall .world-card-body { justify-content: flex-end; padding: 38px; }
.card-index { margin-bottom: auto; color: var(--gold); font-family: var(--serif); font-size: 13px; letter-spacing: .15em; }
.world-card h3 { margin: 28px 0 10px; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.world-card p { max-width: 440px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.world-card-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .58;
  filter: saturate(.85) contrast(1.02);
}
.world-card.has-art .world-card-body {
  background: linear-gradient(0deg, rgba(5,8,14,.94) 0%, rgba(5,8,14,.48) 55%, transparent 100%);
}
.world-card-tall::after { opacity: .32; }

.dungeon-strip {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(620px, 72vh);
  padding: clamp(60px, 9vw, 120px) clamp(20px, 6vw, 90px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #060a10;
}
.dungeon-strip > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.85) contrast(1.03);
}
.dungeon-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,8,14,.96) 0%, rgba(5,8,14,.76) 36%, rgba(5,8,14,.18) 78%),
    linear-gradient(0deg, rgba(6,10,16,.85), transparent 42%);
}
.dungeon-strip-inner {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
}
.dungeon-strip h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.025em;
}
.dungeon-strip h2 span { color: var(--gold); font-style: italic; }
.dungeon-strip-inner > p:not(.kicker) { max-width: 440px; margin: 22px 0 28px; color: #b9b5a9; font-size: 15px; }

.class-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
}
.class-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.class-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 60px rgba(0,0,0,.34); }
.class-art { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #0a0f18; }
.class-art img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .5s ease; }
.class-card:hover .class-art img { transform: scale(1.025); }
.class-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,11,18,.85), transparent 38%); pointer-events: none; }
.class-body { position: relative; z-index: 1; padding: 20px 22px 24px; margin-top: -54px; }
.class-role { color: var(--gold); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.class-body h3 { margin: 8px 0 6px; font-family: var(--serif); font-size: 27px; font-weight: 400; }
.class-body p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.class-placeholder .class-art { display: flex; align-items: center; justify-content: center; background:
  radial-gradient(ellipse at 50% 40%, rgba(90, 168, 173, .16), transparent 55%),
  linear-gradient(160deg, #111b28, #080d14); }
.class-placeholder .class-art::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(225,182,107,.13); }
.sigil { color: rgba(225, 182, 107, .75); font-family: var(--serif); font-size: 76px; line-height: 1; }
.placeholder-note { position: absolute; left: 0; right: 0; bottom: 22px; color: #77766e; text-align: center; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature { padding: 30px 28px 34px; background: var(--bg-soft); }
.feature-num { color: var(--gold); font-family: var(--serif); font-size: 13px; letter-spacing: .12em; }
.feature h3 { margin: 42px 0 8px; font-family: var(--serif); font-size: 25px; font-weight: 400; }
.feature p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.start-panel {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(225, 182, 107, .09), transparent 50%),
    linear-gradient(135deg, #101a27, #0a0f18);
}
.start-copy { padding: clamp(30px, 5vw, 64px); }
.start-copy h2 { margin: 0; font-family: var(--serif); font-size: clamp(36px, 4.4vw, 60px); font-weight: 400; line-height: 1; }
.start-copy h2 span { color: var(--gold); font-style: italic; }
.steps { display: grid; gap: 18px; margin: 34px 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; }
.steps li::before { content: counter(step, decimal-leading-zero); counter-increment: step; color: var(--gold); font-family: var(--serif); font-size: 13px; padding-top: 2px; }
.steps { counter-reset: step; }
.steps b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 400; }
.steps span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.start-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 360px; border-left: 1px solid var(--line); overflow: hidden; }
.start-art::before { content: ""; position: absolute; width: 330px; height: 330px; border: 1px solid rgba(225,182,107,.16); border-radius: 50%; box-shadow: 0 0 0 36px rgba(225,182,107,.025), 0 0 0 72px rgba(225,182,107,.018); }
.start-rune { position: relative; z-index: 1; color: rgba(225,182,107,.8); font-family: var(--serif); font-size: 130px; line-height: 1; }
.start-caption { position: absolute; bottom: 24px; right: 28px; color: rgba(236,231,219,.28); font-family: var(--serif); font-size: 12px; line-height: 1.25; letter-spacing: .2em; text-align: right; text-transform: uppercase; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 34px clamp(20px, 6vw, 90px);
  border-top: 1px solid var(--line);
  color: #817f76;
  font-size: 12px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--serif); font-size: 18px; }
.footer-brand em { color: var(--gold); font-style: normal; }
.footer-note { margin: 0; color: #817f76; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--gold); }
.noscript { position: fixed; inset: auto 16px 16px; z-index: 100; padding: 14px 18px; background: #2a1512; border: 1px solid #713b32; color: #f0d0c9; font-size: 13px; }

@media (max-width: 1020px) {
  .class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .world-grid { grid-template-columns: 1fr 1fr; }
  .world-card-tall { grid-row: span 2; }
}
@media (max-width: 780px) {
  .site-header { gap: 14px; padding: 12px 18px; }
  .nav {
    position: fixed; top: 62px; left: 14px; right: 14px;
    display: none; flex-direction: column; align-items: flex-start; gap: 2px;
    padding: 14px 18px 18px; background: rgba(7,11,18,.97);
    border: 1px solid var(--line); backdrop-filter: blur(16px);
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav a:last-child { border-bottom: 0; }
  .menu-toggle { display: block; }
  .header-actions .btn-ghost { display: none; }
  .hero { min-height: 760px; padding: 130px 20px 90px; align-items: flex-end; }
  .hero-art { object-position: 70% center; }
  .hero-shade {
    background:
      linear-gradient(0deg, var(--bg) 2%, rgba(7,11,18,.8) 40%, rgba(7,11,18,.18) 78%),
      linear-gradient(90deg, rgba(5,8,14,.86), rgba(5,8,14,.1));
  }
  .hero-content { width: 100%; }
  .hero h1 { font-size: clamp(52px, 15vw, 86px); }
  .tagline { font-size: 19px; }
  .lead { font-size: 14px; }
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .btn { flex: 1 1 160px; }
  .hero-scroll { display: none; }
  .section-head-row { display: block; }
  .text-link { display: inline-block; margin-top: 24px; }
  .world-grid { grid-template-columns: 1fr; }
  .world-card-tall { grid-row: auto; min-height: 300px; }
  .dungeon-strip { min-height: 540px; align-items: flex-end; padding: 60px 20px 54px; }
  .dungeon-strip::after {
    background:
      linear-gradient(0deg, rgba(5,8,14,.97) 0%, rgba(5,8,14,.72) 48%, rgba(5,8,14,.16) 100%),
      linear-gradient(90deg, rgba(5,8,14,.7), rgba(5,8,14,.1));
  }
  .start-panel { grid-template-columns: 1fr; }
  .start-art { min-height: 240px; border-left: 0; border-top: 1px solid var(--line); }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
  .brand-text { font-size: 17px; }
  .header-actions .btn { padding: 0 13px; }
  .class-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 8px; font-size: 11px; }
  .btn-large { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
