/* =========================================================
   Design tokens
   ========================================================= */
:root {
	color-scheme: dark;

	--bg-dark-1: #09111a;
	--bg-dark-2: #0e1c24;
	--bg-dark-3: #182a33;
	--text-primary-muted: #a5ced6;
	--text-primary-accent: #f0f4f5;
	--border-primary: #202f3a;
	--accent-primary-1: #5ced5c;
	--accent-primary-2: #5bb157;
	--accent-primary-3: #38723a;
	--font-secondary: #0e1d24;

	/* Typography */
	--font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;

	/* Layout */
	--page-padding: clamp(8px, 4.5vw, 75px);
	--content-max: 1200px;

	/* Banner art is authored at one ratio site-wide: the /articles/ featured
	   card and the article hero both crop to this, so a single 1200x675
	   export drops into either without a second crop */
	--banner-ratio: 16 / 9;
	--nav-height: 72px;
	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 14px;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	padding-inline: var(--page-padding);
	background-color: var(--bg-dark-1);
	color: var(--text-primary-muted);
	font-family: var(--font-primary);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

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

img {
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

:focus-visible {
	outline: 2px solid var(--accent-primary-1);
	outline-offset: 3px;
}

/* =========================================================
   Utilities
   ========================================================= */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: var(--radius-sm);
	background-color: var(--accent-primary-1);
	color: var(--font-secondary);
	font-size: 0.875rem;
	font-weight: 700;
	transform: translateY(-200%);
}

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

/* Section wrapper: constrained to the content grid */
.section {
	max-width: var(--content-max);
	margin-inline: auto;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
	/* Full-bleed background, content still on the 1200px grid */
	margin-inline: calc(var(--page-padding) * -1);
	padding-inline: var(--page-padding);
	background-color: var(--bg-dark-2);
	border-bottom: 1px solid var(--border-primary);
}

.site-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: var(--content-max);
	min-height: var(--nav-height);
	margin-inline: auto;
}

.site-logo {
	display: block;
	flex: none;
	border-radius: var(--radius-sm);
}

.site-logo img {
	width: 90px;
	height: auto;
}

/* =========================================================
   Navigation
   ========================================================= */
.site-nav {
	display: flex;
	align-items: center;
}

.nav-list {
	display: flex;
	align-items: center;
	gap: 8px;
}

.nav-link,
.nav-cta {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 18px;
	border-radius: var(--radius-sm);
	font-size: 0.775rem;
	font-weight: 700;
	letter-spacing: 0.06em;
    background-color: var(--bg-dark-2);
	transition: color 0.15s ease, background-color 0.15s ease,
		border-color 0.15s ease;
}

.nav-link {
	color: var(--text-primary-muted);
}

.nav-link:hover {
	color: var(--text-primary-accent);
    background-color: var(--bg-dark-3);
}

.nav-link[aria-current="page"] {
	background-color: var(--bg-dark-3);
	color: var(--text-primary-accent);
}

.nav-cta {
	border: 1px solid var(--accent-primary-1);
	color: var(--text-primary-accent);
}

.nav-cta:hover {
	background-color: var(--accent-primary-3);
	border-color: var(--accent-primary-1);
}

.nav-cta__icon {
	flex: none;
}

/* Hamburger — desktop-hidden */
.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--border-primary);
	border-radius: var(--radius-md);
	background-color: var(--bg-dark-3);
	color: var(--text-primary-muted);
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-toggle:hover {
	color: var(--text-primary-accent);
	border-color: var(--accent-primary-2);
}

.nav-toggle__label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Language picker — dropdown on desktop, inline row inside the mobile menu */
.lang-picker {
	position: relative;
}

/* Only the mobile panel labels the locale list */
.lang-picker__heading {
	display: none;
}

.lang-picker__toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border: 1px solid var(--border-primary);
	border-radius: var(--radius-sm);
	background-color: var(--bg-dark-2);
	color: var(--text-primary-muted);
	font-size: 0.775rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	cursor: pointer;
	transition: color 0.15s ease, background-color 0.15s ease,
		border-color 0.15s ease;
}

.lang-picker__toggle:hover {
	color: var(--text-primary-accent);
	background-color: var(--bg-dark-3);
	border-color: var(--accent-primary-2);
}

.lang-picker__chevron {
	flex: none;
	transition: transform 0.15s ease;
}

.lang-picker__toggle[aria-expanded="true"] .lang-picker__chevron {
	transform: rotate(180deg);
}

.lang-picker__flag {
	font-size: 1rem;
	line-height: 1;
}

.lang-picker__list {
	/* Left-aligned to its trigger, which now opens the nav row */
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 60;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 120px;
	padding: 8px;
	border: 1px solid var(--border-primary);
	border-radius: var(--radius-md);
	background-color: var(--bg-dark-2);
}

.lang-picker__list:not([data-open]) {
	display: none;
}

.lang-picker__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	color: var(--text-primary-muted);
	font-size: 0.775rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	transition: color 0.15s ease, background-color 0.15s ease;
}

/* Only the anchors are actionable. The current language renders as a span, so
   it must not pick up the pointer affordance. */
a.lang-picker__link:hover {
	color: var(--text-primary-accent);
	background-color: var(--bg-dark-3);
}

.lang-picker__link[aria-current] {
	background-color: var(--bg-dark-3);
	color: var(--text-primary-accent);
	cursor: default;
}

/* =========================================================
   Navigation — below 1024px
   ========================================================= */
@media (max-width: 1023.98px) {
	:root {
		--nav-height: 60px;
	}

	.site-logo img {
		width: 70px;
	}

	.nav-toggle {
		display: inline-flex;
		width: 40px;
		height: 40px;
	}

	.nav-list {
		position: absolute;
		top: calc(100% + 1px);
		right: 0;
		z-index: 50;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		width: min(100%, 450px);
		padding: 12px;
		border: 1px solid var(--border-primary);
		border-radius: var(--radius-lg);
		background-color: var(--bg-dark-2);
	}

	.nav-list:not([data-open]) {
		display: none;
	}

	.nav-link,
	.nav-cta {
		padding: 12px;
		border-radius: var(--radius-md);
	}

	.nav-cta {
		justify-content: space-between;
	}

	/* The locale list rides inside the open hamburger panel, above the page
	   links, so the dropdown trigger is dropped in favour of a plain row. */
	.nav-item--lang {
		margin-bottom: 4px;
		padding-bottom: 12px;
		border-bottom: 1px solid var(--border-primary);
	}

	.lang-picker__heading {
		display: block;
		margin-bottom: 8px;
		padding-inline: 4px;
		color: var(--text-primary-muted);
		font-size: 0.7rem;
		font-weight: 700;
		letter-spacing: 0.08em;
		text-transform: uppercase;
	}

	.lang-picker__toggle {
		display: none;
	}

	.lang-picker__list,
	.lang-picker__list:not([data-open]) {
		position: static;
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
		min-width: 0;
		padding: 0;
		border: 0;
		background-color: transparent;
	}

	/* Sized to the label rather than stretched, now that it reads "EN" / "ES" */
	.lang-picker__link {
		padding: 10px 16px;
		border: 1px solid var(--border-primary);
		border-radius: var(--radius-md);
	}
}

/* Panel spans the full content width on small screens */
@media (max-width: 767.98px) {
	.nav-list {
		width: 100%;
	}
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 28px;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.15s ease, background-color 0.15s ease,
		border-color 0.15s ease;
}

.btn--primary {
	background-color: var(--accent-primary-1);
	color: var(--font-secondary);
}

.btn--primary:hover {
	background-color: var(--accent-primary-2);
	color: var(--text-primary-accent);
}

/* Outlined variant — mirrors .nav-cta's colours and hover, text only */
.btn--outline {
	border-color: var(--accent-primary-1);
	background-color: var(--bg-dark-2);
	color: var(--text-primary-accent);
}

.btn--outline:hover {
	background-color: var(--accent-primary-3);
	border-color: var(--accent-primary-1);
}

/* Square icon-only control — slideshow arrows, lightbox arrows and close */
.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--border-primary);
	border-radius: var(--radius-md);
	background-color: var(--bg-dark-3);
	color: var(--text-primary-muted);
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
	color: var(--text-primary-accent);
	border-color: var(--accent-primary-2);
}

@media (max-width: 500px) {
	.icon-btn {
		width: 32px;
		height: 32px;
	}
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
	padding-block: clamp(40px, 6vw, 88px);
}

.hero__decor {
	position: absolute;
	inset-block: 0;
	left: 50%;
	width: 100vw;
	max-width: 100vw;
	height: 100%;
	transform: translateX(-50%);
	object-fit: cover;
	object-position: center bottom;
	opacity: 0.9;
	z-index: -1;
	pointer-events: none;
}

.hero::after {
	content: "";
	position: absolute;
	inset-block: 0;
	left: 50%;
	width: 100vw;
	max-width: 100vw;
	transform: translateX(-50%);
	background: radial-gradient(50% 50% ellipse at bottom, var(--bg-dark-1), transparent);
	z-index: -1;
	pointer-events: none;
}

.hero__content {
	display: grid;
	justify-items: start;
	gap: 24px;

	p {
		color: var(--text-primary-accent);
	}
}

.hero__heading {
	margin: 0;
	color: var(--text-primary-accent);
	font-size: clamp(2rem, 4.4vw, 3.25rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.hero__text {
	margin: 0;
	max-width: 52ch;
	color: var(--text-primary-muted);
	font-size: 1.0625rem;
}

.hero__media img {
	width: 100%;
	border-radius: var(--radius-lg);
	box-shadow: rgba(33, 33, 33, 0.15) 0px 7px 29px 0px;
}

@media (max-width: 1023.98px) {
	.hero {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

/* =========================================================
   Breadcrumbs
   ========================================================= */
.breadcrumbs {
	padding-top: clamp(20px, 3vw, 32px);
}

.breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	/* The base reset only covers ul */
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
}

/* Chevron between crumbs, never after the last one */
.breadcrumbs__item:not(:last-child)::after {
	content: "\203A";
	margin-inline-start: 10px;
	color: var(--text-primary-muted);
}

.breadcrumbs__link {
	color: var(--text-primary-muted);
	transition: color 0.15s ease;
}

.breadcrumbs__link:hover {
	color: var(--accent-primary-1);
}

.breadcrumbs__current {
	color: var(--text-primary-accent);
}

/* =========================================================
   Demo game (hero on /demo/)
   ========================================================= */
.demo {
	padding-block: clamp(12px, 1.5vw, 20px) clamp(24px, 4vw, 48px);
}

.demo__intro {
	margin-bottom: clamp(20px, 3vw, 32px);
}

.demo__heading {
	margin: 0;
	color: var(--text-primary-accent);
	font-size: clamp(1.75rem, 3.4vw, 2.75rem);
	font-weight: 800;
	line-height: 1.1;
}

.demo__lede {
	margin: 12px 0 0;
	max-width: 100ch;
	color: var(--text-primary-muted);
}

.demo__frame {
	border: 1px solid var(--border-primary);
	border-radius: var(--radius-lg);
	background-color: var(--bg-dark-2);
	overflow: hidden;
}

/* --- Header: title + provider --- */
.demo__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px clamp(16px, 2vw, 24px);
}

.demo__label {
	color: var(--text-primary-accent);
	font-size: clamp(1rem, 2vw, 1.5rem);
	font-style: italic;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.demo__provider {
	flex: none;
	width: 110px;
	height: 32px;
}

/* --- Middle: preloader still, then the game itself --- */
.demo__stage {
	position: relative;
	display: grid;
	aspect-ratio: 16 / 9;
	background-color: var(--bg-dark-1);
	border-block: 1px solid var(--border-primary);
	overflow: hidden;
}

.demo__preview {
	display: grid;
	place-items: center;
	padding-inline: clamp(16px, 4vw, 32px);
	/* Own stacking context so the wash sits over the still, under the button */
	isolation: isolate;
}

/* Blurred so the play control stays legible; the scale hides the soft edges */
.demo__poster {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(8px);
	transform: scale(1.08);
}

.demo__preview::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	/* --bg-dark-1 at 45% — flat custom properties can't carry an alpha here */
	background-color: rgba(9, 17, 26, 0.45);
}

.demo__play {
	min-width: min(100%, 420px);
	padding-block: 16px;
	font-size: 0.9375rem;
	letter-spacing: 0.01em;
	text-transform: none;
}

.demo__iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

/* --- Bottom: operator, copy and call to action --- */
.demo__footer {
	display: flex;
	align-items: center;
	gap: 16px clamp(16px, 2vw, 24px);
	padding: 16px clamp(16px, 2vw, 24px);
}

.demo__operator {
	flex: none;
	width: 64px;
	height: auto;
}

.demo__copy {
	display: grid;
	/* Pushes the nudge and the CTA to the far edge */
	margin: 0 auto 0 0;
}

.demo__title {
	color: var(--text-primary-accent);
	font-size: 0.9375rem;
	font-style: italic;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.demo__subtitle {
	color: var(--text-primary-muted);
	font-size: 0.875rem;
	font-style: italic;
}

.demo__nudge {
	margin: 0;
	color: var(--text-primary-muted);
	font-size: 0.875rem;
}

/* Outbound link: .nav-cta's padding, and the casino cards' lift on hover */
.demo__cta {
	flex: none;
	padding: 11px 18px;
	white-space: nowrap;
	transition: color 0.15s ease, background-color 0.15s ease,
		border-color 0.15s ease, transform 0.15s ease,
		box-shadow 0.15s ease;
}

.demo__cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px -8px var(--accent-primary-1);
}

.demo__cta:active {
	transform: translateY(0);
}

/* Icon leans towards where the link is taking you */
.demo__cta-icon {
	flex: none;
	transition: transform 0.15s ease;
}

.demo__cta:hover .demo__cta-icon {
	transform: translate(2px, -2px);
}

@media (prefers-reduced-motion: reduce) {

	.demo__cta,
	.demo__cta-icon {
		transition: color 0.15s ease, background-color 0.15s ease,
			border-color 0.15s ease;
	}

	.demo__cta:hover {
		transform: none;
	}

	.demo__cta:hover .demo__cta-icon {
		transform: none;
	}
}

/* Tighter chrome once the frame loses the desktop grid */
@media (max-width: 1023.98px) {
	.demo__header {
		padding: 10px clamp(16px, 2vw, 24px);
	}

	.demo__footer {
		gap: 12px clamp(8px, 1.5vw, 24px);
	}

	.demo__cta {
		padding: 10px 16px;
	}
}

/* Footer stacks before the copy and the CTA start colliding */
@media (max-width: 767.98px) {
	.demo__footer {
		flex-wrap: wrap;
	}

	.demo__copy {
		/* Full row, so the nudge and CTA wrap together beneath it */
		flex: 1 0 100%;
		margin-inline: 0;
	}
}

/* Portrait stage on phones */
@media (max-width: 549.98px) {
	.demo__stage {
		aspect-ratio: 2 / 3;
	}

	.demo__header {
		padding: 14px clamp(16px, 2vw, 24px);
	}

	.demo__footer {
		align-items: start;
	}

	.demo__nudge,
	.demo__cta {
		flex: 1 0 100%;
	}

	.demo__cta {
		justify-content: center;
	}

	.demo__provider {
		display: none
	}
}

/* =========================================================
   Intro copy band
   ========================================================= */
.intro {
	/* Full-bleed background, content still on the 1200px grid */
	margin-inline: calc(var(--page-padding) * -1);
	padding-inline: var(--page-padding);
	background-color: var(--bg-dark-2);
}

.intro__inner {
	padding-block: clamp(48px, 6vw, 88px);
	text-align: center;
}

.intro__heading {
	margin: 0 0 clamp(20px, 3vw, 32px);
	color: var(--text-primary-accent);
	font-size: clamp(1.625rem, 2.6vw, 2.25rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

/* Measure capped for readability, then re-centred inside the band */
.intro__text {
	max-width: 75ch;
	margin: 0 auto;
	color: var(--text-primary-muted);
}

.intro__text + .intro__text {
	margin-top: 1em;
}

/* =========================================================
   Info cards
   ========================================================= */
.info {
	padding-block: clamp(48px, 6vw, 88px);
}

.info__heading {
	margin: 0 0 16px;
	color: var(--text-primary-accent);
	font-size: clamp(1.625rem, 2.6vw, 2.25rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.info__lede {
	margin: 0 0 clamp(24px, 3vw, 40px);
	max-width: 80ch;
	color: var(--text-primary-muted);
}

.info__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 24px);
}

.info__card {
	border: 1px solid var(--border-primary);
	border-radius: var(--radius-lg);
	background-color: var(--bg-dark-2);
	overflow: hidden;
}

.info__thumb {
	width: 100%;
	aspect-ratio: 12 / 5;
	object-fit: cover;
}

.info__body {
	padding: clamp(20px, 2.5vw, 28px);
}

.info__title {
	margin: 0 0 8px;
	color: var(--text-primary-accent);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
}

.info__text {
	margin: 0;
	color: var(--text-primary-muted);
}

/* Single column once two cards stop fitting side by side */
@media (max-width: 767.98px) {
	.info__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* =========================================================
   Closing copy
   ========================================================= */
.outro {
	/* No top padding: the cards above already close on their own space */
	padding-bottom: clamp(48px, 6vw, 88px);
}

.outro__heading {
	margin: 0 0 16px;
	color: var(--text-primary-accent);
	font-size: clamp(1.625rem, 2.6vw, 2.25rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.outro__text {
	margin: 0;
	max-width: 80ch;
	color: var(--text-primary-muted);
}

/* =========================================================
   Partner carousel (decorative — no links, nothing to click)
   ========================================================= */
.partners {
	--partners-gap: clamp(32px, 4vw, 56px);
	padding-block: clamp(24px, 4vw, 48px);
}

.partners__viewport {
	overflow: hidden;
	/* Fade the logos out at both edges instead of clipping them hard */
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.partners__marquee {
	display: flex;
	width: max-content;
	animation: partners-scroll 40s linear infinite;
}

/* Two identical tracks, so shifting by half the row loops seamlessly */
@keyframes partners-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

.partners__viewport:hover .partners__marquee {
	animation-play-state: paused;
}

.partners__track {
	display: flex;
	align-items: center;
	gap: var(--partners-gap);
	/* Half-gap each side keeps spacing even across the seam */
	padding-inline: calc(var(--partners-gap) / 2);
}

.partners__track img {
	width: clamp(130px, 11vw, 156px);
	height: auto;
	opacity: 0.75;
	transition: opacity 0.15s ease;
}

.partners__track img:hover {
	opacity: 1;
}

/* Reduced motion: no scroll, just a centred static row */
@media (prefers-reduced-motion: reduce) {
	.partners__viewport {
		-webkit-mask-image: none;
		mask-image: none;
	}

	.partners__marquee {
		width: auto;
		animation: none;
	}

	.partners__track[aria-hidden="true"] {
		display: none;
	}

	.partners__track {
		flex-wrap: wrap;
		justify-content: center;
		gap: clamp(24px, 4vw, 56px);
		width: 100%;
		padding-inline: 0;
	}
}

/* =========================================================
   Features band + slideshow
   ========================================================= */
.features {
	/* Full-bleed background, content still on the 1200px grid */
	margin-inline: calc(var(--page-padding) * -1);
	padding-inline: var(--page-padding);
	background-color: var(--bg-dark-2);
}

.features__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	gap: clamp(32px, 5vw, 72px);
	max-width: var(--content-max);
	margin-inline: auto;
	padding-block: clamp(48px, 6vw, 88px);
}

.features__intro p {
	margin: 0 0 1em;
	color: var(--text-primary-muted);
}

.features__intro p:last-of-type {
	margin-bottom: 0;
}

.features__intro .btn {
	margin-top: clamp(20px, 3vw, 32px);
}

.features__heading {
	margin: 0 0 24px;
	color: var(--text-primary-accent);
	font-size: clamp(1.625rem, 2.6vw, 2.25rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

/* --- Slideshow --- */
.slider {
	position: relative;
	isolation: isolate;
	padding: clamp(20px, 2.5vw, 32px);
	border: 1px solid var(--border-primary);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

/* Tinted wash of whichever slide is showing; --slide-bg is set by script.js */
.slider::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: var(--slide-bg);
	background-position: center;
	background-size: cover;
	opacity: 0.15;
}

.slider__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.slider__heading {
	margin: 0;
	color: var(--text-primary-accent);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.slider__nav {
	display: flex;
	flex: none;
	gap: 8px;
}

/* Spacing lives on the children, not a uniform gap, so the heading and its
   paragraph read as one group separated from the image */
.slide {
	display: grid;
	animation: slide-in 0.3s ease both;
}

.slide[hidden] {
	display: none;
}

@keyframes slide-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.slide__img {
	width: 100%;
	border-radius: var(--radius-md);
}

.slide__heading {
	margin: 24px 0 0;
	color: var(--text-primary-accent);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.25;
}

.slide__text {
	margin: 8px 0 0;
	color: var(--text-primary-muted);
	line-height: 1.4;
}

@media (max-width: 1023.98px) {
	.features__inner {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   Game details
   ========================================================= */
.details {
	padding-block: clamp(48px, 6vw, 88px);
}

.details__card {
	padding: clamp(24px, 4vw, 56px);
	border: 1px solid var(--border-primary);
	border-radius: var(--radius-lg);
	background-color: var(--bg-dark-2);
}

.details__heading {
	margin: 0 0 clamp(24px, 3vw, 40px);
	color: var(--text-primary-accent);
	font-size: clamp(1.625rem, 2.6vw, 2.25rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

/* Four rows per column, filling the left column before the right */
.details__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(4, auto);
	grid-auto-flow: column;
	gap: 0 clamp(32px, 5vw, 72px);
	margin: 0;
}

.details__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px;
	align-items: baseline;
	padding-block: 16px;
	border-bottom: 1px solid var(--border-primary);
}

.details__row dt {
	color: var(--text-primary-muted);
}

.details__row dd {
	margin: 0;
	color: var(--text-primary-accent);
	font-weight: 700;
}

@media (max-width: 1023.98px) {
	.details__list {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
		grid-auto-flow: row;
	}
}

/* =========================================================
   Quote
   ========================================================= */
.quote {
	padding-block: clamp(48px, 6vw, 88px);
}

.quote__heading {
	margin: 0 0 20px;
	color: var(--text-primary-accent);
	font-size: clamp(1.625rem, 2.6vw, 2.25rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.quote__intro {
	margin: 0 0 clamp(32px, 4vw, 56px);
	max-width: 65ch;
	color: var(--text-primary-muted);
}

/* Logo spans both rows; blockquote and its caption stack beside it */
.quote__figure {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 12px clamp(24px, 4vw, 56px);
	margin: 0;
}

.quote__logo {
	grid-row: 1 / span 2;
	align-self: start;
	width: 164px;
	height: 84px;
	border-radius: var(--radius-md);
}

.quote__blockquote {
	grid-column: 2;
	margin: 0;
}

.quote__blockquote p {
	margin: 0;
	padding-inline-start: 12px;
    border-left: 6px var(--accent-primary-2) solid;
	color: var(--text-primary-accent);
	line-height: 1.4;
	font-style: italic;
}

.quote__caption {
	grid-column: 2;
	color: var(--text-primary-muted);
	font-size: 0.875rem;
}

.quote__caption cite {
	font-style: normal;
}

.quote__caption a {
	color: var(--text-primary-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.15s ease;
}

.quote__caption a:hover {
	color: var(--accent-primary-1);
}

@media (max-width: 767.98px) {
	.quote__figure {
		grid-template-columns: minmax(0, 1fr);
	}

	.quote__logo {
		grid-row: auto;
	}

	.quote__blockquote,
	.quote__caption {
		grid-column: 1;
	}
}

/* =========================================================
   Screenshot grid + lightbox
   ========================================================= */
.shots {
	padding-block: clamp(48px, 6vw, 88px);
}

.shots__heading {
	margin: 0 0 clamp(24px, 3vw, 40px);
	color: var(--text-primary-accent);
	font-size: clamp(1.625rem, 2.6vw, 2.25rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.shots__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(12px, 1.5vw, 20px);
}

.shot {
	display: block;
	/* Square thumbnails; the source art is cropped to fit */
	aspect-ratio: 1;
	border-radius: var(--radius-md);
	background-color: var(--bg-dark-2);
	overflow: hidden;
}

.shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease, opacity 0.15s ease;
}

.shot:hover img {
	opacity: 0.85;
	transform: scale(1.04);
}

/* --- Lightbox --- */
.lightbox {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: hidden;
}

.lightbox::backdrop {
	/* --bg-dark-1 at 92%; custom properties are unreliable inside ::backdrop */
	background-color: rgba(9, 17, 26, 0.92);
}

.lightbox__panel {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(8px, 2vw, 24px);
	width: 100%;
	height: 100%;
	padding: clamp(64px, 8vw, 88px) clamp(8px, 4vw, 40px) clamp(24px, 4vw, 40px);
}

.lightbox__close {
	position: absolute;
	top: clamp(12px, 2vw, 24px);
	right: clamp(12px, 2vw, 24px);
}

.lightbox__nav {
	flex: none;
}

.lightbox__figure {
	display: grid;
	gap: 12px;
	justify-items: center;
	min-width: 0;
	margin: 0;
}

.lightbox__img {
	max-width: 100%;
	/* Leaves room for the caption and panel padding */
	max-height: calc(100vh - 200px);
	width: auto;
	border-radius: var(--radius-md);
	object-fit: contain;
}

.lightbox__caption {
	color: var(--text-primary-muted);
	font-size: 0.875rem;
}

/* Arrows drop below the image so it can use the full width */
@media (max-width: 800px) {
	.lightbox__panel {
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-content: center;
		gap: 12px 0;
		padding-inline: 16px;
	}

	.lightbox__figure {
		grid-row: 1;
		grid-column: 1 / -1;
		gap: 8px;
	}

	.lightbox__nav--prev {
		grid-row: 2;
		grid-column: 1;
		justify-self: start;
	}

	.lightbox__nav--next {
		grid-row: 2;
		grid-column: 2;
		justify-self: end;
	}

	.lightbox__img {
		max-height: calc(100vh - 180px);
	}
}

@media (max-width: 1023.98px) {
	.shots__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767.98px) {
	.shots__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* =========================================================
   FAQ
   ========================================================= */
.faq {
	padding-block: clamp(48px, 6vw, 88px);
}

.faq__heading {
	margin: 0 0 clamp(24px, 3vw, 40px);
	color: var(--text-primary-accent);
	font-size: clamp(1.625rem, 2.6vw, 2.25rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.faq__list {
	display: grid;
	gap: 12px;
}

.faq__item {
	border: 1px solid var(--border-primary);
	border-radius: var(--radius-md);
	background-color: var(--bg-dark-2);
}

.faq__summary {
	padding: 18px clamp(16px, 2vw, 24px);
	cursor: pointer;
	/* Drop the native disclosure triangle in every engine */
	display: block;
	list-style: none;
}

.faq__summary::-webkit-details-marker {
	display: none;
}

.faq__question {
	margin: 0;
	color: var(--text-primary-muted);
	font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
	font-weight: 700;
	line-height: 1.3;
	transition: color 0.15s ease;
}

.faq__item:hover .faq__question,
.faq__item[open] .faq__question {
	color: var(--text-primary-accent);
}

.faq__answer {
	margin: 0;
	padding: 0 clamp(16px, 2vw, 24px) 20px;
	color: var(--text-primary-muted);
}

/* =========================================================
   Modular content blocks

   Every child of .content is self-contained: the grid gap owns the
   vertical rhythm and nothing styles a sibling by position, so blocks
   can be reordered, duplicated or dropped without touching the CSS.
   ========================================================= */
.content {
	display: grid;
	gap: clamp(16px, 2vw, 24px);
	padding-block: clamp(48px, 6vw, 88px);
}

/* Back-to-back sections share one break instead of stacking two paddings */
.content + .content {
	padding-top: 0;
}

/* Headings earn extra room above, wherever they land in the order */
.content > * + :is(.content__heading, .content__subheading) {
	margin-top: clamp(12px, 2vw, 24px);
}

.content__heading {
	margin: 0;
	color: var(--text-primary-accent);
	font-size: clamp(1.625rem, 2.6vw, 2.25rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.content__subheading {
	margin: 0;
	color: var(--text-primary-accent);
	font-size: clamp(1.25rem, 1.9vw, 1.5rem);
	font-weight: 700;
	line-height: 1.25;
}

.content__text {
	margin: 0;
	max-width: 80ch;
	color: var(--text-primary-muted);
}

/* The base reset strips colour and underline from every anchor, so links
   sitting inside prose need them back or they are invisible. Matches the
   treatment already used on .quote__caption */
.content__text a,
.content-note a,
.content-glossary__desc a,
.content-figure__caption a,
.content-table__caption a {
	color: var(--text-primary-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.15s ease;
}

.content__text a:hover,
.content-note a:hover,
.content-glossary__desc a:hover,
.content-figure__caption a:hover,
.content-table__caption a:hover {
	color: var(--accent-primary-1);
}

/* --- Wide image --- */
.content-figure {
	margin: 0;
}

.content-figure__img {
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--border-primary);
	border-radius: var(--radius-lg);
	object-fit: cover;
}

/* =========================================================
   Table of contents — collapsible, full content width
   ========================================================= */
.toc {
	padding-block: clamp(24px, 3vw, 40px) 0;
}

.toc__panel {
	border: 1px solid var(--border-primary);
	border-radius: var(--radius-lg);
	background-color: var(--bg-dark-2);
}

.toc__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px clamp(16px, 2vw, 24px);
	cursor: pointer;
	/* Drop the native disclosure triangle in every engine */
	list-style: none;
}

.toc__summary::-webkit-details-marker {
	display: none;
}

.toc__heading {
	margin: 0;
	color: var(--text-primary-accent);
	font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.toc__chevron {
	flex: none;
	color: var(--accent-primary-1);
	transition: transform 0.2s ease;
}

.toc__panel[open] .toc__chevron {
	transform: rotate(180deg);
}

.toc__list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0 clamp(16px, 2vw, 24px) clamp(16px, 2vw, 24px) clamp(36px, 4vw, 48px);
	color: var(--text-primary-muted);
}

.toc__list li::marker {
	color: var(--accent-primary-1);
	font-weight: 700;
}

/* Nested steps read as 1.1, 1.2 … without repeating the parent numbering */
.toc__list--nested {
	padding: 8px 0 0 clamp(20px, 2.5vw, 28px);
	list-style: lower-alpha;
}

.toc__list a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.toc__list a:hover,
.toc__list a:focus-visible {
	color: var(--text-primary-accent);
	text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
	.toc__chevron {
		transition: none;
	}
}

/* Breathing room when a table-of-contents link jumps to a heading */
.content__heading[id],
.content__subheading[id] {
	scroll-margin-top: clamp(16px, 3vw, 32px);
}

/* Grid blockifies inline-flex, so a mid-article CTA would stretch the column */
.content > .btn {
	justify-self: start;
}

/* For art that must not be cropped — UI panels, square feature stills */
.content-figure__img--contain {
	aspect-ratio: auto;
	max-width: 720px;
	margin-inline: auto;
	object-fit: contain;
}

/* Matches the table caption so both read as the same kind of note */
.content-figure__caption {
	margin-top: 12px;
	color: var(--text-primary-muted);
	font-size: 0.875rem;
	text-align: center;
}

/* --- Table --- */
/* Scroll container: narrow screens pan the table instead of crushing it */
.content-table {
	/* tabindex="0" makes this scroll box keyboard-operable — see the markup */
	overflow-x: auto;
	scrollbar-color: var(--accent-primary-2) var(--bg-dark-2);
	border: 1px solid var(--border-primary);
	border-radius: var(--radius-lg);
	background-color: var(--bg-dark-2);
}

.content-table__table {
	width: 100%;
	min-width: 400px;
	border-collapse: collapse;
	text-align: left;
	caption-side: bottom;
}

.content-table__table th,
.content-table__table td {
	padding: 16px clamp(16px, 2vw, 24px);
}

.content-table__table thead th {
	background-color: var(--bg-dark-3);
    color: var(--accent-primary-1);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.content-table__table tbody tr + tr {
	border-top: 1px solid var(--border-primary);
}

/* Row headers carry the label, cells carry the values */
.content-table__table tbody th {
	color: var(--text-primary-accent);
	font-weight: 700;
}

.content-table__table td {
	color: var(--text-primary-muted);
}

.content-table__caption {
	padding: 14px clamp(16px, 2vw, 24px);
	border-top: 1px solid var(--border-primary);
	color: var(--text-primary-muted);
	font-size: 0.875rem;
	text-align: center;
}

/* Centres every column but the label — for numeric tables */
.content-table--center th:not(:first-child),
.content-table--center td:not(:first-child) {
	text-align: center;
}

/* --- Lettered list --- */
.content-key-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(8px, 0.9vw, 10px) clamp(8px, 1vw, 12px);
	/* The base reset only covers ul */
	margin: 0;
	padding: 0;
	/* A. B. C. … instead of 1. 2. 3.; inside, so it sits within the card */
	list-style: upper-alpha inside;
}

.content-key-list > li {
	padding: 12px clamp(12px, 1.2vw, 16px);
	border: 1px solid var(--border-primary);
	border-radius: var(--radius-md);
	background-color: var(--bg-dark-2);
	color: var(--text-primary-accent);
}

.content-key-list > li::marker {
	color: var(--accent-primary-1);
	font-weight: 700;
}

/* --- Icon list --- */
.content-glossary {
	display: grid;
	/* The base reset only covers ul; dl needs its own margin zeroed */
	margin: 0;
	gap: clamp(16px, 2vw, 24px);
	padding: clamp(20px, 2.5vw, 32px);
	border: 1px solid var(--border-primary);
	border-radius: var(--radius-lg);
	background-color: var(--bg-dark-2);
}

.content-glossary__item {
	display: grid;
	grid-template-columns: 48px minmax(0, 7rem) minmax(0, 1fr);
	align-items: start;
	gap: 4px clamp(12px, 1.5vw, 20px);
}

.content-glossary__icon {
	width: 48px;
	height: 48px;
	border-radius: var(--radius-sm);
	object-fit: cover;
}

.content-glossary__term {
	color: var(--text-primary-accent);
	font-weight: 700;
}

.content-glossary__desc {
	/* Also clears the UA's margin-inline-start on dd */
	margin: 0;
	color: var(--text-primary-muted);
}

/* --- Disclaimer --- */
.content-note {
	margin: 0;
	padding: clamp(12px, 1.4vw, 14px) clamp(14px, 1.6vw, 18px);
	border-left: 4px solid var(--accent-primary-1);
	/* Square against the accent bar; rounded away from it */
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	background-color: var(--accent-primary-3);
	color: var(--text-primary-accent);
	font-size: 0.875rem;
	font-style: italic;
}

@media (max-width: 767.98px) {

	/* Icon keeps its column; term and description stack beside it */
	.content-glossary__item {
		grid-template-columns: 40px minmax(0, 1fr);
	}

	.content-glossary__icon {
		width: 40px;
		height: 40px;
		grid-row: span 2;
	}

	.content-glossary__term,
	.content-glossary__desc {
		grid-column: 2;
	}
}

/* Three across is too tight for the longer labels once the column narrows */
@media (max-width: 899.98px) {
	.content-key-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Denser type on phones: the long-form blocks give back some room */
@media (max-width: 549.98px) {
	.content-key-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.content-key-list > li {
		padding: 12px clamp(12px, 1.6vw, 20px);
		font-size: 0.875rem;
	}

	/* Header row keeps its size; only the data shrinks */
	.content-table__table tbody {
		font-size: 0.875rem;
	}

	.content-glossary__desc,
	.content-note {
		font-size: 0.875rem;
	}
}

/* =========================================================
   Casino list

   Rows are a three-track grid — brand / description / CTA — so every
   card lines up on the same columns regardless of copy length. The
   description is line-clamped rather than sized, which is what keeps
   the rows a consistent height.
   ========================================================= */
.casinos {
	padding-block: clamp(48px, 6vw, 88px);
}

.casinos__heading {
	margin: 0 0 16px;
	color: var(--text-primary-accent);
	font-size: clamp(1.625rem, 2.6vw, 2.25rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.casinos__lede {
	margin: 0 0 clamp(24px, 3vw, 40px);
	max-width: 80ch;
	color: var(--text-primary-muted);
}

.casinos__list {
	display: grid;
	gap: clamp(12px, 1.5vw, 20px);
}

.casino-card {
	display: grid;
	grid-template-columns: minmax(0, 17rem) minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(16px, 2.5vw, 32px);
	padding: clamp(16px, 2vw, 24px) clamp(16px, 2.5vw, 28px);
	border: 1px solid var(--border-primary);
	border-radius: var(--radius-lg);
	background-color: var(--bg-dark-2);
	transition: border-color 0.15s ease;
}

.casino-card:hover {
	border-color: var(--accent-primary-3);
}

/* Logo and name travel together as one column */
.casino-card__brand {
	display: flex;
	align-items: center;
	gap: clamp(12px, 1.5vw, 20px);
	min-width: 0;
}

.casino-card__logo {
	flex: none;
	width: clamp(48px, 5vw, 64px);
	height: auto;
	aspect-ratio: 1;
	border-radius: var(--radius-md);
	object-fit: contain;
}

.casino-card__name {
	margin: 0;
	min-width: 0;
	color: var(--text-primary-accent);
	font-size: clamp(1.125rem, 1.8vw, 1.5rem);
	font-weight: 800;
	line-height: 1.2;
}

/* Clamped to two lines so long and short blurbs occupy the same space */
.casino-card__text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	margin: 0;
	color: var(--text-primary-muted);
	font-size: 0.9375rem;
}

.casino-card__cta {
	flex: none;
	white-space: nowrap;
	transition: color 0.15s ease, background-color 0.15s ease,
		border-color 0.15s ease, transform 0.15s ease,
		box-shadow 0.15s ease;
}

.casino-card__cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px -8px var(--accent-primary-1);
}

.casino-card__cta:active {
	transform: translateY(0);
}

/* Icon leans towards where the link is taking you */
.casino-card__icon {
	transition: transform 0.15s ease;
}

.casino-card__cta:hover .casino-card__icon {
	transform: translate(2px, -2px);
}

/* Below the three-column fit: brand on top, copy, then a full-width CTA */
@media (max-width: 899.98px) {
	.casino-card {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
		gap: clamp(16px, 3vw, 24px);
	}

	/* One more line of copy now that the row is no longer height-bound */
	.casino-card__text {
		-webkit-line-clamp: 3;
		line-clamp: 3;
	}

	.casino-card__cta {
		width: 100%;
	}
}

/* =========================================================
   Compare band — intro copy, then lists beside a decorative image
   ========================================================= */
.compare {
	padding-block: clamp(48px, 6vw, 88px);
}

.compare__heading {
	margin: 0 0 16px;
	color: var(--text-primary-accent);
	font-size: clamp(1.625rem, 2.6vw, 2.25rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.compare__text {
	margin: 0;
	max-width: 80ch;
	color: var(--text-primary-muted);
}

.compare__text + .compare__text {
	margin-top: 16px;
}

.compare__split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
	margin-top: clamp(32px, 4vw, 56px);
}

/* The two list groups stack within the left column */
.compare__lists {
	display: grid;
	gap: clamp(28px, 3.5vw, 44px);
}

.compare-list__heading {
	margin: 0 0 12px;
	color: var(--text-primary-accent);
	font-size: clamp(1.25rem, 1.9vw, 1.5rem);
	font-weight: 700;
	line-height: 1.25;
}

/* The base reset strips ul bullets; these want them back */
.compare-list__items {
	display: grid;
	gap: 8px;
	padding-left: 1.25em;
	list-style: disc;
	color: var(--text-primary-muted);
}

.compare-list__items li::marker {
	color: var(--accent-primary-1);
}

.compare__media img {
	width: 100%;
	border-radius: var(--radius-lg);
}

@media (max-width: 1023.98px) {
	.compare__split {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
}

/* =========================================================
   Guide cards — intro copy above three static, informative cards
   ========================================================= */
.guide {
	padding-block: clamp(48px, 6vw, 88px);
}

.guide__heading {
	margin: 0 0 16px;
	color: var(--text-primary-accent);
	font-size: clamp(1.625rem, 2.6vw, 2.25rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.guide__text {
	margin: 0;
	max-width: 80ch;
	color: var(--text-primary-muted);
}

.guide__text + .guide__text {
	margin-top: 16px;
}

.guide__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 24px);
	margin-top: clamp(32px, 4vw, 56px);
}

/* Cards stretch to the tallest in the row, so copy stays top-aligned */
.guide-card {
	padding: clamp(24px, 3vw, 32px);
	border: 1px solid var(--accent-primary-3);
	border-radius: var(--radius-lg);
	background-image: linear-gradient(180deg, var(--bg-dark-3), var(--bg-dark-2));
	text-align: center;
}

.guide-card__heading {
	margin: 0 0 16px;
	color: var(--text-primary-accent);
	font-size: clamp(1.125rem, 1.6vw, 1.375rem);
	font-weight: 800;
	line-height: 1.25;
}

.guide-card__text {
	margin: 0;
	color: var(--text-primary-muted);
}

@media (max-width: 767.98px) {
	.guide__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* =========================================================
   Featured article — full-width banner card at the top of /articles/

   The image is a layer rather than a background so it keeps its
   intrinsic size for the browser's preloader; the gradient above it is
   what makes the copy legible over whatever art lands there.
   ========================================================= */
.featured {
	padding-block: clamp(24px, 3vw, 40px) clamp(12px, 1.5vw, 20px);
}

.featured-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-content: end;
	align-items: center;
	gap: clamp(24px, 4vw, 56px);
	overflow: hidden;
	aspect-ratio: var(--banner-ratio);
	/* Floor for the phone layout below, where the ratio is released */
	min-height: 360px;
	padding: clamp(24px, 3.5vw, 48px);
	border: 1px solid var(--border-primary);
	border-radius: var(--radius-lg);
	background-color: var(--bg-dark-2);
	transition: border-color 0.15s ease;
}

.featured-card:hover {
	border-color: var(--accent-primary-3);
}

.featured-card__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.featured-card:hover .featured-card__media {
	transform: scale(1.03);
}

/* Darkens towards the bottom, where the copy sits. Absolute, so it is
   never treated as a grid item, and lifted over the image behind it */
.featured-card::before {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
	background-image: linear-gradient(
		180deg,
		rgba(9, 17, 26, 0.05) 0%,
		rgba(9, 17, 26, 0.6) 55%,
		rgba(9, 17, 26, 0.94) 100%
	);
}

/* Lifted clear of the image and its gradient. Grid items take z-index
   without position, which keeps the stretched link below anchored to
   the whole card rather than to this column */
.featured-card__body,
.featured-card__arrow {
	z-index: 2;
	min-width: 0;
}

.featured-card__eyebrow {
	margin: 0 0 12px;
	color: var(--accent-primary-1);
	font-size: 0.775rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.featured-card__heading {
	margin: 0 0 16px;
	max-width: 24ch;
	color: var(--text-primary-accent);
	font-size: clamp(1.75rem, 3.6vw, 2.75rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.featured-card__link {
	transition: color 0.15s ease;
}

.featured-card__link:hover {
	color: var(--accent-primary-1);
}

/* Stretched hit area: the whole banner follows the headline's link */
.featured-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.featured-card__text {
	margin: 0;
	max-width: 62ch;
	color: var(--text-primary-muted);
	font-size: 1rem;
}

.featured-card__arrow {
	display: flex;
	color: var(--text-primary-accent);
	transition: color 0.15s ease, transform 0.15s ease;
}

.featured-card:hover .featured-card__arrow {
	color: var(--accent-primary-1);
	transform: translateX(4px);
}

/* Narrow banners lose the arrow — the headline is the affordance */
@media (max-width: 767.98px) {
	.featured-card {
		grid-template-columns: minmax(0, 1fr);
		/* The overlaid copy sets the height here. Holding 16/9 this narrow
		   would clip a long excerpt, since the card also hides overflow —
		   the art still crops to fill, it just crops harder */
		aspect-ratio: auto;
	}

	.featured-card__arrow {
		display: none;
	}
}

/* =========================================================
   Post grid — three columns of image-led article cards

   Cards carry no border or panel: the thumbnail defines the column and
   the copy hangs beneath it, so the rows read as one even sequence.
   ========================================================= */
.posts {
	padding-block: clamp(32px, 4vw, 56px) clamp(48px, 6vw, 88px);
}

.posts__heading {
	margin: 0 0 clamp(24px, 3vw, 40px);
	color: var(--text-primary-accent);
	font-size: clamp(1.375rem, 2vw, 1.75rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.posts__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(32px, 4vw, 56px) clamp(20px, 2.5vw, 32px);
}

.post-card {
	position: relative;
	display: grid;
	align-content: start;
	gap: 12px;
	min-width: 0;
}

.post-card__media {
	overflow: hidden;
	margin-bottom: 8px;
	border-radius: var(--radius-md);
	background-color: var(--bg-dark-2);
}

.post-card__media img {
	width: 100%;
	aspect-ratio: 12 / 7;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.post-card:hover .post-card__media img {
	transform: scale(1.04);
}

.post-card__heading {
	margin: 0;
	color: var(--text-primary-accent);
	font-size: clamp(1.125rem, 1.6vw, 1.25rem);
	font-weight: 800;
	line-height: 1.3;
}

.post-card__link {
	transition: color 0.15s ease;
}

.post-card:hover .post-card__link {
	color: var(--accent-primary-1);
}

/* Stretched hit area: the whole card follows the title's link */
.post-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* Clamped so uneven excerpts don't stagger the meta row across a row */
.post-card__text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	margin: 0;
	color: var(--text-primary-muted);
	font-size: 0.9375rem;
}

.post-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	font-size: 0.8125rem;
}

.post-card__avatar {
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
}

.post-card__author {
	color: var(--text-primary-accent);
	font-weight: 700;
}

.post-card__dot,
.post-card__date {
	color: var(--text-primary-muted);
}

@media (max-width: 1023.98px) {
	.posts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599.98px) {
	.posts__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* =========================================================
   Article — masthead, byline, banner and closing footer

   The body copy reuses the .content blocks wholesale; only the
   furniture around them lives here. The banner takes its height from
   the same clamp as .featured-card, so an article opens on exactly
   the block the /articles/ index closed on.
   ========================================================= */
.article-head {
	padding-block: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 24px);
}

.article-head__eyebrow {
	margin: 0 0 12px;
	color: var(--accent-primary-1);
	font-size: 0.775rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.article-head__heading {
	margin: 0;
	max-width: 24ch;
	color: var(--text-primary-accent);
	font-size: clamp(2rem, 4.4vw, 3.25rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.article-head__lede {
	margin: clamp(16px, 2vw, 20px) 0 0;
	max-width: 70ch;
	color: var(--text-primary-muted);
	font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
}

/* --- Author badge --- */
/* Initials stand in until author portraits exist. Swapping the span for
   an <img class="avatar"> keeps the same size and shape */
.avatar {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	border: 1px solid var(--border-primary);
	border-radius: 50%;
	background-color: var(--bg-dark-3);
	color: var(--accent-primary-1);
	font-size: 0.8125rem;
	font-weight: 800;
	object-fit: cover;
}

.avatar--sm {
	width: 24px;
	height: 24px;
	font-size: 0.5625rem;
}

.byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin-top: clamp(20px, 2.5vw, 28px);
	font-size: 0.875rem;
}

.byline__identity {
	display: grid;
	gap: 1px;
	/* Sits tight against the avatar; the divider owns the next gap */
	margin-inline-end: -4px;
}

.byline__author {
	color: var(--text-primary-accent);
	font-weight: 700;
}

.byline__role,
.byline__item {
	margin: 0;
	color: var(--text-primary-muted);
}

.byline__role {
	font-size: 0.8125rem;
}

/* Hairline rule between the badge and each meta item */
.byline__divider {
	width: 1px;
	height: 28px;
	background-color: var(--border-primary);
}

.byline__date {
	color: var(--text-primary-accent);
	font-weight: 700;
}

/* Dividers only earn their keep while the row is still a row */
@media (max-width: 549.98px) {
	.byline__divider {
		display: none;
	}
}

/* --- Banner: the same authored ratio as the /articles/ featured card --- */
.article-banner {
	padding-block: clamp(8px, 1vw, 12px) 0;
}

.article-banner__figure {
	margin: 0;
}

/* Nothing is overlaid here, so this one holds the ratio at every width */
.article-banner__img {
	width: 100%;
	aspect-ratio: var(--banner-ratio);
	border: 1px solid var(--border-primary);
	border-radius: var(--radius-lg);
	background-color: var(--bg-dark-2);
	object-fit: cover;
}

/* Matches the in-article figure caption so both read as the same note */
.article-banner__caption {
	margin-top: 12px;
	color: var(--text-primary-muted);
	font-size: 0.875rem;
	text-align: center;
}

/* --- Closing footer: recent articles --- */
/* Reuses .post-card from the /articles/ grid; only the column count
   differs — three across, then straight to one rather than via two */
.related {
	padding-block: clamp(40px, 5vw, 64px) clamp(48px, 6vw, 88px);
	border-top: 1px solid var(--border-primary);
}

.related__heading {
	margin: 0 0 clamp(24px, 3vw, 40px);
	color: var(--text-primary-accent);
	font-size: clamp(1.375rem, 2vw, 1.75rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(32px, 4vw, 56px) clamp(20px, 2.5vw, 32px);
}

/* Three columns get too narrow to read as cards before the phone
   breakpoint, so this stacks earlier than .posts__grid does */
@media (max-width: 767.98px) {
	.related__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
	/* Full-bleed background, content still on the 1200px grid */
	margin-inline: calc(var(--page-padding) * -1);
	padding-inline: var(--page-padding);
	background-color: var(--bg-dark-2);
	border-top: 1px solid var(--border-primary);
}

.site-footer__inner {
	max-width: var(--content-max);
	margin-inline: auto;
}

/* --- Top row: logo / links / badges --- */
.footer-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding-block: 28px;
	border-bottom: 1px solid var(--border-primary);
}

.footer-logo {
	flex: none;
}

.footer-logo img {
	width: 140px;
	height: auto;
}

.footer-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 28px;
}

.footer-nav__link {
	color: var(--text-primary-muted);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	transition: color 0.15s ease;
}

.footer-nav__link:hover {
	color: var(--text-primary-accent);
}

.footer-badges {
	display: flex;
	flex: none;
	align-items: center;
	gap: 16px;
}

.footer-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding-inline: 14px;
    background-color: var(--bg-dark-3);
	border-radius: var(--radius-md);
	color: var(--text-primary-accent);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.footer-badge--age {
	justify-content: center;
    width: 44px;
    padding-inline: 0;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    gap: 0;
}

.footer-badge__icon {
	flex: none;
}

/* --- Bottom row: subscribe / legal --- */
.footer-bottom {
	display: grid;
	justify-items: center;
	gap: 20px;
	padding-block: 36px 40px;
	text-align: center;
}

/* Label keeps the .footer-nav__link treatment so the row still reads as
   footer furniture; the address itself is the only emphasis */
.footer-say {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 6px 14px;
}

.footer-say__label {
	margin: 0;
	color: var(--text-primary-accent);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.footer-say__link {
	color: var(--accent-primary-1);
	font-size: 0.9375rem;
	text-decoration: underline;
	text-underline-offset: 3px;
	/* Long address must break rather than push the footer wide on phones */
	overflow-wrap: anywhere;
	transition: color 0.15s ease;
}

.footer-say__link:hover {
	color: var(--text-primary-accent);
}

.footer-copyright {
	margin: 0;
	color: var(--text-primary-accent);
	font-size: 0.875rem;
	font-weight: 700;
}

.footer-contact {
	margin: 0;
	color: var(--text-primary-muted);
	font-size: 0.8125rem;
	font-style: normal;
	line-height: 1.7;
}

.footer-contact a {
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.15s ease;
}

.footer-contact a:hover {
	color: var(--accent-primary-1);
}

/* --- Footer below 1024px --- */
@media (max-width: 1023.98px) {
	.footer-top {
		flex-direction: column;
		gap: 24px;
		padding-block: 32px;
	}
}

/* =========================================================
   Motion preferences
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
