/*
 * Last Games brand refresh
 * Keeps the public site grounded in black and white, with #FA2E23 reserved
 * for graphic emphasis rather than long-form text surfaces.
 */

:root {
	--brand-radius: 1.5rem;
	--brand-shadow: 8px 8px 0 var(--accent);
}

body.last-games-site {
	font-kerning: normal;
}

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

.section-heading h2,
.about-section h2,
.idea-section h2,
.contact-section h2,
.home-hero h1,
.other-item-wrapper-title,
.top-page-head {
	font-weight: 700;
	letter-spacing: -0.045em;
}

.section-heading h2,
.about-section h2,
.idea-section h2,
.contact-section h2 {
	line-height: 0.92;
}

.section-kicker,
.hero-kicker {
	font-weight: 700;
	letter-spacing: 0.12em;
}

.button,
.header-cta,
.game-card__number,
.game-card__title-row > div:first-child > span,
.home-journal__intro > a,
.home-story__visual time,
.home-story__body > span {
	font-weight: 700;
	letter-spacing: 0.07em;
}

.menu-link,
.header-blog-link,
.mobile-navigation__meta a {
	font-weight: 600;
}

/* Header and wordmark */

.site-header {
	background: transparent;
	border-color: transparent;
}

.site-header::before {
	opacity: 1;
}

.site-header.is-scrolled,
body:not(.last-games-home) .site-header {
	background: var(--ink);
	border-color: var(--line-dark);
}

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

.site-brand {
	display: inline-flex;
	width: 118px;
	height: auto;
	line-height: 0;
}

.site-brand img,
.site-footer__brand img,
.game-card__placeholder img,
.home-story__placeholder img {
	display: block;
	height: auto;
	image-rendering: auto;
}

.site-brand img {
	width: 118px;
	height: auto;
	object-fit: initial;
}

.header-cta {
	min-height: 42px;
	border: 2px solid var(--white);
	border-radius: 999px;
	background: var(--white);
	box-shadow: 3px 3px 0 var(--accent);
	color: var(--ink);
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.header-cta:hover {
	border-color: var(--white);
	background: var(--white);
	color: var(--ink);
	box-shadow: 2px 2px 0 var(--accent);
	transform: translate(2px, 2px);
}

/* Buttons: readable black/white surfaces, red motion accent */

.button {
	min-height: 56px;
	border-width: 2px;
	border-radius: 999px;
}

.button--primary,
.button--dark {
	border-color: var(--ink);
	background: var(--ink);
	box-shadow: 4px 4px 0 var(--accent);
	color: var(--white);
}

.button--primary:hover,
.button--dark:hover {
	border-color: var(--ink);
	background: var(--ink);
	box-shadow: 2px 2px 0 var(--accent);
	color: var(--white);
	transform: translate(4px, 4px);
}

.home-hero .button--primary {
	border-color: var(--white);
	background: var(--white);
	color: var(--ink);
}

.home-hero .button--primary:hover {
	border-color: var(--white);
	background: var(--white);
	color: var(--ink);
}

.not-found .button--primary {
	border-color: var(--white);
	background: var(--white);
	color: var(--ink);
}

.not-found .button--primary:hover {
	border-color: var(--white);
	background: var(--white);
	color: var(--ink);
}

.button--ghost {
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.2);
}

/* Hero */

.home-hero__media video {
	filter: saturate(0.72) contrast(0.96) brightness(0.9);
	opacity: 0.94;
	scale: 1.01;
}

.home-hero__veil {
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.62) 56%, rgba(0, 0, 0, 0.3) 100%);
}

.home-hero__copy {
	width: min(780px, 88%);
}

.hero-kicker {
	margin-bottom: 1.1rem;
	color: var(--white);
}

.home-hero h1 {
	margin: 1.1rem 0 1.5rem;
	font-size: clamp(3.8rem, 7.4vw, 7.6rem);
	font-weight: 700;
	letter-spacing: -0.05em;
	line-height: 0.9;
}

.home-hero h1 em {
	background: none;
	color: var(--accent);
}

.home-hero__copy > p {
	max-width: 640px;
	color: rgba(255, 255, 255, 0.76);
	font-size: clamp(1rem, 1.45vw, 1.2rem);
}

.home-hero__actions {
	margin-top: 2.2rem;
}

.home-hero__footer {
	justify-content: center;
	opacity: 1;
	transform: none;
}

.hero-scroll {
	color: rgba(255, 255, 255, 0.76);
	font-weight: 600;
	letter-spacing: 0.08em;
}

.hero-scroll svg {
	animation: none;
}

/* Studio */

.about-manifesto {
	border-block: 0;
	border-top: 8px solid var(--accent);
	background: var(--ink);
	color: var(--white);
}

.about-manifesto__inner {
	grid-template-columns: 1fr;
	min-height: 28rem;
}

.about-manifesto__copy {
	width: min(100%, 70rem);
	justify-content: space-between;
	padding-right: 0;
	padding-top: clamp(3rem, 5vw, 4.5rem);
	padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.about-manifesto__copy > p {
	margin: clamp(2.5rem, 5vw, 4.5rem) 0;
	font-weight: 600;
	letter-spacing: -0.04em;
}

.about-manifesto__copy > p em {
	color: var(--accent);
}

.about-manifesto__meta {
	border-top-color: rgba(255, 255, 255, 0.2);
	color: rgba(255, 255, 255, 0.62);
}

.about-method > li {
	position: relative;
	display: flex;
	min-height: 18rem;
	align-items: flex-start;
	flex-direction: column;
	justify-content: flex-start;
	padding-top: 3rem;
}

.about-method > li::before {
	position: absolute;
	top: -1px;
	left: 0;
	width: 3.5rem;
	height: 4px;
	background: var(--accent);
	content: "";
}

.about-method > li > span {
	color: var(--text-soft);
}

.about-method h3 {
	margin: auto 0 0.8rem;
	font-weight: 700;
	letter-spacing: -0.025em;
}

.about-method p {
	font-size: 0.9rem;
}

/* Games */

.games-section__orb {
	display: none;
}

.games-section::before {
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 72px 72px;
	opacity: 0.55;
}

.game-card {
	border: 2px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--brand-radius);
	background: rgba(255, 255, 255, 0.035);
}

.game-card:hover {
	border-color: var(--white);
	box-shadow: var(--brand-shadow);
	transform: translate(-4px, -4px);
}

.game-card__visual {
	margin: 0.75rem;
	border-radius: calc(var(--brand-radius) - 0.45rem);
}

.game-card__number {
	border: 1px solid var(--accent);
	border-radius: 0.55rem;
	background: var(--ink);
	color: var(--white);
}

.game-card__placeholder {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	background: var(--accent);
}

.game-card__placeholder img {
	width: min(62%, 15rem);
}

.game-card__placeholder span {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	z-index: 1;
	padding: 0.38rem 0.55rem;
	background: var(--ink);
	color: var(--white);
	font-size: 0.58rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.game-card__content {
	min-height: 250px;
}

.game-card h3 {
	margin-top: 0.35rem;
	font-weight: 700;
	letter-spacing: -0.025em;
}

.games-coming-soon {
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--brand-radius);
	background: rgba(255, 255, 255, 0.035);
}

/* Journal on the homepage */

.home-journal {
	background: var(--white);
}

.home-journal__intro > p {
	margin: 0 0 1.4rem;
	color: var(--text-soft);
	font-size: clamp(1rem, 1.35vw, 1.18rem);
	line-height: 1.8;
}

.home-journal__intro > a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding-bottom: 0.2rem;
	border-bottom: 3px solid var(--accent);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-decoration: none;
	text-transform: uppercase;
}

.home-journal__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.home-story {
	display: flex;
	min-width: 0;
	min-height: 34rem;
	overflow: hidden;
	border: 2px solid var(--ink);
	border-radius: var(--brand-radius);
	background: var(--white);
	color: var(--ink);
	flex-direction: column;
	text-decoration: none;
	transition: box-shadow 260ms ease, transform 320ms var(--ease);
}

.home-story:hover {
	box-shadow: var(--brand-shadow);
	transform: translate(-4px, -4px);
}

.home-story__visual {
	position: relative;
	aspect-ratio: 1.35;
	overflow: hidden;
	border-bottom: 2px solid var(--ink);
	background: var(--ink);
}

.home-story__visual > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 650ms var(--ease);
}

.home-story:hover .home-story__visual > img {
	transform: scale(1.045);
}

.home-story__visual time {
	position: absolute;
	right: 0.8rem;
	bottom: 0.8rem;
	padding: 0.38rem 0.55rem;
	background: var(--ink);
	color: var(--white);
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.07em;
}

.home-story__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	background: var(--ink);
}

.home-story__placeholder img {
	width: 48%;
}

.home-story__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.5rem;
}

.home-story__body h3 {
	margin: 0;
	font-family: var(--display);
	font-size: clamp(1.35rem, 2.2vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.05;
}

.home-story__body p {
	margin: 1rem 0 1.5rem;
	color: var(--text-soft);
	font-size: 0.88rem;
	line-height: 1.75;
}

.home-story__body > span {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid var(--line-light);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.home-story__body > span i {
	color: var(--accent);
	font-size: 1.1rem;
	font-style: normal;
}

/* Forms, careers, and contact */

.idea-section {
	background: var(--ink);
	color: var(--white);
}

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

.idea-section__copy > p {
	color: rgba(255, 255, 255, 0.66);
}

.career-section {
	min-height: 0;
	background: var(--ink);
}

.career-board {
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--brand-radius);
	background: rgba(0, 0, 0, 0.82);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.career-group__name small {
	border: 2px solid var(--accent);
	background: var(--white);
	color: var(--ink);
}

.career-item {
	box-shadow: inset 0 0 var(--accent);
}

.career-item:hover {
	padding-left: 2.4rem;
	background: var(--white);
	box-shadow: inset 8px 0 var(--accent);
	color: var(--ink);
}

.career-modal__heading span {
	color: var(--text-soft);
}

.contact-form-wrap {
	border: 2px solid var(--ink);
	border-radius: var(--brand-radius);
	background: var(--white);
	box-shadow: var(--brand-shadow);
}

.contact-details a,
.contact-details div {
	display: grid;
	grid-template-columns: 6rem minmax(0, 1fr);
	align-items: baseline;
	gap: 1rem;
}

.contact-details a:hover {
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 3px;
	text-underline-offset: 0.2em;
}

.studio-form input::placeholder,
.studio-form textarea::placeholder {
	color: rgba(0, 0, 0, 0.56);
}

/* Footer */

.site-footer {
	border-top: 8px solid var(--accent);
}

.site-footer__brand img {
	width: 194px;
}

.site-footer__column h3 {
	color: rgba(255, 255, 255, 0.58);
}

.site-footer__bottom p,
.site-footer__bottom a {
	color: rgba(255, 255, 255, 0.66);
}

.career-board__top small {
	color: rgba(255, 255, 255, 0.65);
}

/* Restore spacing on the richer journal and legal templates. */

.journal-heading .other-item-wrapper-title,
.article-header .other-item-wrapper-title,
.top-heading__inner .top-page-head {
	margin-top: 1.2rem;
}

.other-item {
	border: 2px solid var(--ink);
	border-radius: var(--brand-radius);
}

.other-item:hover {
	border-color: var(--ink);
	box-shadow: var(--brand-shadow);
	transform: translate(-4px, -4px);
}

@media (max-width: 960px) {
	.mobile-navigation {
		align-items: flex-start;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.mobile-navigation__inner {
		padding: 2rem 0 3rem;
	}

	.about-manifesto__inner {
		grid-template-columns: 1fr;
		min-height: 0;
	}

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

	.home-story:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

@media (max-width: 720px) {
	.site-brand,
	.site-brand img {
		width: 104px;
		height: auto;
	}

	.home-hero h1 {
		font-size: clamp(3.6rem, 15.5vw, 3.9rem);
	}

	.home-hero__copy {
		width: 100%;
	}

	.home-hero__veil {
		background: linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.48));
	}

	.about-manifesto__inner {
		display: grid;
		grid-template-columns: 1fr;
	}

	.about-manifesto__copy {
		min-height: 0;
		justify-content: flex-start;
		padding: 2rem 0 1.75rem;
	}

	.about-manifesto__copy > p {
		margin: 1.25rem 0;
	}

	.about-method > li {
		min-height: 14rem;
		padding: 2rem 0;
	}

	.about-method h3 {
		margin-top: auto;
	}

	.home-journal__grid {
		grid-template-columns: 1fr;
	}

	.home-story,
	.home-story:last-child:nth-child(odd) {
		grid-column: auto;
		min-height: 30rem;
	}

	.site-footer__brand img {
		width: 184px;
	}
}

@media (max-width: 480px) {
	.about-manifesto__copy {
		min-height: 0;
	}

	.about-manifesto__copy > p {
		margin: 0.9rem 0;
	}

	.contact-form-wrap {
		box-shadow: 5px 5px 0 var(--accent);
	}

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