/* Layout adapted from Construct by Pixelarity (pixelarity.com/license) */

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

body {
	margin: 0;
	background: #fff;
	color: #666;
	font: 16px/1.75 "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
	color: #222;
	font-weight: bold;
	letter-spacing: -0.02em;
	line-height: 1.35;
}

body > header,
main,
body > footer {
	max-width: 1200px;
	margin: 0 auto;
}

/* Top bar (white, left aligned, same height as the footer) */

body > header,
body > footer {
	padding: 40px 48px;
}

body > header h1 {
	font-size: 1.2em;
	line-height: 1.45;
}

/* Section titles */

.hero,
.cta,
main > section {
	padding: 96px 48px;
}

.major {
	text-align: center;
}

.major {
	margin-bottom: 56px;
}

.major h2 {
	font-size: 1.9em;
}

.major h2::after {
	content: "";
	display: block;
	width: 2em;
	height: 1px;
	margin: 0.7em auto 0;
	background: #bbb;
}

.major h2 + p {
	margin-top: 1.4em;
	font-size: 1.05em;
}

/* Hero and CTA: full width night sky with drifting stars and a shooting star (CSS only) */

.hero,
.cta {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 360px;
	overflow: hidden;
	background-color: #1b1d21;
	color: #b9bdc2;
	text-align: center;
}

.hero > *,
.cta > * {
	position: relative;
	z-index: 1;
}

.hero::before,
.cta::before {
	content: "";
	position: absolute;
	z-index: 0;
	width: 240px;
	height: 2px;
	background: linear-gradient(90deg, transparent, #fff);
	box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
	opacity: 0;
	pointer-events: none;
}

.cta h2 {
	color: #fff;
}

.cta h2::after {
	background: rgba(255, 255, 255, 0.4);
}

.cta .major {
	margin-bottom: 0;
}

.hero p {
	color: #e3e5e8;
	font-size: 1.3em;
}

/* Hero: stars drift left, a shooting star falls to the right */

.hero {
	background-image:
		radial-gradient(circle at 23% 41%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.6px),
		radial-gradient(circle at 67% 29%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.6px),
		radial-gradient(circle at 41% 73%, rgba(255, 255, 255, 0.8) 0 1.2px, transparent 1.8px),
		radial-gradient(circle at 83% 61%, rgba(255, 255, 255, 0.6) 0 1.2px, transparent 1.8px),
		radial-gradient(circle at 11% 83%, rgba(255, 255, 255, 0.9) 0 1.5px, transparent 2.2px);
	background-size: 151px 103px, 197px 131px, 251px 167px, 311px 199px, 367px 241px;
	animation: drift 14s linear infinite;
}

.hero::before {
	top: 8%;
	left: -240px;
	animation: streak 8s ease-in infinite;
}

/* CTA: sparser stars drift right, a shooting star falls to the left */

.cta {
	background-image:
		radial-gradient(circle at 31% 37%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.6px),
		radial-gradient(circle at 73% 67%, rgba(255, 255, 255, 0.7) 0 1.2px, transparent 1.8px),
		radial-gradient(circle at 13% 79%, rgba(255, 255, 255, 0.9) 0 1.5px, transparent 2.2px);
	background-size: 223px 139px, 293px 181px, 397px 227px;
	animation: drift-back 18s linear infinite;
}

.cta::before {
	top: 10%;
	left: 100%;
	animation: streak-back 11s ease-in infinite;
}

@keyframes drift {
	from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
	to { background-position: -151px 0, -197px 0, -251px 0, -311px 0, -367px 0; }
}

@keyframes drift-back {
	from { background-position: 0 0, 0 0, 0 0; }
	to { background-position: 223px 0, 293px 0, 397px 0; }
}

@keyframes streak {
	0%, 62% { opacity: 0; transform: rotate(14deg) translateX(0); }
	65% { opacity: 1; }
	100% { opacity: 0; transform: rotate(14deg) translateX(2000px); }
}

@keyframes streak-back {
	0%, 70% { opacity: 0; transform: rotate(166deg) translateX(0); }
	73% { opacity: 1; }
	100% { opacity: 0; transform: rotate(166deg) translateX(2000px); }
}

@media (prefers-reduced-motion: reduce) {

	.hero,
	.cta {
		animation: none;
	}

	.hero::before,
	.cta::before {
		display: none;
	}
}

/* Button */

.button {
	display: inline-block;
	height: 3em;
	padding: 0 1.8em;
	border: 2px solid #d0d0d0;
	border-radius: 4px;
	color: #333;
	font-weight: bold;
	line-height: 2.85em;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.button:hover {
	background: #222;
	border-color: #222;
	color: #fff;
}

/* Mission */

.features {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-top: 1px solid #e2e2e2;
	border-left: 1px solid #e2e2e2;
}

.features article {
	padding: 48px 40px;
	border-right: 1px solid #e2e2e2;
	border-bottom: 1px solid #e2e2e2;
	text-align: center;
}

.features h3 {
	margin-bottom: 0.8em;
}

.mission > p {
	margin-top: 56px;
	text-align: center;
}

/* Services: image is 16:10, cropped from the center (no letterbox) */

main > .services {
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding: 0;
	border-top: 1px solid #e2e2e2;
}

.services article {
	padding: 56px 40px 48px;
	text-align: center;
}

.services article:nth-child(odd) {
	border-right: 1px solid #e2e2e2;
}

.services article:nth-child(n + 3) {
	border-top: 1px solid #e2e2e2;
}

.services .major {
	margin-bottom: 32px;
}

.services .major h2 {
	font-size: 1.2em;
}

.services .major h2::after {
	width: 3em;
}

.services img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	margin-bottom: 1.6em;
	border-radius: 4px;
	object-fit: cover;
	object-position: center;
	background: #e6e6e6;
}

.services p {
	margin-bottom: 1.8em;
}

/* FAQ (collapsible, no JS) */

.faq details {
	border-top: 1px solid #e2e2e2;
}

.faq details:last-of-type {
	border-bottom: 1px solid #e2e2e2;
}

.faq summary {
	display: block;
	position: relative;
	padding: 22px 40px 22px 0;
	color: #222;
	font-size: 1.05em;
	font-weight: bold;
	letter-spacing: -0.02em;
	line-height: 1.35;
	cursor: pointer;
	list-style: none;
}

.faq summary h3 {
	margin: 0;
	color: inherit;
	font-size: inherit;
	letter-spacing: inherit;
	line-height: inherit;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 4px;
	transform: translateY(-50%);
	color: #888;
	font-size: 1.4em;
	font-weight: normal;
}

.faq details[open] summary::after {
	content: "\2212";
}

.faq details p {
	padding: 0 40px 24px 0;
}

/* CTA button (currently unused) */

.cta .button {
	background: #fff;
	border-color: #fff;
	color: #222;
}

.cta .button:hover {
	background: transparent;
	color: #fff;
}

/* Footer */

body > footer {
	border-top: 1px solid #e2e2e2;
	color: #777;
	text-align: center;
}

body > footer a,
main.legal a {
	color: inherit;
	text-decoration: none;
}

small {
	font-size: 0.9em;
}

/* Legal pages (privacy, terms) */

body > header .brand {
	color: #222;
	font-size: 1.2em;
	font-weight: bold;
	letter-spacing: -0.02em;
	line-height: 1.45;
}

body > header .brand a {
	color: inherit;
	text-decoration: none;
}

main.legal {
	padding: 0 48px 80px;
}

main.legal > section {
	max-width: 760px;
	margin: 0 auto;
	padding: 28px 0;
	border-top: 1px solid #e2e2e2;
}

main.legal > section.legal-head {
	padding: 72px 0 48px;
	border-top: 0;
	text-align: center;
}

main.legal > section:last-child {
	border-bottom: 1px solid #e2e2e2;
}

.legal-head h1 {
	font-size: 2.2em;
}

.legal-head h1::after {
	content: "";
	display: block;
	width: 2em;
	height: 1px;
	margin: 0.7em auto 0;
	background: #bbb;
}

.legal-head p {
	margin-top: 1.2em;
	color: #888;
	font-size: 0.95em;
}

main.legal h2 {
	margin-bottom: 0.5em;
	font-size: 1.1em;
}

main.legal p + p,
main.legal p + ul {
	margin-top: 0.8em;
}

main.legal ul {
	margin: 0;
	padding-left: 1.3em;
}

main.legal li {
	margin-bottom: 0.4em;
}

/* Mobile */

@media (max-width: 800px) {

	body {
		font-size: 15px;
	}

	.hero,
	.cta,
	main > section {
		padding: 64px 24px;
	}

	.major {
		margin-bottom: 36px;
	}

	.major h2 {
		font-size: 1.55em;
	}

	.hero,
	.cta {
		min-height: 300px;
	}

	.hero p {
		font-size: 1.15em;
	}

	.services .major h2 {
		font-size: 1.2em;
	}

	br {
		display: none;
	}

	.features,
	main > .services {
		grid-template-columns: 1fr;
	}

	.features article {
		padding: 32px 24px;
	}

	.services article {
		padding: 40px 24px 32px;
	}

	.services article:nth-child(odd) {
		border-right: 0;
	}

	.services article:nth-child(n + 2) {
		border-top: 1px solid #e2e2e2;
	}
}

@media (max-width: 800px) {

	main.legal {
		padding: 0 24px 48px;
	}

	main.legal > section.legal-head {
		padding: 48px 0 32px;
	}

	.legal-head h1 {
		font-size: 1.8em;
	}
}