/* ==========================================================================
   ROW — Resilence Of War
   Main theme styles
   ========================================================================== */

@font-face {
	font-family: "Cinzel";
	src: url("../fonts/cinzel-latin-600-normal.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Cinzel";
	src: url("../fonts/cinzel-latin-700-normal.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Barlow";
	src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Barlow";
	src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Barlow";
	src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Barlow";
	src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--row-bg: #0b0c0e;
	--row-bg-deep: #07080a;
	--row-surface: #14171b;
	--row-surface-2: #1a1e24;
	--row-surface-3: #20252c;
	--row-line: #242a31;
	--row-line-soft: rgba(237, 228, 211, 0.09);
	--row-line-gold: rgba(201, 163, 91, 0.24);
	--row-text: #ede4d3;
	--row-text-soft: #d3ccbf;
	--row-muted: #a7a093;
	--row-steel: #8d98a5;
	--row-ember: #d9452a;
	--row-ember-bright: #f4714a;
	--row-ember-deep: #a62f1d;
	--row-gold: #c9a35b;
	--row-gold-soft: #dfc084;
	--row-gold-hot: #ffcc00;
	--row-gold-pale: #ac9e65;
	/* Faction identity, taken from the ROW source art: Ak'Kan is obsidian
	   violet with a magenta edge; the Human kingdoms are warm bronze and
	   aged steel. */
	--row-akhan: #6b5050;
	--row-akhan-rim: #9b6e8f;
	--row-human: #8a6a3e;
	--row-human-rim: #917462;
	--row-success: #5c9a6b;
	--row-error: #d05a5a;
	--row-display: "Cinzel", Georgia, "Times New Roman", serif;
	--row-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
	--row-max: 1280px;
	--row-header: 84px;
	--row-radius: 2px;
	--row-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--row-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--row-header) + 24px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background:
		radial-gradient(1200px 700px at 78% -10%, rgba(224, 86, 47, 0.06), transparent 60%),
		var(--row-bg);
	color: var(--row-text);
	font-family: var(--row-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

body.menu-open {
	overflow: hidden;
}

img,
svg {
	max-width: 100%;
}

img {
	height: auto;
	display: block;
}

a {
	color: var(--row-gold);
	text-decoration: none;
	transition: color 200ms var(--row-ease);
}

a:hover {
	color: var(--row-ember-bright);
}

p {
	margin: 0 0 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	font-family: var(--row-display);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: 0.01em;
	color: var(--row-text);
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.75rem, 6vw, 5rem);
}
h2 {
	font-size: clamp(2rem, 4vw, 3.25rem);
}
h3 {
	font-size: 1.5rem;
}

ul,
ol {
	padding-left: 1.2rem;
}

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

::selection {
	background: var(--row-ember);
	color: var(--row-bg);
}

:focus-visible {
	outline: 2px solid var(--row-gold);
	outline-offset: 3px;
}

.container {
	width: min(calc(100% - 3rem), var(--row-max));
	margin-inline: auto;
}

.container--narrow {
	max-width: 760px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 9999;
	padding: 12px 18px;
	background: var(--row-gold);
	color: var(--row-bg);
	font-weight: 700;
	transform: translateY(-180%);
	transition: transform 150ms var(--row-ease);
}

.skip-link:focus {
	transform: translateY(0);
	color: var(--row-bg);
}

.is-hidden {
	display: none !important;
}

.icon {
	width: 24px;
	height: 24px;
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 9px;
	border: 1px solid var(--row-line-gold);
	color: var(--row-gold);
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.3;
}

/* ==========================================================================
   Buttons & links
   ========================================================================== */

.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 0.9rem 1.6rem;
	border: 1px solid transparent;
	border-radius: var(--row-radius);
	font-family: var(--row-body);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1;
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
	overflow: hidden;
	transition:
		background 200ms var(--row-ease),
		border-color 200ms var(--row-ease),
		color 200ms var(--row-ease),
		transform 200ms var(--row-ease),
		box-shadow 200ms var(--row-ease);
}

.btn::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.16) 50%, transparent 80%);
	transform: translateX(-120%);
	transition: transform 500ms var(--row-ease);
}

.btn:hover::after {
	transform: translateX(120%);
}

.btn--primary {
	background: var(--row-ember);
	border-color: var(--row-ember);
	color: var(--row-bg-deep);
}

.btn--primary:hover {
	background: var(--row-ember-bright);
	border-color: var(--row-ember-bright);
	color: var(--row-bg-deep);
	transform: translateY(-2px);
	box-shadow: 0 12px 34px rgba(224, 86, 47, 0.22);
}

.btn--secondary {
	background: rgba(11, 12, 14, 0.38);
	border-color: rgba(237, 228, 211, 0.28);
	color: var(--row-text);
	backdrop-filter: blur(6px);
}

.btn--secondary:hover {
	border-color: var(--row-gold);
	color: var(--row-gold);
	transform: translateY(-2px);
}

.btn--ghost {
	background: transparent;
	border-color: transparent;
	color: var(--row-gold);
	padding-inline: 0.25rem;
	min-height: 42px;
}

.btn--ghost:hover {
	color: var(--row-ember-bright);
}

.btn__icon {
	width: 18px;
	height: 18px;
	transition: transform 200ms var(--row-ease);
}

.btn:hover .btn__icon {
	transform: translateX(4px);
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--row-gold);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.text-link .icon {
	width: 16px;
	height: 16px;
	transition: transform 200ms var(--row-ease);
}

.text-link:hover .icon {
	transform: translateX(5px);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: fixed;
	z-index: 100;
	top: 0;
	left: 0;
	width: 100%;
	border-bottom: 1px solid transparent;
	transition:
		background 250ms var(--row-ease),
		border-color 250ms var(--row-ease),
		backdrop-filter 250ms var(--row-ease);
}

.site-header.is-scrolled,
body:not(.is-row-home) .site-header {
	background: rgba(9, 10, 12, 0.9);
	border-bottom-color: rgba(237, 228, 211, 0.08);
	backdrop-filter: blur(16px);
}

.header-inner {
	width: min(calc(100% - 3rem), 1400px);
	height: var(--row-header);
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--row-text);
	flex-shrink: 0;
}

.brand:hover {
	color: var(--row-text);
}

.brand__mark {
	width: var(--row-brand-w, 40px);
	height: var(--row-brand-h, 40px);
	display: grid;
	place-items: center;
	filter: drop-shadow(0 0 12px rgba(201, 163, 91, 0.14));
}

.brand-mark-svg {
	width: 100%;
	height: 100%;
}

/* Media-library logo (brand_mark slot) — fills the configured box exactly;
   contain keeps any aspect ratio letterboxed instead of stretched. */
.brand__mark img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
	min-width: 0;
	min-height: 0;
}

.brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.brand__name {
	font-family: var(--row-display);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.brand__sub {
	margin-top: 5px;
	color: var(--row-gold);
	font-size: 0.58rem;
	font-weight: 600;
	letter-spacing: 0.34em;
	text-transform: uppercase;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 30px;
}

.site-nav ul {
	display: flex;
	align-items: center;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
	/* Subtle glass pill behind the nav links. */
	padding: 6px 18px;
	border-radius: 999px;
	border: 1px solid rgba(237, 228, 211, 0.06);
	background: rgba(11, 12, 14, 0.35);
	backdrop-filter: blur(10px);
	box-shadow: inset 0 1px 0 rgba(237, 228, 211, 0.04);
}

.site-nav a {
	position: relative;
	color: #d8d1c5;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.site-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -8px;
	width: 100%;
	height: 1px;
	background: var(--row-gold);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 240ms var(--row-ease), opacity 240ms var(--row-ease);
	opacity: 0.9;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
	color: var(--row-gold);
	text-shadow: 0 0 14px rgba(201, 163, 91, 0.35);
}

.site-nav a:hover::after,
.site-nav .current-menu-item > a::after {
	transform: scaleX(1);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-shrink: 0;
}

.server-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 13px;
	border: 1px solid color-mix(in srgb, var(--row-gold) 18%, var(--row-line));
	background: rgba(11, 12, 14, 0.45);
	backdrop-filter: blur(8px);
	color: var(--row-steel);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
	border-radius: 999px;
}

.status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--row-success);
	box-shadow: 0 0 0 4px rgba(92, 154, 107, 0.12);
	animation: row-status-pulse 2.4s ease-in-out infinite;
}

.server-pill.is-maintenance .status-dot {
	background: #d9a441;
	box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.12);
}

.server-pill.is-offline .status-dot {
	background: var(--row-error);
	box-shadow: 0 0 0 4px rgba(208, 90, 90, 0.12);
}

.header-actions .btn {
	min-height: 42px;
	padding: 0.65rem 1.15rem;
	font-size: 0.68rem;
	background: linear-gradient(180deg, rgba(232, 196, 124, 0.18), rgba(201, 163, 91, 0.08));
	border-color: color-mix(in srgb, var(--row-gold) 45%, var(--row-line));
	box-shadow: 0 0 24px rgba(201, 163, 91, 0.18), inset 0 1px 0 rgba(255, 243, 214, 0.12);
	transition:
		transform 200ms var(--row-ease),
		box-shadow 200ms var(--row-ease),
		border-color 200ms var(--row-ease);
}

.header-actions .btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 0 32px rgba(201, 163, 91, 0.32), inset 0 1px 0 rgba(255, 243, 214, 0.18);
	border-color: color-mix(in srgb, var(--row-gold) 70%, var(--row-line));
}

.header-signin {
	color: var(--row-muted);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: color 200ms var(--row-ease);
}

.header-signin:hover {
	color: var(--row-gold);
}

.nav-toggle {
	display: none;
	position: relative;
	z-index: 130;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--row-line-soft);
	color: var(--row-text);
}

.nav-toggle span {
	position: absolute;
	left: 12px;
	width: 18px;
	height: 1.5px;
	background: currentColor;
	transition: transform 220ms var(--row-ease), opacity 220ms var(--row-ease);
}

.nav-toggle span:nth-child(1) {
	top: 16px;
}
.nav-toggle span:nth-child(2) {
	top: 21px;
}
.nav-toggle span:nth-child(3) {
	top: 26px;
}

.menu-open .nav-toggle span:nth-child(1) {
	transform: translateY(5px) rotate(45deg);
}
.menu-open .nav-toggle span:nth-child(2) {
	opacity: 0;
}
.menu-open .nav-toggle span:nth-child(3) {
	transform: translateY(-5px) rotate(-45deg);
}

body.menu-open {
	overflow: hidden;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	align-items: center;
	padding: calc(var(--row-header) + 4rem) 0 8.5rem;
	overflow: hidden;
	background: var(--row-bg-deep);
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--row-img-hero-keyart, url("../img/hero-keyart.svg"));
	background-size: cover;
	background-position: center right;
	opacity: 0.95;
	transform: scale(1.02);
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(7, 8, 10, 0.96) 0%, rgba(7, 8, 10, 0.72) 38%, rgba(7, 8, 10, 0.08) 70%, rgba(7, 8, 10, 0.3) 100%),
		linear-gradient(180deg, rgba(7, 8, 10, 0.55) 0%, transparent 24%, transparent 70%, var(--row-bg) 100%);
}

.hero__inner {
	position: relative;
	z-index: 2;
	width: min(calc(100% - 3rem), var(--row-max));
	margin-inline: auto;
}

.hero__content {
	max-width: 800px;
}

.hero__eyebrow {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 28px;
}

.beta-pill {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 8px 13px;
	border: 1px solid rgba(224, 86, 47, 0.5);
	background: rgba(224, 86, 47, 0.08);
	color: var(--row-ember-bright);
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1;
	text-transform: uppercase;
}

.beta-pill__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--row-ember);
	animation: row-pulse 2.4s ease-in-out infinite;
}

.hero__season {
	color: var(--row-gold);
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.hero__title {
	margin: 0;
	font-size: clamp(3.6rem, 8.6vw, 8.4rem);
	font-weight: 700;
	line-height: 0.84;
	letter-spacing: 0.015em;
	text-transform: uppercase;
	text-shadow: 0 10px 60px rgba(0, 0, 0, 0.5);
}

.hero__title-main {
	display: block;
}

.hero__title-sub {
	display: block;
	margin-top: 0.16em;
	color: var(--row-gold);
	font-size: 0.44em;
	letter-spacing: 0.42em;
	text-indent: 0.1em;
}

.hero__lede {
	max-width: 610px;
	margin: 30px 0 0;
	color: var(--row-text-soft);
	font-size: clamp(1.05rem, 1.7vw, 1.28rem);
	line-height: 1.6;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 36px;
}

.hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 22px;
	margin-top: 30px;
	color: var(--row-steel);
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.hero__meta span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.hero__meta .icon {
	width: 15px;
	height: 15px;
	color: var(--row-gold);
}

.hero__season-mark {
	position: absolute;
	z-index: 2;
	right: 3.2vw;
	bottom: 12rem;
	writing-mode: vertical-rl;
	color: rgba(201, 163, 91, 0.42);
	font-size: 0.62rem;
	letter-spacing: 0.42em;
	text-transform: uppercase;
}

.hero__embers {
	position: absolute;
	z-index: 1;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.ember {
	position: absolute;
	bottom: -10px;
	width: var(--ember-size, 3px);
	height: var(--ember-size, 3px);
	border-radius: 50%;
	background: var(--row-ember);
	box-shadow: 0 0 8px rgba(224, 86, 47, 0.8);
	opacity: 0;
	animation: row-ember-rise var(--ember-duration, 9s) linear infinite;
	animation-delay: var(--ember-delay, 0s);
}

@keyframes row-ember-rise {
	0% {
		transform: translate3d(0, 0, 0);
		opacity: 0;
	}
	12% {
		opacity: var(--ember-opacity, 0.7);
	}
	100% {
		transform: translate3d(var(--ember-drift, 30px), -70vh, 0);
		opacity: 0;
	}
}

@keyframes row-pulse {
	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(224, 86, 47, 0.5);
	}
	50% {
		box-shadow: 0 0 0 6px rgba(224, 86, 47, 0);
	}
}

/* ==========================================================================
   Server strip
   ========================================================================== */

.server-strip {
	position: relative;
	z-index: 4;
	margin-top: -3.6rem;
}

.server-strip__inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: rgba(16, 19, 23, 0.94);
	border: 1px solid var(--row-line);
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(12px);
}

.server-strip__item {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 88px;
	padding: 18px 24px;
	border-right: 1px solid var(--row-line);
}

.server-strip__item:last-child {
	border-right: 0;
}

.server-strip__icon {
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border: 1px solid var(--row-line-gold);
	color: var(--row-gold);
	flex-shrink: 0;
}

.server-strip__icon .icon {
	width: 18px;
	height: 18px;
}

.server-strip__label {
	display: block;
	color: var(--row-steel);
	font-size: 0.6rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.server-strip__value {
	display: block;
	margin-top: 3px;
	color: var(--row-text);
	font-family: var(--row-display);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.server-strip__value.is-online {
	color: var(--row-success);
}

.server-strip__value.is-maintenance {
	color: #d9a441;
}

.server-strip__value.is-offline {
	color: var(--row-error);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
	position: relative;
	padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.section--alt {
	background:
		linear-gradient(180deg, var(--row-bg) 0%, #101317 45%, var(--row-bg) 100%);
	border-top: 1px solid rgba(237, 228, 211, 0.045);
	border-bottom: 1px solid rgba(237, 228, 211, 0.045);
}

.section--tight {
	padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}

.section-head {
	max-width: 780px;
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-head--center {
	margin-inline: auto;
	text-align: center;
}

.section-head--center .eyebrow {
	justify-content: center;
}

.section-head--center .section-desc {
	margin-inline: auto;
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	color: var(--row-gold);
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.26em;
	text-transform: uppercase;
}

.eyebrow__line {
	width: 34px;
	height: 1px;
	background: var(--row-gold);
	opacity: 0.55;
}

.section-title {
	margin: 0;
	font-size: clamp(2.15rem, 4.3vw, 3.8rem);
	line-height: 0.98;
	text-transform: uppercase;
}

.section-title em {
	color: var(--row-gold);
	font-style: normal;
}

.section-desc {
	max-width: 650px;
	margin: 20px 0 0;
	color: var(--row-muted);
	font-size: 1.02rem;
	line-height: 1.7;
}

.section-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 32px;
}

/* ==========================================================================
   Pillars
   ========================================================================== */

.pillars {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--row-line);
	border: 1px solid var(--row-line);
}

.pillar {
	position: relative;
	min-height: 280px;
	padding: 30px;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.015), transparent 55%),
		var(--row-surface);
	overflow: hidden;
	transition: background 250ms var(--row-ease);
}

.pillar::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 1px;
	background: linear-gradient(90deg, var(--row-ember), transparent);
	opacity: 0;
	transition: opacity 250ms var(--row-ease);
}

.pillar:hover {
	background:
		linear-gradient(145deg, rgba(224, 86, 47, 0.05), transparent 55%),
		var(--row-surface);
}

.pillar:hover::before {
	opacity: 1;
}

.pillar__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 42px;
}

.pillar__num {
	color: rgba(201, 163, 91, 0.35);
	font-family: var(--row-display);
	font-size: 1.6rem;
	line-height: 1;
}

.pillar__icon {
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	border: 1px solid var(--row-line-gold);
	color: var(--row-gold);
}

.pillar__icon .icon {
	width: 24px;
	height: 24px;
}

.pillar__title {
	margin-bottom: 12px;
	font-size: 1.45rem;
	text-transform: uppercase;
}

.pillar__desc {
	margin: 0;
	color: var(--row-muted);
	font-size: 0.95rem;
	line-height: 1.7;
}

/* ==========================================================================
   Nations / class rosters
   ========================================================================== */

.nations-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: var(--row-line);
	border: 1px solid var(--row-line);
}

.nation-card {
	--nation-accent: var(--row-gold);
	position: relative;
	padding: clamp(1.6rem, 3.2vw, 2.6rem);
	background:
		radial-gradient(700px 340px at 0% 0%, color-mix(in srgb, var(--nation-accent) 12%, transparent), transparent 62%),
		linear-gradient(180deg, #14171b 0%, #0d0f12 100%);
	overflow: hidden;
}

.nation-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--nation-accent), transparent);
	opacity: 0.65;
}

.nation-card__glow {
	position: absolute;
	top: -35%;
	left: -20%;
	width: 80%;
	aspect-ratio: 1;
	background: radial-gradient(circle, var(--nation-accent), transparent 65%);
	opacity: 0.1;
	pointer-events: none;
}

.nation-card__head {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 16px;
}

.nation-card__crest {
	width: 72px;
	height: 88px;
	flex-shrink: 0;
	color: var(--nation-accent);
}

.nation-card__crest svg {
	width: 100%;
	height: 100%;
	filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

.nation-card__heading {
	flex: 1;
	min-width: 0;
}

.nation-card__motto {
	margin: 0 0 4px;
	color: var(--nation-accent);
	font-size: 0.56rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.nation-card__name {
	margin: 0;
	font-size: clamp(1.9rem, 3vw, 2.7rem);
	line-height: 0.95;
	text-transform: uppercase;
}

.nation-card__count {
	align-self: flex-start;
	color: var(--row-steel);
	font-size: 0.56rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
}

.nation-card__count strong {
	margin-right: 3px;
	color: var(--row-text);
	font-family: var(--row-display);
	font-size: 1.1rem;
	font-weight: 700;
}

.nation-card__desc {
	position: relative;
	z-index: 1;
	max-width: 560px;
	margin: 22px 0 24px;
	color: var(--row-muted);
	font-size: 0.9rem;
	line-height: 1.72;
}

.class-roster {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.class-chip {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid var(--row-line-soft);
	background: rgba(255, 255, 255, 0.015);
	transition:
		border-color 250ms var(--row-ease),
		background 250ms var(--row-ease);
}

.class-chip:hover {
	border-color: color-mix(in srgb, var(--nation-accent) 45%, var(--row-line));
	background: color-mix(in srgb, var(--nation-accent) 6%, transparent);
}

/* The chip's icon carries the faction rim light, the way the class artwork
   catches an edge — warm bronze for the Human, violet for the Ak'Kan. */
.nation-card--human {
	--nation-rim: var(--row-human-rim);
}

.nation-card--akhan {
	--nation-rim: var(--row-akhan-rim);
}

.class-chip__icon {
	color: var(--nation-rim);
}

.class-chip__icon {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	flex-shrink: 0;
	color: var(--nation-accent);
}

.class-chip__icon .icon {
	width: 18px;
	height: 18px;
}

/* Media-library icon (class_icon_* slot) — same footprint as the inline SVG. */
.class-chip__icon img {
	width: 18px;
	height: 18px;
	display: block;
}

.class-chip__name {
	color: var(--row-text-soft);
	font-family: var(--row-display);
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* ==========================================================================
   Nations / lore panels
   ========================================================================== */

.nations-panels {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: var(--row-line);
	border: 1px solid var(--row-line);
}

.nation-panel {
	--nation: var(--row-gold);
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 600px;
	padding: clamp(2rem, 4vw, 3.5rem);
	background:
		radial-gradient(900px 420px at 50% 108%, color-mix(in srgb, var(--nation) 26%, transparent), transparent 64%),
		linear-gradient(180deg, #121519 0%, #0b0d10 100%);
	overflow: hidden;
}

.nation-panel::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--nation), transparent);
	opacity: 0.7;
}

.nation-panel__crest {
	height: 170px;
	margin-bottom: 26px;
	color: var(--nation);
	transition: transform 400ms var(--row-ease);
}

.nation-panel__crest svg {
	height: 100%;
	width: auto;
	filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.4));
}

.nation-panel:hover .nation-panel__crest {
	transform: translateY(-6px);
}

.nation-panel__motto {
	margin: 0 0 8px;
	color: var(--row-gold);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.nation-panel__name {
	margin: 0 0 18px;
	font-size: clamp(2.1rem, 3.7vw, 3.4rem);
	line-height: 0.95;
	text-transform: uppercase;
}

.nation-panel__desc {
	max-width: 520px;
	margin: 0;
	color: var(--row-muted);
	font-size: 0.95rem;
	line-height: 1.75;
}

.nation-panel__traits {
	display: grid;
	gap: 10px;
	margin: auto 0 0;
	padding: 26px 0 0;
	list-style: none;
}

.nation-panel__traits li {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--row-text-soft);
	font-size: 0.78rem;
	letter-spacing: 0.03em;
}

.nation-panel__traits .icon {
	width: 16px;
	height: 16px;
	color: var(--nation);
}

/* ==========================================================================
   Features
   ========================================================================== */

.features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--row-line);
	border: 1px solid var(--row-line);
}

.feature-card {
	padding: clamp(1.6rem, 3vw, 2.2rem);
	background: var(--row-surface);
	transition: background 250ms var(--row-ease);
}

.feature-card:hover {
	background: var(--row-surface-2);
}

.feature-card__icon {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	margin-bottom: 24px;
	border: 1px solid var(--row-line-gold);
	color: var(--row-gold);
	transition: color 250ms var(--row-ease), border-color 250ms var(--row-ease);
}

.feature-card:hover .feature-card__icon {
	color: var(--row-ember);
	border-color: rgba(224, 86, 47, 0.4);
}

.feature-card__icon .icon {
	width: 22px;
	height: 22px;
}

.feature-card__title {
	margin-bottom: 9px;
	font-size: 1.18rem;
	text-transform: uppercase;
}

.feature-card__desc {
	margin: 0;
	color: var(--row-muted);
	font-size: 0.88rem;
	line-height: 1.7;
}

/* ==========================================================================
   Beta band
   ========================================================================== */

.beta-band {
	position: relative;
	padding: clamp(4rem, 8vw, 7rem) 0;
	border-top: 1px solid var(--row-line);
	border-bottom: 1px solid var(--row-line);
	background:
		radial-gradient(900px 500px at 15% 40%, rgba(224, 86, 47, 0.16), transparent 62%),
		radial-gradient(700px 400px at 90% 80%, rgba(201, 163, 91, 0.08), transparent 60%),
		#0f1013;
	overflow: hidden;
}

.beta-band::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--row-img-hero-art, url("../img/hero-art.svg"));
	background-size: cover;
	background-position: 70% 45%;
	opacity: 0.16;
}

.beta-band__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: clamp(2.5rem, 6vw, 6rem);
	align-items: center;
}

.beta-band__title {
	margin: 0 0 18px;
	font-size: clamp(2.4rem, 5vw, 4.5rem);
	line-height: 0.94;
	text-transform: uppercase;
}

.beta-band__title em {
	color: var(--row-ember-bright);
	font-style: normal;
}

.beta-band__desc {
	max-width: 540px;
	margin: 0 0 28px;
	color: var(--row-text-soft);
	font-size: 1rem;
	line-height: 1.75;
}

.beta-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.beta-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid rgba(237, 228, 211, 0.14);
}

.beta-step {
	display: grid;
	grid-template-columns: 52px 1fr;
	gap: 18px;
	padding: 20px 0;
	border-bottom: 1px solid rgba(237, 228, 211, 0.12);
}

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

.beta-step__title {
	margin: 0 0 5px;
	font-size: 1.05rem;
	text-transform: uppercase;
}

.beta-step__desc {
	margin: 0;
	color: var(--row-steel);
	font-size: 0.85rem;
	line-height: 1.6;
}

/* ==========================================================================
   News
   ========================================================================== */

.news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.news-card {
	display: flex;
	flex-direction: column;
	background: var(--row-surface);
	border: 1px solid var(--row-line);
	overflow: hidden;
	transition: transform 300ms var(--row-ease), border-color 300ms var(--row-ease);
}

.news-card:hover {
	transform: translateY(-5px);
	border-color: var(--row-line-gold);
}

.news-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	background:
		radial-gradient(circle at 50% 40%, rgba(224, 86, 47, 0.16), transparent 60%),
		#101216;
	overflow: hidden;
}

.news-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms var(--row-ease);
}

.news-card:hover .news-card__media img {
	transform: scale(1.04);
}

.news-card__placeholder {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	color: rgba(201, 163, 91, 0.45);
}

.news-card__placeholder .icon {
	width: 48px;
	height: 48px;
}

.news-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 24px;
}

.news-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
	color: var(--row-steel);
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.news-card__title {
	margin: 0 0 12px;
	font-size: 1.25rem;
	line-height: 1.2;
	text-transform: uppercase;
}

.news-card__title a {
	color: var(--row-text);
}

.news-card__title a:hover {
	color: var(--row-gold);
}

.news-card__excerpt {
	margin: 0 0 22px;
	color: var(--row-muted);
	font-size: 0.87rem;
	line-height: 1.65;
}

.news-card__body .text-link {
	margin-top: auto;
}

/* ==========================================================================
   Community / final CTA
   ========================================================================== */

.community {
	position: relative;
	padding: clamp(3rem, 6vw, 5rem);
	border: 1px solid var(--row-line);
	background:
		radial-gradient(700px 360px at 50% 0%, rgba(201, 163, 91, 0.1), transparent 65%),
		var(--row-surface);
	text-align: center;
	overflow: hidden;
}

.community__title {
	max-width: 800px;
	margin: 0 auto 18px;
	font-size: clamp(2rem, 4vw, 3.4rem);
	text-transform: uppercase;
}

.community__desc {
	max-width: 640px;
	margin: 0 auto 28px;
	color: var(--row-muted);
}

.community__actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
}

.final-cta {
	position: relative;
	padding: clamp(5rem, 11vw, 9rem) 0;
	background-image: var(--row-img-hero-art, url("../img/hero-art.svg"));
	background-size: cover;
	background-position: center 40%;
	text-align: center;
	overflow: hidden;
}

.final-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(700px 420px at 50% 50%, rgba(11, 12, 14, 0.4), rgba(11, 12, 14, 0.94) 72%),
		linear-gradient(180deg, var(--row-bg), transparent 30%, transparent 70%, var(--row-bg));
}

.final-cta__inner {
	position: relative;
	z-index: 1;
}

.final-cta__title {
	max-width: 860px;
	margin: 0 auto 18px;
	font-size: clamp(2.6rem, 6vw, 5.5rem);
	line-height: 0.92;
	text-transform: uppercase;
}

.final-cta__title em {
	color: var(--row-gold);
	font-style: normal;
}

.final-cta__desc {
	max-width: 600px;
	margin: 0 auto 30px;
	color: var(--row-text-soft);
}

.final-cta__actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	position: relative;
	padding: 88px 0 0;
	background:
		radial-gradient(900px 400px at 50% 0%, rgba(201, 163, 91, 0.06), transparent 60%),
		var(--row-bg-deep);
	border-top: 1px solid rgba(237, 228, 211, 0.08);
	overflow: hidden;
}

.site-footer::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent 5%, rgba(201, 163, 91, 0.45) 50%, transparent 95%);
	pointer-events: none;
}

.site-footer::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(600px 300px at 80% 20%, rgba(224, 86, 47, 0.04), transparent 60%);
	pointer-events: none;
}

.footer-grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.7fr 1fr 1fr 1fr;
	gap: 56px;
	padding-bottom: 64px;
}

.footer-brand {
	position: relative;
}

.footer-brand__desc {
	max-width: 360px;
	margin: 20px 0 0;
	color: var(--row-muted);
	font-family: var(--row-body);
	font-size: 0.9rem;
	font-weight: 400;
	line-height: 1.75;
	letter-spacing: 0.01em;
}

.footer-brand .text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--row-gold);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	transition: color 200ms var(--row-ease), transform 200ms var(--row-ease);
}

.footer-brand .text-link:hover {
	color: var(--row-gold-bright);
	transform: translateX(2px);
}

.footer-brand .text-link .icon {
	transition: transform 200ms var(--row-ease);
}

.footer-brand .text-link:hover .icon {
	transform: translateX(3px);
}

.footer-col__title {
	margin: 0 0 20px;
	color: var(--row-gold);
	font-family: var(--row-display);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	display: inline-block;
	position: relative;
	padding-bottom: 12px;
}

.footer-col__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 28px;
	height: 1px;
	background: linear-gradient(90deg, var(--row-gold), transparent);
}

.footer-col ul {
	display: grid;
	gap: 11px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-col a {
	color: var(--row-steel);
	font-family: var(--row-body);
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	display: inline-block;
	position: relative;
	transition: color 200ms var(--row-ease), transform 200ms var(--row-ease);
}

.footer-col a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 0;
	height: 1px;
	background: var(--row-gold);
	transition: width 240ms var(--row-ease);
}

.footer-col a:hover {
	color: var(--row-gold);
	transform: translateX(4px);
}

.footer-col a:hover::after {
	width: 100%;
}

.footer-bottom {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px 0 28px;
	border-top: 1px solid rgba(237, 228, 211, 0.08);
	color: #6f7883;
	font-family: var(--row-body);
	font-size: 0.74rem;
	line-height: 1.6;
	letter-spacing: 0.02em;
}

.footer-bottom__note {
	max-width: 820px;
	margin: 0;
}

.rating-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 48px;
	border: 1px solid color-mix(in srgb, var(--row-gold) 30%, var(--row-line));
	color: var(--row-text);
	font-family: var(--row-display);
	font-size: 0.9rem;
	flex-shrink: 0;
	border-radius: 4px;
	background: rgba(201, 163, 91, 0.04);
	box-shadow: 0 0 18px rgba(201, 163, 91, 0.08);
	transition: border-color 200ms var(--row-ease), box-shadow 200ms var(--row-ease);
}

.rating-box:hover {
	border-color: color-mix(in srgb, var(--row-gold) 60%, var(--row-line));
	box-shadow: 0 0 24px rgba(201, 163, 91, 0.18);
}

/* ==========================================================================
   Page / post / archive
   ========================================================================== */

.page-hero {
	position: relative;
	padding: calc(var(--row-header) + 5rem) 0 4rem;
	background:
		radial-gradient(900px 420px at 20% 0%, rgba(224, 86, 47, 0.1), transparent 65%),
		var(--row-bg);
	border-bottom: 1px solid var(--row-line);
}

.page-hero__eyebrow {
	margin: 0 0 14px;
	color: var(--row-gold);
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.page-hero h1 {
	margin: 0;
	font-size: clamp(2.5rem, 6vw, 5rem);
	text-transform: uppercase;
}

.page-hero__desc {
	max-width: 720px;
	margin: 20px 0 0;
	color: var(--row-muted);
}

.page-section {
	padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem);
}

.page-content {
	max-width: 780px;
	color: var(--row-text-soft);
}

.page-content > *:first-child {
	margin-top: 0;
}

.page-content h2,
.page-content h3 {
	margin-top: 2.2em;
	color: var(--row-text);
}

.page-content h2 {
	font-size: 2rem;
}

.page-content h3 {
	font-size: 1.4rem;
}

.page-content p,
.page-content li {
	line-height: 1.8;
}

.page-content a {
	color: var(--row-gold);
	text-decoration: underline;
	text-decoration-color: rgba(201, 163, 91, 0.35);
	text-underline-offset: 3px;
}

.page-content a:hover {
	color: var(--row-ember-bright);
}

.page-content blockquote {
	margin: 2em 0;
	padding: 24px 28px;
	border-left: 2px solid var(--row-ember);
	background: var(--row-surface);
	color: var(--row-text);
}

.page-content code {
	padding: 2px 6px;
	background: var(--row-surface-2);
	color: var(--row-gold-soft);
	font-size: 0.9em;
}

.page-content img {
	height: auto;
	margin: 1.5em 0;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 22px;
	margin-top: 18px;
	color: var(--row-steel);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.post-featured {
	margin: 0 0 2.5rem;
	border: 1px solid var(--row-line);
}

.post-featured img {
	width: 100%;
}

.archive-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--row-line);
	color: var(--row-steel);
	font-size: 0.8rem;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	border-color: var(--row-gold);
	color: var(--row-gold);
}

.empty-state {
	padding: 64px 24px;
	border: 1px solid var(--row-line);
	background: var(--row-surface);
	text-align: center;
}

.empty-state h2 {
	margin-bottom: 12px;
	text-transform: uppercase;
}

.empty-state p {
	color: var(--row-muted);
}

.error-404 {
	min-height: 80svh;
	display: grid;
	place-items: center;
	padding: calc(var(--row-header) + 4rem) 0 4rem;
	text-align: center;
}

.error-404__code {
	margin: 0;
	color: rgba(201, 163, 91, 0.22);
	font-family: var(--row-display);
	font-size: clamp(8rem, 24vw, 20rem);
	font-weight: 700;
	line-height: 0.8;
}

.error-404 h1 {
	margin-top: -0.2em;
	font-size: clamp(1.8rem, 4vw, 3rem);
	text-transform: uppercase;
}

.error-404 p {
	max-width: 520px;
	margin: 0 auto 28px;
	color: var(--row-muted);
}

/* ==========================================================================
   WordPress basics
   ========================================================================== */

.alignwide {
	width: min(calc(100% + 8rem), 1280px);
	margin-inline: auto;
}

.alignfull {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	max-width: none;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	color: var(--row-steel);
	font-size: 0.8rem;
}

.screen-reader-shortcut:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 100000;
	padding: 12px 18px;
	background: var(--row-gold);
	color: var(--row-bg);
}

/* Search form */
.search-form {
	display: flex;
	gap: 8px;
	max-width: 520px;
}

.search-form label {
	flex: 1;
	margin: 0;
}

.search-form .search-field {
	width: 100%;
	min-height: 50px;
	padding: 0.75rem 1rem;
	border: 1px solid var(--row-line);
	border-radius: var(--row-radius);
	background: var(--row-surface);
	color: var(--row-text);
}

.search-form .search-field:focus {
	outline: none;
	border-color: var(--row-gold);
	box-shadow: 0 0 0 3px rgba(201, 163, 91, 0.12);
}

.search-form .search-submit {
	min-height: 50px;
	padding: 0 1.4rem;
	border: 1px solid var(--row-ember);
	border-radius: var(--row-radius);
	background: var(--row-ember);
	color: var(--row-bg-deep);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.search-form .search-submit:hover {
	background: var(--row-ember-bright);
}

/* Welcome bar */
.welcome-bar {
	padding: calc(var(--row-header) + 18px) 0 0;
	background: var(--row-bg);
}

.welcome-bar__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border: 1px solid rgba(92, 154, 107, 0.35);
	background: rgba(92, 154, 107, 0.08);
	color: #b6d8bf;
	font-size: 0.84rem;
}

.welcome-bar__inner p {
	margin: 0;
}

.welcome-bar__inner a {
	margin-left: 6px;
	color: var(--row-gold);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.welcome-bar__icon {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	flex-shrink: 0;
	color: var(--row-success);
}

.welcome-bar__icon .icon {
	width: 18px;
	height: 18px;
}

.has-welcome .hero {
	padding-top: 4.5rem;
}

/* Post navigation */
.post-navigation {
	margin-top: 48px;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: var(--row-line);
	border: 1px solid var(--row-line);
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	background: var(--row-surface);
}

.post-navigation a {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 100%;
	padding: 22px;
	color: var(--row-text);
}

.post-navigation a:hover {
	background: var(--row-surface-2);
	color: var(--row-gold);
}

.post-navigation .nav-next {
	text-align: right;
}

.post-nav__label {
	color: var(--row-steel);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.post-nav__title {
	font-family: var(--row-display);
	font-size: 1rem;
	line-height: 1.25;
}

.page-links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 28px;
	color: var(--row-steel);
	font-size: 0.8rem;
}

.page-links a,
.page-links > span {
	display: inline-grid;
	place-items: center;
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	border: 1px solid var(--row-line);
}

.page-links a:hover {
	border-color: var(--row-gold);
	color: var(--row-gold);
}

/* ==========================================================================
   Reveal / motion
   ========================================================================== */

.js .reveal {
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 600ms var(--row-ease),
		transform 600ms var(--row-ease);
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
	.site-nav,
	.site-nav ul {
		gap: 20px;
	}
	.site-nav a {
		font-size: 0.66rem;
	}
	.footer-grid {
		grid-template-columns: 1.4fr 1fr 1fr;
	}
	.footer-col:last-child {
		grid-column: 2;
	}
}

@media (max-width: 1024px) {
	:root {
		--row-header: 74px;
	}
	.header-inner {
		width: min(calc(100% - 2rem), 1400px);
	}
	.site-nav {
		gap: 16px;
	}
	.server-pill {
		display: none;
	}
	.hero__title {
		font-size: clamp(3.4rem, 9vw, 6.5rem);
	}
	.nations-panels {
		grid-template-columns: 1fr;
	}
	.nation-panel {
		min-height: 500px;
	}
	.beta-band__inner {
		grid-template-columns: 1fr;
	}
	.features-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.news-grid,
	.archive-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.footer-grid {
		grid-template-columns: 1.5fr 1fr 1fr;
	}
}

@media (max-width: 900px) {
	.site-nav {
		position: fixed;
		inset: 0;
		z-index: 120;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 28px;
		padding: calc(var(--row-header) + 2rem) 2rem 2.5rem;
		background:
			radial-gradient(700px 400px at 90% 10%, rgba(224, 86, 47, 0.12), transparent 60%),
			#0b0c0e;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 300ms var(--row-ease), visibility 300ms;
	}
	.site-nav ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
	}
	.site-nav a {
		font-family: var(--row-display);
		font-size: 1.8rem;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}
	.site-nav a::after {
		bottom: -2px;
	}
	.site-nav .header-actions {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		gap: 12px;
		margin-top: 10px;
	}
	.site-nav .header-actions .btn,
	.site-nav .header-signin {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 46px;
		padding: 0.7rem 1.15rem;
		border: 1px solid var(--row-line);
		font-family: var(--row-body);
		font-size: 0.72rem;
		font-weight: 600;
		letter-spacing: 0.12em;
		text-transform: uppercase;
	}
	.site-nav .header-actions .btn {
		border-color: transparent;
	}
	.site-nav .header-signin {
		color: var(--row-text-soft);
		background: rgba(255, 255, 255, 0.015);
	}
	.site-nav .header-signin:hover {
		color: var(--row-gold);
		border-color: color-mix(in srgb, var(--row-gold) 40%, var(--row-line));
	}
	.menu-open .site-nav {
		transform: translateX(0);
		visibility: visible;
	}
	.nav-toggle {
		display: block;
	}
	.header-actions .server-pill {
		display: none;
	}
	.hero {
		min-height: 92svh;
		padding-top: calc(var(--row-header) + 3rem);
		padding-bottom: 7rem;
	}
	.hero::before {
		background-position: 62% center;
	}
	.hero::after {
		background:
			linear-gradient(90deg, rgba(7, 8, 10, 0.92) 0%, rgba(7, 8, 10, 0.55) 60%, rgba(7, 8, 10, 0.2) 100%),
			linear-gradient(180deg, rgba(7, 8, 10, 0.5) 0%, transparent 30%, var(--row-bg) 100%);
	}
	.hero__season-mark {
		display: none;
	}
	.server-strip__inner {
		grid-template-columns: repeat(2, 1fr);
	}
	.server-strip__item:nth-child(2) {
		border-right: 0;
	}
	.server-strip__item:nth-child(-n + 2) {
		border-bottom: 1px solid var(--row-line);
	}
	.pillars {
		grid-template-columns: 1fr;
	}
	.pillar {
		min-height: 0;
	}
	.pillar__top {
		margin-bottom: 26px;
	}
	.nations-grid {
		grid-template-columns: 1fr;
	}
	.footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 36px;
	}
	.footer-col:last-child {
		grid-column: auto;
	}
}

@media (max-width: 640px) {
	.container {
		width: min(calc(100% - 2rem), var(--row-max));
	}
	.header-inner {
		width: min(calc(100% - 1.5rem), 1400px);
	}
	.brand__mark {
		width: calc(var(--row-brand-w, 40px) * 0.85);
		height: calc(var(--row-brand-h, 40px) * 0.85);
	}
	.brand__name {
		font-size: 0.9rem;
	}
	.brand__sub {
		font-size: 0.52rem;
	}
	.hero {
		min-height: 100svh;
		padding-bottom: 6.5rem;
	}
	.hero__eyebrow {
		gap: 10px;
	}
	.hero__title {
		font-size: clamp(3rem, 15vw, 4.8rem);
	}
	.hero__title-sub {
		letter-spacing: 0.3em;
	}
	.hero__lede {
		font-size: 1rem;
	}
	.hero__actions {
		flex-direction: column;
		align-items: stretch;
	}
	.hero__actions .btn {
		width: 100%;
	}
	.hero__meta {
		gap: 8px 16px;
		font-size: 0.6rem;
	}
	.server-strip {
		margin-top: -2.4rem;
	}
	.server-strip__item {
		min-height: 76px;
		padding: 14px 16px;
		gap: 10px;
	}
	.server-strip__icon {
		width: 30px;
		height: 30px;
	}
	.server-strip__value {
		font-size: 0.86rem;
	}
	.section-title {
		font-size: clamp(2rem, 9vw, 2.8rem);
	}
	.section-desc {
		font-size: 0.95rem;
	}
	.section-foot {
		align-items: flex-start;
		flex-direction: column;
	}
	.nations-grid {
		grid-template-columns: 1fr;
	}
	.nation-card {
		padding: 1.4rem;
	}
	.class-roster {
		grid-template-columns: 1fr 1fr;
	}
	.nation-panel {
		min-height: 0;
		padding: 2rem 1.4rem;
	}
	.nation-panel__crest {
		height: 130px;
	}
	.features-grid,
	.news-grid,
	.archive-grid {
		grid-template-columns: 1fr;
	}
	.beta-step {
		grid-template-columns: 40px 1fr;
	}
	.community {
		padding: 2.5rem 1.2rem;
	}
	.final-cta__actions,
	.community__actions {
		flex-direction: column;
		align-items: stretch;
	}
	.footer-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.footer-bottom {
		align-items: flex-start;
		flex-direction: column;
	}
	.footer-bottom__note {
		max-width: none;
	}
	.page-hero {
		padding-top: calc(var(--row-header) + 3rem);
	}
	.post-meta {
		gap: 8px 14px;
	}
}

@media (max-width: 380px) {
	.class-roster {
		grid-template-columns: 1fr;
	}
	.hero__title {
		font-size: 2.75rem;
	}
	.beta-pill {
		font-size: 0.58rem;
	}
	.server-strip__label {
		font-size: 0.52rem;
	}
}

/* ==========================================================================
   Class portraits — the fourteen paths
   Each class chip carries its own key art so the roster reads as a war
   gallery rather than a word list.
   ========================================================================== */

.class-chip {
	position: relative;
	overflow: hidden;
}

.class-chip::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--class-art);
	background-size: cover;
	background-position: center 22%;
	opacity: 0;
	transition: opacity 320ms var(--row-ease);
	mix-blend-mode: luminosity;
}

.class-chip:hover::before,
.class-chip:focus-within::before {
	opacity: 0.5;
}

.class-chip > * {
	position: relative;
	z-index: 1;
}

.class-chip__icon {
	transition:
		color 250ms var(--row-ease),
		transform 320ms var(--row-ease);
}

.class-chip:hover .class-chip__icon {
	transform: scale(1.12);
}

.class-chip__name {
	transition: color 250ms var(--row-ease);
}

.class-chip:hover .class-chip__name {
	color: var(--row-text);
}

/* Per-class art, keyed by the slug the roster data carries. */
.class-chip[data-class="gunner"] { --class-art: url("../img/class-akhan-gunner.svg"); }
.class-chip[data-class="attacker"] { --class-art: url("../img/class-akhan-attacker.svg"); }
.class-chip[data-class="templar"] { --class-art: url("../img/class-akhan-templar.svg"); }
.class-chip[data-class="runeoff"] { --class-art: url("../img/class-akhan-runeoff.svg"); }
.class-chip[data-class="lifeoff"] { --class-art: url("../img/class-akhan-lifeoff.svg"); }
.class-chip[data-class="shadowoff"] { --class-art: url("../img/class-akhan-shadowoff.svg"); }
.class-chip[data-class="warrior"] { --class-art: url("../img/class-human-warrior.svg"); }
.class-chip[data-class="defender"] { --class-art: url("../img/class-human-defender.svg"); }
.class-chip[data-class="archer"] { --class-art: url("../img/class-human-archer.svg"); }
.class-chip[data-class="assassin"] { --class-art: url("../img/class-human-assassin.svg"); }
.class-chip[data-class="sorcerer"] { --class-art: url("../img/class-human-sorcerer.svg"); }
.class-chip[data-class="enchanter"] { --class-art: url("../img/class-human-enchanter.svg"); }
.class-chip[data-class="priest"] { --class-art: url("../img/class-human-priest.svg"); }
.class-chip[data-class="cleric"] { --class-art: url("../img/class-human-cleric.svg"); }

/* The portrait sits behind the chip, so the chip needs a scrim to stay legible. */
.class-chip::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(11, 12, 14, 0.9) 20%, rgba(11, 12, 14, 0.55) 100%);
	opacity: 0;
	transition: opacity 320ms var(--row-ease);
	pointer-events: none;
}

.class-chip:hover::after {
	opacity: 1;
}

/* ==========================================================================
   Mobile hero — the key art re-crops to a portrait canvas on small screens
   ========================================================================== */

@media (max-width: 767px) {
	.hero::before {
		background-image: var(--row-img-hero-mobile, url("../img/hero-mobile.svg"));
		background-position: center 32%;
		transform: none;
	}
}

/* ==========================================================================
   Social share card
   ========================================================================== */

.row-og-image {
	display: block;
	width: 100%;
	height: auto;
}

/* ==========================================================================
   Classes page — the fourteen paths
   ========================================================================== */

.classes-page {
	background: var(--row-bg);
}

.page-hero--art {
	position: relative;
	padding: calc(var(--row-header) + 4rem) 0 4.5rem;
	overflow: hidden;
	isolation: isolate;
}

.page-hero--art .page-hero__art {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: var(--row-img-hero-keyart, url("../img/hero-keyart.svg"));
	background-size: cover;
	background-position: center 28%;
	opacity: 0.4;
}

.page-hero--art::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(11, 12, 14, 0.94) 0%, rgba(11, 12, 14, 0.72) 45%, rgba(11, 12, 14, 0.95) 100%),
		linear-gradient(90deg, rgba(11, 12, 14, 0.9) 0%, rgba(11, 12, 14, 0.3) 60%, rgba(11, 12, 14, 0) 100%);
}

.page-title {
	margin: 0 0 1rem;
	font-family: var(--row-display);
	font-size: clamp(2.6rem, 6.5vw, 4.75rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--row-text);
}

.page-lede {
	max-width: 46rem;
	margin: 0 0 2rem;
	color: var(--row-muted);
	font-size: clamp(1rem, 1.6vw, 1.15rem);
	line-height: 1.7;
}

.page-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* --- Faction sections --- */

.class-section {
	position: relative;
}

.class-section--human {
	background: var(--row-bg);
}

.class-section__head {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 2.5rem;
}

.class-section__mark {
	width: 4px;
	align-self: stretch;
	min-height: 76px;
	flex-shrink: 0;
	background: var(--row-akhan);
}

.class-section--human .class-section__mark {
	background: var(--row-human);
}

.class-section__motto {
	margin: 0 0 6px;
	color: var(--row-muted);
	font-size: 0.95rem;
	font-style: italic;
}

.class-section .section-title {
	margin: 0 0 8px;
}

.class-section .section-desc {
	margin: 0;
	max-width: 44rem;
}

/* --- Gallery --- */

.class-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
	gap: 22px;
}

.class-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--row-surface);
	border: 1px solid var(--row-line);
	transition:
		transform 320ms var(--row-ease),
		border-color 320ms var(--row-ease),
		box-shadow 320ms var(--row-ease);
}

.class-card:hover,
.class-card:focus-within {
	transform: translateY(-5px);
	border-color: color-mix(in srgb, var(--class-rim) 55%, var(--row-line));
	box-shadow: 0 22px 56px rgba(0, 0, 0, 0.6);
}

.class-card__art {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--row-bg-deep);
}

.class-card__art img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms var(--row-ease);
}

.class-card:hover .class-card__art img,
.class-card:focus-within .class-card__art img {
	transform: scale(1.055);
}

.class-card__art::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 12, 14, 0) 52%, rgba(11, 12, 14, 0.85) 100%);
	pointer-events: none;
}

.class-card__diff {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 1;
	padding: 5px 9px;
	background: rgba(7, 8, 10, 0.86);
	border: 1px solid currentColor;
	font-family: var(--row-body);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.class-card__diff--easy {
	color: var(--row-success);
}

.class-card__diff--medium {
	color: var(--row-gold-hot);
}

.class-card__diff--hard {
	color: var(--row-error);
}

.class-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 20px 24px;
}

.class-card__name {
	margin: 0;
	font-family: var(--row-display);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--row-text);
}

.class-card__role {
	margin: 0;
	color: var(--class-rim);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.class-card__stats {
	display: flex;
	gap: 8px;
	margin: 2px 0 4px;
	padding: 0;
	list-style: none;
}

.class-card__stats li {
	padding: 3px 8px;
	border: 1px solid var(--row-line);
	background: rgba(255, 255, 255, 0.02);
	color: var(--row-muted);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
}

.class-card__lore {
	margin: 0;
	color: var(--row-muted);
	font-size: 0.92rem;
	line-height: 1.65;
}

.class-card__body::before {
	content: "";
	width: 44px;
	height: 2px;
	margin-bottom: 4px;
	background: var(--class-accent);
}

.final-cta--classes {
	background-image: var(--row-img-hero-art, url("../img/hero-art.svg"));
	background-size: cover;
	background-position: center 42%;
}

@media (max-width: 767px) {
	.class-gallery {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
		gap: 16px;
	}
	.class-section__head {
		gap: 14px;
	}
	.class-card__body {
		padding: 16px 16px 20px;
	}
	.class-card__name {
		font-size: 1.15rem;
	}
}

/* ==========================================================================
   Header refinements — keyframes
   ========================================================================== */

@keyframes row-status-pulse {
	0%, 100% { box-shadow: 0 0 0 4px rgba(92, 154, 107, 0.12); }
	50%      { box-shadow: 0 0 0 6px rgba(92, 154, 107, 0.22); }
}

/* Mobile: drop the glass pill so the full-screen overlay stays clean. */
@media (max-width: 900px) {
	.site-nav ul {
		background: transparent;
		border: none;
		padding: 0;
		backdrop-filter: none;
		box-shadow: none;
		border-radius: 0;
	}
}
