/* notGT landing — notgt.huckskee.space
 *
 * The colours and the type are the brand's (media/brand/notgt-brandbook.png):
 * Studio is the ground and Cream the type, Signal is the accent, Amber the
 * second one, and Lemon means "on air" and nothing else. Handjet sets the
 * headings and the numerals; Montserrat sets everything that is read.
 *
 * A section is dark by default. `.sec--cream` turns the same tokens round
 * (Studio on Cream), the way the dashboard's light theme does.
 */

/* ------------------------------------------------------------------ fonts */

@font-face {
	font-family: "Handjet";
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url("fonts/handjet-cyrillic-ext.woff2") format("woff2");
	unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
	font-family: "Handjet";
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url("fonts/handjet-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: "Handjet";
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url("fonts/handjet-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Handjet";
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url("fonts/handjet-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("fonts/montserrat-cyrillic-ext.woff2") format("woff2");
	unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("fonts/montserrat-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("fonts/montserrat-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("fonts/montserrat-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ----------------------------------------------------------------- tokens */

:root {
	--studio: #0c2b25;
	--cream: #f5ecda;
	--signal: #ff5a8c;
	--amber: #ff8a3c;
	--lemon: #ffd23f;

	/* Dark: steps of Studio, the same ones the dashboard uses. */
	--bg: var(--studio);
	--bg-2: #123630;
	--bg-3: #1a443c;
	--bg-4: #235348;
	--sink: #082019;
	--line: #2c5a4f;
	--line-soft: #173d35;
	--fg: var(--cream);
	--soft: #d9d3c0;
	--muted: #a9b8a8;
	--faint: #86a093;

	--display: "Handjet", "Montserrat", sans-serif;
	--text: "Montserrat", "Segoe UI", Roboto, Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

	--out-quint: cubic-bezier(0.16, 1, 0.3, 1);
	--gutter: clamp(20px, 4vw, 56px);
	--radius: 12px;

	color-scheme: dark;
}

/* ------------------------------------------------------------------- base */

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

[hidden] {
	display: none !important;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 24px;
}

body {
	margin: 0;
	background: var(--studio);
	color: var(--cream);
	font: 400 1rem/1.55 var(--text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

h1,
h2,
h3,
p {
	margin: 0;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 2px solid var(--fg);
	outline-offset: 3px;
	border-radius: 4px;
}

code {
	font-family: var(--mono);
	font-size: 0.92em;
}

.defs {
	position: absolute;
}

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

.skip {
	position: absolute;
	left: var(--gutter);
	top: -80px;
	z-index: 10;
	padding: 10px 16px;
	border-radius: 8px;
	background: var(--cream);
	color: var(--studio);
	font-weight: 700;
}

.skip:focus {
	top: 12px;
}

/* Said to a screen reader and to a search engine, not shown. */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------------------------------------------------------------- buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 22px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: transparent;
	color: var(--fg);
	font: 600 15px/1 var(--text);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s;
}

.btn:hover {
	border-color: var(--muted);
	background: var(--bg-3);
}

.btn--primary {
	border-color: var(--signal);
	background: var(--signal);
	color: var(--studio);
}

.btn--primary:hover {
	border-color: #ff7aa3;
	background: #ff7aa3;
}

.btn--ink {
	border-color: var(--studio);
	background: var(--studio);
	color: var(--cream);
}

.btn--ink:hover {
	border-color: #1a443c;
	background: #1a443c;
}

.btn--small {
	min-height: 34px;
	padding: 0 14px;
	border-color: transparent;
	background: var(--bg-3);
	font-size: 13.5px;
}

.btn--small:hover {
	background: var(--bg-4);
}

.btn:disabled {
	opacity: 0.4;
	cursor: default;
}

/* A segmented control: the language, a theme, a set of tabs. */
.seg {
	display: inline-flex;
	gap: 2px;
	padding: 2px;
	border: 1px solid var(--line);
	border-radius: 8px;
}

.seg button,
.seg a {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0 11px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--muted);
	font: 600 13px/1 var(--text);
	text-decoration: none;
	cursor: pointer;
}

.seg button:hover,
.seg a:hover {
	color: var(--fg);
}

.seg button[aria-pressed="true"],
.seg button[aria-selected="true"],
.seg a[aria-current="page"] {
	background: var(--bg-3);
	color: var(--fg);
}

.seg--tabs button {
	min-height: 38px;
	padding: 0 16px;
	font-size: 14.5px;
}

.seg--tabs button[aria-selected="true"] {
	background: var(--fg);
	color: var(--bg);
}

.copy {
	position: absolute;
	top: 8px;
	right: 8px;
	min-height: 28px;
	padding: 0 10px;
	border: 0;
	border-radius: 6px;
	background: rgba(245, 236, 218, 0.1);
	color: var(--cream);
	font: 600 12px/1 var(--text);
	cursor: pointer;
}

.copy:hover {
	background: rgba(245, 236, 218, 0.2);
}

.copy:focus-visible {
	outline-color: var(--cream);
}

/* -------------------------------------------------------------------- top */

.top__in {
	display: flex;
	align-items: center;
	gap: clamp(16px, 3vw, 40px);
	padding-block: 14px;
}

.top__logo {
	display: block;
	flex: none;
	line-height: 0;
}

.top__logo img {
	display: block;
	width: auto;
	height: 44px;
}

.top__nav {
	display: flex;
	gap: clamp(14px, 2.2vw, 32px);
	margin-left: auto;
	font-size: 15px;
	font-weight: 500;
}

.top__nav a {
	color: var(--muted);
	text-decoration: none;
}

.top__nav a:hover {
	color: var(--fg);
}

/* ------------------------------------------------------------------- hero */

.hero {
	padding-block: clamp(12px, 2vw, 28px) clamp(64px, 8vw, 120px);
}

/* One line across the whole measure. The size is a share of the measure:
   --fit is 100 divided by the width of the headline in ems, so it belongs to
   the words. Change the headline and it has to be measured again. */
.hero > .wrap {
	container-type: inline-size;
}

.hero__title {
	--fit: 9.96cqi;
	font: 800 clamp(64px, 6.75vw, 128px) / 0.86 var(--display);
	white-space: nowrap;
}

:lang(ru) .hero__title {
	--fit: 11.83cqi;
}

@supports (width: 1cqi) {
	.hero__title {
		font-size: min(var(--fit), 220px);
	}
}

.hero__row {
	display: grid;
	grid-template-columns: minmax(0, 78ch) auto;
	align-items: end;
	justify-content: space-between;
	gap: 20px 40px;
	margin-block: clamp(12px, 1.4vw, 20px) clamp(20px, 2vw, 30px);
}

.hero__lede {
	color: var(--soft);
	font-size: clamp(16px, 1.25vw, 18px);
}

.hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* ---------------------------------------------------------------- console */

.console {
	overflow: hidden;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	background: var(--bg-2);
}

/* The bar of Control. Lemon is the tally light: it is here only while
   something is on air. */
.tally {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 56px;
	padding: 10px 12px 10px 18px;
	border-bottom: 2px solid var(--line-soft);
	background: var(--bg);
	transition: border-color 0.2s;
}

.tally__lamp {
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--line);
	transition: background-color 0.2s, box-shadow 0.2s;
}

.tally__text {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	color: var(--muted);
	font: 700 27px/1.05 var(--display);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.console[data-live="true"] .tally {
	border-bottom-color: var(--lemon);
}

.console[data-live="true"] .tally__lamp {
	background: var(--lemon);
	box-shadow: 0 0 0 4px rgba(255, 210, 63, 0.22);
}

.console[data-live="true"] .tally__text {
	color: var(--lemon);
}

.console__body {
	display: grid;
	grid-template-columns: minmax(300px, 404px) minmax(0, 1fr);
}

.control {
	min-width: 0;
	border-right: 1px solid var(--line-soft);
}

.control__head {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 14px 16px 12px;
	border-bottom: 1px solid var(--line-soft);
}

.control__head h3,
.data h3 {
	margin: 0;
	font: 700 25px/1 var(--display);
}

.control__head span {
	color: var(--faint);
	font-size: 12px;
}

.rows {
	margin: 0;
	padding: 0;
	list-style: none;
}

.row {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 9px;
	min-height: 56px;
	padding: 0 14px 0 13px;
	border-bottom: 1px solid var(--line-soft);
	border-left: 3px solid transparent;
}

.row__lamp {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--line);
}

.row__name {
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.25;
}

.row.is-live {
	border-left-color: var(--lemon);
}

.row.is-live .row__lamp {
	background: var(--lemon);
	box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.22);
}

.row__play {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 28px;
	padding: 0 9px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: transparent;
	color: var(--muted);
	font: 600 12px/1 var(--text);
	white-space: nowrap;
	cursor: pointer;
}

.row__play:hover {
	border-color: var(--muted);
	color: var(--fg);
}

.row__play:disabled {
	border-color: var(--line-soft);
	color: var(--faint);
	opacity: 0.6;
	cursor: default;
}

/* How much of a timed play is left. */
.row__timer {
	position: absolute;
	right: 0;
	bottom: -1px;
	left: -3px;
	height: 2px;
	background: var(--lemon);
	transform: scaleX(0);
	transform-origin: left center;
}

.switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--muted);
	font-size: 13px;
	cursor: pointer;
}

.switch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.switch__track {
	position: relative;
	width: 40px;
	height: 22px;
	border-radius: 11px;
	background: var(--bg-4);
	transition: background-color 0.15s;
}

.switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--muted);
	transition: transform 0.2s var(--out-quint), background-color 0.15s;
}

.switch input:checked + .switch__track {
	background: var(--lemon);
}

.switch input:checked + .switch__track::after {
	background: var(--studio);
	transform: translateX(18px);
}

.switch input:focus-visible + .switch__track {
	outline: 2px solid var(--cream);
	outline-offset: 3px;
}

.data {
	display: grid;
	gap: 12px;
	padding: 14px 14px 18px;
}

.group {
	display: grid;
	gap: 6px 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

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

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

.group legend {
	margin-bottom: 4px;
	padding: 0;
	color: var(--faint);
	font: 12px/1.3 var(--mono);
}

.field {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.field span {
	overflow: hidden;
	color: var(--muted);
	font: 11.5px/1.3 var(--mono);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.field input {
	width: 100%;
	min-width: 0;
	height: 34px;
	padding: 0 9px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--sink);
	color: var(--fg);
	font: 500 14px/1 var(--text);
}

.field input:focus-visible {
	border-color: var(--signal);
	outline: 1px solid var(--signal);
	outline-offset: 0;
}

.program {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--sink);
}

/* A box that shows a frame of --w by --h pixels at whatever width it has.
   The trigonometry divides one length by another, which calc() cannot;
   app.js sets --s where it is not understood. */
.scale-box {
	position: relative;
	overflow: hidden;
	aspect-ratio: var(--w) / var(--h);
	container-type: inline-size;
}

.scale-box__inner {
	position: absolute;
	top: 0;
	left: 0;
	width: calc(var(--w) * 1px);
	height: calc(var(--h) * 1px);
	transform: scale(var(--s, tan(atan2(100cqw, calc(var(--w) * 1px)))));
	transform-origin: 0 0;
}

/* What stands in for the camera behind the titles. */
.out,
.miniout {
	background: radial-gradient(120% 95% at 60% 10%, #74857d 0%, #56675f 36%, #3a4744 70%, #2b3634 100%);
}

.readout {
	position: relative;
	flex: 1;
	min-height: 92px;
	border-top: 1px solid var(--line-soft);
}

.readout__code {
	margin: 0;
	padding: 14px 84px 14px 18px;
	color: var(--cream);
	font: 12.5px/1.6 var(--mono);
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.readout__code .c {
	color: var(--faint);
}

/* ----------------------------------------------------------------- titles
 *
 * The four titles of the example library, at the geometry of
 * bundles/notGT/src/shared/examples: every number below is a pixel of the
 * 1920×1080 out.
 */

.title {
	position: absolute;
	font-family: var(--text);
}

.js .title {
	visibility: hidden;
}

.js .title.is-on {
	visibility: visible;
}

/* Score bug: 860×100 at 3 % / 4.5 %. */
.t-score {
	top: 48.6px;
	left: 57.6px;
	width: 860px;
	height: 100px;
	color: #f5ecda;
}

.t-score__plate {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, #123630, #0a251f);
	box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.1);
	opacity: 0.97;
}

.t-score__mid {
	position: absolute;
	top: 0;
	left: 364px;
	width: 132px;
	height: 100px;
	background: #1a443c;
	clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 12px 100%);
}

.t-score::before,
.t-score::after {
	content: "";
	position: absolute;
	z-index: 1;
	top: 0;
	width: 11px;
	height: 100px;
}

.t-score::before {
	left: 0;
	background: #ff5a8c;
}

.t-score::after {
	right: 0;
	background: #ff8a3c;
}

.t-score span {
	position: absolute;
	top: 0;
	display: flex;
	align-items: center;
	height: 100px;
	white-space: nowrap;
}

.t-score__home,
.t-score__away {
	width: 232px;
	font-size: 31px;
	font-weight: 800;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.t-score__home {
	left: 36px;
}

.t-score__away {
	left: 592px;
	justify-content: flex-end;
}

.t-score__hs,
.t-score__as {
	justify-content: center;
	width: 90px;
	font: 800 84px/1 var(--display);
}

.t-score__hs {
	left: 271px;
}

.t-score__as {
	left: 499px;
}

.t-score .t-score__period,
.t-score .t-score__clock {
	left: 365px;
	justify-content: center;
	width: 130px;
	height: auto;
}

.t-score .t-score__period {
	top: 15px;
	color: #a9b8a8;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: 1.6px;
	text-transform: uppercase;
}

.t-score .t-score__clock {
	top: 38px;
	color: #ffd23f;
	font: 700 46px/1.08 var(--display);
}

/* Logo bug with a live tag: 296×108 at 81.5 % / 5 %. */
.t-bug {
	top: 54px;
	left: 1564.8px;
	width: 296px;
	height: 108px;
}

.t-bug svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.t-bug__tag {
	position: absolute;
	top: 27px;
	left: 177.6px;
	display: flex;
	align-items: center;
	width: 110px;
	height: 54px;
	color: #0c2b25;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: 3.5px;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Lower third: 1040×184 at 5 % / 72 %. */
.t-lower {
	top: 777.6px;
	left: 96px;
	width: 1040px;
	height: 184px;
}

.lt {
	position: relative;
	width: 1040px;
	height: 184px;
}

.lt svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.lt__name,
.lt__role {
	position: absolute;
	left: 43.7px;
	display: flex;
	align-items: center;
	overflow: hidden;
	line-height: 1.08;
	white-space: nowrap;
}

.lt__name {
	top: 0;
	width: 915px;
	height: 124px;
	color: #f5ecda;
	font-size: 62px;
	font-weight: 800;
	letter-spacing: -0.6px;
}

.lt__role {
	top: 124px;
	width: 561px;
	height: 60px;
	color: #0c2b25;
	font-size: 25px;
	font-weight: 700;
	letter-spacing: 2.4px;
	text-transform: uppercase;
}

.lt--cream .lt__name {
	color: #0c2b25;
}

.lt--cream .lt__role {
	color: #f5ecda;
}

/* Live poll: a 720×620 box at 58 % / 22 %. */
.t-poll {
	top: 237.6px;
	left: 1113.6px;
	width: 720px;
	height: 620px;
}

.poll {
	position: absolute;
	inset: 0 0 auto 0;
	padding: 0 44px 34px;
	background: linear-gradient(180deg, rgba(18, 54, 48, 0.97), rgba(10, 37, 31, 0.97));
	clip-path: polygon(0 0, calc(100% - 46px) 0, 100% 46px, 100% 100%, 0 100%);
	color: #f5ecda;
}

.poll__tag {
	display: inline-block;
	margin-left: -44px;
	padding: 9px 34px 9px 16px;
	background: linear-gradient(135deg, #ff6c98, #ff5a8c);
	clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
	color: #0c2b25;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.55;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.poll__q {
	margin: 26px 0 30px;
	font-size: 42px;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.015em;
}

.poll__rows {
	margin: 0;
	padding: 0;
	list-style: none;
}

.prow {
	margin-bottom: 24px;
}

.prow__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	color: #d9d3c0;
	font-size: 27px;
	font-weight: 600;
	line-height: 1.55;
}

.prow__pct {
	color: #f5ecda;
	font: 700 46px/0.8 var(--display);
	font-variant-numeric: tabular-nums;
}

.prow__track {
	height: 8px;
	margin-top: 10px;
	background: rgba(255, 255, 255, 0.1);
}

.prow__bar {
	width: 0;
	height: 100%;
	background: #6f8a7e;
	transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.prow.is-lead .prow__head {
	color: #f5ecda;
}

.prow.is-lead .prow__bar {
	background: #ff5a8c;
}

.poll__total {
	margin: 2px 0 0;
	color: #6f8a7e;
	font-size: 21px;
	line-height: 1.55;
	letter-spacing: 0.02em;
}

/* --------------------------------------------------------------- sections */

.sec {
	padding-block: clamp(64px, 7.6vw, 116px);
}

/* A darker band; what sinks into it is Studio again. */
.sec--well {
	background: #082019;
	--sink: var(--studio);
}

/* Cream is the ground, Studio the type. Signal and Lemon are too pale to
   read as text on Cream, so here the accent stays a fill. */
.sec--cream {
	--bg: var(--cream);
	--bg-2: #ecdfc7;
	--bg-3: #e1d3b8;
	--bg-4: #d2c3a5;
	--sink: var(--studio);
	--line: #c9ba9a;
	--line-soft: #ddcfb2;
	--fg: var(--studio);
	--soft: #2b4a41;
	--muted: #55695f;
	--faint: #86907f;

	background: var(--bg);
	color: var(--fg);
	color-scheme: light;
}

.sec__title {
	max-width: 17ch;
	font: 700 clamp(46px, 6.6vw, 104px) / 0.88 var(--display);
	text-wrap: balance;
}

.sec__lede {
	max-width: 58ch;
	margin-top: clamp(16px, 1.8vw, 24px);
	color: var(--soft);
	font-size: clamp(16px, 1.3vw, 19px);
}

/* Three short claims under a section. */
.facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(28px, 3.4vw, 56px);
	margin: clamp(40px, 5vw, 72px) 0 0;
}

.facts dt {
	margin-bottom: 10px;
	font: 700 clamp(27px, 2.3vw, 34px) / 1 var(--display);
}

.facts dd {
	max-width: 46ch;
	margin: 0;
	color: var(--muted);
	font-size: 15.5px;
}

/* A framed thing to look at: a screenshot, or code. */
.pane {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	background: var(--sink);
}

.pane__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 46px;
	padding: 6px 8px 6px 16px;
	border-bottom: 1px solid var(--line-soft);
}

.pane__name {
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
}

.pane img {
	display: block;
	width: 100%;
	height: auto;
}

.pane figcaption {
	margin-top: auto;
	padding: 16px 18px 18px;
	border-top: 1px solid var(--line-soft);
	background: var(--bg-2);
	color: var(--soft);
	font-size: 15px;
}

.pane figcaption strong {
	color: var(--fg);
}

.code {
	margin: 0;
	padding: 18px;
	overflow-x: auto;
	border-radius: 10px;
	background: var(--sink);
	color: var(--cream);
	font: 13px/1.62 var(--mono);
	tab-size: 2;
}

.code code {
	font-size: inherit;
}

.pane .code {
	flex: 1;
	border-radius: 0;
	background: transparent;
}

.code:focus-visible {
	outline-color: var(--signal);
	outline-offset: -2px;
}

.code .c {
	color: #7d978b;
}

.code .s {
	color: #ffab73;
}

.code .k {
	color: var(--signal);
}

/* ----------------------------------------------------------------- strike
 *
 * The bar of the logo: Signal, with the ground showing on both sides of it
 * where it cuts the letters.
 */

.strikes {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: clamp(18px, 2.6vw, 36px) clamp(28px, 5vw, 88px);
	margin: clamp(40px, 6vw, 88px) 0 0;
	padding: 0;
	list-style: none;
}

.strikes__row {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: subgrid;
	align-items: center;
}

/* Capitals, as GT is in the logo: a bar through the middle of a capital
   leaves its top and its foot, which is what a capital is read by. */
.struck {
	font: 800 clamp(34px, 7.4vw, 116px) / 0.9 var(--display);
	text-transform: uppercase;
	white-space: nowrap;
}

.struck span {
	position: relative;
	display: inline-block;
}

.struck span::after {
	content: "";
	position: absolute;
	top: 47.5%;
	right: -0.07em;
	left: -0.07em;
	height: 0.052em;
	background: var(--signal);
	box-shadow: 0 0 0 0.016em var(--bg);
	transform-origin: left center;
}

.js .struck span::after {
	transform: scaleX(0);
	transition: transform 0.75s var(--out-quint) 0.45s;
}

.js .strikes.is-in .struck span::after {
	transform: scaleX(1);
}

.js .strikes__row:nth-child(2) .struck span::after {
	transition-delay: 0.75s;
}

.js .strikes__row:nth-child(3) .struck span::after {
	transition-delay: 1.05s;
}

.strikes__now {
	max-width: 30ch;
	font-size: clamp(16px, 1.45vw, 21px);
	font-weight: 500;
	line-height: 1.4;
}

/* ------------------------------------------------------------------- make */

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

/* ------------------------------------------------------------------- data */

.guests {
	display: grid;
	grid-template-columns: minmax(280px, 440px) minmax(0, 1fr);
	align-items: center;
	gap: clamp(16px, 2vw, 28px);
	margin-top: clamp(32px, 4vw, 56px);
}

.sheet {
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	background: var(--bg-2);
}

.sheet__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px 10px;
}

.sheet__name {
	font: 14px/1.2 var(--mono);
}

.sheet__kind {
	padding: 2px 8px;
	border-radius: 4px;
	background: var(--bg-3);
	color: var(--muted);
	font-size: 11.5px;
}

.sheet__cols,
.guest {
	display: grid;
	grid-template-columns: 22px minmax(0, 1.25fr) minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	padding-inline: 16px;
}

.sheet__cols {
	padding-bottom: 6px;
	color: var(--faint);
	font: 12px/1.3 var(--mono);
}

.guest {
	position: relative;
	min-height: 46px;
	border-top: 1px solid var(--line-soft);
	font-size: 14.5px;
	cursor: pointer;
}

.guest:hover {
	background: var(--bg-3);
}

.guest input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.guest__dot {
	width: 16px;
	height: 16px;
	border: 2px solid var(--faint);
	border-radius: 50%;
}

.guest__name {
	font-weight: 600;
}

.guest__role {
	color: var(--muted);
}

.guest:has(input:checked) {
	background: var(--bg-3);
}

.guest input:checked + .guest__dot {
	border-color: var(--signal);
	background: var(--signal);
	box-shadow: inset 0 0 0 3px var(--bg-3);
}

.guest:has(input:focus-visible) {
	outline: 2px solid var(--cream);
	outline-offset: -2px;
}

.sheet__req {
	margin: 0;
	padding: 12px 16px 14px;
	overflow-x: auto;
	border-top: 1px solid var(--line-soft);
	background: var(--sink);
	color: var(--muted);
	font: 12px/1.55 var(--mono);
}

.miniout {
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
}

.t-guest {
	top: 73px;
	left: 60px;
}

/* ------------------------------------------------------------------ drive */

.drive {
	display: grid;
	grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
	gap: clamp(16px, 2vw, 28px);
	margin-top: clamp(32px, 4vw, 56px);
}

.drive__tabs {
	display: grid;
	align-content: start;
	gap: 4px;
}

.drive__tab {
	display: grid;
	gap: 6px;
	padding: 16px 18px 18px;
	border: 0;
	border-left: 3px solid var(--line-soft);
	border-radius: 0 10px 10px 0;
	background: transparent;
	color: var(--muted);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.drive__tab:hover {
	color: var(--soft);
}

.drive__tabname {
	color: var(--muted);
	font: 700 34px/0.95 var(--display);
}

.drive__tabtext {
	font-size: 14.5px;
	line-height: 1.5;
}

.drive__tab[aria-selected="true"] {
	border-left-color: var(--signal);
	background: var(--bg-2);
	color: var(--soft);
}

.drive__tab[aria-selected="true"] .drive__tabname {
	color: var(--fg);
}

.drive__pane {
	min-height: 330px;
}

.pane__panel {
	display: flex;
	flex: 1;
	min-width: 0;
}

.pane__panel .code {
	min-width: 0;
}

/* How the parts talk to each other. */
.flowfig {
	margin: clamp(48px, 6vw, 88px) 0 0;
}

.flow {
	display: grid;
	grid-template-columns:
		minmax(0, 1.2fr) minmax(112px, 0.55fr)
		minmax(0, 1.1fr) minmax(96px, 0.45fr)
		minmax(0, 1fr) minmax(112px, 0.5fr)
		minmax(0, 1.1fr);
	grid-template-areas:
		"dash   a ext c out d mix"
		"remote b ext c out d mix";
	gap: 14px 0;
}

.flow__node {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	min-width: 0;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--bg-2);
}

.flow__node b {
	font: 700 26px/0.95 var(--display);
}

.flow__node span {
	color: var(--muted);
	font-size: 13px;
	line-height: 1.4;
}

.flow__node--dash { grid-area: dash; }
.flow__node--remote { grid-area: remote; }
.flow__node--ext { grid-area: ext; }
.flow__node--out { grid-area: out; }
.flow__node--mix { grid-area: mix; }

.flow__link {
	position: relative;
	align-self: center;
	height: 2px;
	margin-inline: 7px;
	background: var(--line);
}

.flow__link--a { grid-area: a; }
.flow__link--b { grid-area: b; }
.flow__link--c { grid-area: c; }
.flow__link--d { grid-area: d; }

.flow__link::after,
.flow__link--both::before {
	content: "";
	position: absolute;
	top: 50%;
	border: 5px solid transparent;
	transform: translateY(-50%);
}

.flow__link::after {
	right: -2px;
	border-right-width: 0;
	border-left-color: var(--muted);
}

.flow__link--both::before {
	left: -2px;
	border-left-width: 0;
	border-right-color: var(--muted);
}

.flow__link span {
	position: absolute;
	bottom: 9px;
	left: 50%;
	color: var(--faint);
	font-size: 11.5px;
	white-space: nowrap;
	transform: translateX(-50%);
}

.flowfig figcaption {
	max-width: 72ch;
	margin-top: 22px;
	color: var(--muted);
	font-size: 15.5px;
}

/* -------------------------------------------------------------------- see */

.film {
	display: block;
	width: 100%;
	height: auto;
	margin-top: clamp(32px, 4vw, 56px);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	background: #000;
	aspect-ratio: 16 / 9;
}

/* ---------------------------------------------------------------- install */

.steps {
	margin: clamp(36px, 5vw, 72px) 0 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.step {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 18px clamp(24px, 4vw, 72px);
	padding-block: clamp(24px, 3vw, 40px);
	border-top: 2px solid var(--fg);
	counter-increment: step;
}

.step__title {
	display: flex;
	align-items: center;
	gap: 0.42em;
	align-self: start;
	font: 700 clamp(32px, 3.5vw, 54px) / 0.95 var(--display);
}

/* The numeral sits in the rounded square of the mark. */
.step__title::before {
	content: counter(step);
	display: grid;
	flex: none;
	place-items: center;
	width: 1.16em;
	height: 1.16em;
	border-radius: 0.24em;
	background: var(--fg);
	color: var(--bg);
	font-weight: 800;
}

.step__body {
	display: grid;
	justify-items: start;
	gap: 14px;
	min-width: 0;
}

.step__body > [role="tabpanel"] {
	display: grid;
	justify-items: start;
	gap: 14px;
	width: 100%;
	min-width: 0;
}

.cmd {
	position: relative;
	width: 100%;
	min-width: 0;
}

.cmd .code {
	padding-right: 84px;
}

.step__note {
	max-width: 62ch;
	color: var(--muted);
	font-size: 15.5px;
}

.step__note--lead {
	color: var(--soft);
	font-size: 16.5px;
}

.step__note code {
	padding: 1px 5px;
	border-radius: 4px;
	background: var(--bg-2);
	color: var(--fg);
}

/* ------------------------------------------------------------------- foot */

.foot {
	padding-block: clamp(48px, 6vw, 80px);
	border-top: 1px solid var(--line-soft);
	font-size: 15px;
}

.foot__in {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) auto auto minmax(0, 1.5fr);
	gap: 32px clamp(28px, 5vw, 80px);
}

.foot__brand img {
	display: block;
	width: auto;
	height: 56px;
	margin-bottom: 16px;
}

.foot__brand p,
.foot__credit {
	color: var(--muted);
}

.foot__links {
	display: grid;
	align-content: start;
	gap: 10px;
}

.foot__links a {
	color: var(--soft);
	text-decoration: none;
}

.foot__links a:hover {
	color: var(--fg);
	text-decoration: underline;
}

.foot__credit {
	max-width: 56ch;
}

/* ------------------------------------------------------------------- lost
 *
 * The page of an address that leads nowhere.
 */

.lost {
	display: grid;
	align-content: center;
	justify-items: start;
	gap: 18px;
	min-height: 100vh;
	min-height: 100svh;
	padding: var(--gutter);
}

.lost__logo {
	line-height: 0;
}

.lost__code {
	margin-top: clamp(24px, 6vh, 72px);
	font-size: clamp(120px, 30vw, 320px);
	--bg: var(--studio);
}

.lost__title {
	font: 700 clamp(34px, 5vw, 64px) / 0.92 var(--display);
}

.lost__text {
	margin-bottom: 10px;
	color: var(--soft);
	font-size: 17px;
}

/* ------------------------------------------------------------- responsive */

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

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

	.drive__tab {
		border-top: 3px solid var(--line-soft);
		border-left: 0;
		border-radius: 0 0 10px 10px;
	}

	.drive__tab[aria-selected="true"] {
		border-top-color: var(--signal);
	}

	.flow {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-areas:
			"dash remote"
			"a    b"
			"ext  ext"
			"c    c"
			"out  out"
			"d    d"
			"mix  mix";
		gap: 0 14px;
	}

	.flow__link {
		justify-self: center;
		width: 2px;
		height: 40px;
		margin: 7px 0;
	}

	.flow__link::after,
	.flow__link--both::before {
		top: auto;
		left: 50%;
		border: 5px solid transparent;
		transform: translateX(-50%);
	}

	.flow__link::after {
		right: auto;
		bottom: -2px;
		border-top-color: var(--muted);
		border-bottom-width: 0;
	}

	.flow__link--both::before {
		top: -2px;
		border-top-width: 0;
		border-bottom-color: var(--muted);
	}

	.flow__link span {
		bottom: 50%;
		left: 14px;
		transform: translateY(50%);
	}

	/* Two links stand side by side at the top; their labels go outwards
	   from the middle so that they do not meet. */
	.flow__link--a span,
	.flow__link--b span {
		right: 14px;
		left: auto;
	}

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

	.foot__credit {
		grid-column: 1 / -1;
	}
}

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

	.program {
		order: -1;
	}

	.control {
		border-top: 1px solid var(--line-soft);
		border-right: 0;
	}

	.readout {
		min-height: 104px;
	}

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

	.miniout {
		order: -1;
	}

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

	.strikes {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}

	.strikes__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	.struck {
		font-size: clamp(28px, 9vw, 76px);
	}

	/* At this size the cut on both sides of the bar costs too much of a letter. */
	.struck span::after {
		box-shadow: none;
	}

	.strikes__now {
		max-width: 34ch;
	}

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

@media (max-width: 760px) {
	.top__nav a:not([href^="http"]) {
		display: none;
	}

	.hero__title {
		font-size: clamp(60px, 19.5vw, 132px);
		white-space: normal;
		text-wrap: balance;
	}

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

	.hero__cta .btn {
		flex: 1;
	}

	.tally {
		flex-wrap: wrap;
		padding-left: 14px;
	}

	.tally__text {
		flex-basis: calc(100% - 40px);
		font-size: 23px;
	}

	.tally .btn {
		width: 100%;
	}

	.field input {
		font-size: 16px;
	}

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

	.drive__tab {
		border-top: 0;
		border-left: 3px solid var(--line-soft);
		border-radius: 0 10px 10px 0;
	}

	.drive__tab[aria-selected="true"] {
		border-left-color: var(--signal);
	}

	.code {
		font-size: 12.5px;
	}

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

@media (max-width: 420px) {
	.switch__text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.group--3 .field span {
		font-size: 10.5px;
	}
}

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

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}
}
