/* ==========================================================================
   Codes & Consequences — landing page
   Palette: gold/olive on near-black. Red (#D40011) and blue (#0066BA) come
   from the logo and stay reserved for the brand mark and card accents, so the
   page reads gold and the mark still reads as itself.
   ========================================================================== */

:root {
	--bg:        #0A0A09;
	--bg-alt:    #101010;
	--panel:     #161613;
	--line:      #26261F;
	--line-soft: #1C1C17;

	--ink:       #F5F5F2;
	--ink-dim:   #A8A89F;
	/* Lightened from #6E6E66, which sat at 3.8:1 on --bg and failed AA for the
	   small text it carries (hero note, footer, contact line). Now ~5.7:1. */
	--ink-faint: #8A8A82;

	--gold:      #F2C700;
	--olive:     #AAB600;
	--red:       #D40011;
	--blue:      #0066BA;

	--serif: "Roboto Slab", Georgia, "Times New Roman", serif;
	--sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

	--wrap: 1180px;
	--gut: clamp(1.25rem, 4vw, 3rem);
	--sec-y: clamp(4.5rem, 10vw, 9rem);

	--ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ── reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

@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;
	}
}

:where(a, button, summary, details):focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
	border-radius: 2px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	background: var(--gold);
	color: #000;
	padding: 0.75rem 1.25rem;
	font-weight: 600;
	text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ── layout primitives ───────────────────────────────────── */
.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gut);
}

.sec { padding-block: var(--sec-y); border-top: 1px solid var(--line-soft); }
.sec--alt { background: var(--bg-alt); }

/* Anchor jumps otherwise land the section flush at y=0, tucked under the fixed
   nav — worst on mobile, where --sec-y bottoms out at roughly the nav height. */
section[id] { scroll-margin-top: 5.5rem; }

/* Head column sticks while the body column scrolls past it. */
.sec__split {
	display: grid;
	gap: clamp(2rem, 5vw, 4.5rem);
	grid-template-columns: 1fr;
}
@media (min-width: 900px) {
	.sec__split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
	.sec__head { position: sticky; top: 7rem; align-self: start; }
}
.sec__head h2 { font-size: clamp(1.75rem, 1.1rem + 2.5vw, 3rem); }
.sec__head-note {
	margin-top: 1.25rem;
	color: var(--ink-dim);
	font-size: 0.95rem;
	max-width: 34ch;
}

.sec__intro { max-width: 30ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.h2--big { font-size: clamp(1.9rem, 1rem + 3.6vw, 3.4rem); max-width: 18ch; }

.kicker {
	font-family: var(--mono);
	font-size: 0.7rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--olive);
	margin-bottom: 1rem;
}
.kicker::before {
	content: "";
	display: inline-block;
	width: 1.75rem;
	height: 1px;
	background: var(--olive);
	vertical-align: middle;
	margin-right: 0.75rem;
}

.lede {
	font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
	color: var(--ink-dim);
	line-height: 1.55;
}

.prose p + p { margin-top: 1.35rem; }
.prose { color: var(--ink-dim); max-width: 62ch; }
.prose .pull {
	font-family: var(--serif);
	font-weight: 700;
	font-size: clamp(1.25rem, 1rem + 1.1vw, 1.75rem);
	line-height: 1.3;
	color: var(--ink);
	border-left: 3px solid var(--gold);
	padding-left: 1.25rem;
	margin-block: 2rem;
}
.prose__link { margin-top: 2rem; }
.prose__link a {
	font-family: var(--mono);
	font-size: 0.85rem;
	color: var(--gold);
	text-decoration: none;
	border-bottom: 1px solid rgba(242, 199, 0, 0.35);
	padding-bottom: 2px;
	transition: border-color 0.2s var(--ease);
}
.prose__link a:hover { border-color: var(--gold); }

/* ── buttons ─────────────────────────────────────────────── */
.btn {
	--btn-bg: var(--gold);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: var(--btn-bg);
	color: #0A0A09;
	font-weight: 600;
	font-size: 0.9rem;
	letter-spacing: 0.01em;
	text-decoration: none;
	padding: 0.85rem 1.5rem;
	border: 1px solid var(--btn-bg);
	border-radius: 2px;
	white-space: nowrap;
	transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: #FFD91F; border-color: #FFD91F; }
.btn:active { transform: translateY(0); }
.btn--ghost {
	background: transparent;
	color: var(--ink);
	border-color: var(--line);
}
.btn--ghost:hover { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn--sm { padding: 0.6rem 1.05rem; font-size: 0.8rem; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1rem; }

/* ── nav ─────────────────────────────────────────────────── */
.nav {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	background: rgba(10, 10, 9, 0.72);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line-soft); background: rgba(10, 10, 9, 0.92); }
.nav__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: 4.5rem;
}
/* The stacked lockup goes unreadable at nav scale, so the emblem carries the
   mark and the wordmark is set in live text beside it. */
.nav__brand {
	flex: none;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none;
}
.nav__brand img { width: auto; height: 1.75rem; }
.nav__wordmark {
	display: none;
	font-family: var(--serif);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: -0.01em;
	line-height: 1;
	color: var(--ink);
	white-space: nowrap;
}
.nav__wordmark em { font-style: normal; color: var(--gold); }
@media (min-width: 520px) { .nav__wordmark { display: inline; } }

.nav__links {
	display: none;
	gap: 1.6rem;
	margin-inline: auto;
}
.nav__links a {
	font-size: 0.82rem;
	color: var(--ink-dim);
	text-decoration: none;
	position: relative;
	padding-block: 0.25rem;
	transition: color 0.2s var(--ease);
	white-space: nowrap;
}
.nav__links a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: var(--gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s var(--ease);
}
.nav__links a:hover, .nav__links a.is-current { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); }
@media (min-width: 1040px) { .nav__links { display: flex; } }

.nav__actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
@media (min-width: 1040px) { .nav__actions { margin-left: 0; } }

.lang { display: flex; align-items: center; gap: 0.3rem; }
.lang__btn {
	background: none;
	border: 0;
	/* Padded out to a 44px target; the glyphs alone are only ~20px tall. */
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 0.35rem;
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	color: var(--ink-faint);
	cursor: pointer;
	white-space: nowrap;
	transition: color 0.2s var(--ease);
}
.lang__btn:hover { color: var(--ink-dim); }
.lang__btn.is-active { color: var(--gold); }
.lang__sep { color: var(--line); font-size: 0.72rem; }

.nav__toggle {
	display: grid;
	gap: 4px;
	background: none;
	border: 0;
	padding: 0.5rem 0;
	cursor: pointer;
}
.nav__toggle span {
	display: block;
	width: 22px;
	height: 1.5px;
	background: var(--ink);
	transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (min-width: 1040px) { .nav__toggle { display: none; } }

/* mobile drawer */
@media (max-width: 1039px) {
	.nav.is-open .nav__links {
		display: flex;
		flex-direction: column;
		gap: 0;
		position: absolute;
		inset: 100% 0 auto 0;
		background: var(--bg);
		border-bottom: 1px solid var(--line-soft);
		padding: 0.5rem var(--gut) 1.5rem;
		margin: 0;
	}
	.nav.is-open .nav__links a {
		padding-block: 0.9rem;
		border-bottom: 1px solid var(--line-soft);
		font-size: 0.95rem;
	}
	.nav.is-open .nav__links a::after { display: none; }
	.nav__actions .btn--sm { display: none; }
}

/* ── hero ────────────────────────────────────────────────── */
.hero {
	position: relative;
	padding-top: clamp(8rem, 16vw, 11rem);
	padding-bottom: clamp(4rem, 9vw, 7rem);
	overflow: hidden;
}
.hero__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
		linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, #000 20%, transparent 75%);
	pointer-events: none;
}
.hero__inner {
	position: relative;
	display: grid;
	gap: clamp(3rem, 6vw, 4rem);
	align-items: center;
	grid-template-columns: 1fr;
}
@media (min-width: 960px) {
	.hero__inner { grid-template-columns: 1.15fr 0.85fr; }
}
.hero__h1 {
	font-size: clamp(2.6rem, 1.1rem + 6.4vw, 5.5rem);
	margin-block: 0.5rem 1.5rem;
}
.hero__h1 em {
	display: block;
	font-style: normal;
	color: var(--gold);
}
.hero__copy .lede { max-width: 52ch; }
.hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2.25rem;
}
.hero__note {
	margin-top: 1.5rem;
	font-family: var(--mono);
	font-size: 0.72rem;
	color: var(--ink-faint);
	letter-spacing: 0.02em;
}

/* card fan — deliberately vague: category, no content */
.hero__art { display: none; }
@media (min-width: 960px) { .hero__art { display: block; } }
.fan {
	position: relative;
	height: 26rem;
	perspective: 1200px;
}
.card {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 11.5rem;
	height: 16.5rem;
	margin: -8.25rem 0 0 -5.75rem;
	/* Pivot below the cards so they splay like a held hand — rotating about the
	   centre buried each card's top-left tag under the next one. */
	transform-origin: 50% 125%;
	border: 1px solid var(--line);
	border-radius: 6px;
	background:
		linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 60%),
		var(--panel);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 1.1rem;
	transition: transform 0.5s var(--ease);
	animation: float 7s ease-in-out infinite;
}
.card__tag {
	font-family: var(--mono);
	font-size: 0.6rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ink-faint);
}
.card__mark {
	font-family: var(--serif);
	font-size: 3.25rem;
	line-height: 1;
	/* Bottom-left is the strip each card leaves exposed in the fan; bottom-right
	   lands under the neighbouring card. */
	align-self: flex-start;
	opacity: 0.9;
}
.card--req { transform: rotate(-19deg); border-color: rgba(0, 102, 186, 0.5); animation-delay: -1s; }
.card--req .card__mark { color: var(--blue); }
.card--thr { transform: rotate(0deg) translateY(-0.75rem); border-color: rgba(212, 0, 17, 0.5); z-index: 2; }
.card--thr .card__mark { color: var(--red); }
.card--sur { transform: rotate(19deg); border-color: rgba(242, 199, 0, 0.45); z-index: 3; animation-delay: -3.5s; }
.card--sur .card__mark { color: var(--gold); }

.fan:hover .card--req { transform: rotate(-25deg) translateY(-0.4rem); }
.fan:hover .card--thr { transform: rotate(0deg) translateY(-1.6rem) scale(1.02); }
.fan:hover .card--sur { transform: rotate(25deg) translateY(-0.4rem); }

@keyframes float {
	0%, 100% { translate: 0 0; }
	50%      { translate: 0 -10px; }
}

/* ── stakes ──────────────────────────────────────────────── */
.stakes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-block: 2rem;
}
.stakes li {
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: 100px;
	padding: 0.4rem 0.85rem;
	background: rgba(255, 255, 255, 0.015);
}

/* ── dilemmas ────────────────────────────────────────────── */
.dilemmas {
	display: grid;
	gap: 0;
	border-top: 1px solid var(--line-soft);
}
.dilemmas li {
	display: flex;
	align-items: baseline;
	gap: clamp(1rem, 3vw, 2.5rem);
	padding-block: clamp(1.4rem, 3vw, 2.1rem);
	border-bottom: 1px solid var(--line-soft);
	transition: padding-left 0.3s var(--ease), background 0.3s var(--ease);
}
.dilemmas li:hover { padding-left: 1rem; background: linear-gradient(to right, rgba(242, 199, 0, 0.05), transparent 60%); }
.dilemmas__n {
	font-family: var(--mono);
	font-size: 0.72rem;
	color: var(--olive);
	flex: none;
	width: 2ch;
}
.dilemmas li p {
	font-family: var(--serif);
	font-weight: 700;
	font-size: clamp(1.1rem, 0.85rem + 1.2vw, 1.9rem);
	line-height: 1.25;
	letter-spacing: -0.015em;
}
.dilemmas li:hover p { color: var(--gold); }
.dilemmas__foot {
	margin-top: 2rem;
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--ink-faint);
	letter-spacing: 0.04em;
}

/* ── tiles ───────────────────────────────────────────────── */
.grid { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.grid--3, .grid--4 { grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
	.grid--3 { grid-template-columns: repeat(3, 1fr); }
	.grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.tile {
	background: var(--bg);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	transition: background 0.3s var(--ease);
	position: relative;
}
.sec--alt .tile { background: var(--bg-alt); }
.tile::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 2px;
	background: var(--gold);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 0.3s var(--ease);
}
.tile:hover::before { transform: scaleY(1); }
.tile:hover { background: var(--panel); }
.tile h3 {
	font-size: 1.05rem;
	line-height: 1.3;
	margin-bottom: 0.8rem;
}
.tile p { color: var(--ink-dim); font-size: 0.92rem; line-height: 1.6; }

.tile--num { counter-increment: tile; }
.tile--num::after {
	content: counter(tile, decimal-leading-zero);
	position: absolute;
	top: clamp(1.5rem, 3vw, 2.25rem);
	right: clamp(1.5rem, 3vw, 2.25rem);
	font-family: var(--mono);
	font-size: 0.7rem;
	color: var(--line);
}
.grid--3 { counter-reset: tile; }

.veil {
	margin-top: 2rem;
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--ink-faint);
	letter-spacing: 0.03em;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}
.veil a {
	color: var(--gold);
	text-decoration: none;
	border-bottom: 1px solid rgba(242, 199, 0, 0.3);
	transition: border-color 0.2s var(--ease);
}
.veil a:hover { border-color: var(--gold); }

/* ── audience groups ─────────────────────────────────────── */
.groups { display: grid; gap: 0; }
.group {
	padding-block: 1.5rem;
	border-bottom: 1px solid var(--line-soft);
}
.group:first-child { border-top: 1px solid var(--line-soft); }
.group h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.group p { color: var(--ink-dim); font-size: 0.92rem; }

/* ── why ─────────────────────────────────────────────────── */
.why {
	display: grid;
	gap: clamp(1.75rem, 3vw, 2.75rem) clamp(2rem, 4vw, 3.5rem);
	grid-template-columns: 1fr;
}
@media (min-width: 700px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .why { grid-template-columns: repeat(4, 1fr); } }
.why li { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.why h3 { font-size: 1rem; margin-bottom: 0.6rem; }
.why p { color: var(--ink-dim); font-size: 0.88rem; line-height: 1.6; }

/* ── faq ─────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 1.35rem;
	cursor: pointer;
	list-style: none;
	font-family: var(--serif);
	font-weight: 700;
	font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
	transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+";
	font-family: var(--mono);
	font-size: 1.15rem;
	color: var(--gold);
	flex: none;
	transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold); }
.faq details p {
	color: var(--ink-dim);
	font-size: 0.95rem;
	max-width: 68ch;
	padding-bottom: 1.5rem;
}

/* ── final cta ───────────────────────────────────────────── */
.cta {
	padding-block: clamp(5rem, 11vw, 9rem);
	border-top: 1px solid var(--line-soft);
	background:
		radial-gradient(ellipse 60% 100% at 50% 100%, rgba(170, 182, 0, 0.10), transparent 70%),
		var(--bg);
	text-align: center;
}
.cta__inner { display: grid; justify-items: center; }
.cta .kicker::before { display: none; }
.cta__h2 { font-size: clamp(2.2rem, 1rem + 5vw, 4.25rem); max-width: 16ch; }
.cta .lede { max-width: 56ch; margin-top: 1.5rem; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2.5rem; }
.cta__mail { margin-top: 1.5rem; }
.cta__mail a {
	font-family: var(--mono);
	font-size: 0.78rem;
	color: var(--ink-faint);
	text-decoration: none;
	transition: color 0.2s var(--ease);
}
.cta__mail a:hover { color: var(--gold); }
.cta__close {
	margin-top: clamp(3rem, 6vw, 4.5rem);
	padding-top: 2rem;
	border-top: 1px solid var(--line-soft);
	font-family: var(--serif);
	font-weight: 700;
	font-size: clamp(1rem, 0.9rem + 0.5vw, 1.35rem);
	color: var(--ink);
	max-width: 30ch;
}

/* ── footer ──────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line-soft); padding-block: 2.75rem; }
/* Full stacked lockup, sized so the wordmark stays legible (it mushes below
   ~80px — which is why the nav uses the emblem alone). */
.foot__mark {
	height: 5.25rem;
	width: auto;
	margin-bottom: 1.75rem;
	opacity: 0.9;
}
.foot__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	align-items: center;
	justify-content: space-between;
}
.foot p { font-size: 0.78rem; color: var(--ink-faint); }
.foot__right {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
}
.foot__by { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.foot__by a { color: var(--ink-faint); text-decoration: none; transition: color 0.2s var(--ease); }
.foot__by a:hover { color: var(--gold); }

.social { display: flex; gap: 0.25rem; }
.social a {
	display: grid;
	place-items: center;
	/* 44px target around a 16px glyph. */
	width: 44px;
	height: 44px;
	color: var(--ink-faint);
	transition: color 0.2s var(--ease);
}
.social a:hover { color: var(--gold); }
.social svg { width: 1rem; height: 1rem; fill: currentColor; }

/* ── scroll reveal ───────────────────────────────────────── */
.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; }
}
