/* Ironspawn website: shared tokens, layout and marketing pages. Docs add docs.css. CSP: no inline styles. */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cinzel Decorative"; src: url("/assets/fonts/cinzel-decorative-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-var.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #07080b; --bg-2: #0c0e13; --panel: #11141b; --panel-2: #171b24; --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16);
  --text: #ece8e1; --muted: #a9a6ad; --faint: #7d7b83;
  --ember: #ff7a30; --ember-2: #ffb35e; --ember-deep: #c2410c; --gold: #dcb57a; --ok: #5ed39a;
  --f-logo: "Cinzel Decorative", Georgia, serif; --f-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1240px; --gutter: clamp(16px, 4vw, 40px); --header: 72px; --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--ember-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffd3a0; }
:focus-visible { outline: 2px solid var(--ember-2); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: .01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); 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; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ember); color: #160800; padding: 10px 16px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header); transition: background .35s var(--ease), border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.site-header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 4, 6, .75), rgba(3, 4, 6, 0)); pointer-events: none; transition: opacity .35s; }
.site-header.is-solid, .solid-header .site-header { background: rgba(8, 9, 12, .82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line); }
.site-header.is-solid::before, .solid-header .site-header::before { opacity: 0; }
.header-inner { position: relative; height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; min-height: 44px; }
.brand:hover { color: #fff; }
.brand img { width: 30px; height: 36px; }
.brand span { font: 700 21px/1 var(--f-logo); letter-spacing: .08em; }
.site-nav { display: flex; align-items: center; gap: 6px; flex: 1; }
.site-nav a { position: relative; color: #d9d5cf; text-decoration: none; font: 600 15px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; padding: 14px 12px; }
.site-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--ember); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.site-nav .nav-actions a::after { display: none; }
.icon-link { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--text); }
.icon-link:hover { border-color: var(--ember); color: #fff; }
.icon-link svg { width: 20px; height: 20px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); width: 44px; height: 44px; border-radius: 4px; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: transform .25s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Buttons */
.btn { --cut: 12px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 30px; font: 700 16px/1 var(--f-head); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: #1a0a02; background: linear-gradient(135deg, var(--ember-2), var(--ember) 55%, var(--ember-deep)); clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); transition: filter .25s, transform .25s var(--ease); }
.btn:hover { color: #1a0a02; filter: brightness(1.12) drop-shadow(0 0 18px rgba(255, 122, 48, .55)); transform: translateY(-1px); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(6px); }
.btn-ghost:hover { color: #fff; background: rgba(255, 122, 48, .12); box-shadow: inset 0 0 0 1px var(--ember); filter: none; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; --cut: 9px; }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; background: #050608; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.04); }
.hero-slide.is-active { opacity: 1; }
.hero-slide.is-active img { animation: kenburns 14s ease-out forwards; }
.no-js .hero-slide:first-child, .hero-slide:only-child { opacity: 1; }
@keyframes kenburns { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(4, 5, 8, .92) 0%, rgba(4, 5, 8, .55) 42%, rgba(4, 5, 8, .05) 75%),
  linear-gradient(0deg, var(--bg) 0%, rgba(7, 8, 11, .2) 32%, rgba(7, 8, 11, 0) 60%),
  radial-gradient(ellipse at 75% 70%, rgba(255, 122, 48, .14), transparent 55%); }
.embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-content { width: 100%; padding-top: calc(var(--header) + 60px); padding-bottom: clamp(72px, 12vh, 140px); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 600 14px/1 var(--f-head); letter-spacing: .32em; text-transform: uppercase; color: var(--ember-2); }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.display { margin: 20px 0 22px; font: 700 clamp(38px, 11.5vw, 150px)/.92 var(--f-logo); letter-spacing: .02em; color: #f6f1e8; text-shadow: 0 4px 40px rgba(0, 0, 0, .6); }
.hero-lead { max-width: 560px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: #ddd8d0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; margin-top: 40px; font: 500 15px/1.3 var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.status-dot { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.status-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(94, 211, 154, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94, 211, 154, .55); } 70% { box-shadow: 0 0 0 10px rgba(94, 211, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 211, 154, 0); } }
.hero-controls { position: absolute; right: var(--gutter); bottom: clamp(28px, 6vh, 56px); display: flex; align-items: center; gap: 10px; }
.hero-dot { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hero-dot::before { content: ""; width: 26px; height: 3px; background: rgba(255, 255, 255, .3); transition: background .3s, width .3s; }
.hero-dot[aria-current="true"]::before { background: var(--ember); width: 40px; }
.hero-pause { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .3); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.hero-pause svg { width: 14px; height: 14px; }
.hero-caption { position: absolute; left: var(--gutter); bottom: 14px; font-size: 12px; color: var(--faint); letter-spacing: .04em; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; width: 22px; height: 36px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 12px; transform: translateX(-50%); }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 2px; background: var(--ember-2); transform: translateX(-50%); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* Sections */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section-tight { padding: clamp(56px, 7vw, 96px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { max-width: 520px; color: var(--muted); font-size: 18px; }
.kicker { display: block; margin-bottom: 14px; font: 600 14px/1 var(--f-head); letter-spacing: .32em; text-transform: uppercase; color: var(--ember-2); }
.title { font-size: clamp(40px, 6vw, 76px); text-transform: uppercase; letter-spacing: .02em; }
.title em { font-style: normal; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .55); }
.rule-glow { height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 122, 48, .6), transparent); border: 0; margin: 0; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pillar { position: relative; min-height: 600px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 34px 30px; background: var(--panel); border: 1px solid var(--line); isolation: isolate; }
.pillar img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) brightness(.88); transition: transform 1.2s var(--ease), filter .6s; }
.pillar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 6, 9, .97) 22%, rgba(5, 6, 9, .5) 58%, rgba(5, 6, 9, 0)); }
.pillar::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--ember), transparent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.pillar:hover img { transform: scale(1.07); filter: saturate(1) brightness(1); }
.pillar:hover::after { transform: scaleX(1); }
.pillar-num { position: absolute; top: 26px; left: 30px; font: 700 64px/1 var(--f-head); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .28); }
.pillar h3 { font-size: 40px; text-transform: uppercase; margin-bottom: 12px; }
.pillar p { color: #cfcac3; }
.pillar ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 9px; font-size: 15px; color: var(--muted); }
.pillar li { display: flex; gap: 10px; }
.pillar li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; background: var(--ember); transform: rotate(45deg); }

/* Characters */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.portrait-fan { position: relative; height: 560px; }
#characters { overflow-x: clip; }
.portrait-fan figure { position: absolute; top: 50%; left: 50%; width: 260px; margin: 0; aspect-ratio: 512 / 728; transform-origin: 50% 120%; transition: transform .7s var(--ease), filter .5s; box-shadow: 0 30px 60px rgba(0, 0, 0, .6); border: 1px solid rgba(220, 181, 122, .35); }
.portrait-fan img { width: 100%; height: 100%; object-fit: cover; }
.portrait-fan figure:nth-child(1) { transform: translate(-50%, -50%) rotate(-14deg) translateX(-150px); filter: brightness(.6); }
.portrait-fan figure:nth-child(2) { transform: translate(-50%, -50%) rotate(-5deg) translateX(-50px); filter: brightness(.78); }
.portrait-fan figure:nth-child(3) { transform: translate(-50%, -50%) rotate(5deg) translateX(50px); filter: brightness(.78); }
.portrait-fan figure:nth-child(4) { transform: translate(-50%, -50%) rotate(14deg) translateX(150px); filter: brightness(.6); }
.portrait-fan:hover figure:nth-child(1) { transform: translate(-50%, -50%) rotate(-18deg) translateX(-210px); }
.portrait-fan:hover figure:nth-child(4) { transform: translate(-50%, -50%) rotate(18deg) translateX(210px); }
.portrait-fan figure.is-front { z-index: 5; filter: none; }
.portrait-fan figure:hover { z-index: 6; filter: none; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 36px; background: var(--line); border: 1px solid var(--line); }
.fact { background: var(--bg); padding: 22px 22px 20px; }
.fact b { display: block; font: 700 34px/1 var(--f-head); color: #fff; letter-spacing: .02em; }
.fact span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.class-tabs { margin-top: 34px; }
.tablist { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); }
.tab { position: relative; background: none; border: 0; color: var(--muted); font: 700 18px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; padding: 16px 18px; min-height: 48px; cursor: pointer; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ember); transform: scaleX(0); transition: transform .3s var(--ease); }
.tab[aria-selected="true"] { color: #fff; }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tabpanel { padding: 22px 0 0; color: #d6d1ca; }
.tabpanel dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 16px 0 0; font-size: 15px; }
.tabpanel dt { color: var(--faint); text-transform: uppercase; font: 600 13px/1.6 var(--f-head); letter-spacing: .16em; }
.tabpanel dd { margin: 0; }
.js .tabpanel[hidden] { display: none; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.news-card { grid-column: span 4; position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--text); overflow: hidden; transition: transform .4s var(--ease), border-color .3s; }
.news-card:hover { color: var(--text); transform: translateY(-4px); border-color: rgba(255, 122, 48, .45); }
.news-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.news-card:hover .thumb img { transform: scale(1.06); }
.news-card .body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card h3 { font-size: 27px; text-transform: uppercase; }
.news-card p { color: var(--muted); font-size: 15px; }
.news-card.is-featured { grid-column: span 8; grid-row: span 2; }
.news-card.is-featured .thumb { aspect-ratio: auto; flex: 1; min-height: 320px; }
.news-card.is-featured .body { flex: none; }
.news-card.is-featured h3 { font-size: clamp(30px, 3.4vw, 44px); }
.news-card.is-text { border-top: 2px solid var(--ember-deep); }
.article-hero.is-plain { min-height: 0; padding-bottom: 28px; }
.article-hero.is-plain::before { background: none; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font: 600 13px/1 var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.tag { color: var(--ember-2); border: 1px solid rgba(255, 122, 48, .4); padding: 5px 8px 4px; }
.more-link { display: inline-flex; align-items: center; gap: 10px; font: 700 15px/1 var(--f-head); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; padding: 14px 0; }
.more-link::after { content: "→"; transition: transform .3s; }
.more-link:hover::after { transform: translateX(5px); }

/* Roadmap */
.roadmap { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.roadmap::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line-2); }
.roadmap .progress { position: absolute; left: 0; top: 11px; height: 2px; width: 0; background: linear-gradient(90deg, var(--ember-deep), var(--ember), var(--ember-2)); box-shadow: 0 0 14px rgba(255, 122, 48, .7); transition: width 1.8s var(--ease); }
.no-js .roadmap .progress, .roadmap.is-visible .progress { width: 50%; }
.stage { position: relative; padding-top: 44px; }
.stage::before { content: ""; position: absolute; top: 4px; left: 0; width: 16px; height: 16px; transform: rotate(45deg); background: var(--bg); border: 2px solid var(--line-2); }
.stage.is-done::before { background: var(--ember); border-color: var(--ember); }
.stage.is-now::before { border-color: var(--ember); box-shadow: 0 0 0 6px rgba(255, 122, 48, .15); }
.stage h3 { font-size: 30px; text-transform: uppercase; margin-bottom: 4px; }
.stage .when { font: 600 13px/1 var(--f-head); letter-spacing: .24em; text-transform: uppercase; color: var(--ember-2); }
.stage ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.stage li { padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); font-size: 15px; color: #d6d1ca; }
.stage.is-next li { color: var(--muted); background: transparent; border-style: dashed; }
.updated { margin-top: 26px; font-size: 14px; color: var(--faint); }

/* Worlds teaser + community band */
.band { position: relative; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: brightness(.6) saturate(.9); }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 6, 9, .95), rgba(5, 6, 9, .55) 60%, rgba(5, 6, 9, .3)); }
.band-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.counter { display: flex; align-items: baseline; gap: 18px; }
.counter b { font: 700 clamp(96px, 14vw, 180px)/.85 var(--f-head); color: #fff; }
.counter span { font: 600 22px/1.2 var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.world-mini { display: grid; gap: 10px; margin-top: 28px; max-width: 560px; }
.world-mini a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; background: rgba(10, 12, 16, .7); border: 1px solid var(--line); text-decoration: none; color: var(--text); backdrop-filter: blur(6px); }
.world-mini a:hover { border-color: var(--ember); color: var(--text); }
.world-mini strong { font: 700 21px/1.1 var(--f-head); letter-spacing: .04em; text-transform: uppercase; }
.world-mini small { color: var(--muted); font-size: 14px; }
.community { text-align: center; }
.community .band-inner { grid-template-columns: 1fr; justify-items: center; }
.community p { max-width: 640px; margin: 0 auto; color: #d6d1ca; font-size: 19px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px 0 36px; }
.chip { font: 500 14px/1 var(--f-mono); color: #d6d1ca; padding: 9px 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .35); }

/* Page heroes (worlds, news, article, legal) */
.page-hero { position: relative; min-height: 52vh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding: calc(var(--header) + 60px) 0 56px; }
.page-hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 2%, rgba(7, 8, 11, .35) 60%, rgba(7, 8, 11, .6)); }
.page-hero h1 { font-size: clamp(48px, 8vw, 104px); text-transform: uppercase; margin-top: 14px; }
.page-hero p { margin-top: 16px; max-width: 640px; font-size: 19px; color: #d6d1ca; }
.page-plain { padding: calc(var(--header) + 72px) 0 40px; }
.page-plain h1 { font-size: clamp(44px, 7vw, 88px); text-transform: uppercase; margin-top: 14px; }

/* Worlds page */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 28px; }
.stat { background: var(--bg-2); padding: 22px 24px; }
.stat b { display: block; font: 700 44px/1 var(--f-head); color: #fff; }
.stat span { font: 600 13px/1 var(--f-head); letter-spacing: .22em; text-transform: uppercase; color: var(--faint); }
.filters { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 18px; }
.field { display: grid; gap: 8px; flex: 1 1 180px; }
.field.grow { flex: 3 1 260px; }
.field label, .check { font: 600 12px/1 var(--f-head); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.field input, .field select { width: 100%; min-height: 46px; padding: 0 14px; background: var(--bg); color: var(--text); border: 1px solid var(--line-2); font: 400 16px var(--f-body); border-radius: 0; }
.field input:focus, .field select:focus { border-color: var(--ember); outline: none; box-shadow: 0 0 0 3px rgba(255, 122, 48, .2); }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ember); }
.world-list { display: grid; gap: 10px; }
.world { display: grid; grid-template-columns: minmax(0, 2.4fr) repeat(4, minmax(0, 1fr)); gap: 18px; align-items: center; padding: 20px 22px; background: linear-gradient(90deg, rgba(255, 122, 48, .06), transparent 40%), var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--ember); transition: border-color .3s, transform .3s var(--ease); }
.world:hover { border-color: rgba(255, 122, 48, .5); transform: translateX(3px); }
.world[hidden] { display: none; }
.world-name { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.world-name strong { font: 700 26px/1.05 var(--f-head); letter-spacing: .03em; text-transform: uppercase; overflow-wrap: anywhere; }
.world-name small { color: var(--muted); font-size: 15px; }
.badge { align-self: flex-start; font: 700 11px/1 var(--f-head); letter-spacing: .2em; text-transform: uppercase; padding: 5px 8px 4px; color: #1a0a02; background: var(--gold); }
.cell span { display: block; font: 600 11px/1 var(--f-head); letter-spacing: .22em; text-transform: uppercase; color: var(--faint); margin-bottom: 7px; }
.cell b { font-weight: 500; }
.cell code { font: 500 13px var(--f-mono); color: #cfcac3; }
.slots { display: block; height: 4px; margin-top: 8px; background: var(--line-2); }
.slots i { display: block; height: 100%; background: var(--ember); }
.empty { display: none; padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); }
.empty.is-shown { display: block; }
.note { margin-top: 14px; font-size: 14px; color: var(--faint); }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.panel { padding: 30px; background: var(--panel); border: 1px solid var(--line); }
.panel h2, .panel h3 { font-size: 30px; text-transform: uppercase; margin-bottom: 12px; }
.panel p + p { margin-top: 12px; }
.panel p { color: #d6d1ca; }

/* Articles */
.article-hero { min-height: 62vh; }
.article-hero h1 { font-size: clamp(40px, 6vw, 80px); max-width: 1000px; }
.article { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.prose { font-size: 18px; line-height: 1.75; color: #ddd8d0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 34px; text-transform: uppercase; margin-top: 1.8em; color: #fff; }
.prose h3 { font-size: 26px; margin-top: 1.5em; color: #fff; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--ember); }
.prose strong { color: #fff; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--ember); color: #fff; font-size: 21px; }
.prose code { font: 500 .86em var(--f-mono); background: rgba(255, 255, 255, .07); padding: 2px 6px; border-radius: 3px; }
.prose .lead { font-size: 21px; color: #fff; }
.share-row { display: flex; gap: 10px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); align-items: center; }

/* Footer */
.site-footer { position: relative; margin-top: 0; background: #040507; border-top: 1px solid var(--line); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 122, 48, .55), transparent); }
.footer-main { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-main p { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 320px; }
.footer-col h2 { font: 600 13px/1 var(--f-head); letter-spacing: .26em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer-col a { display: block; padding: 7px 0; color: #d6d1ca; text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 30px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.footer-bottom a { color: var(--muted); }

/* Reveal on scroll (only with JS; content is visible without it) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.d1 { --d: .08s; } .d2 { --d: .16s; } .d3 { --d: .24s; }

/* 404 */
.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.lost h1 { font-size: clamp(64px, 12vw, 160px); }

@media (max-width: 1080px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { min-height: 440px; }
  .news-card, .news-card.is-featured { grid-column: span 12; grid-row: auto; }
  .news-card.is-featured .thumb { aspect-ratio: 16 / 9; min-height: 0; }
  .hero-split { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .world { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .world-name { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: var(--header); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 24px; background: rgba(8, 9, 12, .97); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .no-js .site-nav { display: flex; position: static; background: none; padding: 0; flex-direction: row; flex-wrap: wrap; }
  .no-js .menu-toggle { display: none; }
  .no-js .site-header { height: auto; position: absolute; }
  .no-js .header-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .site-nav a { padding: 16px 4px; font-size: 17px; }
  .site-nav a::after { left: 4px; right: auto; width: 40px; }
  .nav-actions { margin: 12px 0 0; }
  .roadmap { grid-template-columns: 1fr; gap: 0; }
  .roadmap::before, .roadmap .progress { display: none; }
  .stage { padding: 0 0 34px 34px; border-left: 2px solid var(--line-2); margin-left: 7px; }
  .stage::before { left: -9px; top: 2px; }
  .band-inner, .cols, .stats { grid-template-columns: 1fr; }
  .portrait-fan { height: 440px; }
  .portrait-fan figure { width: 190px; }
  .portrait-fan figure:nth-child(1), .portrait-fan:hover figure:nth-child(1) { transform: translate(-50%, -50%) rotate(-12deg) translateX(-90px); }
  .portrait-fan figure:nth-child(2) { transform: translate(-50%, -50%) rotate(-4deg) translateX(-30px); }
  .portrait-fan figure:nth-child(3) { transform: translate(-50%, -50%) rotate(4deg) translateX(30px); }
  .portrait-fan figure:nth-child(4), .portrait-fan:hover figure:nth-child(4) { transform: translate(-50%, -50%) rotate(12deg) translateX(90px); }
  .hero-controls { right: 50%; transform: translateX(50%); bottom: 54px; }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .facts { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .world { grid-template-columns: 1fr 1fr; padding: 18px; }
  .pillar { padding: 28px 22px; }
  .portrait-fan figure { width: 150px; }
  .portrait-fan figure:nth-child(1), .portrait-fan:hover figure:nth-child(1) { transform: translate(-50%, -50%) rotate(-12deg) translateX(-66px); }
  .portrait-fan figure:nth-child(4), .portrait-fan:hover figure:nth-child(4) { transform: translate(-50%, -50%) rotate(12deg) translateX(66px); }
  .portrait-fan { height: 360px; }
  .hero-meta { gap: 10px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .embers { display: none; }
}
.fan-caption { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 13px; color: var(--faint); }
.hero-split .title { margin-bottom: 22px; }
