/*
 * Last Games public site
 * Isolated from Milestones, UI Assets, demo, and Unity templates.
 */

:root {
	--ink: #080b12;
	--ink-soft: #101522;
	--ink-raised: #171d2c;
	--paper: #f3f1eb;
	--paper-bright: #fffdf8;
	--paper-muted: #d8d5ce;
	--text: #171a22;
	--text-soft: #62656d;
	--white: #ffffff;
	--accent: #f04424;
	--accent-bright: #ff5a36;
	--signal: #d8ff55;
	--line-dark: rgba(255, 255, 255, 0.13);
	--line-light: rgba(8, 11, 18, 0.13);
	--header-height: 88px;
	--shell: 1320px;
	--section-space: clamp(6rem, 10vw, 10rem);
	--display: "Space Grotesk", "Arial Narrow", sans-serif;
	--body: "Manrope", "Helvetica Neue", sans-serif;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-height);
}

body.last-games-site {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.last-games-site:not(.last-games-home) {
	padding-top: var(--header-height);
}

body.menu-is-open,
body.modal-is-open {
	overflow: hidden;
}

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

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

button,
a {
	-webkit-tap-highlight-color: transparent;
}

a {
	color: inherit;
}

::selection {
	background: var(--accent);
	color: var(--white);
}

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

.studio-section {
	position: relative;
	padding-block: var(--section-space);
}

.skip-link {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 10000;
	transform: translateY(-180%);
	padding: 0.75rem 1rem;
	border-radius: 0.5rem;
	background: var(--white);
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
	transition: transform 180ms ease;
}

.skip-link:focus {
	transform: translateY(0);
}

:focus-visible {
	outline: 3px solid var(--signal);
	outline-offset: 4px;
}

.section-kicker,
.hero-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--accent);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	line-height: 1.2;
	text-transform: uppercase;
}

.section-kicker::before,
.hero-kicker::before {
	width: 2.25rem;
	height: 1px;
	background: currentColor;
	content: "";
}

.section-kicker--light {
	color: var(--signal);
}

.section-heading {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.55fr);
	gap: clamp(2rem, 6vw, 7rem);
	align-items: end;
	margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.section-heading h2,
.about-section h2,
.idea-section h2,
.contact-section h2,
.studio-cta h2 {
	margin: 1.2rem 0 0;
	font-family: var(--display);
	font-size: clamp(3rem, 6.4vw, 6.6rem);
	font-weight: 600;
	letter-spacing: -0.065em;
	line-height: 0.9;
}

.section-heading h2 em,
.about-section h2 em,
.idea-section h2 em,
.contact-section h2 em,
.studio-cta h2 em,
.home-hero h1 em {
	color: var(--accent);
	font-family: inherit;
	font-style: normal;
}

.section-heading > p,
.about-section__lead,
.idea-section__copy > p,
.contact-section__copy > p {
	margin: 0;
	color: var(--text-soft);
	font-size: clamp(1rem, 1.35vw, 1.18rem);
	line-height: 1.85;
}

.section-heading--light {
	color: var(--white);
}

.section-heading--light > p {
	color: rgba(255, 255, 255, 0.62);
}

/* Header */

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

.site-header::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(3, 5, 10, 0.7), rgba(3, 5, 10, 0));
	content: "";
	pointer-events: none;
	transition: opacity 300ms ease;
}

.site-header.is-scrolled,
body:not(.last-games-home) .site-header {
	border-color: var(--line-dark);
	background: rgba(8, 11, 18, 0.88);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
}

.site-header.is-scrolled::before,
body:not(.last-games-home) .site-header::before {
	opacity: 0;
}

.site-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	width: min(calc(100% - 3rem), 1440px);
	height: 100%;
	margin-inline: auto;
}

.site-brand {
	display: inline-flex;
	align-items: center;
	width: 144px;
	height: 58px;
}

.site-brand img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.desktop-navigation {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(1.2rem, 2.2vw, 2.6rem);
}

.menu-link {
	position: relative;
	padding: 0.65rem 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 180ms ease;
}

.menu-link::after {
	position: absolute;
	right: 0;
	bottom: 0.25rem;
	left: 0;
	height: 2px;
	background: var(--accent);
	content: "";
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 300ms var(--ease);
}

.menu-link:hover,
.menu-link.is-active {
	color: var(--white);
}

.menu-link:hover::after,
.menu-link.is-active::after {
	transform: scaleX(1);
	transform-origin: left;
}

.site-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1rem;
}

.header-blog-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: rgba(255, 255, 255, 0.76);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

.header-blog-link svg {
	width: 1rem;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.5;
	transition: transform 180ms ease;
}

.header-blog-link:hover svg {
	transform: translateX(3px);
}

.header-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0.7rem 1.15rem;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--white);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.header-cta:hover {
	border-color: var(--accent);
	background: var(--accent);
	transform: translateY(-2px);
}

.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: var(--white);
	cursor: pointer;
}

.menu-toggle span {
	position: absolute;
	width: 18px;
	height: 1.5px;
	background: currentColor;
	transition: transform 300ms var(--ease);
}

.menu-toggle span:first-child {
	transform: translateY(-4px);
}

.menu-toggle span:last-child {
	transform: translateY(4px);
}

.menu-toggle[aria-expanded="true"] span:first-child {
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
	transform: rotate(-45deg);
}

.mobile-navigation {
	position: fixed;
	inset: 0;
	z-index: 900;
	display: flex;
	visibility: hidden;
	align-items: center;
	background: var(--ink);
	color: var(--white);
	opacity: 0;
	transform: translateY(-1rem);
	transition: visibility 0s linear 450ms, opacity 350ms ease, transform 450ms var(--ease);
}

.mobile-navigation.is-open {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0s;
}

.mobile-navigation__glow {
	position: absolute;
	right: -12rem;
	bottom: -12rem;
	width: 34rem;
	height: 34rem;
	border-radius: 50%;
	background: var(--accent);
	filter: blur(130px);
	opacity: 0.22;
}

.mobile-navigation__inner {
	position: relative;
	width: min(calc(100% - 3rem), 42rem);
	margin: var(--header-height) auto 0;
}

.mobile-navigation__label {
	margin: 0 0 2rem;
	color: rgba(255, 255, 255, 0.44);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.mobile-navigation nav {
	display: flex;
	flex-direction: column;
}

.mobile-navigation nav a {
	display: flex;
	align-items: baseline;
	gap: 1.5rem;
	padding: 0.65rem 0;
	border-bottom: 1px solid var(--line-dark);
	font-family: var(--display);
	font-size: clamp(2rem, 9vw, 4.5rem);
	font-weight: 600;
	letter-spacing: -0.05em;
	line-height: 1.05;
	text-decoration: none;
	transition: color 180ms ease, padding-left 250ms var(--ease);
}

.mobile-navigation nav a:hover {
	padding-left: 0.5rem;
	color: var(--accent-bright);
}

.mobile-navigation nav a span {
	color: var(--accent);
	font-family: var(--body);
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.1em;
}

.mobile-navigation__meta {
	display: flex;
	gap: 1.5rem;
	margin-top: 2rem;
}

.mobile-navigation__meta a {
	color: rgba(255, 255, 255, 0.58);
	font-size: 0.78rem;
	font-weight: 700;
	text-decoration: none;
}

/* Buttons */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	min-height: 54px;
	padding: 0.9rem 1.4rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 200ms var(--ease), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.button svg {
	width: 1.1rem;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.6;
}

.button:hover {
	transform: translateY(-3px);
}

.button--primary {
	background: var(--accent);
	color: var(--white);
}

.button--primary:hover {
	background: var(--accent-bright);
}

.button--ghost {
	border-color: rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.05);
	color: var(--white);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.button--ghost:hover {
	border-color: rgba(255, 255, 255, 0.6);
	background: rgba(255, 255, 255, 0.12);
}

.button--dark {
	background: var(--ink);
	color: var(--white);
}

.button--dark:hover {
	background: var(--accent);
}

.button:disabled {
	cursor: wait;
	opacity: 0.6;
	transform: none;
}

/* Hero */

.home-hero {
	position: relative;
	min-height: max(760px, 100svh);
	overflow: hidden;
	background: var(--ink);
	color: var(--white);
}

.home-hero__media,
.home-hero__veil,
.home-hero__grid {
	position: absolute;
	inset: 0;
}

.home-hero__media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	filter: saturate(0.88) contrast(1.08);
	scale: 1.02;
}

.home-hero__veil {
	background:
		radial-gradient(circle at 75% 40%, rgba(240, 68, 36, 0.12), transparent 35%),
		linear-gradient(90deg, rgba(4, 6, 11, 0.95) 0%, rgba(4, 6, 11, 0.68) 48%, rgba(4, 6, 11, 0.22) 78%),
		linear-gradient(0deg, rgba(4, 6, 11, 0.84), transparent 42%);
}

.home-hero__grid {
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 80px 80px;
	mask-image: linear-gradient(90deg, black, transparent 78%);
	opacity: 0.45;
}

.home-hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: max(760px, 100svh);
	padding-top: calc(var(--header-height) + 3rem);
	padding-bottom: 2.25rem;
}

.home-hero__copy {
	width: min(900px, 82%);
	margin-block: auto;
	padding-top: 2rem;
}

.hero-kicker {
	color: rgba(255, 255, 255, 0.72);
}

.hero-kicker::before {
	background: var(--accent);
}

.home-hero h1 {
	margin: 1.4rem 0 1.5rem;
	font-family: var(--display);
	font-size: clamp(4.2rem, 9.2vw, 9.2rem);
	font-weight: 600;
	letter-spacing: -0.075em;
	line-height: 0.82;
}

.home-hero h1 em {
	display: inline-block;
	padding-right: 0.06em;
	background: linear-gradient(100deg, var(--accent-bright), #ff8a55);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.home-hero__copy > p {
	max-width: 610px;
	margin: 0;
	color: rgba(255, 255, 255, 0.68);
	font-size: clamp(1rem, 1.6vw, 1.22rem);
	line-height: 1.8;
}

.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 2.2rem;
}

.home-hero__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 1.35rem;
	border-top: 1px solid var(--line-dark);
}

.hero-status,
.hero-scroll {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	color: rgba(255, 255, 255, 0.54);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-decoration: none;
	text-transform: uppercase;
}

.hero-status i {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--signal);
	box-shadow: 0 0 0 5px rgba(216, 255, 85, 0.12);
}

.hero-scroll svg {
	width: 1.1rem;
	fill: none;
	stroke: var(--accent-bright);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.5;
	animation: scroll-cue 1.6s ease-in-out infinite;
}

@keyframes scroll-cue {
	0%, 100% { transform: translateY(-2px); }
	50% { transform: translateY(4px); }
}

/* About */

.about-section {
	overflow: hidden;
	background: var(--paper);
}

.about-section::before {
	position: absolute;
	top: -8rem;
	right: -10rem;
	width: 30rem;
	height: 30rem;
	border: 1px solid var(--line-light);
	border-radius: 50%;
	box-shadow: 0 0 0 4rem rgba(8, 11, 18, 0.018), 0 0 0 8rem rgba(8, 11, 18, 0.012);
	content: "";
}

.about-section__heading {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
	gap: clamp(2rem, 6vw, 8rem);
	align-items: end;
}

.about-section__body {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
	gap: clamp(3rem, 7vw, 8rem);
	align-items: center;
	margin-top: clamp(4rem, 8vw, 7rem);
}

.about-visual {
	position: relative;
	padding: 0 3rem 3rem 0;
}

.about-visual::before {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 76%;
	height: 74%;
	border-radius: 1.5rem;
	background: var(--ink);
	content: "";
}

.about-visual__frame {
	position: relative;
	z-index: 1;
	aspect-ratio: 1.12;
	overflow: hidden;
	border-radius: 1.25rem;
	background: var(--paper-muted);
}

.about-visual__frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 68%;
	filter: saturate(0.82) contrast(1.06);
	transition: transform 900ms var(--ease), filter 500ms ease;
}

.about-visual:hover img {
	transform: scale(1.035);
	filter: saturate(1) contrast(1.04);
}

.about-visual__badge {
	position: absolute;
	right: 0.75rem;
	bottom: 0.75rem;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 1rem;
	width: 12.5rem;
	padding: 1.1rem;
	border: 1px solid var(--line-dark);
	border-radius: 1rem;
	background: rgba(8, 11, 18, 0.92);
	color: var(--white);
	box-shadow: 0 1rem 3rem rgba(8, 11, 18, 0.25);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.about-visual__badge svg {
	width: 2.4rem;
	flex: 0 0 auto;
	fill: none;
	stroke: var(--accent);
	stroke-linecap: round;
	stroke-width: 1.5;
}

.about-visual__badge span {
	font-size: 0.66rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	line-height: 1.65;
	text-transform: uppercase;
}

.studio-principles {
	border-top: 1px solid var(--line-light);
}

.principle {
	display: grid;
	grid-template-columns: 3rem 1fr;
	gap: 1.5rem;
	padding: 2rem 0;
	border-bottom: 1px solid var(--line-light);
}

.principle > span {
	padding-top: 0.25rem;
	color: var(--accent);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.12em;
}

.principle h3 {
	margin: 0 0 0.55rem;
	font-family: var(--display);
	font-size: clamp(1.35rem, 2.1vw, 2rem);
	font-weight: 600;
	letter-spacing: -0.035em;
}

.principle p {
	margin: 0;
	color: var(--text-soft);
	font-size: 0.95rem;
	line-height: 1.75;
}

/* Games */

.games-section {
	overflow: hidden;
	background: var(--ink);
	color: var(--white);
}

.games-section::before {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
	background-size: 24px 24px;
	content: "";
	mask-image: linear-gradient(to bottom, black, transparent 72%);
	opacity: 0.25;
}

.games-section__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(120px);
	pointer-events: none;
}

.games-section__orb--one {
	top: 12%;
	left: -12rem;
	width: 28rem;
	height: 28rem;
	background: var(--accent);
	opacity: 0.11;
}

.games-section__orb--two {
	right: -10rem;
	bottom: 4%;
	width: 24rem;
	height: 24rem;
	background: #6366f1;
	opacity: 0.12;
}

.games-section .studio-shell {
	position: relative;
	z-index: 1;
}

.games-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
	gap: 1.25rem;
}

.game-card {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--line-dark);
	border-radius: 1.4rem;
	background: rgba(255, 255, 255, 0.045);
	transition: border-color 250ms ease, transform 450ms var(--ease), background 250ms ease;
}

.game-card:hover {
	border-color: rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.07);
	transform: translateY(-8px);
}

.game-card__visual {
	position: relative;
	aspect-ratio: 1.22;
	overflow: hidden;
	margin: 0.65rem;
	border-radius: 1rem;
	background: linear-gradient(145deg, #242b3d, #121725);
}

.game-card__visual::after {
	position: absolute;
	inset: auto 0 0;
	height: 42%;
	background: linear-gradient(transparent, rgba(8, 11, 18, 0.72));
	content: "";
}

.game-card__visual > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms var(--ease);
}

.game-card:hover .game-card__visual > img {
	transform: scale(1.06);
}

.game-card__number {
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.6rem;
	height: 2.1rem;
	padding-inline: 0.55rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background: rgba(8, 11, 18, 0.55);
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.game-card__visual-shine {
	position: absolute;
	top: -40%;
	left: -80%;
	z-index: 2;
	width: 46%;
	height: 180%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
	transform: rotate(18deg);
	transition: left 850ms var(--ease);
}

.game-card:hover .game-card__visual-shine {
	left: 140%;
}

.game-card__content {
	display: flex;
	flex-direction: column;
	min-height: 250px;
	padding: 1.4rem 1.55rem 1.6rem;
}

.game-card__title-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.game-card__title-row > div:first-child > span {
	color: var(--accent-bright);
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.game-card h3 {
	margin: 0.35rem 0 0;
	font-family: var(--display);
	font-size: clamp(1.55rem, 2.5vw, 2.2rem);
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1.05;
}

.game-card__metrics {
	display: flex;
	flex: 0 0 auto;
	gap: 0.4rem;
}

.game-card__metrics span {
	padding: 0.4rem 0.55rem;
	border: 1px solid var(--line-dark);
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.68);
	font-size: 0.65rem;
	font-weight: 700;
}

.game-card__content > p {
	display: -webkit-box;
	overflow: hidden;
	margin: 1rem 0 1.5rem;
	color: rgba(255, 255, 255, 0.56);
	font-size: 0.9rem;
	line-height: 1.75;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.game-card__stores {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: auto;
}

.game-card__stores a {
	display: flex;
	height: 42px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 0.6rem;
	background: #000;
	transition: border-color 180ms ease, transform 180ms ease;
}

.game-card__stores a:hover {
	border-color: rgba(255, 255, 255, 0.5);
	transform: translateY(-2px);
}

.game-card__stores img {
	width: auto;
	height: 100%;
}

.games-coming-soon {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: center;
	padding: clamp(2rem, 5vw, 4rem);
	border: 1px solid var(--line-dark);
	border-radius: 1.5rem;
	background: rgba(255, 255, 255, 0.04);
}

.games-coming-soon__mark {
	position: relative;
	width: clamp(6rem, 12vw, 10rem);
	aspect-ratio: 1;
	border: 1px solid var(--line-dark);
	border-radius: 50%;
}

.games-coming-soon__mark span {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.65rem;
	height: 0.65rem;
	border-radius: 50%;
	background: var(--accent);
	transform: translate(-50%, -50%);
}

.games-coming-soon__mark span:nth-child(2) {
	transform: translate(-50%, -50%) rotate(120deg) translateX(2.5rem);
}

.games-coming-soon__mark span:nth-child(3) {
	transform: translate(-50%, -50%) rotate(240deg) translateX(2.5rem);
}

.games-coming-soon > div:nth-child(2) > span {
	color: var(--signal);
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.games-coming-soon h3 {
	margin: 0.4rem 0 0.65rem;
	font-family: var(--display);
	font-size: clamp(1.8rem, 3vw, 3rem);
	letter-spacing: -0.04em;
}

.games-coming-soon p {
	max-width: 600px;
	margin: 0;
	color: rgba(255, 255, 255, 0.56);
}

/* Idea + forms */

.idea-section {
	overflow: hidden;
	background: var(--signal);
}

.idea-section::after {
	position: absolute;
	right: -14rem;
	bottom: -18rem;
	width: 40rem;
	height: 40rem;
	border: 1px solid rgba(8, 11, 18, 0.12);
	border-radius: 50%;
	content: "";
}

.idea-section__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(28rem, 1.15fr);
	gap: clamp(3rem, 7vw, 8rem);
	align-items: center;
}

.idea-section__copy > p {
	max-width: 500px;
	margin-top: 2rem;
	color: rgba(8, 11, 18, 0.7);
}

.idea-section .section-kicker,
.idea-section h2 em {
	color: var(--ink);
}

.idea-orbit {
	position: relative;
	width: 8.5rem;
	aspect-ratio: 1;
	margin-top: 4rem;
	border: 1px solid rgba(8, 11, 18, 0.24);
	border-radius: 50%;
	animation: orbit-spin 15s linear infinite;
}

.idea-orbit::before,
.idea-orbit::after {
	position: absolute;
	inset: 18%;
	border: 1px solid rgba(8, 11, 18, 0.18);
	border-radius: 50%;
	content: "";
}

.idea-orbit::after {
	inset: 38%;
	background: var(--ink);
}

.idea-orbit span,
.idea-orbit i {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	background: var(--accent);
}

.idea-orbit span:nth-child(1) { transform: translate(-50%, -50%) translateX(4.2rem); }
.idea-orbit span:nth-child(2) { transform: translate(-50%, -50%) rotate(120deg) translateX(4.2rem); }
.idea-orbit span:nth-child(3) { transform: translate(-50%, -50%) rotate(240deg) translateX(4.2rem); }
.idea-orbit i { width: 0.45rem; height: 0.45rem; background: var(--ink); transform: translate(-50%, -50%) translateY(-2.6rem); }

@keyframes orbit-spin {
	to { transform: rotate(360deg); }
}

.form-card {
	padding: clamp(1.5rem, 4vw, 3rem);
	border-radius: 1.5rem;
	background: var(--paper-bright);
	box-shadow: 0 2rem 6rem rgba(8, 11, 18, 0.18);
}

.form-card__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--line-light);
}

.form-card__heading > span {
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.form-card__heading i {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: #3c7200;
	font-size: 0.68rem;
	font-style: normal;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.form-card__heading i::before {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #65b611;
	content: "";
}

.studio-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.studio-form label {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.studio-form label > span {
	font-size: 0.67rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.studio-form input,
.studio-form select,
.studio-form textarea {
	width: 100%;
	border: 1px solid var(--line-light);
	border-radius: 0.85rem;
	outline: none;
	background: rgba(8, 11, 18, 0.035);
	color: var(--text);
	transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.studio-form input,
.studio-form select {
	height: 56px;
	padding: 0 1rem;
}

.studio-form textarea {
	min-height: 160px;
	padding: 1rem;
	resize: vertical;
}

.studio-form input::placeholder,
.studio-form textarea::placeholder {
	color: #98999e;
}

.studio-form input:focus,
.studio-form select:focus,
.studio-form textarea:focus {
	border-color: var(--accent);
	background: var(--white);
	box-shadow: 0 0 0 4px rgba(240, 68, 36, 0.1);
}

.form-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 0.5rem;
}

.form-card__footer small {
	max-width: 15rem;
	color: var(--text-soft);
	font-size: 0.68rem;
	line-height: 1.55;
}

.form-alert {
	padding: 0.9rem 1rem;
	border-radius: 0.75rem;
	font-size: 0.82rem;
	font-weight: 700;
}

.form-alert--success {
	border: 1px solid rgba(64, 132, 17, 0.24);
	background: rgba(101, 182, 17, 0.12);
	color: #315e0f;
}

.form-alert--error {
	border: 1px solid rgba(240, 68, 36, 0.24);
	background: rgba(240, 68, 36, 0.1);
	color: #a52d18;
}

/* Careers */

.career-section {
	min-height: 850px;
	overflow: hidden;
	background: var(--ink);
	color: var(--white);
}

.career-section__media,
.career-section__shade {
	position: absolute;
	inset: 0;
}

.career-section__media {
	background: url("../img/career.jpg") center 45% / cover no-repeat;
	filter: saturate(0.65) contrast(1.1);
}

.career-section__shade {
	background:
		linear-gradient(90deg, rgba(8, 11, 18, 0.96), rgba(8, 11, 18, 0.62) 58%, rgba(8, 11, 18, 0.5)),
		linear-gradient(0deg, rgba(8, 11, 18, 0.9), transparent 65%);
}

.career-section__content {
	position: relative;
	z-index: 1;
}

.career-board {
	overflow: hidden;
	border: 1px solid var(--line-dark);
	border-radius: 1.25rem;
	background: rgba(8, 11, 18, 0.62);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
}

.career-board__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.4rem;
	border-bottom: 1px solid var(--line-dark);
}

.career-board__top span {
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.career-board__top small {
	color: rgba(255, 255, 255, 0.45);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.career-group {
	display: grid;
	grid-template-columns: minmax(12rem, 0.32fr) minmax(0, 0.68fr);
	border-bottom: 1px solid var(--line-dark);
}

.career-group:last-child {
	border-bottom: 0;
}

.career-group__name {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.7rem;
	border-right: 1px solid var(--line-dark);
}

.career-group__name span {
	font-family: var(--display);
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: -0.025em;
}

.career-group__name small {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.65rem;
	height: 1.65rem;
	border-radius: 50%;
	background: var(--accent);
	font-size: 0.65rem;
	font-weight: 800;
}

.career-group__positions {
	display: flex;
	flex-direction: column;
}

.career-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 72px;
	padding: 1rem 1.7rem;
	border: 0;
	border-bottom: 1px solid var(--line-dark);
	background: transparent;
	color: var(--white);
	text-align: left;
	cursor: pointer;
	transition: background 220ms ease, color 220ms ease, padding 300ms var(--ease);
}

.career-item:last-child {
	border-bottom: 0;
}

.career-item span {
	font-size: 0.92rem;
	font-weight: 700;
}

.career-item svg {
	width: 1.2rem;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.5;
}

.career-item:hover {
	padding-left: 2.2rem;
	background: var(--signal);
	color: var(--ink);
}

.career-board__empty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding: clamp(2rem, 5vw, 4rem);
}

.career-board__empty h3 {
	margin: 0 0 0.5rem;
	font-family: var(--display);
	font-size: clamp(1.6rem, 3vw, 2.6rem);
	letter-spacing: -0.04em;
}

.career-board__empty p {
	max-width: 620px;
	margin: 0;
	color: rgba(255, 255, 255, 0.56);
}

.career-board__empty a {
	flex: 0 0 auto;
	color: var(--signal);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

/* Career modal */

.career-modal {
	position: fixed;
	inset: 0;
	z-index: 3000;
	display: grid;
	place-items: center;
	padding: 1rem;
	background: rgba(4, 6, 11, 0.8);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	animation: modal-in 250ms ease both;
}

.career-modal__dialog {
	position: relative;
	width: min(100%, 720px);
	max-height: calc(100svh - 2rem);
	overflow-y: auto;
	padding: clamp(1.5rem, 4vw, 3rem);
	border: 1px solid var(--line-dark);
	border-radius: 1.4rem;
	background: var(--paper-bright);
	color: var(--text);
	box-shadow: 0 2rem 8rem rgba(0, 0, 0, 0.45);
}

.career-modal__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--line-light);
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}

.career-modal__close svg {
	width: 1.2rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
}

.career-modal__heading {
	padding-right: 3rem;
	margin-bottom: 2rem;
}

.career-modal__heading span {
	color: var(--accent);
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.career-modal__heading h2 {
	margin: 0.45rem 0 0;
	font-family: var(--display);
	font-size: clamp(2rem, 5vw, 3.4rem);
	letter-spacing: -0.05em;
	line-height: 1;
}

.career-modal input[readonly] {
	color: var(--text-soft);
}

@keyframes modal-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Contact */

.contact-section {
	background: var(--paper-bright);
}

.contact-section__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(28rem, 1.15fr);
	gap: clamp(3rem, 8vw, 9rem);
	align-items: start;
}

.contact-section__copy > p {
	max-width: 520px;
	margin-top: 2rem;
}

.contact-details {
	display: grid;
	gap: 1.2rem;
	margin-top: 3.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line-light);
}

.contact-details a,
.contact-details div {
	display: grid;
	grid-template-columns: 6rem 1fr;
	gap: 1rem;
	font-family: var(--display);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
}

.contact-details span {
	color: var(--text-soft);
	font-family: var(--body);
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.contact-details a:hover {
	color: var(--accent);
}

.contact-form-wrap {
	padding: clamp(1.5rem, 4vw, 3rem);
	border: 1px solid var(--line-light);
	border-radius: 1.4rem;
	background: var(--paper);
}

.studio-form--contact .send-button {
	align-self: flex-end;
	margin-top: 0.5rem;
}

/* Footer */

.studio-cta {
	position: relative;
	overflow: hidden;
	padding-block: clamp(5rem, 9vw, 9rem);
	background: var(--accent);
	color: var(--white);
}

.studio-cta::before {
	position: absolute;
	top: -45%;
	right: 12%;
	width: 32rem;
	height: 32rem;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	box-shadow: 0 0 0 4rem rgba(255, 255, 255, 0.035), 0 0 0 8rem rgba(255, 255, 255, 0.025);
	content: "";
}

.studio-cta__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 3rem;
}

.studio-cta .section-kicker--light {
	color: rgba(255, 255, 255, 0.72);
}

.studio-cta h2 {
	font-size: clamp(3rem, 6.8vw, 7rem);
}

.studio-cta h2 em {
	color: var(--ink);
}

.circle-link {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: clamp(10rem, 15vw, 13rem);
	aspect-ratio: 1;
	padding: 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.38);
	border-radius: 50%;
	background: var(--ink);
	color: var(--white);
	text-align: center;
	text-decoration: none;
	transition: transform 450ms var(--ease), background 220ms ease, color 220ms ease;
}

.circle-link span {
	max-width: 7rem;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.45;
	text-transform: uppercase;
}

.circle-link svg {
	width: 2.2rem;
	margin-top: 1rem;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.4;
}

.circle-link:hover {
	background: var(--signal);
	color: var(--ink);
	transform: rotate(5deg) scale(1.04);
}

.site-footer {
	padding-top: clamp(4rem, 7vw, 7rem);
	background: var(--ink);
	color: var(--white);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(18rem, 1.6fr) repeat(3, minmax(8rem, 0.65fr));
	gap: clamp(2.5rem, 5vw, 5rem);
	padding-bottom: clamp(4rem, 7vw, 6rem);
}

.site-footer__brand img {
	width: 178px;
	height: auto;
}

.site-footer__brand > p {
	max-width: 330px;
	margin: 1.5rem 0;
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.9rem;
	line-height: 1.8;
}

.site-footer__location {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.site-footer__column h3 {
	margin: 0 0 1.3rem;
	color: rgba(255, 255, 255, 0.35);
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.site-footer__column ul {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__column li,
.site-footer__column a {
	font-size: 0.88rem;
}

.site-footer__column a {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	transition: color 180ms ease;
}

.site-footer__column a:hover {
	color: var(--signal);
}

.site-footer__column a span {
	font-size: 0.72rem;
}

.site-footer__email {
	font-family: var(--display);
	font-size: clamp(1rem, 1.5vw, 1.25rem) !important;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.site-footer__contact p {
	margin: 1.25rem 0 0;
	color: rgba(255, 255, 255, 0.48);
	font-size: 0.78rem;
	line-height: 1.7;
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 1.5rem;
	border-top: 1px solid var(--line-dark);
}

.site-footer__bottom p,
.site-footer__bottom a {
	margin: 0;
	color: rgba(255, 255, 255, 0.4);
	font-size: 0.68rem;
	font-weight: 700;
	text-decoration: none;
}

.site-footer__bottom > div {
	display: flex;
	gap: 1.5rem;
}

.site-footer__bottom a:hover {
	color: var(--white);
}

/* Blog, archive, article, and legal pages sharing the public shell */

#sub-navbar {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 0.7rem max(1.5rem, calc((100vw - var(--shell)) / 2));
	border-bottom: 1px solid var(--line-light);
	background: var(--paper-bright);
}

.sub-navbar-item {
	color: var(--accent);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-decoration: none;
	text-transform: uppercase;
}

#main-wrapper {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 2rem;
	width: min(calc(100% - 3rem), var(--shell));
	min-height: 60vh;
	margin-inline: auto;
	padding-block: clamp(3rem, 7vw, 6rem);
}

.other-items-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
	align-self: start;
}

.main-wrapper--wide {
	grid-template-columns: minmax(0, 1fr) !important;
}

.main-wrapper--wide .other-items-wrapper {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.journal-heading {
	grid-column: 1 / -1;
	margin-bottom: 1.5rem;
}

.journal-heading .other-item-wrapper-title {
	margin-top: 1.2rem;
	margin-bottom: 0;
}

.other-item-wrapper-title {
	grid-column: 1 / -1;
	margin: 0 0 1.5rem;
	font-family: var(--display);
	font-size: clamp(2.7rem, 6vw, 5.8rem);
	font-weight: 600;
	letter-spacing: -0.06em;
	line-height: 0.95;
}

.journal-pagination,
.journal-empty {
	grid-column: 1 / -1;
}

.journal-pagination .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	margin-top: 2rem;
}

.journal-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 0.65rem;
	border: 1px solid var(--line-light);
	border-radius: 999px;
	background: var(--paper-bright);
	font-size: 0.74rem;
	font-weight: 800;
	text-decoration: none;
}

.journal-pagination .page-numbers.current,
.journal-pagination a.page-numbers:hover {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--white);
}

.journal-empty {
	padding: 3rem;
	border: 1px solid var(--line-light);
	border-radius: 1rem;
	background: var(--paper-bright);
}

.journal-empty h2 {
	margin: 0 0 0.5rem;
	font-family: var(--display);
	font-size: 2rem;
	letter-spacing: -0.04em;
}

.journal-empty p {
	margin: 0;
	color: var(--text-soft);
}

.other-item {
	display: flex;
	flex-direction: column;
	min-height: 430px;
	overflow: hidden;
	border: 1px solid var(--line-light);
	border-radius: 1.1rem;
	background: var(--paper-bright);
	text-decoration: none;
	transition: border-color 220ms ease, transform 350ms var(--ease), box-shadow 350ms ease;
}

.other-item:hover {
	border-color: rgba(240, 68, 36, 0.45);
	box-shadow: 0 1.5rem 4rem rgba(8, 11, 18, 0.1);
	transform: translateY(-6px);
}

.other-item-image-wrapper {
	position: relative;
	aspect-ratio: 1.55;
	overflow: hidden;
	background: var(--ink-soft);
}

.other-item-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 650ms var(--ease);
}

.other-item:hover .other-item-image {
	transform: scale(1.05);
}

.other-item-image-wrapper::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(8, 11, 18, 0.82), transparent 62%);
	content: "";
}

.other-item-title {
	position: absolute;
	right: 1.2rem;
	bottom: 1.2rem;
	left: 1.2rem;
	z-index: 1;
	margin: 0;
	color: var(--white);
	font-family: var(--display);
	font-size: clamp(1.35rem, 2.4vw, 2rem);
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1.1;
}

.other-item-date {
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 1;
	padding: 0.4rem 0.65rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background: rgba(8, 11, 18, 0.52);
	color: var(--white);
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.other-item-text-wrapper {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.35rem;
}

.other-item-text {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	color: var(--text-soft);
	font-size: 0.88rem;
	line-height: 1.75;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.read-more-text {
	margin-top: auto;
	padding-top: 1.5rem;
	color: var(--accent);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.other-side-wrapper {
	position: sticky;
	top: calc(var(--header-height) + 1.5rem);
	align-self: start;
	padding: 1rem;
	border: 1px solid var(--line-light);
	border-radius: 1rem;
	background: var(--paper-bright);
}

.sidebar-content-wrapper {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.sidebar-heading {
	margin: 0.3rem 0 1rem;
	color: var(--text-soft);
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.sidebar-content {
	display: grid;
	grid-template-columns: 82px 1fr;
	gap: 0.8rem;
	align-items: center;
	overflow: hidden;
	border-radius: 0.7rem;
	background: var(--paper);
	color: var(--text);
	text-decoration: none;
	transition: background 180ms ease, color 180ms ease;
}

.sidebar-content:hover {
	background: var(--ink);
	color: var(--white);
}

.sidebar-content-img {
	aspect-ratio: 1;
	overflow: hidden;
}

.sidebar-content-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sidebar-content-title {
	padding: 0.65rem 0.7rem 0.65rem 0;
	font-size: 0.76rem;
	font-weight: 700;
	line-height: 1.45;
}

.blog-content {
	grid-column: 1 / -1;
	max-width: 820px;
	font-size: 1.02rem;
	line-height: 1.85;
}

.article-shell {
	display: block;
}

.article-header {
	margin-bottom: clamp(2rem, 5vw, 4rem);
}

.article-header .other-item-wrapper-title {
	margin: 1.2rem 0;
}

.article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.2rem;
	color: var(--text-soft);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.article-meta span {
	position: relative;
	padding-left: 1.2rem;
}

.article-meta span::before {
	position: absolute;
	top: 50%;
	left: 0;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--accent);
	content: "";
	transform: translateY(-50%);
}

.article-featured {
	aspect-ratio: 1.65;
	overflow: hidden;
	margin: 0 0 2rem;
	border-radius: 1.25rem;
	background: var(--ink-soft);
}

.article-featured img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

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

.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
	margin: 2.2em 0 0.75em;
	font-family: var(--display);
	letter-spacing: -0.035em;
	line-height: 1.15;
}

.blog-content h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.blog-content h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.blog-content img { height: auto; border-radius: 1rem; }
.blog-content a { color: var(--accent); }
.blog-content blockquote { margin: 2rem 0; padding: 1.5rem 2rem; border-left: 3px solid var(--accent); background: var(--paper-bright); font-family: var(--display); font-size: 1.25rem; }

.social-share-button-wrapper {
	grid-column: 1 / -1;
	display: flex;
	justify-content: flex-start;
	margin-bottom: 1rem;
}

.social-share-buttons {
	display: flex;
	gap: 0.55rem;
}

.social-share-button {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	color: var(--white);
	transition: transform 180ms ease;
}

.social-share-button:hover { transform: translateY(-3px); }
.social-share-button svg { width: 18px; fill: currentColor; }
.whatsapp { background: #25d366; }
.facebook { background: #4267b2; }
.twitter { background: #1da1f2; }

#legal-main-wrapper,
#page-main-wrapper {
	min-height: 70vh;
	background: var(--paper-bright);
}

.top-heading-wrapper {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 370px;
	overflow: hidden;
	padding: clamp(3rem, 7vw, 6rem) max(1.5rem, calc((100vw - var(--shell)) / 2));
	background: var(--ink);
	color: var(--white);
}

.top-heading-wrapper::before {
	position: absolute;
	top: -10rem;
	right: 7%;
	width: 28rem;
	height: 28rem;
	border: 1px solid var(--line-dark);
	border-radius: 50%;
	box-shadow: 0 0 0 4rem rgba(255, 255, 255, 0.02), 0 0 0 8rem rgba(255, 255, 255, 0.015);
	content: "";
}

.top-heading-wrapper::after {
	position: absolute;
	right: -8rem;
	bottom: -12rem;
	width: 26rem;
	height: 26rem;
	border-radius: 50%;
	background: var(--accent);
	content: "";
	filter: blur(120px);
	opacity: 0.2;
}

.top-page-head {
	position: relative;
	z-index: 1;
	width: min(100%, var(--shell));
	margin: 0;
	font-family: var(--display);
	font-size: clamp(3rem, 7vw, 7rem);
	font-weight: 600;
	letter-spacing: -0.065em;
	line-height: 0.95;
}

.top-heading__inner {
	position: relative;
	z-index: 1;
	width: min(100%, var(--shell));
	margin-inline: auto;
}

.top-heading__inner .top-page-head {
	margin-top: 1.2rem;
}

.top-sub-scrolling-menu-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 64px;
	border-bottom: 1px solid var(--line-light);
	background: var(--paper);
}

.top-sub-scrolling-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(calc(100% - 5rem), 640px);
	height: 100%;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.top-sub-scrolling-menu::-webkit-scrollbar { display: none; }

.top-sub-scrolling-menu a {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 1.2rem;
	color: var(--text-soft);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.top-sub-scrolling-menu a:hover { color: var(--accent); }

.scroll-button {
	position: absolute;
	top: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 54px;
	height: 100%;
	padding: 0;
	border: 0;
	background: var(--paper);
	color: var(--ink);
	cursor: pointer;
}

.scroll-button:first-of-type { left: max(0px, calc((100vw - 640px) / 2 - 12px)); }
.scroll-button:last-of-type { right: max(0px, calc((100vw - 640px) / 2 - 12px)); }
.scroll-button svg { width: 1.1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }

.legal-content-wrapper {
	width: min(calc(100% - 3rem), 900px);
	margin-inline: auto;
	padding-block: clamp(3rem, 7vw, 6rem);
	color: #454850;
	font-size: 1rem;
	line-height: 1.9;
}

.legal-content-wrapper h2,
.legal-content-wrapper h3,
.legal-content-wrapper h4,
.legal-content-wrapper h5,
.legal-content-wrapper h6 {
	margin: 2em 0 0.75em;
	color: var(--ink);
	font-family: var(--display);
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1.15;
}

.legal-content-wrapper h2 { font-size: clamp(2rem, 4vw, 3rem); }
.legal-content-wrapper h3 { font-size: clamp(1.65rem, 3vw, 2.3rem); }
.legal-content-wrapper h4 { font-size: 1.5rem; }
.legal-content-wrapper p,
.legal-content-wrapper ol,
.legal-content-wrapper ul { margin: 0 0 1.5rem; }
.legal-content-wrapper a { color: var(--accent); font-weight: 700; }

.not-found {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 72vh;
	overflow: hidden;
	padding: 5rem 1.5rem;
	background: var(--ink);
	color: var(--white);
	text-align: center;
}

.not-found::before {
	position: absolute;
	width: 34rem;
	height: 34rem;
	border-radius: 50%;
	background: var(--accent);
	content: "";
	filter: blur(150px);
	opacity: 0.17;
}

.not-found__inner { position: relative; z-index: 1; }
.not-found__code { display: block; color: var(--accent); font-family: var(--display); font-size: clamp(7rem, 20vw, 16rem); font-weight: 700; letter-spacing: -0.1em; line-height: 0.72; }
.not-found h1 { margin: 2rem 0 0.8rem; font-family: var(--display); font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.05em; }
.not-found p { max-width: 520px; margin: 0 auto 2rem; color: rgba(255, 255, 255, 0.6); }

/* Reveal animation */

.reveal--pending {
	opacity: 0;
	transform: translateY(34px);
}

.reveal--pending.is-visible {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 700ms ease, transform 800ms var(--ease);
}

/* Responsive */

@media (max-width: 1180px) {
	.desktop-navigation {
		gap: 1.3rem;
	}

	.header-blog-link {
		display: none;
	}

	.site-footer__grid {
		grid-template-columns: minmax(18rem, 1.5fr) repeat(2, minmax(8rem, 0.65fr));
	}

	.site-footer__contact {
		grid-column: 2 / -1;
	}

	.main-wrapper--wide .other-items-wrapper {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 960px) {
	:root {
		--section-space: 6.5rem;
	}

	.desktop-navigation,
	.header-cta {
		display: none;
	}

	.menu-toggle {
		display: flex;
	}

	.site-header__inner {
		grid-template-columns: auto 1fr auto;
	}

	.section-heading,
	.about-section__heading,
	.about-section__body,
	.idea-section__grid,
	.contact-section__grid {
		grid-template-columns: 1fr;
	}

	.section-heading > p,
	.about-section__lead {
		max-width: 660px;
	}

	.about-section__body {
		gap: 4rem;
	}

	.about-visual {
		width: min(100%, 700px);
	}

	.idea-section__copy,
	.contact-section__copy {
		max-width: 720px;
	}

	.idea-orbit {
		display: none;
	}

	.career-group {
		grid-template-columns: 1fr;
	}

	.career-group__name {
		border-right: 0;
		border-bottom: 1px solid var(--line-dark);
	}

	#main-wrapper {
		grid-template-columns: 1fr;
	}

	.other-side-wrapper {
		position: static;
	}
}

@media (max-width: 720px) {
	:root {
		--header-height: 74px;
		--section-space: 5rem;
	}

	.studio-shell,
	.site-header__inner,
	#main-wrapper,
	.legal-content-wrapper {
		width: min(calc(100% - 2rem), var(--shell));
	}

	.site-brand {
		width: 126px;
	}

	.home-hero {
		min-height: max(680px, 100svh);
	}

	.home-hero__content {
		min-height: max(680px, 100svh);
		padding-bottom: 1.5rem;
	}

	.home-hero__copy {
		width: 100%;
	}

	.home-hero h1 {
		font-size: clamp(4rem, 20vw, 6rem);
	}

	.home-hero__veil {
		background: linear-gradient(90deg, rgba(4, 6, 11, 0.93), rgba(4, 6, 11, 0.48)), linear-gradient(0deg, rgba(4, 6, 11, 0.9), transparent 55%);
	}

	.hero-scroll span {
		display: none;
	}

	.about-visual {
		padding: 0 1.5rem 2rem 0;
	}

	.about-visual__badge {
		right: 0;
		width: 10.8rem;
		padding: 0.85rem;
	}

	.games-grid {
		grid-template-columns: 1fr;
	}

	.games-coming-soon {
		grid-template-columns: 1fr;
		text-align: left;
	}

	.games-coming-soon__mark {
		width: 7rem;
	}

	.form-row {
		grid-template-columns: 1fr;
	}

	.form-card__footer {
		align-items: stretch;
		flex-direction: column;
	}

	.form-card__footer .button,
	.studio-form--contact .send-button {
		align-self: stretch;
	}

	.career-board__empty,
	.studio-cta__inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.circle-link {
		align-self: flex-end;
	}

	.site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}

	.site-footer__contact {
		grid-column: 1 / -1;
	}

	.site-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
	}

	.other-items-wrapper {
		grid-template-columns: 1fr;
	}

	.main-wrapper--wide .other-items-wrapper {
		grid-template-columns: 1fr;
	}

	.other-item {
		min-height: 390px;
	}

	.top-heading-wrapper {
		min-height: 290px;
	}

	.scroll-button:first-of-type { left: 0; }
	.scroll-button:last-of-type { right: 0; }
}

@media (max-width: 480px) {
	.home-hero__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.home-hero__actions .button {
		width: 100%;
	}

	.hero-status span {
		max-width: 9rem;
	}

	.game-card__title-row {
		flex-direction: column;
	}

	.form-card,
	.contact-form-wrap {
		border-radius: 1rem;
	}

	.career-board__top {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.35rem;
	}

	.career-group__name,
	.career-item {
		padding-inline: 1.2rem;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
	}

	.site-footer__brand,
	.site-footer__contact {
		grid-column: auto;
	}

	.contact-details a,
	.contact-details div {
		grid-template-columns: 1fr;
		gap: 0.25rem;
	}
}

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