/* ==========================================================================
   REIJA — "Mythic Editorial" design system
   DNA kept: deep navy, cream, per-game colour accents, muscular italic titles.
   Elevated: Fraunces editorial serif + JetBrains Mono labels, film grain,
   radial glows, gold hairlines, ghost numerals, gradient section bleeds.
   ========================================================================== */

:root {
	/* base */
	--bg:        #04031e;
	--bg-2:      #0a0930;
	--panel:     #100e3a;
	--cream:     #f6f3ed;
	--cream-dim: rgba(246, 243, 237, 0.60);
	--cream-mut: rgba(246, 243, 237, 0.40);
	--line:      rgba(246, 243, 237, 0.12);

	/* accents */
	--gold:      #e7b64c;
	--gold-2:    #f3d187;
	--gold-deep: #b8862f;

	/* per-game accents (overridden inline on rows) */
	--tan:       #b49c7e;
	--tan-light: #e6dab9;

	/* fonts */
	--display: 'Fraunces', 'Times New Roman', serif;
	--brand:   'Montserrat', system-ui, sans-serif;
	--mono:    'JetBrains Mono', ui-monospace, monospace;

	--maxw: 1320px;
	--header-h: 88px;
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--brand);
	font-weight: 400;
	color: var(--cream);
	background: var(--bg);
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* atmospheric radial glows behind everything */
body::before {
	content: "";
	position: fixed; inset: 0; z-index: 0; pointer-events: none;
	background:
		radial-gradient(60vw 50vh at 78% -6%, rgba(231, 182, 76, 0.10), transparent 60%),
		radial-gradient(48vw 44vh at 6% 40%, rgba(64, 84, 168, 0.14), transparent 60%),
		radial-gradient(60vw 60vh at 50% 108%, rgba(231, 182, 76, 0.06), transparent 60%);
}

/* film grain overlay */
body::after {
	content: "";
	position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0.05;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.02; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 56px); }

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

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: var(--cream); color: var(--bg); padding: 10px 16px; z-index: 999; border-radius: 4px; }

/* ---------- shared type roles ---------- */
.kicker {
	font-family: var(--mono);
	font-size: 12px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
	color: var(--gold); display: inline-flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); opacity: .7; }

.display-serif { font-family: var(--display); font-optical-sizing: auto; }

/* ---------- header / nav ---------- */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 100;
	transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease;
	border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
	background: rgba(4, 3, 30, 0.72);
	backdrop-filter: blur(14px) saturate(1.2);
	border-bottom-color: var(--line);
}
.header-inner {
	max-width: 1440px; margin-inline: auto;
	display: flex; align-items: center; justify-content: space-between;
	padding: 16px clamp(20px, 4vw, 48px);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 44px; width: auto; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand__word {
	font-family: var(--mono); font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase;
	color: var(--cream-dim); padding-top: 2px;
}
@media (max-width: 560px) { .brand__word { display: none; } }

.primary-nav .nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 3vw, 40px); align-items: center; }
.primary-nav a {
	font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--cream-dim); padding: 8px 0; position: relative; transition: color .25s ease;
}
.primary-nav a::after {
	content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px;
	background: var(--gold); transition: right .3s cubic-bezier(.2,.8,.2,1);
}
.primary-nav a:hover { color: var(--cream); }
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after { right: 0; }
.primary-nav .current-menu-item > a { color: var(--cream); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 101; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--cream); margin: 5px 0; transition: .3s; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img, .hero__bg video { width: 100%; height: 100%; object-fit: cover; object-position: 68% center; }
.hero__bg::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(94deg, var(--bg) 4%, rgba(4,3,30,0.86) 30%, rgba(4,3,30,0.18) 60%, rgba(4,3,30,0.55) 100%),
		linear-gradient(0deg, var(--bg) 1%, transparent 26%);
}
.hero__inner {
	position: relative; z-index: 2;
	max-width: 1440px; width: 100%; margin-inline: auto;
	padding: calc(var(--header-h) + 40px) clamp(20px, 4vw, 48px) 72px;
}
.hero__eyebrow { margin-bottom: 22px; }
.hero__title {
	font-family: var(--brand);
	font-size: clamp(72px, 14vw, 200px); font-weight: 800; font-style: italic;
	letter-spacing: -0.01em; line-height: 0.86; margin-bottom: 30px;
	background: linear-gradient(178deg, #ffffff 20%, #e9ddc4 62%, var(--gold) 130%);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
	text-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.hero__lead {
	max-width: 460px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.7; color: rgba(246,243,237,0.82);
	border-left: 2px solid var(--gold); padding-left: 20px;
}

/* latest-project card */
.latest {
	margin-top: 44px; max-width: 540px;
	display: flex; gap: 20px; align-items: stretch;
	background: linear-gradient(120deg, rgba(16,14,58,0.86), rgba(4,3,30,0.7));
	border: 1px solid var(--line); border-radius: 4px;
	backdrop-filter: blur(10px);
	padding: 14px; position: relative; overflow: hidden;
	transition: border-color .3s ease, transform .3s ease;
}
.latest::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); }
.latest:hover { border-color: rgba(231,182,76,0.4); transform: translateY(-2px); }
.latest img { width: 168px; height: 100%; min-height: 96px; object-fit: cover; border-radius: 3px; flex: none; }
.latest__tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.latest__body { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.latest__body h2 { font-family: var(--display); font-optical-sizing: auto; font-size: 22px; font-weight: 600; font-style: italic; }
.latest__meta { font-family: var(--mono); font-size: 12px; color: var(--cream-dim); margin: 0; }
.latest__link { margin-top: 6px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--gold); display: inline-flex; gap: 6px; align-items: center; }
.latest__link:hover { gap: 12px; }

/* scroll cue */
.hero__cue {
	position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
	font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cream-mut);
	display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__cue span { width: 1px; height: 40px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleY(.4); opacity: .4; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: rgba(10,9,48,0.5); overflow: hidden; padding: 16px 0; }
.marquee__track { display: flex; gap: 0; white-space: nowrap; width: max-content; animation: marquee 34s linear infinite; }
.marquee__track span {
	font-family: var(--display); font-optical-sizing: auto; font-style: italic; font-weight: 500;
	font-size: clamp(20px, 2.4vw, 34px); color: var(--cream-dim); padding: 0 28px;
	display: inline-flex; align-items: center; gap: 28px;
}
.marquee__track span::after { content: "✦"; color: var(--gold); font-size: 0.5em; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section header ---------- */
.section-head { max-width: var(--maxw); margin: clamp(70px,10vw,120px) auto clamp(30px,4vw,50px); padding-inline: clamp(20px,5vw,56px); }
.section-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head h2 {
	font-family: var(--display); font-optical-sizing: auto;
	font-size: clamp(44px, 7vw, 104px); font-weight: 400; font-style: italic; letter-spacing: -0.015em; line-height: 0.9;
}
.section-head h2 em { font-style: normal; color: var(--gold); }
.section-head__count { font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; color: var(--cream-dim); }
.section-head .kicker { margin-bottom: 20px; }

/* ---------- credentials strip ---------- */
.creds { border-block: 1px solid var(--line); margin-top: clamp(50px,7vw,90px); }
.creds__grid { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px,5vw,56px); display: grid; grid-template-columns: repeat(4, 1fr); }
.cred { padding: 34px 8px; border-left: 1px solid var(--line); }
.cred:first-child { border-left: 0; }
.cred__n { font-family: var(--display); font-optical-sizing: auto; font-size: clamp(34px,4vw,56px); font-weight: 500; font-style: italic; color: var(--cream); line-height: 1; }
.cred__l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-dim); margin-top: 10px; }

/* ---------- portfolio rows (elevated two-zone) ---------- */
.games { position: relative; }
.game-row {
	--panel-w: clamp(96px, 15vw, 220px);
	position: relative; color: var(--text-color);
	background: var(--text-bg);
	border-top: 1px solid rgba(246,243,237,0.06);
}
/* giant ghost numeral */
.game-row__ghost {
	position: absolute; z-index: 0; top: clamp(-30px, -2vw, -10px); right: clamp(10px, 4vw, 80px);
	font-family: var(--display); font-optical-sizing: auto; font-weight: 900; font-style: italic;
	font-size: clamp(180px, 34vw, 460px); line-height: 0.8;
	color: var(--accent); opacity: 0.08; pointer-events: none; user-select: none;
}
/* top zone: panel + full-bleed image, fading into the text band */
.game-row__top { position: relative; z-index: 1; display: grid; grid-template-columns: var(--panel-w) 1fr; background: var(--img-bg); }
.game-row__panel {
	display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
	padding: clamp(24px, 3vw, 46px) clamp(14px, 1.6vw, 30px);
	position: relative;
}
.game-row__panel::after { content: ""; position: absolute; top: clamp(24px,3vw,46px); bottom: clamp(24px,3vw,46px); right: 0; width: 1px; background: linear-gradient(var(--accent), transparent); opacity: .5; }
.game-row__num { font-family: var(--display); font-optical-sizing: auto; font-size: clamp(40px, 5vw, 84px); font-weight: 500; font-style: italic; color: var(--accent); line-height: 1; }
.game-row__vert { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--mono); font-size: clamp(10px,0.9vw,12px); font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); opacity: .85; }
.game-row__media { position: relative; display: block; height: clamp(360px, 46vw, 640px); overflow: hidden; }
.game-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.game-row:hover .game-row__media img { transform: scale(1.045); }
/* bottom fade of the image into the text band */
.game-row__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, var(--text-bg) 99%); }

.game-row__bottom { position: relative; z-index: 1; padding: clamp(30px,3.5vw,52px) 0 clamp(80px,11vw,180px); }
.game-row__content { margin-left: var(--panel-w); padding-inline: clamp(20px, 3vw, 44px); max-width: 1040px; }
.game-row__head { display: flex; align-items: center; gap: clamp(16px,2vw,30px); flex-wrap: nowrap; margin-bottom: 14px; }
.game-row__title {
	font-family: var(--brand); font-size: clamp(34px, 5.2vw, 68px); font-weight: 800; font-style: italic;
	text-transform: uppercase; letter-spacing: -0.01em; color: var(--accent);
}
.game-row__pill {
	flex: none; display: inline-flex; align-items: center; gap: 8px;
	background: var(--pill-bg); color: var(--pill-text);
	border-radius: 40px; padding: 11px 26px;
	font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
	transition: transform .25s ease, box-shadow .25s ease;
}
.game-row__pill::after { content: "→"; transition: transform .25s ease; }
.game-row:hover .game-row__pill { box-shadow: 0 12px 30px -10px rgba(0,0,0,0.5); }
.game-row__pill:hover::after { transform: translateX(4px); }
.game-row__cat { font-family: var(--mono); font-size: clamp(11px,1vw,13px); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 18px; color: var(--text-color); opacity: .8; }
.game-row__desc { max-width: 560px; font-size: clamp(14px,1.1vw,16.5px); line-height: 1.8; color: var(--text-color); opacity: .92; }

/* ---------- view all CTA ---------- */
.view-all { position: relative; background: var(--bg-2); padding: clamp(70px,12vw,150px) 0; overflow: hidden; border-top: 1px solid var(--line); }
.view-all__inner { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px,5vw,56px); }
.view-all a {
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	font-family: var(--brand); font-size: clamp(38px, 8vw, 104px); font-weight: 800; font-style: italic; text-transform: uppercase;
	line-height: 0.92; color: var(--cream); transition: color .3s ease;
}
.view-all a:hover { color: var(--gold); }
.view-all .arrow {
	width: clamp(56px, 7vw, 96px); height: clamp(56px, 7vw, 96px); flex: none; border-radius: 50%;
	border: 2px solid var(--gold); color: var(--gold); display: grid; place-items: center;
	font-size: 0.42em; transition: background .3s ease, color .3s ease, transform .3s ease;
}
.view-all a:hover .arrow { background: var(--gold); color: var(--bg); transform: translateX(10px) rotate(-8deg); }
.view-all__ghost { position: absolute; z-index: 0; bottom: -8%; left: -1%; font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(200px,30vw,420px); color: var(--cream); opacity: 0.03; pointer-events: none; }

/* ---------- generic page (about / imprint / contact / 404) ---------- */
.page-hero { padding: calc(var(--header-h) + 70px) 0 30px; }
.page-hero .kicker { margin-bottom: 18px; }
.page-hero h1 {
	font-family: var(--display); font-optical-sizing: auto;
	font-size: clamp(48px, 9vw, 112px); font-weight: 400; font-style: italic; letter-spacing: -0.02em;
	max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px,5vw,56px);
}
.page-hero .wrap { max-width: var(--maxw); }
.page-body { padding: 20px 0 100px; }
.page-body .wrap { max-width: 920px; }
.page-body h2 { font-family: var(--display); font-optical-sizing: auto; font-size: 30px; font-weight: 500; font-style: italic; margin: 46px 0 16px; color: var(--gold-2); }
.page-body h3 { font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 30px 0 10px; }
.page-body h4 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-dim); margin: 22px 0 8px; }
.page-body p { color: var(--cream-dim); margin: 0 0 16px; }
.page-body a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.page-body ul { color: var(--cream-dim); padding-left: 20px; }

.about-lead { display: grid; grid-template-columns: 1fr 360px; gap: 54px; align-items: start; }
.about-lead__figure { position: relative; }
.about-lead__figure img { border-radius: 4px; }
.about-lead__figure::before { content: ""; position: absolute; inset: -14px -14px 14px 14px; border: 1px solid var(--gold); border-radius: 4px; z-index: -1; opacity: .5; }
.about-lead p:first-of-type { font-family: var(--display); font-optical-sizing: auto; font-size: clamp(19px,1.8vw,24px); font-style: italic; line-height: 1.5; color: var(--cream); }
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; margin-top: 40px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--bg); padding: 32px clamp(20px,2.4vw,36px); }
.service h3 { font-family: var(--display); font-optical-sizing: auto; font-style: italic; font-weight: 500; font-size: 22px; text-transform: none; letter-spacing: 0; color: var(--gold-2); margin-bottom: 12px; }
.service p { color: var(--cream-dim); font-size: 14.5px; }

.cta { position: relative; background: linear-gradient(160deg, var(--gold) 0%, var(--gold-deep) 100%); color: var(--bg); text-align: center; padding: clamp(60px,9vw,110px) 20px; overflow: hidden; }
.cta h2 { font-family: var(--display); font-optical-sizing: auto; font-size: clamp(34px,5.5vw,72px); font-weight: 400; font-style: italic; color: var(--bg); }
.cta p { font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(4,3,30,.75); margin-top: 14px; }
.cta .btn { margin-top: 28px; }

/* ---------- game detail ---------- */
.game-detail__hero { position: relative; padding-top: var(--header-h); }
.game-detail__hero img { width: 100%; max-height: 66vh; object-fit: cover; }
.game-detail__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 2%, transparent 40%); }
.game-detail__title { font-family: var(--brand); font-size: clamp(46px, 8vw, 88px); font-weight: 800; font-style: italic; text-transform: uppercase; margin: 26px 0 26px; letter-spacing: -0.01em; }
.game-detail__facts { display: flex; flex-wrap: wrap; gap: 44px; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.fact .k { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.fact .v { font-size: 18px; font-weight: 600; }
.game-detail__desc { max-width: 760px; font-family: var(--display); font-optical-sizing: auto; font-size: clamp(17px,1.5vw,21px); font-style: italic; line-height: 1.6; color: rgba(246,243,237,0.86); }
.game-detail__actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 32px 0; }

.btn {
	display: inline-flex; align-items: center; gap: 8px;
	border: 1px solid var(--cream); border-radius: 40px; padding: 12px 28px;
	font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
	transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--cream); color: var(--bg); }
.btn--solid { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.btn--solid:hover { background: var(--gold-2); border-color: var(--gold-2); }

/* ---------- game gallery + lightbox ---------- */
.gallery { margin: 20px auto 10px; }
.gallery__title { font-family: var(--display); font-optical-sizing: auto; font-size: 26px; font-weight: 500; font-style: italic; color: var(--gold-2); margin-bottom: 22px; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery__item { display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 16/9; background: var(--panel); border: 1px solid var(--line); position: relative; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item::after { content: "⤢"; position: absolute; right: 10px; bottom: 8px; color: var(--cream); opacity: 0; transition: opacity .3s; font-size: 18px; text-shadow: 0 2px 8px #000; }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item:hover::after { opacity: .9; }

.lightbox { position: fixed; inset: 0; z-index: 999; display: none; background: rgba(4,3,30,0.95); backdrop-filter: blur(6px); align-items: center; justify-content: center; padding: 4vw; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 4px; box-shadow: 0 30px 90px rgba(0,0,0,0.7); }
.lightbox__btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(246,243,237,.08); border: 1px solid var(--line); color: var(--cream); width: 54px; height: 54px; border-radius: 50%; font-size: 24px; cursor: pointer; transition: background .2s; }
.lightbox__btn:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.lightbox__prev { left: 3vw; } .lightbox__next { right: 3vw; }
.lightbox__close { position: absolute; top: 24px; right: 30px; background: none; border: 0; color: var(--cream); font-size: 40px; cursor: pointer; line-height: 1; }
.lightbox__count { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; font-family: var(--mono); color: var(--cream-dim); font-size: 13px; letter-spacing: .1em; }

/* ---------- contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info h2 { font-family: var(--display); font-optical-sizing: auto; font-style: italic; font-weight: 500; font-size: clamp(28px,3vw,40px); margin-bottom: 18px; }
.contact-info p { color: var(--cream-dim); }
.contact-info a { color: var(--gold-2); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; color: var(--cream-dim); }
.field input, .field textarea { width: 100%; background: rgba(246,243,237,.04); border: 1px solid var(--line); color: var(--cream); padding: 13px 15px; border-radius: 4px; font: inherit; transition: border-color .2s, background .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(246,243,237,.06); }
.field.hp { position: absolute; left: -5000px; }
.form-note { padding: 13px 16px; border-radius: 4px; margin-bottom: 20px; font-family: var(--mono); font-size: 13px; }
.form-note.ok { background: rgba(90,160,110,.16); border: 1px solid rgba(120,200,140,.5); }
.form-note.err { background: rgba(190,80,80,.16); border: 1px solid rgba(220,120,120,.5); }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--bg); border-top: 1px solid var(--line); overflow: hidden; }
.footer__watermark { position: absolute; z-index: 0; bottom: -14%; left: 50%; transform: translateX(-50%); font-family: var(--brand); font-weight: 800; font-style: italic; font-size: clamp(140px, 30vw, 460px); color: var(--cream); opacity: 0.03; pointer-events: none; letter-spacing: -0.02em; }
.footer__inner { position: relative; z-index: 1; max-width: var(--maxw); margin-inline: auto; padding: clamp(50px,7vw,90px) clamp(20px,5vw,56px) 0; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.footer__brand img { height: 54px; margin-bottom: 18px; }
.footer__brand p { color: var(--cream-dim); max-width: 320px; font-size: 14.5px; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer__col a, .footer__col p { display: block; color: var(--cream-dim); font-size: 14.5px; margin-bottom: 10px; transition: color .2s; }
.footer__col a:hover { color: var(--cream); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px 0; }
.footer__copy { font-family: var(--mono); font-size: 12px; color: var(--cream-mut); letter-spacing: 0.08em; }
.back-to-top { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-dim); display: inline-flex; align-items: center; gap: 8px; }
.back-to-top:hover { color: var(--gold); }

/* ---------- reveal + load animations ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in-view { opacity: 1; transform: none; }

.js .hero__inner > * { opacity: 0; animation: heroIn .9s cubic-bezier(.2,.7,.2,1) forwards; }
.js .hero__eyebrow { animation-delay: .15s; }
.js .hero__title { animation-delay: .28s; }
.js .hero__lead { animation-delay: .45s; }
.js .latest { animation-delay: .6s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
	.js .reveal, .js .hero__inner > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
	.creds__grid { grid-template-columns: 1fr 1fr; }
	.cred:nth-child(3) { border-left: 0; }
	.footer__top { grid-template-columns: 1fr 1fr; }
	.footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
	.nav-toggle { display: block; }
	.primary-nav { position: fixed; inset: 0 0 auto 0; height: 100vh; padding-top: 96px; background: rgba(4,3,30,0.98); backdrop-filter: blur(12px); transform: translateY(-100%); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
	.site-header.nav-open .primary-nav { transform: none; }
	.primary-nav .nav-list { flex-direction: column; align-items: center; gap: 30px; }
	.primary-nav a { font-size: 16px; }

	.game-row { --panel-w: 60px; }
	.game-row__media { height: clamp(240px, 56vw, 420px); }
	.game-row__vert { display: none; }
	.game-row__content { margin-left: 0; }
	.game-row__head { flex-wrap: wrap; }
	.game-row__ghost { font-size: 200px; }

	.about-lead, .contact-grid, .services { grid-template-columns: 1fr; }
	.about-lead__figure img { max-width: 320px; }
	.gallery__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
	.creds__grid { grid-template-columns: 1fr; }
	.cred { border-left: 0; border-top: 1px solid var(--line); }
	.cred:first-child { border-top: 0; }
	.footer__top { grid-template-columns: 1fr; }
}
