/*
	Los Santos Stories portal
	Same family as the UCP (gold #c8a45c / #e6c88a, white titles, dark base) with the logo's orange
	as the hot end of the headline gradient. Display type: Bebas Neue; headings: Outfit; text: Inter.
*/

:root {
	--bg: #0b0b0d;
	--bg-2: #101013;
	--card: #16161a;
	--card-2: #1c1c21;
	--line: rgba(255, 255, 255, .07);
	--line-2: rgba(255, 255, 255, .12);

	--gold: #c8a45c;
	--gold-hi: #e6c88a;
	--gold-lo: #8f7443;
	--amber: #f2a93b;
	--orange: #f7931e;
	--gold-soft: rgba(200, 164, 92, .12);
	--gold-line: rgba(200, 164, 92, .35);
	--grad: linear-gradient(95deg, #f3dcaa 0%, #e6c88a 22%, #f2a93b 62%, #f7931e 100%);
	--grad-btn: linear-gradient(95deg, #e6c88a 0%, #f2a93b 55%, #f7931e 100%);

	--text: #f5f5f6;
	--text-2: #c6c8ce;
	--muted: #8a8d96;
	--green: #4ade80;
	--red: #ef4444;

	--radius: 14px;
	--wrap: 1240px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Outfit", "Inter", system-ui, sans-serif;
	--font-display: "Bebas Neue", "Oswald", Impact, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
	background: var(--bg);
	color: var(--text-2);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-hi); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
h1, h2, h3, h4 { color: var(--text); font-family: var(--font-head); margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
::selection { background: var(--amber); color: #111; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ------------------------------------------------------------ type helpers */
.eyebrow {
	display: inline-flex; align-items: center; gap: 14px;
	color: var(--amber); font-size: 13px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--grad); border-radius: 2px; }
.eyebrow.center::after { content: ""; width: 34px; height: 2px; background: var(--grad); border-radius: 2px; }

.display {
	font-family: var(--font-display); font-weight: 400; letter-spacing: .5px; line-height: .95;
	font-size: clamp(40px, 5.2vw, 68px); color: var(--text); text-transform: uppercase;
}
.display em, .grad {
	font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 18px; color: var(--text-2); max-width: 640px; }
.muted { color: var(--muted); }

.section { padding: 110px 0; position: relative; }
.section-tight { padding: 70px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 52px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin: 0 auto; }
.section-head .display { margin: 16px 0 18px; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }

/* ------------------------------------------------------------ buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	height: 52px; padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer;
	font: 700 14px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
	transition: transform .2s, box-shadow .25s, background .25s, color .2s, border-color .2s;
}
.btn i { font-size: 13px; transition: transform .2s; }
.btn:hover i.fa-arrow-right { transform: translateX(4px); }
.btn-gold { background: var(--grad-btn); color: #17120a; box-shadow: 0 10px 30px -10px rgba(242, 169, 59, .55); }
.btn-gold:hover { color: #000; transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(242, 169, 59, .75); }
.btn-ghost { background: rgba(255, 255, 255, .03); color: var(--text); border: 1px solid var(--line-2); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 15px; }
.btn-ghost:hover { color: #fff; border-color: var(--gold-line); background: var(--gold-soft); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 12px; }
.btn-lg { height: 58px; padding: 0 34px; }

/* ------------------------------------------------------------ top bar */
.topbar {
	position: fixed; inset: 0 0 auto 0; z-index: 50; height: 86px;
	transition: background .3s, height .3s, border-color .3s, backdrop-filter .3s;
	border-bottom: 1px solid transparent;
}
.topbar.scrolled, .page-inner .topbar { background: rgba(11, 11, 13, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); height: 72px; }
.topbar-in { height: 100%; display: flex; align-items: center; gap: 30px; max-width: 1440px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-family: var(--font-display); font-weight: 400; font-size: 23px; letter-spacing: 1.5px; color: #fff; }
.brand i { font-style: normal; font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .38em; text-transform: uppercase; color: var(--amber); }

.nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav a {
	position: relative; padding: 10px 14px; white-space: nowrap; color: var(--text-2);
	font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--grad); transform: scaleX(0); transition: transform .25s; border-radius: 2px; }
.nav a:hover, .nav a.active { color: #fff; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav .nav-ext i { font-size: 10px; margin-left: 3px; opacity: .6; }
.nav-mobile-actions { display: none; }

.topbar-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.link-signin { color: var(--text); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.live-pill {
	display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px;
	border: 1px solid var(--line-2); background: rgba(0, 0, 0, .35); font-size: 13px; color: var(--muted);
}
.live-pill b { color: #fff; font-family: var(--font-head); }
.live-pill > i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.live-pill.is-on > i { background: var(--green); box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2s infinite; }
.live-pill.is-off > i { background: var(--red); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); } 70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------ hero */
.hero { position: relative; min-height: min(100vh, 980px); min-height: min(100svh, 980px); display: flex; align-items: center; padding: 130px 0 90px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -40px; z-index: -2; }
.hero-bg div {
	position: absolute; inset: 0; background-size: cover; background-position: center;
	filter: blur(6px) saturate(.75) brightness(.55); opacity: 0; transform: scale(1.08);
	transition: opacity 1.6s ease, transform 9s linear;
}
.hero-bg div.on { opacity: 1; transform: scale(1.0); }
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(1100px 600px at 78% 40%, rgba(242, 169, 59, .16), transparent 60%),
		radial-gradient(900px 700px at 0% 100%, rgba(200, 164, 92, .12), transparent 60%),
		linear-gradient(90deg, rgba(11, 11, 13, .97) 0%, rgba(11, 11, 13, .82) 42%, rgba(11, 11, 13, .5) 100%),
		linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero::after {   /* fine film grain */
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; max-width: 1440px; }
.hero h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: .9; margin: 26px 0 30px; letter-spacing: .5px; }
.hero h1 .l1 { display: block; font-size: clamp(34px, 4.2vw, 62px); color: #fff; }
.hero h1 .l2 { display: block; font-size: clamp(64px, 9.4vw, 148px); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 6px; }
.hero-text { font-size: 21px; line-height: 1.55; max-width: 560px; color: var(--text-2); margin-bottom: 40px; }
.hero-text b { font-family: var(--font-head); color: #fff; font-size: 26px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-live {
	display: inline-flex; align-items: center; gap: 14px; height: 62px; padding: 0 24px 0 20px;
	border: 1px solid var(--line-2); border-radius: 999px; background: rgba(11, 11, 13, .55); backdrop-filter: blur(6px);
}
.hero-live > i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.hero-live.is-on > i { background: var(--green); animation: pulse 2s infinite; }
.hero-live b { font-family: var(--font-display); font-weight: 400; font-size: 34px; color: #fff; line-height: 1; letter-spacing: 1px; }
.hero-live span { color: var(--text-2); font-size: 15px; }
.hero-live .sep { width: 1px; height: 26px; background: var(--line-2); }
.hero-live button { background: none; border: 0; color: var(--gold-hi); font: 600 15px var(--font); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; padding: 0; }
.hero-live button:hover { color: #fff; }

.hero-stack { position: relative; height: 560px; }
.shot {
	position: absolute; margin: 0; border-radius: 16px; overflow: hidden; background: #000;
	border: 1px solid rgba(255, 255, 255, .14);
	box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .85), 0 0 0 6px rgba(255, 255, 255, .02);
	transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .4s;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px;
	background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent);
	color: #fff; font: 600 13px var(--font); letter-spacing: .04em;
}
.shot figcaption b { display: block; color: var(--amber); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; margin-bottom: 2px; }
.shot.s1 { width: 78%; height: 330px; right: 0; top: 10px; transform: rotate(2.5deg); z-index: 2; }
.shot.s2 { width: 60%; height: 300px; left: 0; top: 230px; transform: rotate(-4deg); z-index: 3; }
.shot.s3 { width: 44%; height: 210px; right: 0; bottom: 0; transform: rotate(5deg); z-index: 1; }
.shot.s3 figcaption { padding-left: 34%; text-align: right; }
.hero-stack:hover .shot.s1 { transform: rotate(1deg) translate(10px, -8px); }
.hero-stack:hover .shot.s2 { transform: rotate(-2deg) translate(-10px, 6px); }
.hero-stack:hover .shot.s3 { transform: rotate(7deg) translate(8px, 10px); }
.stamp {
	position: absolute; left: 6%; top: 40px; z-index: 4; width: 128px; height: 128px; border-radius: 50%;
	display: grid; place-items: center; text-align: center;
	background: radial-gradient(circle, rgba(20, 16, 10, .95), rgba(11, 11, 13, .95)); border: 1px solid var(--gold-line);
	box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8);
}
.stamp img { width: 74px; height: 74px; }
.stamp svg { position: absolute; inset: 0; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); color: var(--muted); font-size: 20px; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* ------------------------------------------------------------ stats */
.stats { margin-top: -54px; position: relative; z-index: 3; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-2); border-radius: 20px; background: rgba(22, 22, 26, .88); backdrop-filter: blur(12px); overflow: hidden; }
.stat { padding: 30px 30px 28px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 1px; background: var(--line-2); }
.stat i { color: var(--amber); font-size: 18px; margin-bottom: 14px; display: block; }
.stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 52px; line-height: 1; color: #fff; letter-spacing: 1px; }
.stat span { color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* ------------------------------------------------------------ about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-media { position: relative; }
.about-media .frame { border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 4 / 3.2; }
.about-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-media .badge-float {
	position: absolute; right: -24px; bottom: 34px; padding: 20px 24px; border-radius: 16px;
	background: var(--card); border: 1px solid var(--gold-line); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
	display: flex; gap: 16px; align-items: center; max-width: 290px;
}
.badge-float i { width: 50px; height: 50px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--amber); font-size: 20px; }
.badge-float b { display: block; color: #fff; font-family: var(--font-head); font-size: 16px; }
.badge-float span { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; }
.about-media::before { content: ""; position: absolute; left: -26px; top: -26px; width: 140px; height: 140px; border-left: 2px solid var(--gold-line); border-top: 2px solid var(--gold-line); border-radius: 20px 0 0 0; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.pillar { display: flex; gap: 14px; }
.pillar i { color: var(--amber); font-size: 18px; margin-top: 4px; width: 22px; text-align: center; }
.pillar b { display: block; color: #fff; font-family: var(--font-head); font-size: 16px; margin-bottom: 2px; }
.pillar span { font-size: 14px; color: var(--muted); line-height: 1.5; display: block; }

/* ------------------------------------------------------------ feature tabs */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.tab {
	height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer;
	color: var(--text-2); font: 600 15px var(--font); display: inline-flex; gap: 10px; align-items: center; transition: all .2s;
}
.tab i { color: var(--muted); transition: color .2s; }
.tab:hover { border-color: var(--gold-line); color: #fff; }
.tab.active { background: var(--gold-soft); border-color: var(--gold-line); color: #fff; }
.tab.active i { color: var(--amber); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tab-intro { font-size: 18px; color: var(--text-2); margin-bottom: 26px; max-width: 720px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
	position: relative; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
	transition: transform .3s, border-color .3s, background .3s; overflow: hidden;
}
.card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--card-2); }
.card:hover::after { transform: scaleX(1); }
.card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; background: var(--gold-soft); color: var(--amber); font-size: 21px; border: 1px solid rgba(200, 164, 92, .18); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; line-height: 1.6; }

/* ------------------------------------------------------------ factions */
.faction-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.faction {
	position: relative; padding: 28px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
	min-height: 240px; display: flex; flex-direction: column; overflow: hidden; transition: transform .3s, border-color .3s;
}
.faction:hover { transform: translateY(-4px); border-color: var(--gold-line); }
.faction > i.bg { position: absolute; right: -18px; bottom: -22px; font-size: 130px; color: rgba(200, 164, 92, .06); transition: transform .5s, color .5s; }
.faction:hover > i.bg { transform: rotate(-8deg) scale(1.06); color: rgba(242, 169, 59, .1); }
.faction .tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--amber); padding: 6px 12px; border: 1px solid var(--gold-line); border-radius: 999px; margin-bottom: 18px; }
.faction h3 { font-size: 20px; margin-bottom: 10px; }
.faction p { color: var(--muted); font-size: 15px; margin: 0 0 18px; position: relative; }
.faction .meta { margin-top: auto; color: var(--text-2); font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; position: relative; }
.faction .meta i { color: var(--amber); }
.faction.wide { grid-column: span 2; background: linear-gradient(135deg, rgba(242, 169, 59, .1), var(--card) 55%); }
.roster { margin-top: 50px; }
.roster table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.roster th, .roster td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 15px; }
.roster th { color: var(--muted); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; background: rgba(255, 255, 255, .02); }
.roster td b { color: #fff; }
.roster tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------ jobs */
.jobs { display: flex; flex-wrap: wrap; gap: 12px; }
.job { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 15px; }
.job i { color: var(--amber); }

/* ------------------------------------------------------------ steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 34px 28px 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step::before {
	counter-increment: step; content: "0" counter(step);
	position: absolute; right: 22px; top: 12px; font-family: var(--font-display); font-size: 64px; line-height: 1;
	background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .3;
}
.step .ic { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-btn); color: #1a1208; font-size: 18px; margin-bottom: 22px; }
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.step a.more { font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; }
.steps-line { position: relative; }

/* ------------------------------------------------------------ news */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news {
	display: flex; flex-direction: column; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden;
	color: inherit; transition: transform .3s, border-color .3s;
}
.news:hover { transform: translateY(-4px); border-color: var(--gold-line); color: inherit; }
.news .thumb { height: 170px; position: relative; overflow: hidden; }
.news .thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.8); transition: transform .6s; }
.news:hover .thumb img { transform: scale(1.06); }
.news .thumb span { position: absolute; left: 16px; top: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(11, 11, 13, .8); border: 1px solid var(--gold-line); color: var(--amber); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.news .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.news h3 { font-size: 19px; margin-bottom: 10px; line-height: 1.3; }
.news p { color: var(--muted); font-size: 15px; flex: 1; }
.news .meta { display: flex; gap: 16px; color: var(--muted); font-size: 13px; padding-top: 16px; border-top: 1px solid var(--line); }
.news .meta i { color: var(--gold); margin-right: 5px; }
.empty { padding: 40px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }

/* ------------------------------------------------------------ gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 16px; }
.g-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; border: 1px solid var(--line); background: #000; padding: 0; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s, filter .4s; filter: saturate(.9); }
.g-item:hover img { transform: scale(1.05); filter: saturate(1.05); }
.g-item figcaption, .g-item .cap { position: absolute; inset: auto 0 0 0; padding: 50px 22px 18px; background: linear-gradient(0deg, rgba(0, 0, 0, .88), transparent); color: #fff; text-align: left; font: 600 15px var(--font); }
.g-item .cap b { display: block; color: var(--amber); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; }
.g-item:nth-child(1) { grid-column: span 7; grid-row: span 4; }
.g-item:nth-child(2) { grid-column: span 5; grid-row: span 2; }
.g-item:nth-child(3) { grid-column: span 5; grid-row: span 2; }
.g-item:nth-child(4) { grid-column: span 12; grid-row: span 3; }
.gallery.small { grid-auto-rows: 100px; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 5, 6, .94); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: 1200px; width: 100%; }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 12px; }
.lightbox figcaption { margin-top: 14px; color: var(--text-2); text-align: center; }
.lightbox button { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: #fff; cursor: pointer; font-size: 18px; }
.lightbox button:hover { border-color: var(--gold-line); color: var(--amber); }
.lb-close { right: 24px; top: 24px; }
.lb-prev { left: 24px; top: 50%; }
.lb-next { right: 24px; top: 50%; }

/* ------------------------------------------------------------ faq */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: var(--gold-line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; color: #fff; font: 600 17px var(--font-head); display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--amber); transition: transform .25s; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 26px 22px; margin: 0; color: var(--text-2); }

/* ------------------------------------------------------------ page hero (inner pages) */
.page-hero { position: relative; padding: 170px 0 80px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero .bg { position: absolute; inset: -30px; z-index: -2; background-size: cover; background-position: center; filter: blur(5px) brightness(.4) saturate(.7); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(900px 400px at 85% 30%, rgba(242, 169, 59, .16), transparent 60%), linear-gradient(90deg, rgba(11, 11, 13, .96), rgba(11, 11, 13, .65)), linear-gradient(0deg, var(--bg), transparent 40%); }
.page-hero .display { font-size: clamp(48px, 7vw, 96px); margin: 18px 0 18px; }
.crumbs { display: flex; gap: 10px; color: var(--muted); font-size: 14px; margin-top: 10px; }
.crumbs a { color: var(--text-2); }
.crumbs i { font-size: 10px; align-self: center; }

/* ------------------------------------------------------------ join page */
.join-flow { display: grid; gap: 22px; }
.join-step { display: grid; grid-template-columns: 90px 1fr auto; gap: 28px; align-items: center; padding: 30px 34px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.join-step .num { font-family: var(--font-display); font-size: 70px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.join-step h3 { font-size: 22px; margin-bottom: 8px; }
.join-step p { color: var(--muted); margin: 0; }
.join-step ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.join-step ul li::marker { color: var(--amber); }
.connect-box { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--gold-line); background: var(--card); }
.connect-box .l { padding: 40px; }
.connect-box .r { position: relative; min-height: 280px; }
.connect-box .r img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.connect-box .r::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--card), transparent 50%); z-index: 1; }
.ip-row { display: flex; gap: 12px; margin: 22px 0 14px; flex-wrap: wrap; }
.ip { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 22px; border-radius: 14px; background: #0d0d10; border: 1px solid var(--line-2); font: 600 20px ui-monospace, Consolas, monospace; color: #fff; }
.ip i { color: var(--amber); font-size: 16px; }
.req { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ------------------------------------------------------------ rules page */
.rules-layout { display: grid; grid-template-columns: 260px 1fr; gap: 50px; align-items: start; }
.rules-toc { position: sticky; top: 100px; display: grid; gap: 6px; }
.rules-toc a { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; color: var(--text-2); font-weight: 600; border: 1px solid transparent; }
.rules-toc a i { color: var(--muted); width: 18px; text-align: center; }
.rules-toc a:hover, .rules-toc a.active { background: var(--card); border-color: var(--line-2); color: #fff; }
.rules-toc a.active i { color: var(--amber); }
.rule-group { margin-bottom: 56px; scroll-margin-top: 100px; }
.rule-group h2 { display: flex; gap: 14px; align-items: center; font-size: 28px; margin-bottom: 22px; }
.rule-group h2 i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--amber); font-size: 19px; }
.rule { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 22px 24px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); margin-bottom: 12px; }
.rule .n { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--gold); }
.rule b { color: #fff; font-family: var(--font-head); font-size: 17px; display: block; margin-bottom: 4px; }
.rule p { margin: 0; color: var(--muted); font-size: 15px; }
.notice { display: flex; gap: 16px; padding: 22px 24px; border-radius: 14px; border: 1px solid var(--gold-line); background: var(--gold-soft); color: var(--text-2); margin-bottom: 40px; }
.notice i { color: var(--amber); font-size: 20px; margin-top: 3px; }

/* ------------------------------------------------------------ community */
.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.member { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.member .av { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font: 700 19px var(--font-head); color: #1a1208; background: var(--grad-btn); flex-shrink: 0; }
.member.white .av { background: linear-gradient(135deg, #f4f4f5, #a9abb2); }
.member b { display: block; color: #fff; font-family: var(--font-head); }
.member span { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.member span i { color: var(--amber); }
.links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.link-card { display: flex; flex-direction: column; gap: 10px; padding: 30px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: inherit; transition: transform .3s, border-color .3s; }
.link-card:hover { transform: translateY(-4px); border-color: var(--gold-line); color: inherit; }
.link-card .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 23px; background: var(--gold-soft); color: var(--amber); margin-bottom: 8px; }
.link-card h3 { font-size: 21px; }
.link-card p { color: var(--muted); margin: 0; font-size: 15px; flex: 1; }
.link-card .go { color: var(--gold-hi); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; display: flex; gap: 8px; align-items: center; margin-top: 8px; }

/* ------------------------------------------------------------ cta + footer */
.cta-band { position: relative; padding: 90px 0; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 300px at 15% 50%, rgba(242, 169, 59, .14), transparent 70%), radial-gradient(700px 300px at 90% 50%, rgba(200, 164, 92, .1), transparent 70%), var(--bg-2); }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta-in .display { margin: 16px 0 12px; }
.cta-in p { color: var(--muted); max-width: 560px; margin: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.footer { background: #08080a; border-top: 1px solid var(--line); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-brand p { color: var(--muted); font-size: 15px; margin: 18px 0 22px; max-width: 360px; }
.footer h4 { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px; }
.footer-grid > div > a:not(.brand) { display: block; color: var(--text-2); font-size: 15px; padding: 5px 0; }
.footer-grid > div > a:not(.brand):hover { color: #fff; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--text-2); }
.socials a:hover { color: var(--amber); border-color: var(--gold-line); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-ip { font-family: ui-monospace, Consolas, monospace; color: var(--text-2); }
.footer-ip i { color: var(--amber); margin-right: 6px; }

.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 120; padding: 14px 22px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--gold-line); color: #fff; font-weight: 600; font-size: 15px; transition: all .3s; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast i { color: var(--green); margin-right: 8px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1400px) {
	.nav a { padding: 10px 9px; letter-spacing: .08em; font-size: 12.5px; }
	.topbar-in { gap: 18px; }
	.nav a::after { left: 10px; right: 10px; }
	.link-signin { display: none; }
}
@media (max-width: 1240px) {
	.live-pill { display: none; }
}
@media (max-width: 1180px) {
	.live-pill { display: inline-flex; }
	.burger { display: flex; }
	.nav {
		position: fixed; top: 72px; left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
		padding: 20px 28px 40px; background: rgba(11, 11, 13, .98); backdrop-filter: blur(16px); overflow-y: auto;
		transform: translateX(100%); transition: transform .35s ease; visibility: hidden;
	}
	.nav.open { transform: none; visibility: visible; }
	.nav a { padding: 18px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
	.nav a::after { display: none; }
	.nav-mobile-actions { display: grid; gap: 12px; margin-top: 26px; }
	.nav-mobile-actions a { border: 0; }
	.nav-mobile-actions .btn-ghost { border: 1px solid var(--line-2); }
	.topbar { height: 72px; background: rgba(11, 11, 13, .82); backdrop-filter: blur(14px); }
	.topbar-actions .btn-gold { display: none; }
	.hero-in { grid-template-columns: 1fr; }
	.hero-stack { height: 440px; max-width: 640px; }
	.about { grid-template-columns: 1fr; gap: 60px; }
	.cards-4, .faction-grid, .steps, .staff-grid { grid-template-columns: repeat(2, 1fr); }
	.news-grid, .links-grid, .req { grid-template-columns: 1fr 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.rules-layout { grid-template-columns: 1fr; }
	.rules-toc { position: static; grid-template-columns: repeat(2, 1fr); }
	.connect-box { grid-template-columns: 1fr; }
	.connect-box .r { min-height: 220px; }
	.connect-box .r::before { background: linear-gradient(0deg, transparent, transparent); }
}
@media (max-width: 720px) {
	.wrap { padding: 0 16px; }
	.section { padding: 76px 0; }
	.hero { padding: 110px 0 70px; }
	.hero-text { font-size: 18px; }
	.hero-text b { font-size: 22px; }
	.hero-live { height: auto; padding: 14px 20px; flex-wrap: wrap; border-radius: 20px; }
	.hero-live .sep { display: none; }
	.hero-stack { height: 330px; }
	.shot.s1 { height: 200px; width: 82%; }
	.shot.s2 { height: 180px; width: 66%; top: 140px; }
	.shot.s3 { display: none; }
	.shot.s1 figcaption { display: none; }
	.stamp { width: 96px; height: 96px; top: 0; }
	.stamp img { width: 54px; height: 54px; }
	.live-pill span { display: none; }
	.stats-grid { grid-template-columns: 1fr 1fr; }
	.stat { padding: 22px 20px; }
	.stat b { font-size: 40px; }
	.stat:nth-child(3)::before { display: none; }
	.stat:nth-child(n+3) { border-top: 1px solid var(--line-2); }
	.cards-4, .cards-3, .cards-2, .faction-grid, .steps, .news-grid, .links-grid, .req, .staff-grid, .pillars { grid-template-columns: 1fr; }
	.faction.wide { grid-column: auto; }
	.about-media .badge-float { right: 12px; left: 12px; bottom: -30px; max-width: none; }
	.about-media::before { display: none; }
	.gallery { grid-auto-rows: 90px; gap: 10px; }
	.g-item:nth-child(n) { grid-column: span 12; grid-row: span 2; }
	.join-step { grid-template-columns: 1fr; gap: 12px; padding: 26px 22px; }
	.join-step .num { font-size: 54px; }
	.connect-box .l { padding: 28px 22px; }
	.rules-toc { grid-template-columns: 1fr; }
	.rule { grid-template-columns: 40px 1fr; padding: 18px; }
	.footer-grid { grid-template-columns: 1fr; }
	.btn-lg { height: 54px; padding: 0 26px; }
	.cta-actions, .cta-actions .btn { width: 100%; }
	.roster th:nth-child(3), .roster td:nth-child(3) { display: none; }
	.roster th, .roster td { padding: 14px 14px; }
	.lightbox { padding: 16px; }
	.lb-prev, .lb-next { top: auto; bottom: 24px; }
	.lb-prev { left: calc(50% - 60px); }
	.lb-next { right: calc(50% - 60px); }
}

/* grid children may shrink below their content width (long eyebrows, IP buttons) */
.hero-in > *, .about > *, .connect-box > *, .rules-layout > * { min-width: 0; }
@media (max-width: 720px) {
	.eyebrow { letter-spacing: .2em; font-size: 12px; gap: 10px; }
	.eyebrow::before { width: 24px; }
	.hero-live button { font-size: 14px; }
	.brand b { font-size: 20px; }
}
