@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-var.woff2") format("woff2-variations");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
}
@font-face {
	font-family: "Instrument Serif";
	src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
	font-style: italic;
	font-weight: 400;
	font-display: swap;
}

:root {
	--ink: #0d1822;
	--ink-soft: #3a4855;
	--paper: #f2f4f6;
	--snow: #ffffff;
	--accent: #ff5a00;          /* logo orange */
	--brand-blue: #2b5680;      /* logo blue */
	--accent-deep: #b8401c;
	--sky-ink: #ffffff;

	--font-sans: "Archivo", "Helvetica Neue", Helvetica, sans-serif;
	--font-serif: "Instrument Serif", Georgia, serif;

	--pad-x: clamp(20px, 4vw, 64px);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.55;
	font-stretch: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--snow); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
html { scrollbar-color: #9aa6b1 var(--paper); scrollbar-width: thin; }

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

.skip-link {
	position: fixed; left: 12px; top: -60px; z-index: 100;
	padding: 10px 14px; background: var(--ink); color: var(--snow);
	text-decoration: none; font-size: 14px;
	transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 12px;
	min-height: 48px; padding: 0 22px;
	font: 600 15px/1 var(--font-sans);
	font-stretch: 105%;
	letter-spacing: 0.005em;
	text-decoration: none;
	border-radius: 999px;
	transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.btn__icon { width: 18px; height: 18px; transition: transform 0.45s var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }

.btn--solid { background: var(--ink); color: var(--snow); }
.btn--solid:hover { background: var(--accent-deep); }

.btn--ghost-light {
	color: var(--sky-ink);
	border: 1px solid rgba(255, 255, 255, 0.55);
	min-height: 42px; padding: 0 18px; font-size: 14px;
}
.btn--ghost-light:hover { background: var(--snow); color: var(--ink); border-color: var(--snow); }

/* ---------- Header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 50;
	display: flex; align-items: center; justify-content: space-between;
	padding: 22px var(--pad-x);
	color: var(--sky-ink);
	transition: color 0.4s var(--ease-out), background-color 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}
.site-header__brand { display: inline-flex; color: inherit; text-decoration: none; }
.site-header__brand .logo { display: block; height: 34px; width: auto; transition: height 0.4s var(--ease-out); }
.site-header.is-solid .site-header__brand .logo { height: 28px; }
@media (max-width: 700px) { .site-header__brand .logo { height: 28px; } }
.site-header.is-solid {
	color: var(--ink);
	background: rgba(242, 244, 246, 0.86);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	padding-top: 14px; padding-bottom: 14px;
}
.site-header.is-solid .btn--ghost-light { color: var(--ink); border-color: rgba(13, 24, 34, 0.25); }
.site-header.is-solid .btn--ghost-light:hover { background: var(--ink); color: var(--snow); border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
	/* mountain width drives every layer so the composition holds at any aspect ratio */
	--mw: min(124vw, 176svh);
	--mh: calc(var(--mw) * 0.3245);
	--mb: clamp(0px, calc(330px - 32svh), 130px); /* lift the mountain on short screens so the copy has room */
	--peak: calc(var(--mb) + var(--mh) * 0.9235); /* summit height from bottom */

	position: relative;
	height: 100svh;
	min-height: 560px;
	overflow: hidden;
	background: #7fa3c6;
	isolation: isolate;
}
.hero__stage { position: absolute; inset: 0; }

.hero__sky { position: absolute; inset: -6% 0 0 0; z-index: 0; will-change: transform; }
.hero__video {
	width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
	filter: saturate(0.82) contrast(1.02);
}
.hero__sky::after { /* quiet the top edge so the header reads */
	content: ""; position: absolute; inset: 0 0 auto 0; height: 28%;
	background: linear-gradient(to bottom, rgba(26, 49, 74, 0.28), rgba(26, 49, 74, 0));
}

.hero__wordmark {
	position: absolute; z-index: 1;
	left: 50%; bottom: calc(var(--peak) - var(--mw) * 0.07);
	width: min(calc(var(--mw) * 0.8), 88vw);
	transform: translateX(-50%);
	color: var(--snow);
	will-change: transform;
}
.hero__wordmark-svg { display: block; width: 100%; height: auto; }

.hero__mountain {
	position: absolute; z-index: 2;
	width: var(--mw);
	left: calc(50% - var(--mw) * 0.4628);
	bottom: var(--mb);
	will-change: transform;
	/* feather the photo's side edges into the clouds on very wide screens */
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 13%, #000 87%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 13%, #000 87%, transparent 100%);
}
.hero__mountain img { width: 100%; height: auto; }

.hero__haze {
	position: absolute; z-index: 3; inset: auto 0 0 0;
	height: calc(var(--mb) + var(--mh) * 0.62);
	background: linear-gradient(to top,
		var(--paper) 0%,
		rgba(242, 244, 246, 0.96) 34%,
		rgba(242, 244, 246, 0.55) 66%,
		rgba(242, 244, 246, 0) 100%);
	pointer-events: none;
}

.hero__content {
	position: absolute; z-index: 4;
	inset: auto 0 0 0;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(24px, 5vw, 96px);
	align-items: end;
	padding: 0 var(--pad-x) clamp(28px, 5svh, 56px);
}
.hero__title {
	margin: 0;
	max-width: 15ch;
	font-weight: 700; font-stretch: 100%;
	font-size: clamp(32px, min(3.9vw, 7.2svh), 62px);
	line-height: 1.02;
	letter-spacing: -0.032em;
	text-wrap: balance;
}
.hero__title em {
	font-family: var(--font-serif);
	font-style: italic; font-weight: 400;
	letter-spacing: -0.01em;
	color: var(--accent-deep);
}
.hero__aside { display: grid; gap: 22px; justify-items: start; max-width: 46ch; }
.hero__lede { margin: 0; font-size: clamp(15px, 2.4svh, 16px); line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }

/* ---------- Phone ---------- */
@media (max-width: 700px) {
	.hero {
		--mw: 236vw;
		--mb: 43svh;
		min-height: 640px;
	}
	.hero__wordmark { width: 88vw; bottom: calc(var(--peak) - 4vw); }
	.hero__haze {
		height: calc(var(--mb) + var(--mh) * 0.5);
		background: linear-gradient(to top,
			var(--paper) 0,
			var(--paper) calc(var(--mb) + 28px),
			rgba(242, 244, 246, 0) 100%);
	}
	.hero__content {
		grid-template-columns: 1fr;
		gap: 16px;
		padding-bottom: max(22px, env(safe-area-inset-bottom));
	}
	.hero__title { font-size: clamp(30px, 8.6vw, 38px); max-width: 16ch; }
	.hero__lede { font-size: 15px; line-height: 1.55; }
	.hero__aside { gap: 18px; }
	.hero__aside .btn { width: 100%; justify-content: space-between; }
	.site-header__cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.hero__video { display: none; }
	.hero__sky { background: url("../img/clouds-poster.webp") center 30% / cover; }
}
