/* ==========================================================================
   Warframe Businessmen – main stylesheet (v2.0, 2026)
   ========================================================================== */

:root {
	--bg: #0b0d12;
	--bg-alt: #10131a;
	--surface: #161a23;
	--surface-2: #1d2230;
	--border: rgba(255, 255, 255, .08);
	--text: #e8eaef;
	--muted: #9aa2b1;
	--accent: #ea8014;
	--accent-strong: #ff9a2e;
	--accent-soft: rgba(234, 128, 20, .14);
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 10px 30px rgba(0, 0, 0, .35);
	--header-h: 72px;
	--container: 1180px;
	--font-head: "Rajdhani", "Segoe UI", sans-serif;
	--font-body: "Inter", "Segoe UI", Roboto, sans-serif;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: clamp(15px, .95rem + .15vw, 17px);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-strong); }
h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 .6em;
	letter-spacing: .01em;
}
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 16px;
}
@media (min-width: 600px) { .container { padding-inline: 24px; } }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .75em 1.5em;
	border-radius: 999px;
	border: 1px solid transparent;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s;
}
.btn svg { width: 1.2em; height: 1.2em; flex-shrink: 0; }
.btn--primary {
	background: var(--accent);
	color: #111;
	box-shadow: 0 6px 20px rgba(234, 128, 20, .35);
}
.btn--primary:hover { background: var(--accent-strong); color: #111; transform: translateY(-2px); }
.btn--ghost { border-color: var(--border); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { font-size: 1.2rem; padding: .9em 2em; }

/* ---------- Header ---------- */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	height: var(--header-h);
	transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled,
.site-header.is-open {
	background: rgba(11, 13, 18, .85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 1px 0 var(--border);
}
.site-header .container {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand img { height: 44px; width: auto; }
.brand span {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: 1;
}
.brand:hover { color: var(--text); }

.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: transparent;
	cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.site-header.is-open .nav-toggle .icon-open { display: none; }
.site-header.is-open .nav-toggle .icon-close { display: block; }

.site-nav {
	position: fixed;
	top: var(--header-h);
	left: 0;
	right: 0;
	max-height: calc(100vh - var(--header-h));
	overflow-y: auto;
	padding: 8px 16px 24px;
	background: var(--bg);
	border-bottom: 1px solid var(--border);
	transform: translateY(-8px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.site-header.is-open .site-nav { opacity: 1; visibility: visible; transform: none; }

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a,
.nav-list .submenu-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 14px 4px;
	border: 0;
	border-bottom: 1px solid var(--border);
	background: none;
	color: var(--text);
	font-family: var(--font-head);
	font-size: 1.15rem;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	text-align: left;
	cursor: pointer;
}
.nav-list a:hover,
.nav-list .submenu-toggle:hover,
.nav-list a[aria-current="page"],
.nav-list .has-current > .submenu-toggle { color: var(--accent); }
.submenu-toggle svg { width: 16px; height: 16px; transition: transform .2s; }
.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.submenu { list-style: none; margin: 0; padding: 0 0 0 16px; display: none; }
.submenu.is-open { display: block; }
.submenu a { font-size: 1rem; text-transform: none; letter-spacing: .02em; }
.nav-cta { margin-top: 20px; }
.nav-cta .btn { width: 100%; justify-content: center; }

@media (min-width: 992px) {
	.nav-toggle { display: none; }
	.site-nav {
		position: static;
		display: flex;
		align-items: center;
		gap: 28px;
		max-height: none;
		overflow: visible;
		padding: 0;
		background: none;
		border: 0;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.nav-list { display: flex; align-items: center; gap: 6px; }
	.nav-list > li { position: relative; }
	.nav-list a,
	.nav-list .submenu-toggle {
		width: auto;
		padding: 8px 14px;
		border: 0;
		border-radius: var(--radius-sm);
		font-size: 1rem;
		gap: 6px;
	}
	.nav-list > li > a[aria-current="page"],
	.nav-list .has-current > .submenu-toggle { background: var(--accent-soft); }
	.submenu {
		position: absolute;
		top: calc(100% + 8px);
		left: 0;
		min-width: 220px;
		padding: 8px;
		background: var(--surface);
		border: 1px solid var(--border);
		border-radius: var(--radius);
		box-shadow: var(--shadow);
	}
	.nav-list > li:hover > .submenu,
	.nav-list > li:focus-within > .submenu { display: block; }
	.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
	.submenu a { display: block; padding: 10px 14px; }
	.submenu a:hover { background: var(--surface-2); }
	.nav-cta { margin: 0; }
	.nav-cta .btn { width: auto; padding: .6em 1.4em; font-size: 1rem; }
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(260px, 42vh, 420px);
	padding: calc(var(--header-h) + 40px) 0 48px;
	background: url("../../img/vesmir-tmave.webp") center / cover no-repeat;
	isolation: isolate;
}
.page-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse at 20% 0%, rgba(234, 128, 20, .18), transparent 60%),
		linear-gradient(180deg, rgba(11, 13, 18, .35) 0%, var(--bg) 100%);
}
.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
	font-size: .85rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.page-hero h1 {
	margin: 0;
	font-size: clamp(2.4rem, 1.5rem + 4vw, 4.5rem);
	text-transform: uppercase;
	text-shadow: 0 4px 30px rgba(0, 0, 0, .5);
}
.page-hero h1 .accent { color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 6vw, 88px) 0; }
.section--alt { background: var(--bg-alt); }
.section-title {
	font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
	text-transform: uppercase;
	margin-bottom: 1em;
}
.section-title::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	margin-top: 12px;
	border-radius: 3px;
	background: var(--accent);
}
.section-title--center { text-align: center; }
.section-title--center::after { margin-inline: auto; }
.lead { font-size: 1.1em; color: var(--text); }
.muted { color: var(--muted); }

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: clamp(20px, 3vw, 32px);
}

/* ---------- Home ---------- */
.home-hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: calc(var(--header-h) + 24px) 0 96px;
	text-align: center;
	overflow: hidden;
	isolation: isolate;
	background: var(--bg) url("../../img/vesmir-tmave.webp") center / cover no-repeat;
}
.home-hero video {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(100%) brightness(35%);
}
.home-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse at center, transparent 0%, rgba(11, 13, 18, .6) 70%),
		linear-gradient(180deg, rgba(11, 13, 18, .2) 60%, var(--bg) 100%);
}
.home-hero h1 {
	font-size: clamp(2.6rem, 1rem + 8.5vw, 9rem);
	line-height: .95;
	margin-bottom: .3em;
	text-transform: uppercase;
	text-shadow: 0 6px 40px rgba(0, 0, 0, .6);
}
.home-hero h1 span { display: block; color: var(--accent); }
.home-hero .tagline {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: clamp(1.15rem, .8rem + 1.8vw, 2.4rem);
	margin: 0 auto 1.6em;
	max-width: 34ch;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.home-hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- About ---------- */
.split {
	display: grid;
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}
.split__media { justify-self: center; max-width: 360px; width: 70%; }
.split__media img { filter: drop-shadow(0 20px 40px rgba(234, 128, 20, .2)); }
@media (min-width: 900px) {
	.split { grid-template-columns: 1.3fr 1fr; }
	.split__media { width: 100%; }
}
.eyebrow {
	display: inline-block;
	margin-bottom: 14px;
	font-family: var(--font-head);
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--accent);
}

.subsection-title {
	margin: 40px 0 18px;
	font-size: 1.1rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
}
.section-title + .subsection-title { margin-top: 0; }

/* Recurring events – two equal-height cards */
.recurring { display: grid; gap: 18px; }
.recurring h4,
.event-timeline h4 { font-size: 1.5rem; color: var(--accent); margin-bottom: .4em; }
.recurring p,
.event-timeline p { color: var(--muted); }
.event-timeline p:last-child { margin-bottom: 0; }
.event-timeline h4:has(+ .event-date) { margin-bottom: .15em; }
.event-timeline .event-date {
	margin: 0 0 .9em;
	font-size: .9rem;
	font-weight: 600;
	letter-spacing: .03em;
	color: var(--text);
	opacity: .75;
}
.years { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.years li {
	padding: 8px 12px;
	border-left: 3px solid var(--accent);
	background: var(--surface-2);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
@media (min-width: 900px) {
	.recurring { grid-template-columns: 3fr 2fr; align-items: stretch; }
}

/* One-off events – vertical timeline */
.event-timeline {
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0 0 0 32px;
	display: grid;
	gap: 28px;
	max-width: 900px;
}
.event-timeline::before {
	content: "";
	position: absolute;
	top: 8px;
	bottom: 0;
	left: 7px;
	width: 2px;
	background: linear-gradient(180deg, var(--accent), rgba(234, 128, 20, .15) 85%, transparent);
}
.event-timeline > li { position: relative; }
.event-timeline > li::before {
	content: "";
	position: absolute;
	top: 6px;
	left: -32px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--bg-alt);
	border: 3px solid var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft), 0 0 14px rgba(234, 128, 20, .5);
}
.event-timeline__year {
	display: inline-block;
	margin-bottom: 10px;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.3rem;
	line-height: 1;
	letter-spacing: .06em;
	color: var(--accent);
}
/* Branch: several events in one year */
.event-branch {
	position: relative;
	list-style: none;
	margin: 10px 0 0 16px;
	padding: 0 0 0 26px;
	display: grid;
	gap: 22px;
}
.event-branch::before {
	content: "";
	position: absolute;
	top: 12px;
	bottom: 24px;
	left: 0;
	border-left: 2px dashed rgba(234, 128, 20, .55);
}
.event-branch::after {
	content: "";
	position: absolute;
	top: -4px;
	left: -41px;
	width: 41px;
	height: 16px;
	border-top: 2px solid rgba(234, 128, 20, .7);
	border-right: 2px dashed rgba(234, 128, 20, .55);
	border-top-right-radius: 14px;
}
.event-branch > li { position: relative; }
.event-branch > li::before {
	content: "";
	position: absolute;
	top: 5px;
	left: -32px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}
.event-branch__month {
	display: inline-block;
	margin-bottom: 8px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}

@media (min-width: 900px) {
	.event-timeline { padding-left: 44px; gap: 36px; }
	.event-branch { margin-left: 24px; padding-left: 32px; }
	.event-branch::after { left: -61px; width: 61px; }
	.event-branch > li::before { left: -38px; }
	.event-timeline > li::before { left: -44px; }
}

/* ---------- Requirements ---------- */
.req-grid { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 600px) {
	.req-grid { grid-template-columns: repeat(2, 1fr); }
	.req-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
}
.req-grid li {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	font-size: 1.05rem;
}
.req-grid .num {
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--accent-soft);
	color: var(--accent);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.3rem;
}
.notice {
	margin-top: 28px;
	border-left: 4px solid var(--accent);
}
.notice h2 { font-size: 1.6rem; }
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

.faq { display: grid; gap: 12px; max-width: 900px; margin-inline: auto; }
.faq details {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: border-color .2s;
}
.faq details[open] { border-color: rgba(234, 128, 20, .45); }
.faq summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 18px 22px;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.2rem;
	cursor: pointer;
	list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+";
	flex-shrink: 0;
	font-size: 1.6rem;
	line-height: 1;
	color: var(--accent);
	transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* ---------- Team ---------- */
.team { display: grid; gap: 24px; }
.member {
	display: grid;
	gap: 20px;
	align-items: start;
}
.member__photo {
	width: 140px;
	aspect-ratio: 1;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid var(--accent);
	box-shadow: 0 0 0 6px var(--accent-soft);
	background: var(--surface-2);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member h2 { font-size: 1.8rem; margin-bottom: .1em; }
.member .role {
	display: inline-block;
	margin-bottom: 14px;
	font-family: var(--font-head);
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--accent);
}
.member p { color: var(--muted); }
.member p:last-child { margin-bottom: 0; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.social {
	--brand: var(--accent);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px 6px 10px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--surface-2);
	color: var(--text);
	font-size: .85rem;
	font-weight: 500;
	transition: border-color .2s, background .2s, color .2s;
}
.social svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--brand); }
a.social:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, var(--surface-2)); color: var(--text); }
.social--youtube { --brand: #ff3d3d; }
.social--twitch { --brand: #a970ff; }
.social--steam { --brand: #66c0f4; }
.social--discord { --brand: #7984f5; }
.social--list { --brand: var(--accent); }
@media (min-width: 700px) {
	.member { grid-template-columns: 180px 1fr; gap: 32px; }
	.member__photo { width: 180px; }
}

/* ---------- Achievements (tiles + dialog) ---------- */
.tiles {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr;
}
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(3, 1fr); } }

.tile {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 0;
	overflow: hidden;
	text-align: left;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	cursor: pointer;
	transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.tile:hover,
.tile:focus-visible {
	transform: translateY(-4px);
	border-color: rgba(234, 128, 20, .5);
	box-shadow: var(--shadow), 0 0 0 1px rgba(234, 128, 20, .25);
}
.tile__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.05); }
.tile__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 50%, rgba(22, 26, 35, .9) 100%);
}
.tile__rank {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 1;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--accent);
	color: #111;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: .95rem;
	letter-spacing: .04em;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
/* Medal colours for 1st–3rd place (tile badge + modal chip) */
.tile[data-rank^="1."] .tile__rank,
.modal[data-rank^="1."] .chip--accent { background: linear-gradient(135deg, #ffe17a, #d4a017); color: #2b1d00; border-color: #f5c842; }
.tile[data-rank^="2."] .tile__rank,
.modal[data-rank^="2."] .chip--accent { background: linear-gradient(135deg, #f4f6f8, #a8b0ba); color: #1d2228; border-color: #c9ced4; }
.tile[data-rank^="3."] .tile__rank,
.modal[data-rank^="3."] .chip--accent { background: linear-gradient(135deg, #f0b07a, #b0672e); color: #2a1404; border-color: #cd7f32; }
.tile[data-rank^="1."]:hover { border-color: rgba(245, 200, 66, .6); }
.tile[data-rank^="2."]:hover { border-color: rgba(201, 206, 212, .6); }
.tile[data-rank^="3."]:hover { border-color: rgba(205, 127, 50, .6); }
.tile__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.tile__title { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; line-height: 1.2; }
.tile__meta { font-size: .9rem; color: var(--muted); }
.tile__more {
	margin-top: auto;
	padding-top: 10px;
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--accent);
}

.modal {
	width: min(920px, calc(100% - 32px));
	max-height: calc(100vh - 32px);
	padding: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--text);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
	overflow: auto;
}
.modal::backdrop { background: rgba(5, 6, 9, .8); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .25s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__close {
	position: sticky;
	top: 12px;
	float: right;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin: 12px 12px -54px 0;
	border: 0;
	border-radius: 50%;
	background: rgba(11, 13, 18, .75);
	cursor: pointer;
}
.modal__close:hover { background: var(--accent); color: #111; }
.modal__close svg { width: 20px; height: 20px; }
.modal__media img { width: 100%; height: auto; }
.modal__body { padding: clamp(20px, 4vw, 36px); }
.modal__body h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); margin-bottom: .3em; }
.modal__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	font-size: .85rem;
	color: var(--muted);
}
.chip--accent { background: var(--accent-soft); border-color: rgba(234, 128, 20, .4); color: var(--accent); font-weight: 600; }
.modal__body p { color: var(--muted); margin: 0; }
@media (max-width: 599px) {
	.modal { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; border: 0; }
}

/* ---------- Gallery + lightbox ---------- */
.gallery-section + .gallery-section { padding-top: 0; }
.gallery {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.gallery__item {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--radius-sm);
	background: var(--surface-2);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.gallery__item::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 2px solid transparent;
	border-radius: inherit;
	transition: border-color .2s;
}
.gallery__item:hover img { transform: scale(1.06); filter: brightness(1.1); }
.gallery__item:hover::after,
.gallery__item:focus-visible::after { border-color: var(--accent); }

.lightbox {
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(5, 6, 9, .96);
	color: var(--text);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img {
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 120px);
	object-fit: contain;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
	user-select: none;
}
.lightbox__btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	cursor: pointer;
	transition: background .2s;
}
.lightbox__btn:hover { background: var(--accent); color: #111; }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: .9rem; }
@media (max-width: 599px) {
	.lightbox__prev, .lightbox__next { top: auto; bottom: 8px; transform: none; }
}

/* ---------- 404 ---------- */
.not-found {
	position: relative;
	padding: calc(var(--header-h) + 56px) 0 80px;
	text-align: center;
	background: radial-gradient(ellipse at 50% 0%, rgba(234, 128, 20, .16), transparent 60%);
}
.not-found__code {
	margin: 0;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: clamp(6rem, 3rem + 14vw, 12rem);
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 2px var(--accent);
	text-shadow: 0 0 40px rgba(234, 128, 20, .35);
}
.not-found h1 { font-size: clamp(1.8rem, 1.2rem + 2.5vw, 3rem); text-transform: uppercase; }
.not-found .lead { max-width: 60ch; margin: 0 auto 1.8em; color: var(--muted); }
.not-found .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Footer ---------- */
.site-footer {
	padding: 28px 0;
	border-top: 1px solid var(--border);
	background: var(--bg-alt);
	font-size: .9rem;
	color: var(--muted);
}
.site-footer .container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
}
.site-footer p { margin: 0; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}
