/*
 * Corporate Confusion website.
 *
 * Big type, rounded cards and the cast on video. Accent colors come from the game (OfficeStyle.swift):
 * sticky-note yellow, pink slip, office red. No web fonts and no third-party requests: Apple devices
 * get SF Rounded, as in the game; everyone else gets the nearest system font.
 */

:root
{
	--bg: #faf7f0;
	--surface: #ffffff;
	--ink: #16171b;
	--ink-2: #4b4e58;
	--ink-3: #8a8d96;
	--line: rgba(22, 23, 27, 0.09);
	--yellow: #ffd84d;
	--pink: #ffd6dd;
	--red: #e5483a;
	--amber: #f5a524;
	--green: #2f9e56;
	--blue: #2f6bd8;
	/* The hero video's backdrop, so the page and the video meet without an edge. */
	--hero-bg: #ecc790;

	--font-display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", "Varela Round",
		system-ui, sans-serif;
	--font-body: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue",
		Arial, sans-serif;
	--font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono",
		monospace;

	--wrap: 1200px;
	--gutter: 24px;
	/* Side margin of the home page's full-width header and hero. */
	--edge: clamp(24px, 7vw, 140px);
	--nav-h: 88px;
	--radius-lg: 30px;
	--radius: 22px;
	--radius-sm: 14px;
	--shadow: 0 1px 2px rgba(22, 23, 27, 0.05), 0 18px 40px -18px rgba(22, 23, 27, 0.22);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html
{
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--nav-h) + 16px);
}

body
{
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

img,
svg
{
	height: auto;
}

a
{
	color: var(--blue);
	text-underline-offset: 3px;
}

h1,
h2,
h3
{
	margin: 0 0 0.45em;
	font-family: var(--font-display);
	font-weight: 900;
	line-height: 1.02;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

h2
{
	font-size: clamp(36px, 5.2vw, 66px);
}

h3
{
	font-size: 22px;
	letter-spacing: -0.015em;
	line-height: 1.15;
}

p
{
	margin: 0 0 1em;
}

.wrap
{
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.sr-only
{
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip
{
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 100;
	padding: 8px 14px;
	border-radius: 10px;
	background: var(--ink);
	color: #fff;
	font-weight: 700;
}

.skip:focus
{
	top: 12px;
}

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

/* ---------- Buttons ---------- */

.btn
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 26px;
	border: 0;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.005em;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s;
}

a.btn:hover
{
	transform: translateY(-2px);
	box-shadow: 0 10px 24px -10px rgba(22, 23, 27, 0.45);
}

.btn svg
{
	width: 18px;
	height: 18px;
	flex: none;
}

.btn-light
{
	background: var(--surface);
	color: var(--ink);
}

.btn-ghost
{
	background: transparent;
	color: inherit;
	box-shadow: inset 0 0 0 2px currentColor;
}

a.btn-ghost:hover
{
	box-shadow: inset 0 0 0 2px currentColor;
	background: rgba(22, 23, 27, 0.06);
}

.btn-green
{
	background: var(--green);
}

.btn-sm
{
	min-height: 40px;
	padding: 0 16px;
	font-size: 14px;
}

/* Not out yet. */
.btn.is-soon
{
	cursor: default;
}

.tag
{
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--yellow);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
}

.btn-sm .tag
{
	padding: 2px 7px;
	font-size: 10px;
}

/* ---------- Site header ---------- */

/* On the home page the header spans the full width, lined up with the hero's words. */
.home .site-nav .wrap
{
	max-width: none;
	padding: 0 var(--edge);
}

.site-nav
{
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	transition: background-color 0.3s, box-shadow 0.3s;
}

.site-nav.is-scrolled,
.site-nav.is-solid
{
	background: rgba(250, 247, 240, 0.82);
	-webkit-backdrop-filter: saturate(1.6) blur(18px);
	backdrop-filter: saturate(1.6) blur(18px);
	box-shadow: 0 1px 0 var(--line);
}

.nav-inner
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: var(--nav-h);
}

.brand
{
	display: block;
	flex: none;
}

.brand img
{
	width: 160px;
}

.nav-links
{
	display: flex;
	align-items: center;
	gap: 6px;
}

.nav-links a:not(.btn)
{
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s;
}

.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"]
{
	background: rgba(22, 23, 27, 0.07);
}

.nav-links .btn
{
	margin-left: 8px;
}

/* ---------- Hero ---------- */

.hero
{
	position: relative;
	display: flex;
	align-items: center;
	/* Never taller than the video's own 16:9, so it is never cropped at the sides. */
	min-height: min(100svh, 56.25vw, 940px);
	overflow: hidden;
	background: var(--hero-bg);
}

.hero-video
{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
}

/* The video's characters stand in its right 60%; the words stay in the left third. */
.hero-content
{
	position: relative;
	z-index: 1;
	width: 100%;
	padding: calc(var(--nav-h) + 24px) var(--edge) 56px;
}

.hero-copy
{
	max-width: 30vw;
}

.hero h1
{
	margin-bottom: 22px;
	font-size: clamp(40px, 4.3vw, 84px);
	line-height: 0.94;
	letter-spacing: -0.035em;
}

.hero .lede
{
	max-width: 30em;
	margin-bottom: 30px;
	color: rgba(22, 23, 27, 0.78);
	font-size: clamp(16px, 1.35vw, 21px);
	line-height: 1.45;
}

.pill
{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 22px;
	padding: 7px 14px 7px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.55);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	font-size: 14px;
	font-weight: 700;
}

.pill .dot
{
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--red);
	box-shadow: inset 0 0 0 5px #ffb3a8;
}

.cta-row
{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

/* The release sign-up: an email box and a button, with a line under them that turns into the
   thank-you (or the problem) once the page's script has sent the address. */
.notify
{
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 480px;
}

.notify-email
{
	flex: 1 1 220px;
	min-width: 0;
	min-height: 54px;
	padding: 0 22px;
	border: 2px solid var(--ink);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	font-size: 17px;
}

.notify .btn
{
	flex: none;
}

.notify .btn:disabled
{
	opacity: 0.6;
}

/* A field only robots fill in. */
.notify-trap
{
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.notify .notify-note
{
	flex-basis: 100%;
	margin: 2px 0 0 22px;
	color: rgba(22, 23, 27, 0.7);
	font-size: 14px;
}

.notify-note a
{
	color: inherit;
}

.notify.is-done .notify-email,
.notify.is-done .btn
{
	display: none;
}

.notify.is-done .notify-note
{
	margin-left: 0;
	color: var(--ink);
	font-size: 17px;
	font-weight: 700;
}

.notify.is-wrong .notify-note
{
	color: #b3261e;
	font-weight: 700;
}

/* ---------- Marquee ---------- */

.marquee
{
	overflow: hidden;
	padding: 20px 0;
	background: var(--ink);
	color: var(--yellow);
}

.marquee-track
{
	display: flex;
	width: max-content;
	animation: marquee 38s linear infinite;
}

.marquee span
{
	padding-right: 0.9em;
	font-family: var(--font-display);
	font-size: clamp(22px, 3vw, 36px);
	font-weight: 900;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.marquee span:nth-child(even)
{
	color: rgba(255, 216, 77, 0.45);
}

@keyframes marquee
{
	to
	{
		transform: translateX(-50%);
	}
}

/* ---------- Sections ---------- */

.section
{
	padding: 128px 0;
}

.section-head
{
	max-width: 760px;
	margin-bottom: 56px;
}

.section-head.center
{
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.section-head p:not(.eyebrow)
{
	color: var(--ink-2);
	font-size: clamp(18px, 1.5vw, 20px);
}

.eyebrow
{
	display: inline-block;
	margin: 0 0 18px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--yellow);
	color: var(--ink);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.dark
{
	background: var(--ink);
	color: #fff;
}

.dark .section-head p:not(.eyebrow)
{
	color: rgba(255, 255, 255, 0.7);
}

/* Fades sections in as they scroll into view (only when scripts run; see site.js). */
.js .reveal
{
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.is-in
{
	opacity: 1;
	transform: none;
}

/* ---------- Meet the office ---------- */

/* Three cards to a row, on a grid of six half-cards, so a last row of two can sit in the middle. */
.cast
{
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cast > li
{
	grid-column: span 2;
}

.cast > li:nth-child(3n + 1):nth-last-child(2)
{
	grid-column: 2 / span 2;
}

.person
{
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow);
	transition: transform 0.4s var(--ease);
}

.person:hover
{
	transform: translateY(-4px);
}

.person-media
{
	position: relative;
	aspect-ratio: 4 / 5;
	background: var(--tint, #eee);
}

.person-media video,
.person-media img
{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Each card wears its video's backdrop color (printed by tools/encode-videos.py). */
.t-dave { --tint: #e5c999; }
.t-manager { --tint: #ea8f7c; }
.t-hr { --tint: #e1c7ca; }
.t-it { --tint: #e9b28b; }
.t-intern { --tint: #bdd4cc; }
.t-executive { --tint: #cfbfa6; }
.t-sales { --tint: #a9cda9; }
.t-meera { --tint: #b7c6dd; }
.t-kevin { --tint: #cac0db; }
.t-paul { --tint: #a9c6ce; }
.t-jackie { --tint: #dfb7c0; }

.person-meta
{
	padding: 18px 22px 22px;
}

.person-meta .dept
{
	display: inline-block;
	margin-bottom: 8px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--tint, #eee);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.person h3
{
	margin-bottom: 4px;
	font-size: 26px;
}

.person p
{
	margin: 0;
	color: var(--ink-2);
	font-size: 16px;
}

/* ---------- How it plays ---------- */

.play-grid
{
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: center;
	gap: 80px;
}

.steps
{
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.step
{
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 4px 20px;
	padding: 22px 24px;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
	counter-increment: step;
}

.step::before
{
	content: counter(step);
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 18px;
	background: var(--yellow);
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 900;
}

.step:nth-child(2)::before
{
	background: var(--pink);
}

.step:nth-child(3)::before
{
	background: #ffcfc4;
}

.step:nth-child(4)::before
{
	background: #cdebd6;
}

.step h3
{
	margin: 4px 0 0;
}

.step p
{
	margin: 0;
	color: var(--ink-2);
}

.play-foot
{
	margin: 26px 0 0;
	color: var(--ink-2);
}

/* A phone, drawn in CSS, around a real in-game view. */
.phone
{
	position: relative;
	width: min(340px, 80vw);
	margin: 0 auto;
	padding: 12px;
	border-radius: 54px;
	background: #111114;
	box-shadow:
		inset 0 0 0 2px #34343a,
		0 50px 90px -30px rgba(22, 23, 27, 0.55);
}

.phone .screen
{
	position: relative;
	overflow: hidden;
	border-radius: 43px;
	aspect-ratio: 482 / 1045;
	background: #000;
}

.phone .screen > img
{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.phone .island
{
	position: absolute;
	top: 12px;
	left: 50%;
	z-index: 2;
	width: 32%;
	height: 28px;
	border-radius: 20px;
	background: #000;
	transform: translateX(-50%);
}

/* The in-game HUD, redrawn over the screenshot: the task note and the warnings. */
.hud-note
{
	position: absolute;
	top: 50px;
	left: 12px;
	width: 58%;
	padding: 8px 10px 9px;
	background: #ffe673;
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.18), 0 8px 18px -8px rgba(0, 0, 0, 0.35);
	font-family: "Noteworthy", "Marker Felt", "Bradley Hand", "Segoe Print", cursive;
	font-size: 12.5px;
	line-height: 1.35;
	transform: rotate(-2deg);
}

.hud-note .day
{
	display: inline-block;
	margin-right: 4px;
	padding: 1px 6px;
	border-radius: 4px;
	background: var(--ink);
	color: #fcfaf2;
	font-family: var(--font-mono);
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.08em;
	vertical-align: 2px;
}

.hud-note ul
{
	list-style: none;
	margin: 3px 0 0;
	padding: 0;
}

.hud-note li
{
	position: relative;
	padding-left: 15px;
}

.hud-note li::before
{
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 9px;
	height: 9px;
	border: 1.3px solid var(--ink);
}

.hud-note li.done
{
	opacity: 0.6;
	text-decoration: line-through;
}

.hud-note li.done::after
{
	content: "";
	position: absolute;
	left: 2px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid var(--blue);
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(40deg);
}

.hud-warn
{
	position: absolute;
	top: 52px;
	right: 12px;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 4px 6px;
	background: #fcfaf2;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
	font-family: var(--font-mono);
	font-size: 7.5px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.04em;
}

.hud-warn .boxes
{
	display: flex;
	gap: 2px;
}

.hud-warn .boxes i
{
	width: 9px;
	height: 9px;
	border: 1.2px solid var(--ink);
}

.hud-hint
{
	position: absolute;
	left: 50%;
	bottom: 24px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(30, 26, 22, 0.78);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
	transform: translateX(-50%);
}

/* ---------- Don't get caught: the bento grid ---------- */

.bento
{
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 20px;
}

.tile
{
	position: relative;
	overflow: hidden;
	padding: 32px;
	border-radius: var(--radius-lg);
	background: #24252b;
	color: #fff;
}

.tile h3
{
	font-size: clamp(26px, 2.6vw, 34px);
}

.tile p
{
	max-width: 30em;
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
}

.tile-wide
{
	grid-column: span 4;
}

.tile-narrow
{
	grid-column: span 2;
}

.tile-half
{
	grid-column: span 3;
}

.tile-fired
{
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
	align-items: center;
	gap: 28px;
	background: linear-gradient(135deg, #2b2c33, #3a2a2e);
}

.warn-boxes
{
	display: flex;
	gap: 8px;
	margin-top: 22px;
}

.warn-boxes i
{
	width: 34px;
	height: 34px;
	border: 3px solid rgba(255, 255, 255, 0.85);
	border-radius: 8px;
}

.warn-boxes i.on
{
	border-color: var(--red);
	background: var(--red);
}

/* The pink slip (FiredView). */
.slip
{
	position: relative;
	padding: 24px 22px 30px;
	border-radius: 10px;
	background: var(--pink);
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: 13px;
	line-height: 1.5;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
	transform: rotate(3deg);
}

.slip b
{
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	letter-spacing: 0.08em;
}

.tile .slip p
{
	margin: 0 0 6px;
	color: var(--ink);
}

.stamp
{
	position: absolute;
	right: -10px;
	bottom: -18px;
	padding: 2px 12px;
	border: 4px solid var(--red);
	border-radius: 8px;
	background: rgba(255, 214, 221, 0.7);
	color: var(--red);
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 900;
	line-height: 1.2;
	white-space: nowrap;
	transform: rotate(-9deg);
}

.signals
{
	display: grid;
	gap: 10px;
	margin-top: 24px;
}

.signal
{
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	border-radius: var(--radius-sm);
	background: rgba(255, 255, 255, 0.06);
	font-weight: 600;
}

.signal i
{
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex: none;
	border-radius: 50%;
	font-family: var(--font-display);
	font-size: 20px;
	font-style: normal;
	font-weight: 900;
	color: var(--ink);
}

.signal .sig-amber
{
	background: var(--amber);
}

.signal .sig-red
{
	background: var(--red);
	color: #fff;
}

.signal small
{
	display: block;
	color: rgba(255, 255, 255, 0.6);
	font-size: 13px;
	font-weight: 500;
}

.tile-media
{
	margin: 26px -32px -32px;
}

.tile-media img
{
	width: 100%;
}

.tile-dave
{
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
	gap: 0 20px;
	padding-right: 0;
	padding-bottom: 0;
	background: #f2ce5e;
	color: var(--ink);
}

.tile-dave p
{
	color: rgba(22, 23, 27, 0.72);
}

.tile-dave .copy
{
	padding-bottom: 32px;
}

.tile-dave img
{
	align-self: end;
	width: 100%;
	max-height: 360px;
	object-fit: cover;
	object-position: 50% 10%;
}

.tile-review .tile-media
{
	margin-top: 26px;
	padding: 0 32px;
}

.tile-review .tile-media img
{
	border-radius: 16px 16px 0 0;
	box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, 0.6);
}

/* ---------- Career ladder ---------- */

.stats
{
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0 0 72px;
	padding: 0;
	list-style: none;
}

.stats li
{
	padding: 26px 24px;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.stats b
{
	display: block;
	font-family: var(--font-display);
	font-size: clamp(44px, 5vw, 64px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.03em;
}

.stats span
{
	color: var(--ink-2);
	font-weight: 600;
}

/* A staircase: each office a step higher than the last. */
.stairs
{
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	align-items: end;
	gap: 10px;
	height: 360px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.stairs li
{
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	height: calc(30% + var(--n) * 10%);
	padding: 16px 14px;
	border-radius: 18px 18px 6px 6px;
	background: linear-gradient(180deg, var(--yellow), #ffe9a3);
}

.stairs li:nth-child(1) { --n: 0; }
.stairs li:nth-child(2) { --n: 1; }
.stairs li:nth-child(3) { --n: 2; }
.stairs li:nth-child(4) { --n: 3; }
.stairs li:nth-child(5) { --n: 4; }
.stairs li:nth-child(6) { --n: 5; }
.stairs li:nth-child(7) { --n: 6; }
.stairs li:nth-child(8) { --n: 7; }

.stairs li:nth-child(n+5)
{
	background: linear-gradient(180deg, #ffc1cc, var(--pink));
}

.stairs li:last-child
{
	background: linear-gradient(180deg, var(--ink), #33343b);
	color: #fff;
}

.stairs .floor
{
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 900;
	line-height: 1;
}

.stairs .name
{
	margin-top: 6px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
}

.stairs .you
{
	position: absolute;
	top: -38px;
	left: 0;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
}

.ladder-foot
{
	max-width: 720px;
	margin: 40px 0 0;
	color: var(--ink-2);
	font-size: 18px;
}

/* ---------- Bands ---------- */

.bands
{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.band-card
{
	flex: 0 1 270px;
	display: grid;
	grid-template-columns: 58px 1fr;
	gap: 2px 14px;
	padding: 20px;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.band-card svg
{
	grid-row: span 2;
	width: 58px;
	height: 58px;
}

.band-card h3
{
	margin: 4px 0 0;
	font-size: 19px;
}

.band-card .says
{
	margin: 0;
	color: var(--ink-2);
	font-size: 14.5px;
	line-height: 1.35;
}

.band-card dl
{
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(4, auto);
	justify-content: space-between;
	gap: 4px 10px;
	margin: 14px 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--line);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
}

.band-card dt
{
	color: var(--ink-3);
}

.band-card dd
{
	display: flex;
	gap: 3px;
	margin: 4px 0 0;
}

.band-card dd i
{
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(22, 23, 27, 0.12);
}

.band-card dd i.on
{
	background: var(--ink);
}

.bands-foot
{
	max-width: 680px;
	margin: 40px auto 0;
	color: var(--ink-2);
	text-align: center;
}

/* ---------- Memos ---------- */

.memos
{
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.memo
{
	height: 100%;
	padding: 26px 26px 28px;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
	font-family: var(--font-mono);
	font-size: 14px;
	line-height: 1.6;
}

.memo .from
{
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px dashed var(--line);
	color: var(--ink-3);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.memo h3
{
	margin-bottom: 10px;
	font-family: var(--font-mono);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.memo p
{
	margin: 0 0 8px;
	color: var(--ink-2);
}

/* ---------- Closing call to action ---------- */

.cta-card
{
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
	align-items: center;
	gap: 48px;
	overflow: hidden;
	padding: 64px;
	border-radius: 40px;
	background: var(--hero-bg);
}

.cta-card h2
{
	margin-bottom: 14px;
}

.cta-card p
{
	max-width: 28em;
	color: rgba(22, 23, 27, 0.75);
	font-size: 19px;
}


.cta-card .icon
{
	width: 96px;
	margin-bottom: 24px;
	border-radius: 22px;
	box-shadow: 0 16px 32px -12px rgba(22, 23, 27, 0.5);
}

.cta-media
{
	overflow: hidden;
	border-radius: var(--radius-lg);
	aspect-ratio: 4 / 5;
	box-shadow: var(--shadow);
}

.cta-media video,
.cta-media img
{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- Inner pages ---------- */

.page-head
{
	padding: calc(var(--nav-h) + 72px) 0 48px;
}

.page-head h1
{
	margin: 0 0 14px;
	font-size: clamp(44px, 7vw, 84px);
	letter-spacing: -0.035em;
}

.page-head p:not(.eyebrow)
{
	max-width: 640px;
	color: var(--ink-2);
	font-size: clamp(18px, 1.6vw, 21px);
}

.page-head .date
{
	font-family: var(--font-mono);
	font-size: 14px;
}

.page-body
{
	padding-bottom: 120px;
}

/* How to Play: a contents list beside the guide. */
.guide
{
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	align-items: start;
	gap: 56px;
}

.toc
{
	position: sticky;
	top: calc(var(--nav-h) + 24px);
	padding: 22px 22px 18px;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.toc h2
{
	margin: 0 0 10px;
	color: var(--ink-3);
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.toc ol
{
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: toc;
}

.toc li
{
	counter-increment: toc;
}

.toc a
{
	display: flex;
	gap: 10px;
	padding: 6px 8px;
	border-radius: 10px;
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.toc a::before
{
	content: counter(toc, decimal-leading-zero);
	color: var(--ink-3);
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 1.9;
}

.toc a:hover
{
	background: rgba(22, 23, 27, 0.06);
}

.prose
{
	max-width: 740px;
}

.prose section
{
	margin-bottom: 72px;
}

.prose h2
{
	font-size: clamp(30px, 3.6vw, 42px);
}

.prose h3
{
	margin-top: 1.6em;
	font-size: 20px;
}

.prose p,
.prose li
{
	color: var(--ink-2);
}

.prose strong
{
	color: var(--ink);
}

.prose ul,
.prose ol
{
	margin: 0 0 1em;
	padding-left: 22px;
}

.prose li
{
	margin-bottom: 6px;
}

.prose figure
{
	margin: 30px 0 32px;
}

.prose figcaption
{
	margin-top: 12px;
	color: var(--ink-3);
	font-size: 15px;
	text-align: center;
}

.shot
{
	overflow: hidden;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.shot img
{
	width: 100%;
}

.note
{
	margin: 24px 0;
	padding: 18px 22px;
	border-radius: var(--radius-sm);
	background: #fff3c4;
}

.note p
{
	color: var(--ink);
}

.note p:last-child
{
	margin: 0;
}

.note-pink
{
	background: var(--pink);
}

.table
{
	width: 100%;
	margin: 0 0 1.4em;
	overflow: hidden;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--radius-sm);
	background: var(--surface);
	box-shadow: var(--shadow);
	font-size: 15px;
}

.table th,
.table td
{
	padding: 12px 16px;
	border-bottom: 1px solid var(--line);
	color: var(--ink-2);
	text-align: left;
	vertical-align: top;
}

.table td:first-child
{
	color: var(--ink);
}

.table th
{
	color: var(--ink-3);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.table tr:last-child td
{
	border-bottom: 0;
}

/* The manager's sign, as the game colors it. */
.sign-amber
{
	color: #c57d06;
}

.sign-red
{
	color: var(--red);
}

/* Support and privacy. */
.contact-card
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
	padding: 32px 34px;
	border-radius: var(--radius-lg);
	background: var(--hero-bg);
}

.contact-card h2
{
	margin-bottom: 6px;
	font-size: 30px;
}

.contact-card p
{
	margin: 0;
	color: rgba(22, 23, 27, 0.75);
}

.contact-card a:not(.btn)
{
	color: var(--ink);
	font-weight: 700;
}

.faq
{
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.faq section
{
	padding: 28px 30px 26px;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.faq h2
{
	font-size: 21px;
	letter-spacing: -0.01em;
}

.faq p
{
	margin: 0 0 0.6em;
	color: var(--ink-2);
	font-size: 16px;
}

.faq p:last-child
{
	margin: 0;
}

.policy
{
	max-width: 780px;
	padding: 44px 48px 34px;
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.policy h2
{
	margin-top: 1.6em;
	font-size: 24px;
	letter-spacing: -0.015em;
}

.policy p,
.policy li
{
	color: var(--ink-2);
}

.policy .note p
{
	color: var(--ink);
}

.policy ul
{
	padding-left: 22px;
}

.policy li
{
	margin-bottom: 6px;
}

/* ---------- Footer ---------- */

.site-footer
{
	padding: 56px 0 60px;
	background: var(--ink);
	color: rgba(255, 255, 255, 0.65);
	font-size: 14px;
}

.footer-inner
{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.footer-links
{
	display: flex;
	flex-wrap: wrap;
	gap: 8px 26px;
}

.footer-links a
{
	color: rgba(255, 255, 255, 0.85);
	font-weight: 600;
	text-decoration: none;
}

.footer-links a:hover
{
	color: #fff;
	text-decoration: underline;
}

.site-footer .brand img
{
	width: 150px;
}

.copyright
{
	width: 100%;
	margin: 0;
	font-size: 13px;
	opacity: 0.6;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 1080px)
{
	.play-grid
	{
		gap: 48px;
	}

	.memos
	{
		grid-template-columns: minmax(0, 1fr);
		max-width: 620px;
	}

	.stairs .name
	{
		font-size: 12px;
	}
}

@media (max-width: 920px)
{
	:root
	{
		--nav-h: 72px;
	}

	.section
	{
		padding: 96px 0;
	}

	/* Back to the smaller logo, so all four header links still fit beside it. */
	.brand img
	{
		width: 124px;
	}

	/* The cast becomes a row of cards to swipe through. */
	.cast
	{
		grid-auto-flow: column;
		grid-template-columns: none;
		grid-auto-columns: min(72vw, 340px);
		gap: 16px;
		margin: 0 calc(var(--gutter) * -1);
		padding: 4px var(--gutter) 24px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding: 0 var(--gutter);
		scrollbar-width: none;
	}

	.cast::-webkit-scrollbar
	{
		display: none;
	}

	.cast > li,
	.cast > li:nth-child(3n + 1):nth-last-child(2)
	{
		grid-column: auto;
	}

	.person
	{
		scroll-snap-align: start;
	}

	.person:hover
	{
		transform: none;
	}

	.play-grid,
	.cta-card,
	.guide
	{
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}

	.tile-wide,
	.tile-narrow,
	.tile-half
	{
		grid-column: span 6;
	}

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

	/* The staircase turns into a list, top floor first. */
	.stairs
	{
		display: flex;
		flex-direction: column-reverse;
		height: auto;
		gap: 8px;
	}

	.stairs li
	{
		flex-direction: row;
		align-items: center;
		gap: 16px;
		width: calc(52% + var(--n) * 6%);
		height: auto;
		padding: 12px 18px;
		border-radius: 14px;
	}

	.stairs .name
	{
		margin: 0;
		font-size: 15px;
	}

	.stairs .floor
	{
		width: 22px;
		font-size: 22px;
	}

	.stairs .you
	{
		position: static;
		margin-left: auto;
	}

	.toc
	{
		position: static;
	}

	.cta-card
	{
		padding: 48px 32px;
	}

	.cta-media
	{
		max-width: 360px;
	}

	.faq
	{
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Phones, and any screen taller than it is wide: the headline on top, the tall video under it. */
@media (max-width: 760px), (max-aspect-ratio: 4/5)
{
	.hero
	{
		/* The tall video's own backdrop, a shade deeper than the wide one's. */
		--hero-bg: #e5c185;
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
		text-align: center;
	}

	.hero-content
	{
		order: 1;
		padding: calc(var(--nav-h) + 24px) var(--gutter) 0;
	}

	/* The top of the tall video is empty backdrop, so the frame shows its lower part. */
	.hero-video
	{
		position: relative;
		order: 2;
		height: auto;
		aspect-ratio: 4 / 5;
		max-height: 70svh;
		object-position: 50% 92%;
		/* Fades the video's top edge into the page, so there is no line where they meet. */
		-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%);
		mask-image: linear-gradient(180deg, transparent 0, #000 22%);
	}

	.hero-copy
	{
		max-width: 560px;
		margin: 0 auto;
	}

	.hero h1
	{
		font-size: clamp(40px, 9vw, 64px);
	}

	.hero .lede
	{
		margin-left: auto;
		margin-right: auto;
	}

	.hero .cta-row
	{
		justify-content: center;
	}

	.hero .notify
	{
		justify-content: center;
		margin: 0 auto;
	}

	.hero .notify .notify-note
	{
		margin-left: 0;
		text-align: center;
	}

	.play-grid .phone
	{
		order: 2;
	}
}

@media (max-width: 620px)
{
	:root
	{
		--gutter: 18px;
	}

	body
	{
		font-size: 16px;
	}

	.section
	{
		padding: 80px 0;
	}

	/* The logo grows on wider phones, where there is room beside How to Play and Support. */
	.brand img
	{
		width: clamp(104px, 29vw, 120px);
	}

	.nav-links a:not(.btn)
	{
		padding: 8px 10px;
		font-size: 14px;
	}

	.nav-links .btn,
	.nav-links .nav-extra
	{
		display: none;
	}

	.hero h1
	{
		font-size: clamp(40px, 11vw, 56px);
	}

	.hero .lede
	{
		margin-bottom: 24px;
		font-size: 17px;
	}

	.hero .btn
	{
		padding: 0 16px;
	}

	.hero .cta-row
	{
		gap: 10px;
	}

	.btn
	{
		min-height: 50px;
		padding: 0 22px;
		font-size: 16px;
	}

	.tile
	{
		padding: 26px;
	}

	.tile-media
	{
		margin: 22px -26px -26px;
	}

	.tile-review .tile-media
	{
		padding: 0 20px;
	}

	.tile-fired,
	.tile-dave
	{
		grid-template-columns: minmax(0, 1fr);
	}

	.tile-dave
	{
		padding-right: 26px;
	}

	.tile-dave .copy
	{
		padding-bottom: 0;
	}

	.tile-dave img
	{
		width: calc(100% + 52px);
		max-width: none;
		max-height: 300px;
		margin: 10px -26px 0;
	}

	.slip
	{
		margin: 6px 10px 18px;
	}

	.stats li
	{
		padding: 20px 18px;
	}

	.band-card
	{
		flex-basis: 100%;
	}

	.stairs li
	{
		width: calc(64% + var(--n) * 4.5%);
	}

	.contact-card
	{
		flex-direction: column;
		align-items: flex-start;
		padding: 26px 24px;
	}

	.policy
	{
		padding: 30px 22px 22px;
	}

	.table
	{
		font-size: 14px;
	}

	.table th,
	.table td
	{
		padding: 10px 12px;
	}

	.cta-card
	{
		padding: 40px 22px;
		border-radius: 28px;
	}
}

/* The narrowest phones: the logo shrinks so How to Play and Support still fit beside it. */
@media (max-width: 359px)
{
	.brand img
	{
		width: 84px;
	}
}

@media (prefers-reduced-motion: reduce)
{
	html
	{
		scroll-behavior: auto;
	}

	.marquee-track
	{
		animation: none;
	}

	.js .reveal
	{
		opacity: 1;
		transform: none;
		transition: none;
	}

	.btn,
	.person
	{
		transition: none;
	}
}
