/*
 * Dripped Away Inc. | Night Flight | brand lookbook v2 (monochrome)
 * Generated from nf.css by make_v2.py: colours mapped, then the layer at the end.
 * One scroll-driven page. Tokens first, then scenes in page order.
 * Motion is armed only when <html> has .nf-motion (set by nf.js when the
 * visitor has not asked for reduced motion). Without it every scene is static
 * and complete.
 */

@font-face {
	font-family: "Bricolage Grotesque";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
}

@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 100 800;
	font-display: swap;
	src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
}

:root {
	--bg: #000000;
	--bg-2: #141414;
	--ink: #F5F3EF;
	--muted: #A3A6AB;
	--line: rgba(245, 243, 239, 0.16);
	--gold: #C8CCD2;
	--gold-ink: #C8CCD2;
	--glow: #FFFFFF;
	--on-gold: #000000;
	--pass-bg: #F5F3EF;
	--pass-ink: #000000;
	--pass-gold: #222222;
	--sun-1: #C8CCD2;
	--sun-2: #C8CCD2;
	--sun-3: #FFFFFF;
	--display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", sans-serif;
	--mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--pad: clamp(20px, 4.6vw, 64px);
	--header-h: 72px;
	color-scheme: dark;
}

:root[data-theme="day"] {
	--bg: #F5F3EF;
	--bg-2: #EAE8E3;
	--ink: #000000;
	--muted: #4D4F53;
	--line: rgba(0, 0, 0, 0.18);
	--gold: #C8CCD2;
	--gold-ink: #222222;
	--glow: #000000;
	--on-gold: #000000;
	--pass-bg: #000000;
	--pass-ink: #F5F3EF;
	--pass-gold: #C8CCD2;
	color-scheme: light;
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	background: var(--bg);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--display);
	font-size: 1.0625rem;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

:where(h1, h2, h3, p, ol, ul, figure) {
	margin: 0;
	padding: 0;
}

:where(ol, ul) {
	list-style: none;
}

:where(a) {
	color: inherit;
}

:where(button) {
	font: inherit;
	color: inherit;
}

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

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

::selection {
	background: var(--gold);
	color: var(--on-gold);
}

.nf-skip {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 200;
	padding: 12px 16px;
	background: var(--gold);
	color: var(--on-gold);
	font-family: var(--mono);
	font-size: 0.8125rem;
	text-decoration: none;
	transform: translateY(-200%);
}

.nf-skip:focus {
	transform: none;
}

.nf-wrap {
	width: 100%;
	max-width: 1400px;
	margin-inline: auto;
	padding-inline: var(--pad);
}

/* ---------- Type ---------- */

.nf-label {
	font-family: var(--mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold-ink);
}

.nf-display {
	font-size: clamp(3.1rem, 9.2vw, 9.25rem);
	font-weight: 800;
	font-variation-settings: "opsz" 96;
	line-height: 0.87;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.nf-headline {
	font-size: clamp(2.25rem, 5.2vw, 5rem);
	font-weight: 750;
	font-variation-settings: "opsz" 96;
	line-height: 0.94;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.nf-lede {
	max-width: 27em;
	font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
	font-weight: 400;
	line-height: 1.38;
	color: var(--muted);
}

.nf-gold {
	font-style: normal;
	color: var(--gold-ink);
}

:root[data-theme="night"] .nf-display .nf-gold {
	color: var(--glow);
	text-shadow: 0 0 42px rgba(255, 255, 255, 0.35);
}

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

.nf-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.7em;
	padding: 1.05em 1.5em;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--mono);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.35s ease;
	will-change: transform;
}

.nf-btn > * {
	pointer-events: none;
}

.nf-btn--gold {
	background: var(--gold);
	color: var(--on-gold);
	box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
}

.nf-btn--gold:hover,
.nf-btn--gold:focus-visible {
	background: var(--glow);
	box-shadow: 0 0 44px -6px rgba(255, 255, 255, 0.7);
}

:root[data-theme="day"] .nf-btn--gold:hover,
:root[data-theme="day"] .nf-btn--gold:focus-visible {
	background: #C8CCD2;
	box-shadow: 0 10px 30px -12px rgba(34, 34, 34, 0.7);
}

.nf-btn--ghost {
	border-color: var(--line);
	color: var(--ink);
}

.nf-btn--ghost:hover,
.nf-btn--ghost:focus-visible {
	border-color: var(--gold-ink);
	color: var(--gold-ink);
}

.nf-btn__arrow {
	width: 1.1em;
	height: 1.1em;
	transition: transform 0.35s var(--ease);
}

.nf-btn:hover .nf-btn__arrow {
	transform: translate3d(3px, -3px, 0);
}

.nf-btn:active {
	scale: 0.97;
}

/* ---------- Header ---------- */

.nf-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: var(--header-h);
	padding-inline: var(--pad);
	transition: background-color 0.35s ease, border-color 0.35s ease;
	border-bottom: 1px solid transparent;
}

.nf-scrolled .nf-header {
	background: color-mix(in srgb, var(--bg) 78%, transparent);
	border-bottom-color: var(--line);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

.nf-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.nf-brand img {
	width: 34px;
	height: 34px;
	object-fit: contain;
}

.nf-header__right {
	display: flex;
	align-items: center;
	gap: clamp(10px, 2vw, 22px);
}

.nf-header .nf-btn {
	padding: 0.9em 1.25em;
}

/* The header button waits until the hero button has scrolled away. */
.nf-motion .nf-header .nf-btn {
	opacity: 0;
	visibility: hidden;
	translate: 0 -8px;
	transition: opacity 0.35s ease, translate 0.35s var(--ease), visibility 0s linear 0.35s, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.nf-motion.nf-past-hero .nf-header .nf-btn {
	opacity: 1;
	visibility: visible;
	translate: 0 0;
	transition-delay: 0s;
}

/* Mode toggle */
.nf-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 2px;
	background: none;
	border: 0;
	font-family: var(--mono);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
	cursor: pointer;
}

.nf-toggle__track {
	position: relative;
	width: 46px;
	height: 26px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--bg-2);
	transition: border-color 0.25s ease;
}

.nf-toggle:hover .nf-toggle__track {
	border-color: var(--gold-ink);
}

.nf-toggle__thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--glow);
	box-shadow: inset -5px -2px 0 0 var(--bg-2);
	transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background-color 0.3s ease;
}

:root[data-theme="day"] .nf-toggle__thumb {
	transform: translateX(20px) rotate(90deg);
	background: var(--gold);
	box-shadow: inset 0 0 0 0 var(--bg-2), 0 0 0 3px rgba(200, 204, 210, 0.25);
}

.nf-toggle__word[data-on="true"] {
	color: var(--ink);
}

@media (max-width: 560px) {
	.nf-toggle__word {
		display: none;
	}
	.nf-brand span {
		display: none;
	}
}

/* Mode change: circular reveal where the browser supports view transitions */
::view-transition-old(root),
::view-transition-new(root) {
	animation: none;
	mix-blend-mode: normal;
}

::view-transition-new(root) {
	animation: nf-reveal 0.7s var(--ease) both;
}

@keyframes nf-reveal {
	from { clip-path: circle(0 at var(--nf-vt-x, 90%) var(--nf-vt-y, 36px)); }
	to { clip-path: circle(150vmax at var(--nf-vt-x, 90%) var(--nf-vt-y, 36px)); }
}

/* ---------- Flight route: page progress, with a plane at the head ---------- */

.nf-route {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 90;
	height: 2px;
	background: var(--line);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.nf-scrolled .nf-route {
	opacity: 1;
}

.nf-route__done {
	position: absolute;
	inset: 0;
	background: var(--gold-ink);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

.nf-route__plane {
	position: absolute;
	bottom: 5px;
	left: 0;
	width: 18px;
	height: 18px;
	margin-left: -9px;
	color: var(--gold-ink);
	transform: rotate(90deg);
}

/* ---------- Cursor (fine pointers only, added by script) ---------- */

.nf-cursor {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 300;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border: 1px solid var(--gold-ink);
	border-radius: 50%;
	font-family: var(--mono);
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	color: var(--on-gold);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease, width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background-color 0.3s ease, border-color 0.3s ease;
	will-change: transform;
}

.nf-cursor.is-on {
	opacity: 1;
}

.nf-cursor.is-link {
	width: 62px;
	height: 62px;
	margin: -31px 0 0 -31px;
	background: color-mix(in srgb, var(--glow) 16%, transparent);
}

.nf-cursor.is-drag {
	width: 84px;
	height: 84px;
	margin: -42px 0 0 -42px;
	background: var(--gold);
	border-color: var(--gold);
}

.nf-cursor__label {
	opacity: 0;
	transition: opacity 0.2s ease;
}

.nf-cursor.is-drag .nf-cursor__label {
	opacity: 1;
}

/* ---------- Scene 1: hero ---------- */

.nf-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 100svh;
	overflow: hidden;
	isolation: isolate;
}

.nf-hero__globe {
	--d: min(104svh, 70vw);
	position: absolute;
	z-index: 0;
	top: 50%;
	right: calc(var(--d) * -0.2);
	width: var(--d);
	height: var(--d);
	transform: translateY(-48%);
	touch-action: pan-y;
	cursor: grab;
	-webkit-user-select: none;
	user-select: none;
}

.nf-dragging,
.nf-dragging * {
	-webkit-user-select: none;
	user-select: none;
}

.nf-hero__globe.is-dragging {
	cursor: grabbing;
}

.nf-hero__globe::before {
	content: "";
	position: absolute;
	inset: 4%;
	border-radius: 50%;
	background: radial-gradient(circle at 38% 34%, rgba(255, 255, 255, 0.13), rgba(200, 204, 210, 0.05) 42%, transparent 70%);
	box-shadow: inset 0 0 90px 0 rgba(200, 204, 210, 0.09);
}

:root[data-theme="day"] .nf-hero__globe::before {
	background: radial-gradient(circle at 38% 34%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.15) 50%, transparent 72%);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), inset 0 -40px 90px 0 rgba(34, 34, 34, 0.1);
}

.nf-globe__poster,
.nf-globe__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.nf-globe__poster {
	background: var(--gold-ink);
	-webkit-mask: url("globe-poster.svg") center / contain no-repeat;
	mask: url("globe-poster.svg") center / contain no-repeat;
	transition: opacity 0.9s ease;
}

.nf-globe__canvas {
	opacity: 0;
	transition: opacity 0.9s ease;
	outline-offset: -18%;
	border-radius: 50%;
}

.nf-hero__globe.is-live .nf-globe__canvas {
	opacity: 1;
}

.nf-hero__globe.is-live .nf-globe__poster {
	opacity: 0;
}

.nf-hud {
	position: absolute;
	z-index: 2;
	right: var(--pad);
	bottom: clamp(40px, 8svh, 96px);
	display: flex;
	gap: 14px;
	font-family: var(--mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
	opacity: 0;
	transition: opacity 0.8s ease 0.6s;
	pointer-events: none;
}

.nf-hero.is-live .nf-hud {
	opacity: 1;
}

/* The sunrise gradient lives here and in the final scene only. */
.nf-hero__horizon {
	position: absolute;
	z-index: 1;
	inset: auto 0 0 0;
	height: 34svh;
	background: radial-gradient(120% 100% at 60% 100%, rgba(255, 255, 255, 0.3), rgba(200, 204, 210, 0.17) 30%, rgba(200, 204, 210, 0.07) 55%, transparent 74%);
	pointer-events: none;
}

.nf-hero__horizon::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--sun-1) 18%, var(--sun-2) 55%, var(--sun-3) 86%, transparent);
	box-shadow: 0 0 28px 2px rgba(200, 204, 210, 0.55);
}

:root[data-theme="day"] .nf-hero__horizon {
	background: radial-gradient(120% 100% at 60% 100%, rgba(255, 255, 255, 0.24), rgba(200, 204, 210, 0.2) 30%, rgba(200, 204, 210, 0.12) 55%, transparent 74%);
}

.nf-hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(18px, 2.4vw, 30px);
	padding-top: calc(var(--header-h) + 24px);
	padding-bottom: clamp(40px, 8svh, 96px);
	pointer-events: none;
}

/* Only the button takes the pointer, so a drag that starts on the headline still turns the globe. */
.nf-hero__content .nf-btn {
	pointer-events: auto;
}

.nf-hero .nf-display {
	max-width: 7.4em;
}

.nf-hero .nf-lede {
	max-width: 19em;
	font-size: clamp(1.3125rem, 2.1vw, 1.875rem);
	font-weight: 500;
	line-height: 1.22;
	letter-spacing: -0.012em;
	color: var(--ink);
}

/* Scrolling away from the hero: the globe sinks back, the title lifts off. */
.nf-motion .nf-hero__globe {
	translate: 0 calc(var(--hp, 0) * 14svh);
	scale: calc(1 - var(--hp, 0) * 0.14);
}

.nf-motion .nf-hero__content {
	translate: 0 calc(var(--hp, 0) * -64px);
	opacity: calc(1 - var(--hp, 0) * 1.5);
}

/* Entrance: only when motion is allowed */
.nf-motion .nf-hero [data-nf-in] {
	opacity: 0;
	transform: translate3d(0, 26px, 0);
}

.nf-motion.nf-ready .nf-hero [data-nf-in] {
	opacity: 1;
	transform: none;
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
	transition-delay: calc(var(--i, 0) * 110ms + 80ms);
}

@media (max-width: 760px) {
	.nf-hero {
		align-items: flex-start;
	}
	.nf-hero__globe {
		--d: 132vw;
		top: auto;
		right: auto;
		bottom: calc(var(--d) * -0.36);
		left: 50%;
		transform: translateX(-50%);
	}
	.nf-hero__content {
		padding-top: calc(var(--header-h) + 28px);
	}
	.nf-hud {
		right: var(--pad);
		bottom: 18px;
	}
	.nf-hero__horizon {
		height: 26svh;
	}
}

/* ---------- Scene 2: group chat to boarding pass ---------- */

.nf-chat {
	position: relative;
	background: var(--bg);
}

.nf-chat__pin {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-block: clamp(64px, 10vw, 120px);
}

.nf-chat__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: center;
	gap: clamp(24px, 5vw, 80px);
}

.nf-chat__copy {
	display: grid;
	gap: 0.5em;
}

.nf-chat__line--b {
	color: var(--gold-ink);
}

.nf-chat__stage {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 32px;
	perspective: 1400px;
}

.nf-phone {
	--pw: min(350px, 78vw);
	position: relative;
	display: flex;
	flex-direction: column;
	width: var(--pw);
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 44px;
	background: var(--bg-2);
	box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.8), inset 0 0 0 6px color-mix(in srgb, var(--bg) 70%, transparent);
	overflow: hidden;
	will-change: transform, opacity;
}

:root[data-theme="day"] .nf-phone {
	box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.45), inset 0 0 0 6px rgba(255, 255, 255, 0.6);
}

.nf-phone__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 14px 12px;
	border-bottom: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nf-phone__badge {
	min-width: 26px;
	padding: 4px 8px;
	border-radius: 999px;
	background: var(--sun-3);
	color: #fff;
	font-size: 0.6875rem;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

:root[data-theme="day"] .nf-phone__badge {
	background: #C8CCD2;
}

.nf-thread {
	display: grid;
	flex: 1;
	align-content: start;
	gap: 8px;
	padding: 12px 6px 8px;
	overflow: hidden;
}

.nf-msg {
	display: flex;
	align-items: flex-end;
	justify-self: start;
	gap: 8px;
	max-width: 92%;
	transform-origin: 0 100%;
}

.nf-msg--me {
	flex-direction: row-reverse;
	justify-self: end;
	transform-origin: 100% 100%;
}

/* Typing dots and the message bar keep the phone screen full. Decorative. */
.nf-typing {
	display: none;
}

.nf-typing__b {
	display: inline-flex;
	gap: 4px;
	padding: 0.72em 0.9em;
	border-radius: 18px 18px 18px 5px;
	background: color-mix(in srgb, var(--ink) 11%, var(--bg-2));
}

.nf-typing__b i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--muted);
}

.nf-chat.is-chatting .nf-typing__b i {
	animation: nf-typing 1.1s ease-in-out infinite;
}

.nf-typing__b i:nth-child(2) { animation-delay: 0.15s; }
.nf-typing__b i:nth-child(3) { animation-delay: 0.3s; }

@keyframes nf-typing {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
	30% { transform: translateY(-4px); opacity: 1; }
}

.nf-phone__composer {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 6px 4px;
}

.nf-phone__composer span {
	flex: 1;
	height: 34px;
	border: 1px solid var(--line);
	border-radius: 999px;
}

.nf-phone__composer i {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--gold);
	color: var(--on-gold);
}

.nf-phone__composer svg {
	width: 14px;
	height: 14px;
}

.nf-msg__av {
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: hsl(calc(var(--h, 0) * 1deg) 55% 56%);
}

.nf-msg--me .nf-msg__av {
	display: none;
}

.nf-msg__b {
	padding: 9px 13px;
	border-radius: 18px 18px 18px 5px;
	background: color-mix(in srgb, var(--ink) 11%, var(--bg-2));
	font-size: 0.9375rem;
	font-weight: 450;
	line-height: 1.25;
}

.nf-msg--me .nf-msg__b {
	border-radius: 18px 18px 5px 18px;
	background: var(--gold);
	color: var(--on-gold);
}

/* Messages that spill out of the phone. Built by the script, decorative. */
.nf-floaters {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.nf-float {
	position: absolute;
	top: 50%;
	left: 50%;
	padding: 10px 15px;
	border: 1px solid var(--line);
	border-radius: 18px 18px 18px 5px;
	background: color-mix(in srgb, var(--ink) 13%, var(--bg-2));
	box-shadow: 0 22px 44px -20px rgba(0, 0, 0, 0.75);
	font-size: 0.9375rem;
	font-weight: 450;
	line-height: 1.2;
	white-space: nowrap;
	opacity: 0;
	will-change: transform, opacity;
}

.nf-float--me {
	border-color: transparent;
	border-radius: 18px 18px 5px 18px;
	background: var(--gold);
	color: var(--on-gold);
}

:root[data-theme="day"] .nf-float {
	box-shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.5);
}

.nf-burst {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border: 1px solid var(--glow);
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
}

/* Boarding pass. Type and spacing follow the pass's own width (cqw), so one
   set of rules serves the scene pass and the pass issued by the form. */
.nf-pass {
	--w: min(820px, 100%);
	container-type: inline-size;
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 30%;
	width: var(--w);
	border-radius: 20px;
	background: var(--pass-bg);
	color: var(--pass-ink);
	box-shadow: 0 40px 120px -30px rgba(255, 255, 255, 0.28);
	overflow: hidden;
	will-change: transform, opacity;
}

:root[data-theme="day"] .nf-pass {
	box-shadow: 0 40px 90px -36px rgba(0, 0, 0, 0.6);
}

.nf-pass__main {
	display: grid;
	align-content: space-between;
	gap: 30px;
	gap: 5cqw;
	padding: 30px;
	padding: 5cqw;
}

.nf-k {
	display: block;
	margin-bottom: 4px;
	font-family: var(--mono);
	font-size: 0.6875rem;
	font-size: max(0.625rem, 1.5cqw);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pass-gold);
}

.nf-pass__route {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	gap: 2.4cqw;
}

.nf-pass__route strong,
.nf-pass__who strong {
	display: block;
	font-size: 2.75rem;
	font-size: 6.8cqw;
	font-weight: 800;
	font-variation-settings: "opsz" 96;
	line-height: 0.95;
	letter-spacing: -0.03em;
}

.nf-pass__who strong {
	overflow-wrap: anywhere;
	text-wrap: balance;
}

.nf-pass__plane {
	flex: none;
	width: 34px;
	width: 5.4cqw;
	height: auto;
	margin-bottom: 0.8cqw;
	color: var(--pass-gold);
}

.nf-pass__row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 28px;
	gap: 2cqw 4.4cqw;
	padding-top: 18px;
	padding-top: 3cqw;
	border-top: 1px dashed color-mix(in srgb, var(--pass-ink) 30%, transparent);
}

.nf-pass__row b,
.nf-pass__gname {
	display: block;
	font-family: var(--mono);
	font-size: 1rem;
	font-size: max(0.8125rem, 2.35cqw);
	font-weight: 700;
	letter-spacing: 0.02em;
}

.nf-pass__stub {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 12px;
	padding: 30px 22px;
	padding: 5cqw 3.6cqw;
	border-left: 2px dashed color-mix(in srgb, var(--pass-ink) 30%, transparent);
}

.nf-pass__stub::before,
.nf-pass__stub::after {
	content: "";
	position: absolute;
	left: -12px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--bg);
}

.nf-pass__stub::before { top: -11px; }
.nf-pass__stub::after { bottom: -11px; }

.nf-pass__gate {
	display: block;
	font-size: 4.5rem;
	font-size: 11.5cqw;
	font-weight: 800;
	font-variation-settings: "opsz" 96;
	line-height: 0.85;
	letter-spacing: -0.04em;
}

.nf-pass__gname {
	margin-top: 1.4cqw;
}

.nf-pass__bars {
	height: 44px;
	height: 8.5cqw;
	background: repeating-linear-gradient(90deg, var(--pass-ink) 0 2px, transparent 2px 5px, var(--pass-ink) 5px 6px, transparent 6px 10px, var(--pass-ink) 10px 13px, transparent 13px 15px);
	opacity: 0.85;
}

.nf-pass__shine {
	position: absolute;
	inset: -20% auto -20% 0;
	width: 34%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
	transform: translate3d(-160%, 0, 0) skewX(-16deg);
	pointer-events: none;
}

:root[data-theme="day"] .nf-pass__shine {
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

/* Static layout (reduced motion, no script, or print): everything visible */
.nf-chat__stage > * {
	grid-area: auto;
}

/* Pinned, scrubbed version */
.nf-motion .nf-chat {
	height: 880svh;
}

.nf-motion .nf-chat__pin {
	position: sticky;
	top: 0;
	height: 100svh;
	padding-block: var(--header-h) 0;
	overflow: hidden;
}

.nf-motion .nf-chat__copy {
	position: relative;
}

.nf-motion .nf-chat__line {
	grid-area: 1 / 1;
	will-change: transform, opacity;
}

.nf-motion .nf-chat__line--b {
	opacity: 0;
}

.nf-motion .nf-chat__stage {
	gap: 0;
	align-items: center;
}

.nf-motion .nf-chat__stage > * {
	grid-area: 1 / 1;
}

.nf-motion .nf-phone {
	height: min(690px, 74svh);
}

.nf-motion .nf-pass {
	opacity: 0;
}

/* The thread is cut into one row per message, filled from the top, so the
   screen is never mostly empty. */
.nf-motion .nf-thread {
	grid-template-rows: repeat(var(--n, 10), minmax(0, 1fr));
	gap: 0;
	padding-block: 8px 2px;
}

.nf-motion .nf-msg {
	align-self: center;
	opacity: 0;
	transform: translate3d(0, 10px, 0) scale(0.86);
	transition: opacity 0.3s ease, transform 0.45s var(--ease);
}

.nf-motion .nf-msg.is-in {
	opacity: 1;
	transform: rotate(calc(var(--tilt, 0) * var(--chaos, 0) * 1deg));
}

.nf-motion .nf-msg__b,
.nf-motion .nf-typing__b {
	font-size: clamp(0.8125rem, 1.9svh, 1.0625rem);
}

.nf-motion .nf-msg__b {
	padding: 0.58em 0.9em;
	white-space: nowrap;
}

.nf-motion .nf-typing {
	display: flex;
	align-items: center;
	align-self: center;
	gap: 8px;
	grid-row: var(--row, 1);
	opacity: var(--typing, 1);
	transition: opacity 0.2s ease;
}

.nf-chat .nf-headline {
	font-size: clamp(2.25rem, 4.6vw, 4.5rem);
}

@media (max-width: 860px) {
	.nf-chat__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}
	.nf-chat__copy {
		text-align: left;
	}
	.nf-chat .nf-headline {
		font-size: clamp(1.75rem, 8.4vw, 2.75rem);
	}
	.nf-motion .nf-chat__copy {
		min-height: 2.1em;
		font-size: clamp(1.75rem, 8.4vw, 2.75rem);
	}
	.nf-phone {
		--pw: min(300px, 77vw);
		border-radius: 38px;
	}
	.nf-float {
		font-size: 0.8125rem;
		padding: 8px 12px;
	}
	.nf-motion .nf-phone {
		height: min(560px, 62svh, 100svh - 205px);
	}
}

/* When the pass has little room (a phone, or the card beside the form) it
   stands upright. Decided by the width of its holder, not the screen. */
.nf-chat__stage,
.nf-pass-box {
	container-type: inline-size;
}

@container (max-width: 520px) {
	.nf-pass {
		--w: min(350px, 100%);
		grid-template-columns: minmax(0, 1fr);
	}
	.nf-pass__main {
		gap: 6cqw;
		padding: 8cqw 8cqw 7cqw;
	}
	.nf-pass__route {
		flex-direction: column;
		align-items: flex-start;
		gap: 3.4cqw;
	}
	.nf-pass__route strong,
	.nf-pass__who strong {
		font-size: 3.2rem;
		font-size: 15cqw;
	}
	.nf-pass__plane {
		width: 9cqw;
		margin: 0 0 0 1cqw;
		transform: rotate(90deg);
	}
	.nf-k {
		font-size: max(0.625rem, 3.1cqw);
	}
	.nf-pass__row {
		gap: 3cqw 6cqw;
		padding-top: 5.4cqw;
	}
	.nf-pass__row b,
	.nf-pass__gname {
		font-size: max(0.8125rem, 4.3cqw);
	}
	.nf-pass__stub {
		flex-direction: row;
		align-items: flex-end;
		padding: 6cqw 8cqw 8cqw;
		border-left: 0;
		border-top: 2px dashed color-mix(in srgb, var(--pass-ink) 30%, transparent);
	}
	.nf-pass__stub::before,
	.nf-pass__stub::after {
		top: -12px;
		bottom: auto;
	}
	.nf-pass__stub::before { left: -11px; }
	.nf-pass__stub::after { left: auto; right: -11px; }
	.nf-pass__gate {
		font-size: 5rem;
		font-size: 25cqw;
	}
	.nf-pass__bars {
		width: 42%;
		height: 17cqw;
	}
}

/* In the pinned stage the pass must also fit the height of the screen. */
.nf-motion .nf-chat__stage .nf-pass {
	--w: min(820px, 100%, max(521px, (100svh - 200px) * 2.45));
}

@container (max-width: 520px) {
	.nf-motion .nf-chat__stage .nf-pass {
		--w: min(350px, 100%, (100svh - 240px) * 0.737);
	}
}

/* ---------- Scene 4: the pass tears into five tickets ---------- */

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

.nf-s4 {
	--s4-ink: var(--ink);
	display: grid;
	justify-items: center;
	gap: clamp(26px, 5vw, 56px);
	padding: clamp(40px, 8vw, 96px) var(--pad) clamp(56px, 10vw, 120px);
	overflow-x: clip;
	text-align: center;
}

.nf-tix {
	--cols: 6;
	--rows: 1;
	--gap: clamp(10px, 1.5vw, 22px);
	--tw: min(205px, 13.9vw, (100svh - 190px) * 0.62);
	--ta: 0.62;
	display: grid;
	grid-template-columns: repeat(var(--cols), var(--tw));
	grid-auto-rows: calc(var(--tw) / var(--ta));
	align-content: start;
	gap: var(--gap);
}

.nf-tk {
	position: relative;
	aspect-ratio: var(--ta);
	container-type: inline-size;
	perspective: 900px;
}

.nf-tk__card {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	transform-style: preserve-3d;
	transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg) + var(--spin, 0deg)));
	transition: transform 0.6s var(--ease);
	-webkit-tap-highlight-color: transparent;
}

button.nf-tk__card {
	cursor: pointer;
}

.nf-tk.is-flying .nf-tk__card {
	transition: none;
}

.nf-tk__face {
	position: absolute;
	inset: 0;
	border-radius: 12px;
	border-radius: 7cqw;
	background: var(--pass-bg);
	color: var(--pass-ink);
	box-shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.75);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	overflow: hidden;
}

:root[data-theme="day"] .nf-tk__face {
	box-shadow: 0 26px 50px -30px rgba(0, 0, 0, 0.55);
}

.nf-tk__face--back {
	transform: rotateY(180deg);
	background-image: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--pass-ink) 7%, transparent) 10px 11px);
}

.nf-tk__face--front {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 16px;
	padding: 10cqw 9cqw 9cqw;
}

/* Punched notches where the stub would tear */
.nf-tk__face--front::before,
.nf-tk__face--front::after {
	content: "";
	position: absolute;
	top: calc(100% - 53.1cqw);
	width: 9cqw;
	height: 9cqw;
	border-radius: 50%;
	background: var(--bg);
}

.nf-tk__face--front::before { left: -4.5cqw; }
.nf-tk__face--front::after { right: -4.5cqw; }

.nf-tk__icon {
	display: block;
	width: 52px;
	width: 32cqw;
	color: var(--pass-gold);
}

.nf-tk__icon svg {
	width: 100%;
	height: auto;
	overflow: visible;
}

.nf-tk__foot {
	display: grid;
	gap: 14px;
	gap: 9cqw;
	padding-top: 8cqw;
	border-top: 1px dashed color-mix(in srgb, var(--pass-ink) 32%, transparent);
}

.nf-tk__name {
	display: block;
	font-size: 1.25rem;
	font-size: 11.6cqw;
	font-weight: 800;
	font-variation-settings: "opsz" 96;
	line-height: 1;
	letter-spacing: -0.03em;
	white-space: nowrap;
}

.nf-tk__bars {
	display: block;
	height: 18px;
	height: 11cqw;
	background: repeating-linear-gradient(90deg, var(--pass-ink) 0 2px, transparent 2px 5px, var(--pass-ink) 5px 6px, transparent 6px 10px, var(--pass-ink) 10px 13px, transparent 13px 15px);
	opacity: 0.8;
}

.nf-tk__card:focus-visible {
	outline: 2px solid var(--glow);
	outline-offset: 5px;
}

/* Each ticket has its own small move. It plays on landing, hover, focus and tap. */
.nf-tk__icon svg * {
	transform-box: view-box;
	transform-origin: 24px 24px;
}

.nf-tk.is-play .nf-ic-needle { animation: nf-ic-needle 1.1s var(--ease) both; }
.nf-tk.is-play .nf-ic-flap { animation: nf-ic-flap 0.9s var(--ease) both; }
.nf-tk.is-play .nf-ic-ping { animation: nf-ic-pop 0.7s var(--ease) 0.25s both; }
.nf-tk.is-play .nf-ic-dot { animation: nf-ic-dot 0.9s ease-in-out both; }
.nf-tk.is-play .nf-ic-dot:nth-of-type(2) { animation-delay: 0.12s; }
.nf-tk.is-play .nf-ic-dot:nth-of-type(3) { animation-delay: 0.24s; }
.nf-tk.is-play .nf-ic-tick { animation: nf-ic-draw 0.7s var(--ease) 0.15s both; }
.nf-tk.is-play .nf-ic-fly { animation: nf-ic-fly 0.9s var(--ease) both; }
.nf-tk.is-play .nf-ic-plus { animation: nf-ic-spin 0.8s var(--ease) both; }

.nf-ic-tick {
	stroke-dasharray: 1;
}

@keyframes nf-ic-needle {
	0% { transform: rotate(-200deg); }
	60% { transform: rotate(24deg); }
	80% { transform: rotate(-10deg); }
	100% { transform: rotate(0deg); }
}

@keyframes nf-ic-flap {
	0% { transform: translateY(0); }
	35% { transform: translateY(-5px) scaleY(0.6); }
	100% { transform: translateY(0); }
}

@keyframes nf-ic-pop {
	0% { transform: scale(0); transform-origin: 41px 11px; }
	60% { transform: scale(1.35); transform-origin: 41px 11px; }
	100% { transform: scale(1); transform-origin: 41px 11px; }
}

@keyframes nf-ic-dot {
	0%, 100% { transform: translateY(0); }
	40% { transform: translateY(-5px); }
}

@keyframes nf-ic-draw {
	from { stroke-dashoffset: 1; }
	to { stroke-dashoffset: 0; }
}

@keyframes nf-ic-fly {
	0% { transform: translate(-22px, 14px) scale(0.6); opacity: 0; }
	100% { transform: translate(0, 0) scale(1); opacity: 1; }
}

@keyframes nf-ic-spin {
	from { transform: rotate(-180deg) scale(0.4); }
	to { transform: rotate(0deg) scale(1); }
}

/* "and more": a stack of extra tickets fanned out behind the top one */
.nf-tk__fan i {
	position: absolute;
	inset: 0;
	border: 1px solid color-mix(in srgb, var(--pass-ink) 22%, transparent);
	border-radius: 12px;
	border-radius: 7cqw;
	background: color-mix(in srgb, var(--pass-bg) 72%, var(--bg));
	transform-origin: 50% 118%;
	transform: rotate(calc(var(--fan, 1) * var(--a, 0deg))) translateY(calc(var(--fan, 1) * var(--y, 0px)));
}

.nf-tk__fan i:nth-child(1) { --a: -7deg; }
.nf-tk__fan i:nth-child(2) { --a: 12deg; --y: -2px; }
.nf-tk__fan i:nth-child(3) { --a: 5deg; --y: -3px; }

.nf-tk--more .nf-tk__name {
	color: var(--pass-gold);
}

.nf-s4__line {
	margin: 0;
	color: var(--s4-ink);
}

.nf-s4__through {
	max-width: 11em;
	font-size: min(clamp(2.2rem, 7.6vw, 7.5rem), 15svh);
	font-weight: 800;
	font-variation-settings: "opsz" 96;
	line-height: 0.9;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.nf-s4__and {
	font-size: min(clamp(2.25rem, 6.4vw, 6rem), 14svh);
	font-weight: 750;
	font-variation-settings: "opsz" 96;
	letter-spacing: -0.03em;
}

.nf-s4__free {
	max-width: 7em;
	font-size: min(clamp(3.75rem, 18.6vw, 16rem), 30svh);
	font-weight: 800;
	font-variation-settings: "opsz" 96;
	line-height: 0.82;
	letter-spacing: -0.045em;
	color: var(--glow);
	text-wrap: balance;
}

:root[data-theme="night"] .nf-s4__free {
	text-shadow: 0 0 90px rgba(255, 255, 255, 0.45);
}

.nf-s4__w,
.nf-s4__c {
	display: inline-block;
	will-change: transform, opacity;
}

.nf-s4__flash,
.nf-s4__burst {
	display: none;
}

/* Scrubbed version: everything is layered over the pinned stage */
.nf-motion .nf-s4 {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: block;
	padding: 0;
	pointer-events: none;
}

.nf-motion .nf-s4.is-flash {
	--s4-ink: #F5F3EF;
}

.nf-motion .nf-tix {
	/* Sized and centred with plain arithmetic so every browser engine agrees. */
	--gw: calc(var(--cols) * var(--tw) + (var(--cols) - 1) * var(--gap));
	--gh: calc(var(--rows) * var(--tw) / var(--ta) + (var(--rows) - 1) * var(--gap));
	position: absolute;
	top: calc(var(--header-h) + (100% - var(--header-h) - var(--gh)) / 2);
	left: calc(50% - var(--gw) / 2);
	width: var(--gw);
	height: var(--gh);
	margin: 0;
	opacity: 0;
	will-change: transform, opacity;
}

.nf-motion .nf-s4.is-live .nf-tix {
	pointer-events: auto;
}

.nf-motion .nf-tk {
	will-change: transform;
}

.nf-motion .nf-s4__line {
	position: absolute;
	inset: var(--header-h) 0 0 0;
	display: grid;
	place-items: center;
	padding-inline: var(--pad);
	opacity: 0;
	transition: color 0.3s ease;
	will-change: transform, opacity;
}

.nf-motion .nf-s4__line > span {
	display: block;
}

.nf-motion .nf-s4__through {
	max-width: none;
	padding-top: 30svh;
}

.nf-motion .nf-s4__through > span {
	max-width: 11em;
}

.nf-motion .nf-s4__free {
	max-width: none;
	color: #FFFFFF;
}

.nf-motion .nf-s4__free > span {
	max-width: 7em;
}

.nf-motion .nf-s4__flash {
	position: absolute;
	inset: 0;
	display: block;
	background: radial-gradient(60% 55% at 50% 56%, rgba(255, 255, 255, 0.2), rgba(200, 204, 210, 0.06) 55%, transparent 75%);
	opacity: var(--fr, 0);
}

/* In day mode the screen turns to night for the biggest line, so bright gold stays bright. */
:root[data-theme="day"].nf-motion .nf-s4__flash {
	background: #000000;
	opacity: 1;
	clip-path: circle(calc(var(--fr, 0) * 150vmax) at 50% 56%);
}

/* While the screen is night for that line, the header follows it. */
:root[data-theme="day"].nf-night-moment .nf-header {
	--bg: #000000;
	--bg-2: #141414;
	--ink: #F5F3EF;
	--muted: #A3A6AB;
	--line: rgba(245, 243, 239, 0.16);
	--gold-ink: #C8CCD2;
	color: var(--ink);
}

.nf-motion .nf-s4__burst {
	position: absolute;
	top: 56%;
	left: 50%;
	display: block;
	width: 0;
	height: 0;
}

.nf-s4__burst i {
	position: absolute;
	top: -9px;
	left: -6px;
	width: 12px;
	height: 18px;
	border-radius: 3px;
	background: var(--c, #FFFFFF);
	opacity: 0;
}

.nf-s4.is-hit .nf-s4__burst i {
	animation: nf-burst 1.25s cubic-bezier(0.12, 0.8, 0.3, 1) both;
	animation-delay: var(--d, 0s);
}

@keyframes nf-burst {
	0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(0.4); opacity: 0; }
	12% { opacity: 1; }
	100% { transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)) scale(1); opacity: 0; }
}

.nf-s4.is-hit .nf-s4__free > span {
	animation: nf-hit 0.5s var(--ease) both;
}

@keyframes nf-hit {
	0% { transform: scale(1.06); }
	40% { transform: scale(0.985); }
	100% { transform: scale(1); }
}

@media (max-width: 860px) and (orientation: portrait) {
	.nf-tix {
		--cols: 2;
		--rows: 3;
		--gap: 12px;
		--tw: min(40vw, (100svh - 180px) * 0.2467);
		--ta: 0.74;
	}
}

@media (max-width: 860px) {

	.nf-s4__through {
		font-size: min(clamp(2.6rem, 7.6vw, 7.5rem), 15svh);
	}
	.nf-motion .nf-s4__through {
		place-items: end center;
		padding: 0 var(--pad) 25svh;
	}
}

/* ---------- Check in: the form ---------- */

.nf-ci {
	position: relative;
	z-index: 1;
	border-top: 1px solid var(--line);
	background: var(--bg);
}

.nf-ci__wrap {
	display: grid;
	align-content: start;
	gap: clamp(16px, 3svh, 30px);
	min-height: 100svh;
	padding-block: calc(var(--header-h) + clamp(18px, 4svh, 48px)) clamp(48px, 9svh, 110px);
}

.nf-ci__top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
}

.nf-ci__count {
	min-height: 1em;
	font-family: var(--mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

/* Progress, drawn as a flight path */
.nf-ci__path {
	height: 58px;
}

.nf-ci__path svg {
	width: 100%;
	height: 100%;
	overflow: visible;
}

.nf-ci__track {
	stroke: color-mix(in srgb, var(--ink) 34%, transparent);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-dasharray: 1 9;
}

.nf-ci__done {
	stroke: var(--gold-ink);
	stroke-width: 2;
	stroke-linecap: round;
}

.nf-ci__stops circle {
	fill: var(--bg);
	stroke: var(--muted);
	stroke-width: 1.5;
	transition: fill 0.3s ease, stroke 0.3s ease;
}

.nf-ci__stops circle.is-done {
	fill: var(--gold-ink);
	stroke: var(--gold-ink);
}

.nf-ci__plane {
	fill: var(--gold-ink);
}

:root[data-theme="night"] .nf-ci__plane {
	fill: var(--glow);
	filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
}

.nf-ci__screens {
	display: grid;
}

.nf-ci__screen {
	grid-area: 1 / 1;
	display: grid;
	align-content: start;
	justify-items: start;
	gap: clamp(18px, 3.2svh, 34px);
	min-width: 0;
}

.nf-motion .nf-ci__screen,
.nf-ci.is-ready .nf-ci__screen {
	visibility: hidden;
	opacity: 0;
}

.nf-motion .nf-ci__screen {
	transform: translate3d(0, 30px, 0);
	transition: opacity 0.3s ease, transform 0.5s var(--ease), visibility 0s linear 0.5s;
}

.nf-motion .nf-ci__screen.is-past {
	transform: translate3d(0, -30px, 0);
}

.nf-motion .nf-ci__screen.is-active,
.nf-ci.is-ready .nf-ci__screen.is-active {
	visibility: visible;
	opacity: 1;
	transform: none;
	transition-delay: 0s;
}

.nf-ci__q {
	display: block;
	width: 100%;
	padding: 0;
	font-size: clamp(2rem, 5.4vw, 4.75rem);
	font-weight: 750;
	font-variation-settings: "opsz" 96;
	line-height: 0.96;
	letter-spacing: -0.035em;
	text-wrap: balance;
	outline: none;
}

legend.nf-ci__q {
	margin-bottom: clamp(14px, 2.6svh, 26px);
}

.nf-ci__opt {
	margin-left: 0.8em;
	font-family: var(--mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	vertical-align: middle;
	color: var(--muted);
}

/* Step 1: four gates */
.nf-gates {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(10px, 1.4vw, 20px);
	width: 100%;
	perspective: 1400px;
}

.nf-gate {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2rem;
	min-height: clamp(150px, 31svh, 300px);
	padding: clamp(16px, 2vw, 26px);
	border: 1px solid var(--line);
	border-radius: 22px;
	background: var(--bg-2);
	color: var(--ink);
	text-align: left;
	cursor: pointer;
	overflow: hidden;
	transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition: border-color 0.25s ease, box-shadow 0.35s ease, transform 0.5s var(--ease);
	-webkit-tap-highlight-color: transparent;
}

.nf-gate::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.2), transparent 62%);
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
}

:root[data-theme="day"] .nf-gate::before {
	background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(200, 204, 210, 0.3), transparent 62%);
}

.nf-gate:hover,
.nf-gate:focus-visible,
.nf-gate.is-picked {
	border-color: var(--gold-ink);
	box-shadow: 0 34px 70px -44px rgba(255, 255, 255, 0.6);
}

.nf-gate:hover::before,
.nf-gate:focus-visible::before,
.nf-gate.is-picked::before {
	opacity: 1;
}

.nf-gate > * {
	position: relative;
	pointer-events: none;
}

.nf-gate__letter {
	position: absolute !important;
	right: 0.02em;
	bottom: -0.17em;
	font-size: clamp(7.5rem, 15vw, 13rem);
	font-weight: 800;
	font-variation-settings: "opsz" 96;
	line-height: 1;
	letter-spacing: -0.05em;
	color: var(--bg-2);
	-webkit-text-stroke: 3px color-mix(in srgb, var(--ink) 22%, var(--bg-2));
	paint-order: stroke fill;
	transition: color 0.35s ease, -webkit-text-stroke-color 0.35s ease, transform 0.6s var(--ease);
}

.nf-gate:hover .nf-gate__letter,
.nf-gate:focus-visible .nf-gate__letter,
.nf-gate.is-picked .nf-gate__letter {
	color: color-mix(in srgb, var(--gold) 26%, var(--bg-2));
	-webkit-text-stroke-color: var(--gold-ink);
	transform: translate3d(-4px, -6px, 0);
}

.nf-gate__code {
	font-family: var(--mono);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold-ink);
}

.nf-gate__name {
	font-size: clamp(1.5rem, 2.9vw, 2.6rem);
	font-weight: 800;
	font-variation-settings: "opsz" 96;
	line-height: 0.95;
	letter-spacing: -0.03em;
}

.nf-gate__arrow {
	position: absolute !important;
	top: clamp(16px, 2vw, 26px);
	right: clamp(16px, 2vw, 26px);
	width: 20px;
	height: 20px;
	color: var(--muted);
	transition: transform 0.35s var(--ease), color 0.25s ease;
}

.nf-gate:hover .nf-gate__arrow,
.nf-gate:focus-visible .nf-gate__arrow {
	transform: translate3d(3px, -3px, 0);
	color: var(--gold-ink);
}

.nf-ci__trip {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding-block: 0.5em;
	font-family: var(--mono);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: 5px;
	color: var(--muted);
}

.nf-ci__trip:hover {
	color: var(--gold-ink);
}

.nf-ci__trip svg {
	width: 12px;
	height: 12px;
}

/* One question per screen */
.nf-ci__field {
	display: grid;
	gap: clamp(14px, 2.6svh, 26px);
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.nf-ci__input {
	width: 100%;
	max-width: 22em;
	padding: 0.3em 0 0.28em;
	border: 0;
	border-bottom: 2px solid color-mix(in srgb, var(--ink) 34%, transparent);
	border-radius: 0;
	background: transparent;
	color: var(--ink);
	font-family: var(--display);
	font-size: clamp(1.5rem, 3.4vw, 2.75rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	caret-color: var(--glow);
	outline: none;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

textarea.nf-ci__input {
	max-width: 30em;
	min-height: 3.6em;
	font-size: clamp(1.25rem, 2.4vw, 2rem);
	line-height: 1.22;
	resize: none;
}

.nf-ci__input:focus {
	border-bottom-color: var(--gold-ink);
	box-shadow: 0 2px 0 0 var(--gold-ink);
}

.nf-ci__input[aria-invalid="true"] {
	border-bottom-color: var(--alert);
	box-shadow: 0 2px 0 0 var(--alert);
}

.nf-ci {
	--alert: #F5F3EF;
}

:root[data-theme="day"] .nf-ci {
	--alert: #000000;
}

.nf-ci__err {
	min-height: 1.4em;
	font-family: var(--mono);
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	color: var(--alert);
}

.nf-ci__note {
	max-width: 38em;
	font-size: 0.9375rem;
	line-height: 1.4;
	color: var(--muted);
}

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

.nf-chip {
	position: relative;
	display: inline-flex;
}

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

.nf-chip span {
	display: inline-flex;
	align-items: center;
	padding: 0.68em 1.1em;
	border: 1px solid color-mix(in srgb, var(--ink) 34%, transparent);
	border-radius: 999px;
	font-size: clamp(1.0625rem, 1.9vw, 1.5rem);
	font-weight: 600;
	letter-spacing: -0.01em;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.3s var(--ease);
}

.nf-chip input:checked + span {
	border-color: var(--gold);
	background: var(--gold);
	color: var(--on-gold);
}

.nf-chip input:focus-visible + span {
	outline: 2px solid var(--glow);
	outline-offset: 3px;
}

.nf-chip:active span {
	transform: scale(0.96);
}

.nf-ci__nav {
	display: flex;
	flex-direction: row-reverse;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px 20px;
}

.nf-ci__back {
	padding: 0.9em 0.2em;
	border: 0;
	background: none;
	font-family: var(--mono);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	cursor: pointer;
}

.nf-ci__back:hover {
	color: var(--ink);
}

.nf-ci__hint {
	order: -1;
	font-family: var(--mono);
	font-size: 0.6875rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

@media (hover: none) {
	.nf-ci__hint {
		display: none;
	}
}

.nf-btn[disabled] {
	opacity: 0.7;
	cursor: progress;
}

.nf-ci__closed,
.nf-ci__noscript {
	font-family: var(--mono);
	font-size: 0.875rem;
	letter-spacing: 0.04em;
	color: var(--muted);
}

/* Beside the questions on a wide screen: the visitor's pass, filled in as they answer */
.nf-ci__side {
	display: none;
}

.nf-pass-box {
	width: min(400px, 100%);
}

.nf-pass-box .nf-pass,
.nf-motion .nf-pass-box .nf-pass {
	--w: 100%;
	opacity: 1;
}

.nf-pass__who strong:empty::before,
.nf-pass__row b:empty::before,
.nf-pass__gate:empty::before {
	content: "";
	display: block;
	width: 68%;
	height: 0.62em;
	margin-top: 0.16em;
	border-radius: 6px;
	background: color-mix(in srgb, var(--pass-ink) 14%, transparent);
}

.nf-pass__row b:empty::before {
	width: 4.2em;
}

.nf-pass__gate:empty::before {
	width: 0.62em;
	height: 0.72em;
}

.nf-motion .nf-pass__who strong:empty::before {
	animation: nf-wait 1.4s ease-in-out infinite;
}

@keyframes nf-wait {
	0%, 100% { opacity: 0.45; }
	50% { opacity: 1; }
}

.nf-pass__who strong[data-len="m"] { font-size: 11cqw; }
.nf-pass__who strong[data-len="l"] { font-size: 8.4cqw; }

.nf-pass__gate.is-pop {
	animation: nf-pop 0.5s var(--ease) both;
}

@keyframes nf-pop {
	0% { transform: scale(0.4) rotate(-12deg); opacity: 0; }
	60% { transform: scale(1.12) rotate(3deg); opacity: 1; }
	100% { transform: none; }
}

/* The stamp that lands when the pass is issued */
.nf-pass__stamp {
	position: absolute;
	z-index: 2;
	top: 27cqw;
	right: 5cqw;
	display: grid;
	place-items: center;
	width: 31cqw;
	height: 31cqw;
	padding: 3cqw;
	border: 0.9cqw double var(--pass-gold);
	border-radius: 50%;
	color: var(--pass-gold);
	font-family: var(--mono);
	font-size: 12px;
	font-size: 3.5cqw;
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1.15;
	text-align: center;
	text-transform: uppercase;
	opacity: 0;
	transform: rotate(-14deg);
	pointer-events: none;
}

.is-issued .nf-pass__stamp {
	opacity: 0.92;
}

.nf-motion .is-issued .nf-pass__stamp {
	animation: nf-stamp 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) var(--stamp-wait, 0.5s) both;
}

@keyframes nf-stamp {
	0% { opacity: 0; transform: rotate(-14deg) scale(2.6); }
	60% { opacity: 1; transform: rotate(-14deg) scale(0.93); }
	100% { opacity: 0.92; transform: rotate(-14deg) scale(1); }
}

.nf-motion .nf-ci__side .is-issued .nf-pass__shine {
	animation: nf-shine 1.1s ease 1.1s both;
}

.nf-motion .nf-ci__side .is-issued {
	animation: nf-issued 0.9s var(--ease) both;
}

@keyframes nf-issued {
	0% { transform: scale(1); }
	35% { transform: scale(1.05) rotate(-1.2deg); }
	100% { transform: scale(1); }
}

@media (min-width: 861px) {
	.nf-ci.is-ready .nf-ci__form {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
		align-items: center;
		gap: clamp(32px, 5.5vw, 96px);
	}
	.nf-ci.is-ready .nf-ci__side {
		display: grid;
		justify-items: center;
		perspective: 1400px;
	}
	.nf-ci.is-ready .nf-gates {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.nf-ci.is-ready .nf-gate {
		min-height: clamp(132px, 20svh, 200px);
	}
	.nf-ci.is-ready .nf-ci__done .nf-ci__printer {
		display: none;
	}
	.nf-ci.is-ready .nf-ci__screen:not([data-screen="gate"]) {
		align-content: center;
	}
}

/* The issued pass prints out of a slot */
.nf-ci__printer {
	position: relative;
	width: min(760px, 100%);
	padding-top: 16px;
	perspective: 1400px;
}

.nf-ci__printer::before {
	content: "";
	position: absolute;
	z-index: 2;
	top: 0;
	right: -10px;
	left: -10px;
	height: 16px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--bg-2);
	box-shadow: inset 0 -7px 8px -5px rgba(0, 0, 0, 0.7);
}

.nf-ci__feed {
	clip-path: inset(0 -60px -140px -60px);
}

.nf-ci__tilt {
	transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition: transform 0.5s var(--ease);
}

.nf-motion .nf-ci__feed .nf-pass {
	animation: nf-print 1.7s cubic-bezier(0.3, 0, 0.2, 1) 0.25s both;
}

.nf-motion .nf-ci__feed .nf-pass__shine {
	animation: nf-shine 1.1s ease 2.1s both;
}

@keyframes nf-print {
	0% { transform: translate3d(0, -104%, 0); }
	16%, 22% { transform: translate3d(0, -80%, 0); }
	42%, 49% { transform: translate3d(0, -50%, 0); }
	70%, 76% { transform: translate3d(0, -18%, 0); }
	100% { transform: translate3d(0, 0, 0); }
}

@keyframes nf-shine {
	from { transform: translate3d(-160%, 0, 0) skewX(-16deg); }
	to { transform: translate3d(420%, 0, 0) skewX(-16deg); }
}

@media (max-width: 860px) {
	.nf-gates {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.nf-gate {
		gap: 1.25rem;
		min-height: clamp(118px, 19svh, 180px);
		border-radius: 18px;
	}
	.nf-gate__letter {
		font-size: 6rem;
		-webkit-text-stroke-width: 2.5px;
	}
	.nf-ci__path {
		height: 44px;
	}
	.nf-ci__printer {
		width: min(350px, 100%);
	}
	.nf-ci__feed {
		--stamp-wait: 2s;
	}
}

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

.nf-foot {
	border-top: 1px solid var(--line);
	padding-block: 34px 44px;
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	color: var(--muted);
}

.nf-foot__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px 24px;
}

.nf-foot a:hover {
	color: var(--gold-ink);
}

/* ---------- Request a trip: a full-screen layer of one question at a time ---------- */

html.nf-trip-open,
html.nf-trip-open body {
	overflow: hidden;
}

.nf-trip {
	--alert: #F5F3EF;
	position: fixed;
	inset: 0;
	z-index: 300;
	color: var(--ink);
}

:root[data-theme="day"] .nf-trip {
	--alert: #000000;
}

.nf-trip[hidden] {
	display: none;
}

.nf-trip__panel {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	background:
		radial-gradient(120% 60% at 50% -10%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 60%),
		var(--bg);
}

/* Opens as a circle growing out of the button that was pressed */
.nf-motion .nf-trip__panel {
	clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%));
	transition: clip-path 0.5s cubic-bezier(0.6, 0, 0.8, 0.4);
}

.nf-motion .nf-trip.is-open .nf-trip__panel {
	clip-path: circle(150vmax at var(--ox, 50%) var(--oy, 50%));
	transition: clip-path 0.75s var(--ease);
}

.nf-motion .nf-trip__bar,
.nf-motion .nf-trip__body {
	opacity: 0;
	transform: translate3d(0, 18px, 0);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.nf-motion .nf-trip.is-open .nf-trip__bar,
.nf-motion .nf-trip.is-open .nf-trip__body {
	opacity: 1;
	transform: none;
	transition: opacity 0.45s ease 0.22s, transform 0.6s var(--ease) 0.22s;
}

.nf-trip__bar {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: var(--header-h);
	border-bottom: 1px solid var(--line);
}

.nf-trip__bar .nf-label {
	margin: 0;
}

.nf-trip__count {
	margin: 0 0 0 auto;
}

.nf-trip__close {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: none;
	color: var(--ink);
	cursor: pointer;
	transition: border-color 0.25s ease, color 0.25s ease, transform 0.45s var(--ease);
}

.nf-trip__close svg {
	width: 18px;
	height: 18px;
}

.nf-trip__close:hover,
.nf-trip__close:focus-visible {
	border-color: var(--gold-ink);
	color: var(--gold-ink);
	transform: rotate(90deg);
}

.nf-trip__close:focus-visible {
	outline: 2px solid var(--glow);
	outline-offset: 3px;
}

.nf-trip__body {
	display: grid;
	flex: 1;
	align-content: start;
	gap: clamp(14px, 2.6svh, 28px);
	width: 100%;
	padding-block: clamp(14px, 3svh, 40px) clamp(40px, 8svh, 96px);
}

.nf-trip__path {
	height: 52px;
}

.nf-trip__form,
.nf-trip__screens {
	min-width: 0;
}

.nf-trip__screens,
.nf-trip .nf-ci__field {
	grid-template-columns: minmax(0, 1fr);
}

.nf-motion .nf-trip .nf-ci__screen,
.nf-trip.is-ready .nf-ci__screen {
	visibility: hidden;
	opacity: 0;
}

.nf-trip.is-ready .nf-ci__screen.is-active {
	visibility: visible;
	opacity: 1;
	transform: none;
	transition-delay: 0s;
}

.nf-trip .nf-ci__q {
	max-width: 15em;
	font-size: clamp(1.75rem, 4.6vw, 4rem);
}

.nf-trip__intro .nf-ci__q {
	font-size: clamp(2.25rem, 6.6vw, 5.5rem);
}

.nf-trip__lede {
	max-width: 32em;
	margin: 0;
}

.nf-trip .nf-ci__input::placeholder {
	color: color-mix(in srgb, var(--ink) 36%, transparent);
	opacity: 1;
}

.nf-trip__count-input {
	max-width: 4.5em;
	font-variant-numeric: tabular-nums;
}

/* Choice cards: tapping one is the answer */
.nf-trip__cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	width: 100%;
	max-width: 1100px;
	perspective: 1400px;
}

.nf-gate.nf-trip__card {
	gap: 0.8rem;
	min-height: clamp(92px, 15svh, 150px);
	padding: 14px 16px 16px;
	border-radius: 18px;
}

.nf-trip__card .nf-gate__name {
	font-size: clamp(1.1875rem, 1.8vw, 1.5rem);
	line-height: 1.02;
	overflow-wrap: anywhere;
}

@media (min-width: 861px) {
	.nf-trip__cards {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 14px;
	}
}

.nf-trip__card .nf-gate__arrow {
	top: 14px;
	right: 14px;
	width: 16px;
	height: 16px;
}

.nf-trip__card.is-picked {
	background: color-mix(in srgb, var(--gold) 16%, var(--bg-2));
}

.nf-trip__card:focus-visible {
	outline: 2px solid var(--glow);
	outline-offset: 3px;
}

/* Consent */
.nf-trip__consent {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	max-width: 30em;
	font-size: clamp(1.125rem, 2vw, 1.625rem);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
	cursor: pointer;
}

.nf-trip__consent input {
	display: grid;
	flex: none;
	place-content: center;
	width: 30px;
	height: 30px;
	margin: 0.08em 0 0;
	border: 2px solid color-mix(in srgb, var(--ink) 45%, transparent);
	border-radius: 8px;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.3s var(--ease);
}

.nf-trip__consent input::after {
	content: "";
	width: 13px;
	height: 7px;
	border: solid var(--on-gold);
	border-width: 0 0 3px 3px;
	transform: translate(0, -2px) rotate(-45deg) scale(0);
	transition: transform 0.3s var(--ease);
}

.nf-trip__consent input:checked {
	border-color: var(--gold);
	background: var(--gold);
}

.nf-trip__consent input:checked::after {
	transform: translate(0, -2px) rotate(-45deg) scale(1);
}

.nf-trip__consent input:focus-visible {
	outline: 2px solid var(--glow);
	outline-offset: 3px;
}

.nf-trip__consent input[aria-invalid="true"] {
	border-color: var(--alert);
}

.nf-trip__privacy {
	justify-self: start;
}

/* After sending */
.nf-trip__done .nf-ci__printer {
	width: min(620px, 100%);
}

.nf-trip__passrow .nf-trip__to {
	flex-basis: 100%;
	max-width: 62%;
}

.nf-trip__more {
	display: grid;
	justify-items: start;
	gap: 14px;
}

.nf-trip__more-line {
	margin: 0;
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	color: var(--muted);
}

@media (min-width: 861px) {
	.nf-trip__done {
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: clamp(32px, 6vw, 110px);
		align-items: center;
	}
	.nf-trip__done > * {
		grid-column: 1;
	}
	.nf-trip__done .nf-ci__printer {
		grid-column: 2;
		grid-row: 1 / span 3;
		width: 400px;
	}
}

@media (min-width: 861px) and (min-height: 700px) {
	.nf-trip__body {
		grid-template-rows: auto 1fr;
	}
	.nf-trip__form {
		align-self: center;
		padding-bottom: 6svh;
	}
}

@media (max-width: 560px) {
	.nf-trip__bar {
		min-height: 64px;
	}
	.nf-trip__path {
		height: 44px;
	}
	.nf-trip .nf-ci__hint {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}

/* ==========================================================================
   Brand lookbook v2: chrome star, Cinzel wordmark, Inter, black and off-white.
   ========================================================================== */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Cinzel";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/cinzel-latin-400-normal.woff2") format("woff2");
}

:root {
	--bg: #000000;
	--bg-2: #141414;
	--ink: #F5F3EF;
	--muted: #A3A6AB;
	--line: rgba(245, 243, 239, 0.16);
	--gold: #C8CCD2;
	--gold-ink: #C8CCD2;
	--glow: #FFFFFF;
	--on-gold: #000000;
	--pass-bg: #F5F3EF;
	--pass-ink: #000000;
	--pass-gold: #222222;
	--sun-1: #8E9299;
	--sun-2: #FFFFFF;
	--sun-3: #8E9299;
	--chrome: linear-gradient(135deg, #FFFFFF 0%, #C8CCD2 42%, #8E9299 70%, #E8EAED 100%);
	--display: "Inter", "Helvetica Neue", Arial, sans-serif;
	--mono: "Inter", "Helvetica Neue", Arial, sans-serif;
	--serif: "Cinzel", "Trajan Pro", Georgia, serif;
}

:root[data-theme="day"] {
	--bg: #F5F3EF;
	--bg-2: #EAE8E3;
	--ink: #000000;
	--muted: #4D4F53;
	--line: rgba(0, 0, 0, 0.16);
	--gold: #000000;
	--gold-ink: #222222;
	--glow: #000000;
	--on-gold: #F5F3EF;
	--pass-bg: #000000;
	--pass-ink: #F5F3EF;
	--pass-gold: #C8CCD2;
	--chrome: linear-gradient(135deg, #000000 0%, #3A3C40 45%, #6B6F75 72%, #222222 100%);
}

body {
	font-family: var(--display);
	font-feature-settings: "ss01" 0;
}

/* Type: Inter Bold headlines, Inter Regular body, Inter Bold caps for labels. */
.nf-display,
.nf-headline,
.nf-ci__q,
.nf-gate__name,
.nf-s4__through,
.nf-s4__and,
.nf-s4__free,
.nf-tk__name {
	font-weight: 700;
	font-variation-settings: normal;
}

.nf-display {
	line-height: 0.95;
	letter-spacing: -0.04em;
}

.nf-headline,
.nf-ci__q {
	line-height: 1.02;
	letter-spacing: -0.03em;
}

.nf-s4__free {
	line-height: 0.9;
	letter-spacing: -0.045em;
}

.nf-label,
.nf-btn,
.nf-k,
.nf-ci__count,
.nf-gate__code,
.nf-ci__back,
.nf-ci__hint,
.nf-ci__trip,
.nf-toggle,
.nf-hud {
	font-family: var(--mono);
	font-weight: 700;
}

.nf-lede {
	font-weight: 400;
}

/* Gold words become chrome. */
.nf-gold {
	background: var(--chrome);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

:root[data-theme="night"] .nf-display .nf-gold {
	text-shadow: none;
	filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.22));
}

/* Buttons: polished chrome in night mode, solid black in day mode. */
.nf-btn--gold {
	background: var(--chrome);
	color: var(--on-gold);
}

:root[data-theme="day"] .nf-btn--gold {
	background: #000000;
	color: #F5F3EF;
}

/* The wordmark: Cinzel capitals, wide tracking, beside the chrome star. */
.nf-brand {
	gap: 12px;
	font-family: var(--serif);
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.nf-brand img {
	width: auto;
	height: 34px;
	object-fit: contain;
	filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
}

:root[data-theme="day"] .nf-brand img {
	filter: none;
}

/* Boarding passes: the big values take the logo lettering. */
.nf-pass__route strong,
.nf-pass__who strong,
.nf-pass__gate {
	font-family: var(--serif);
	font-weight: 400;
	font-variation-settings: normal;
	letter-spacing: 0.01em;
}

.nf-pass__route strong,
.nf-pass__who strong {
	line-height: 1.02;
}

/* The biggest moment: a chrome line instead of a gold glow. */
.nf-motion .nf-s4__free > span,
.nf-s4__free > span {
	background: var(--chrome);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

:root[data-theme="day"].nf-motion .nf-s4__free > span {
	background: linear-gradient(135deg, #FFFFFF 0%, #C8CCD2 42%, #8E9299 70%, #E8EAED 100%);
	-webkit-background-clip: text;
	background-clip: text;
}

.nf-s4__free {
	text-shadow: none;
}

.nf-motion .nf-s4.is-flash .nf-s4__free > span {
	filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.3));
}

/* Horizon: a thin chrome line, no sunrise colours. */
.nf-hero__horizon {
	background: radial-gradient(120% 100% at 60% 100%, rgba(255, 255, 255, 0.12), rgba(200, 204, 210, 0.06) 40%, transparent 72%);
}

:root[data-theme="day"] .nf-hero__horizon {
	background: radial-gradient(120% 100% at 60% 100%, rgba(0, 0, 0, 0.06), transparent 70%);
}

.nf-hero__horizon::after {
	background: linear-gradient(90deg, transparent, #8E9299 18%, #FFFFFF 55%, #8E9299 86%, transparent);
	box-shadow: 0 0 22px 1px rgba(255, 255, 255, 0.35);
}

:root[data-theme="day"] .nf-hero__horizon::after {
	background: linear-gradient(90deg, transparent, #6B6F75 18%, #000000 55%, #6B6F75 86%, transparent);
	box-shadow: none;
}

/* Chat members: shades of grey instead of colours. */
.nf-msg__av {
	background: hsl(0 0% calc(30% + var(--h, 0) * 0.14%));
}

/* Errors stay readable without colour: a heavier line and the message. */
.nf-ci__input[aria-invalid="true"] {
	border-bottom-style: dashed;
}

/* Phones: keep the wordmark visible beside the star. */
@media (max-width: 560px) {
	.nf-brand {
		gap: 8px;
		flex: none;
		font-size: 0.75rem;
		letter-spacing: 0.16em;
		white-space: nowrap;
	}
	.nf-brand span {
		display: inline;
	}
	.nf-brand img {
		height: 26px;
	}
	.nf-header {
		gap: 10px;
	}
	.nf-header__right {
		gap: 10px;
	}
	.nf-header .nf-btn {
		padding: 0.85em 1em;
		font-size: 0.625rem;
		letter-spacing: 0.1em;
	}
	.nf-header .nf-btn__arrow {
		display: none;
	}
}

@media (max-width: 374px) {
	.nf-brand {
		gap: 6px;
		font-size: 0.625rem;
		letter-spacing: 0.1em;
	}
	.nf-brand img {
		height: 22px;
	}
	.nf-header,
	.nf-header__right {
		gap: 8px;
	}
	.nf-header .nf-btn {
		padding: 0.85em 0.8em;
		letter-spacing: 0.06em;
	}
}
