@font-face { font-family: Inter; src: url(/fonts/Inter-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/Inter-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/Inter-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/Inter-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Material Icons"; src: url(/fonts/MaterialIcons-Regular.ttf) format("truetype"); font-display: block; }

/* the plugin's palette (plugin/src/ui.cpp) */
:root {
	--bg: #09090b;
	--side: #0c0c0f;
	--card: #111114;
	--line: #27272a;
	--row-line: #1f1f23;
	--icon-box: #1e1e22;
	--text: #fafafa;
	--text2: #a1a1aa;
	--text3: #71717a;
	--green: #22c55e;
	--amber: #f59e0b;
}
* { box-sizing: border-box; }
html { scroll-snap-type: y mandatory; scroll-behavior: smooth; }
html, body { margin: 0; }
body {
	background: var(--bg);
	color: var(--text);
	font: 15px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--text3); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.ic {
	font-family: "Material Icons"; font-weight: normal; font-style: normal;
	font-size: 22px; line-height: 1; display: inline-block;
	-webkit-font-feature-settings: "liga"; font-feature-settings: "liga";
}
.label { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot.green { background: var(--green); }
.dot.amber { background: var(--amber); }

/* top bar: company on the left, contact on the right */
.top {
	position: absolute; z-index: 3; top: 0; left: 0; right: 0;
	display: flex; justify-content: space-between; align-items: center;
	padding: 20px 6vw;
}
.top .brand { font-weight: 700; letter-spacing: .32em; font-size: 13px; color: var(--bg); text-decoration: none; }
.top .btn { padding: 7px 14px; font-size: 13px; text-decoration: none; }
.top.dark .brand { color: var(--text); }
.top.dark .btn { background: var(--text); color: var(--bg); }

/* screen 1. Screens wider than the photo (4142x2943): the photo fills the width anchored at the bottom so the runway
   shows, and the logo and line sit in the sky under the left wing (sizes in vw: the photo scales with the width).
   Narrower screens: light logo and line over the shaded bottom. */
.hero {
	position: relative;
	height: 100vh; height: 100svh;
	scroll-snap-align: start;
	background: url(/landinglab/img/shots/737-reverser.jpg) 72% 50% / cover no-repeat;
	overflow: hidden;
}
.hero::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(9,9,11,0) 0%, rgba(9,9,11,0) 88%, var(--bg) 100%);
}
.hero .bottom { position: absolute; z-index: 2; left: 6vw; bottom: 13vw; color: var(--bg); white-space: nowrap; }
.hero .bottom img { display: block; width: 17vw; height: auto; margin: 0 0 1.5vw; }
.hero .bottom img.light { display: none; }
.hero h1 {
	font-size: 2.1vw; line-height: 1.18; font-weight: 600; letter-spacing: -.015em;
	margin: 0 0 1.1vw;
}
.hero .bottom .btn, .top .btn { background: var(--bg); color: var(--text); }
@media (max-aspect-ratio: 141/100) {
	.hero::after { background: linear-gradient(180deg, rgba(9,9,11,0) 0%, rgba(9,9,11,0) 44%, rgba(9,9,11,.8) 64%, var(--bg) 90%); }
	.hero .bottom { left: 16px; right: 16px; bottom: 12vh; text-align: center; color: var(--text); white-space: normal; }
	.hero .bottom img.dark { display: none; }
	.hero .bottom img.light { display: block; width: min(260px, 64vw); margin: 0 auto 22px; }
	.hero h1 { font-size: clamp(26px, 7vw, 40px); margin-bottom: 18px; }
	.hero .bottom .btn { background: var(--text); color: var(--bg); }
	.top { padding: 18px 16px; }
}
.btn { background: var(--bg); color: var(--text); }
@media (max-aspect-ratio: 141/100) {
	.hero::after { background: linear-gradient(180deg, rgba(9,9,11,0) 0%, rgba(9,9,11,0) 48%, rgba(9,9,11,.8) 68%, var(--bg) 92%); }
	.hero .bottom { left: 16px; right: 16px; bottom: 12vh; text-align: center; color: var(--text); white-space: normal; }
	.hero h1 { font-size: clamp(26px, 7vw, 40px); margin-bottom: 18px; }
	.hero .bottom .btn { background: var(--text); color: var(--bg); }
}
.btn { background: var(--bg); color: var(--text); }
.hero h1 {
	font-size: clamp(26px, 4vw, 42px); line-height: 1.2; font-weight: 600; letter-spacing: -.01em;
	margin: 0 0 10px;
}
.hero p.lead { color: #27272a; font-size: clamp(15px, 1.6vw, 18px); max-width: 34em; margin: 0 auto 22px; }
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 18px; border-radius: 8px;
	background: var(--text); color: var(--bg);
	font-size: 14px; font-weight: 600;
}
.down {
	position: absolute; z-index: 2; left: 50%; bottom: 16px; transform: translateX(-50%);
	width: 40px; height: 40px; display: grid; place-items: center;
	color: var(--text2); text-decoration: none;
	animation: bob 2.4s ease-in-out infinite;
}
.down:hover { color: var(--text); }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.down { animation: none; }
}

/* screens 2 and 3 */
.screen {
	min-height: 100vh; min-height: 100svh;
	scroll-snap-align: start;
	display: flex; flex-direction: column;
	padding-top: 72px;
}
h2.title { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; font-weight: 600; letter-spacing: -.01em; margin: 0 0 6px; }
p.sub { color: var(--text2); margin: 0 0 28px; max-width: 42em; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card {
	background: var(--card); border: 1px solid var(--line); border-radius: 12px;
	padding: 20px 22px;
	display: grid; grid-template-columns: 40px 1fr; gap: 0 16px; align-items: start;
}
.card .icon-box {
	width: 40px; height: 40px; border-radius: 9px; background: var(--icon-box);
	display: grid; place-items: center; color: var(--text);
}
.card h3 { font-size: 16px; margin: 2px 0 6px; font-weight: 600; }
.card p { margin: 0; color: var(--text2); font-size: 14px; }
.card.main { border-color: #3f3f46; background: linear-gradient(160deg, #18181b, var(--card) 60%); }
.card .label { display: block; margin-bottom: 2px; }

.pilot {
	margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line);
	display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; align-items: end;
}
.pilot h3 { font-size: 16px; margin: 0 0 8px; font-weight: 600; }
.pilot p { margin: 0; color: #d4d4d8; max-width: 42em; }
.pilot p + p { margin-top: 12px; }
.pilot .contact { color: var(--text2); font-size: 14px; white-space: nowrap; }

/* aircraft list, like the plugin's "Supported Aircraft" */
.list { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.list .head { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.list .head b { font-size: 15px; font-weight: 600; }
.list .head span { font-size: 13px; color: var(--text3); }
.row {
	display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center;
	padding: 14px 20px; border-top: 1px solid var(--row-line);
}
.list .head + .row { border-top: 0; }
.row .name { font-weight: 500; }
.row .dev { font-size: 13px; color: var(--text2); }
.row .feats { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.chip {
	font-size: 12px; color: var(--text2); border: 1px solid var(--line); border-radius: 999px;
	padding: 2px 10px; white-space: nowrap;
}
.lists { display: grid; gap: 16px; }
.note { font-size: 13px; color: var(--text3); margin: 14px 0 0; }

footer { margin-top: auto; padding: 40px 0 28px; color: var(--text3); font-size: 12px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }

@media (max-width: 720px) {
	.wrap { padding: 0 16px; }
	.grid { grid-template-columns: 1fr; }
	.pilot { grid-template-columns: 1fr; }
	.pilot .contact { white-space: normal; }
	.screen { padding-top: 48px; }
	.row { grid-template-columns: 1fr; }
	.row .feats { justify-content: flex-start; }
}

/* contact page */
.page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.page .top { position: static; width: 100%; max-width: 1040px; margin: 0 auto; padding: 20px 24px; }
.contact-main { padding-top: 40px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-cards .card a { font-size: 14px; }
form.card { display: grid; grid-template-columns: 1fr; gap: 14px; }
form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form label { display: grid; gap: 6px; font-size: 13px; color: var(--text2); }
form input, form select, form textarea {
	font: inherit; font-size: 14px; color: var(--text);
	background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
	padding: 9px 12px; width: 100%;
}
form textarea { min-height: 150px; resize: vertical; }
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: #52525b; }
form button.btn { border: 0; cursor: pointer; justify-self: start; font-family: inherit; }
form button.btn:disabled { opacity: .5; cursor: default; }
form .hp { position: absolute; left: -9999px; }
form .status { font-size: 13px; color: var(--text2); min-height: 1.2em; margin: 0; }
form .status.ok { color: var(--green); }
form .status.err { color: #ef4444; }
@media (max-width: 720px) {
	.page .top { padding: 18px 16px; }
	.contact-grid { grid-template-columns: 1fr; }
	form .two { grid-template-columns: 1fr; }
}

/* screen 1 with a looping video: darkened, with a dot screen over it so the light logo and line read on any frame.
   --tint: how dark; --dot: dot pitch (px). The poster shows until the video plays (and instead of it for reduced motion). */
.hero.video { background: var(--bg); --tint: .35; --dot: 4px; }
.hero.video video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero.video::before {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background:
		radial-gradient(circle at center, rgba(0,0,0,.7) 0 .6px, transparent 1px) 0 0 / var(--dot) var(--dot),
		rgba(9,9,11,var(--tint));
}
.hero.video::after { z-index: 1; background: linear-gradient(180deg, rgba(9,9,11,.35) 0%, rgba(9,9,11,0) 25%, rgba(9,9,11,0) 70%, var(--bg) 100%); }
.hero.video .bottom { color: var(--text); }
.hero.video .bottom img.dark { display: none; }
.hero.video .bottom img.light { display: block; }
.hero.video .bottom .btn { background: var(--text); color: var(--bg); }
.hero.video .top .brand { color: var(--text); }
.hero.video .top .btn { background: var(--text); color: var(--bg); }
@media (min-aspect-ratio: 141/100) {
	.hero.video .bottom img.light { width: 17vw; margin: 0 0 1.5vw; }
}
@media (max-aspect-ratio: 141/100) {
	.hero.video::after { background: linear-gradient(180deg, rgba(9,9,11,.35) 0%, rgba(9,9,11,0) 20%, rgba(9,9,11,0) 50%, rgba(9,9,11,.75) 68%, var(--bg) 92%); }
}

/* hero slideshow (stand-in for the video): cross-fade with a slow zoom on each screenshot */
.hero .slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero .slide {
	position: absolute; inset: 0;
	background-size: cover; background-position: var(--pos, 50% 50%);
	opacity: 0; transform: scale(1.0);
	transition: opacity 1.6s ease, transform 0s linear 1.6s;
}
.hero .slide.on { opacity: 1; transform: scale(1.08); transition: opacity 1.6s ease, transform 9s linear; }
.hero .slides:not(.js) .slide:first-child { opacity: 1; }   /* no script or reduced motion: the first screenshot, still */
@media (prefers-reduced-motion: reduce) {
	.hero .slide, .hero .slide.on { transition: none; transform: none; }
}
