/*
 * Firnline — design tokens & site shell.
 *
 * THE RULE THIS FILE EXISTS TO ENFORCE: canvas#fl-snowfield is a fixed,
 * full-viewport layer that persists behind every section on every page —
 * a wind-blown snow particle field, never rebuilt per-section. Sections
 * below the hero sit on the light --paper background (this is a bright,
 * high-contrast theme, not a dark one) so the field must read as a subtle
 * cold haze against BOTH the dark hero and the light body — don't crank its
 * opacity up just because it's invisible against white; verify against both.
 */

:root {
	--ink: #0B1520;
	--ink-2: #101E2C;
	--paper: #F4F7FA;
	--paper-2: #E9EFF4;
	--surface: rgba(11, 21, 32, 0.04);
	--surface-strong: rgba(11, 21, 32, 0.07);
	--line: rgba(11, 21, 32, 0.12);
	--line-on-dark: rgba(255, 255, 255, 0.14);
	--text: #101B26;
	--text-soft: #4A6478;
	--text-faint: #7C93A3;
	--text-on-dark: #EAF2F8;
	--text-on-dark-soft: #A9C0D0;

	--ice: #CFE3EF;
	--ice-2: #9FC2D9;
	--frost: #7FA6BE;

	--accent: #FF5A1F;
	--accent-deep: #E14710;
	--accent-ice: #4FC3E8;

	--font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
	--font-sans: 'Public Sans', -apple-system, 'Segoe UI', sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, monospace;

	--fs-1: 1rem;
	--fs-2: 1.25rem;
	--fs-3: 1.5625rem;
	--fs-4: 1.953rem;
	--fs-5: 2.441rem;
	--fs-6: 3.6rem;
	--fs-7: 5.2rem;

	--sp-1: 4px;
	--sp-2: 8px;
	--sp-3: 16px;
	--sp-4: 24px;
	--sp-5: 40px;
	--sp-6: 64px;
	--sp-7: 96px;
	--sp-8: 144px;

	--radius: 4px;
	--radius-sm: 2px;
	--wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

#fl-snowfield {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	pointer-events: none;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: var(--fs-1);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 0.98;
	margin: 0 0 var(--sp-3);
	letter-spacing: -0.005em;
	text-transform: uppercase;
	text-wrap: balance;
}
h1 { font-size: var(--fs-7); }
h2 { font-size: var(--fs-5); }
h3 { font-size: var(--fs-3); }
h4 { font-size: var(--fs-2); }
p { margin: 0 0 var(--sp-3); max-width: 62ch; color: var(--text-soft); }

a { color: inherit; }

.eyebrow {
	display: flex; align-items: center; gap: var(--sp-2);
	font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500;
	letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep);
	margin-bottom: var(--sp-3);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--accent); }
.eyebrow--ice { color: var(--accent-ice); }
.eyebrow--ice::before { background: var(--accent-ice); }
.eyebrow--on-dark { color: var(--ice); }
.eyebrow--on-dark::before { background: var(--ice); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--sp-4); }
.wrap--narrow { max-width: 760px; }

.btn {
	display: inline-flex; align-items: center; gap: var(--sp-2);
	padding: 14px 26px; border-radius: var(--radius); border: 1px solid var(--line);
	background: var(--surface); color: var(--text); font-family: var(--font-mono); font-size: 0.875rem;
	font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none;
	cursor: pointer; transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.btn:hover { background: var(--surface-strong); border-color: var(--frost); transform: translateY(-1px); }
.btn--solid {
	background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn--solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--on-dark { background: rgba(255,255,255,0.06); color: var(--text-on-dark); border-color: var(--line-on-dark); }
.btn--on-dark:hover { background: rgba(255,255,255,0.12); border-color: var(--ice); }

section { padding: var(--sp-8) 0; position: relative; }

.card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: var(--sp-4); text-decoration: none; color: inherit; display: block;
	transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.card:hover { border-color: var(--frost); transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(16,27,38,0.25); }
.card__media { aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: var(--sp-4); background: var(--surface); }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__eyebrow { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: var(--sp-2); }
.card__title { margin-bottom: var(--sp-2); }
.card__excerpt { color: var(--text-soft); font-size: 0.9375rem; margin-bottom: 0; }

.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.spec-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.875rem; }
.spec-row dt { color: var(--text-faint); }
.spec-row dd { margin: 0; font-weight: 500; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 700ms cubic-bezier(.2,.8,.2,1), transform 700ms cubic-bezier(.2,.8,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-dir="left"] { transform: translate(-32px, 12px); }
[data-reveal-dir="left"].is-visible { transform: none; }
[data-reveal-dir="right"] { transform: translate(32px, 12px); }
[data-reveal-dir="right"].is-visible { transform: none; }
@media (prefers-reduced-motion: reduce) {
	[data-reveal] { opacity: 1; transform: none; transition: none; }
}

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

.site-header {
	position: sticky; top: 0; z-index: 40;
	background: rgba(244,247,250,0.92);
	border-bottom: 1px solid var(--line);
}
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	padding: var(--sp-3) var(--sp-4); gap: var(--sp-4);
}
.brand { display: flex; align-items: baseline; gap: var(--sp-2); text-decoration: none; color: var(--text); }
.brand__mark { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.01em; text-transform: uppercase; }
.brand__tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }

.nav ul { display: flex; align-items: center; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }
.nav li { list-style: none; }
.nav a { color: var(--text-soft); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color 200ms ease; }
.nav a:hover { color: var(--accent-deep); }

.nav-toggle {
	display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
	color: var(--text); padding: 0.5em 0.9em; font-size: 0.9rem; cursor: pointer;
}
@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.nav {
		position: fixed; inset: 64px 0 0 0; background: var(--paper); padding: var(--sp-5) var(--sp-4);
		transform: translateY(-8px); opacity: 0; pointer-events: none;
		transition: opacity 220ms ease, transform 220ms ease; overflow-y: auto; z-index: 39;
	}
	.nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
	.nav ul { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
	.nav a { font-size: 1.25rem; }
	.brand__tag { display: none; }
	.site-header__inner { padding: var(--sp-2) var(--sp-3); gap: var(--sp-2); }
	.site-header__inner > div { gap: var(--sp-2) !important; }
	.btn.btn--solid { padding: 0.6em 0.85em; font-size: 0.75rem; }
	.nav-toggle { padding: 0.5em 0.7em; font-size: 0.78rem; }
	.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Hero ---------- */

.hero {
	position: relative; padding: var(--sp-8) 0 var(--sp-7); min-height: 92vh;
	display: flex; align-items: center; overflow: hidden; background: var(--ink); color: var(--text-on-dark);
}
.hero h1, .hero h2, .hero h3 { color: var(--text-on-dark); }
.hero p { color: var(--text-on-dark-soft); }
.hero__crystal { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__scrim {
	position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: linear-gradient(100deg, rgba(11,21,32,0.92) 0%, rgba(11,21,32,0.6) 46%, rgba(11,21,32,0.15) 74%, transparent 92%);
}
.hero__inner { position: relative; z-index: 2; max-width: 900px; }
.hero h1 { margin-bottom: var(--sp-4); }
.hero__lede { font-size: var(--fs-2); max-width: 46ch; }
.hero__actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); flex-wrap: wrap; }
.hero__stats { display: flex; gap: var(--sp-6); margin-top: var(--sp-7); flex-wrap: wrap; }
.hero__stat-num { font-family: var(--font-display); font-size: var(--fs-4); }
.hero__stat-label { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-on-dark-soft); text-transform: uppercase; letter-spacing: 0.08em; }

.section-head { max-width: 640px; margin-bottom: var(--sp-6); }

/* ---------- Elevation-profile scroll motif ---------- */

.elevation-rail {
	position: relative; padding-left: 48px;
}
.elevation-rail::before {
	content: ''; position: absolute; left: 14px; top: 0; bottom: 0; width: 2px;
	background: linear-gradient(180deg, var(--frost), var(--line));
}
.elevation-point {
	position: relative; margin-bottom: var(--sp-7);
}
.elevation-point::before {
	content: ''; position: absolute; left: -48px; top: 6px; width: 14px; height: 14px;
	border-radius: 50%; background: var(--paper); border: 3px solid var(--accent);
}
.elevation-point__alt {
	font-family: var(--font-mono); font-size: 0.8125rem; color: var(--frost); letter-spacing: 0.04em;
	margin-bottom: var(--sp-2); display: block;
}

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

.site-footer { padding: var(--sp-7) 0 var(--sp-5); border-top: 1px solid var(--line); background: var(--paper-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-5); margin-bottom: var(--sp-6); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col a { color: var(--text-soft); text-decoration: none; font-size: 0.9375rem; }
.footer-col a:hover { color: var(--accent-deep); }
.widget__title { font-family: var(--font-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: var(--sp-3); }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2); padding-top: var(--sp-5); border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--text-faint); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Pull quote ---------- */
.pull-quote { font-family: var(--font-display); font-size: var(--fs-4); text-transform: none; line-height: 1.25; max-width: 900px; }
.pull-quote cite { display: block; margin-top: var(--sp-4); font-family: var(--font-mono); font-size: 0.875rem; font-style: normal; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Enquiry form ---------- */
.enquiry-form input, .enquiry-form textarea {
	width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
	background: #fff; color: var(--text); font-family: var(--font-sans); font-size: 0.9375rem;
}
.enquiry-form input:focus, .enquiry-form textarea:focus { outline: 2px solid var(--accent-ice); outline-offset: 1px; }
.enquiry-form__status { font-size: 0.875rem; color: var(--text-soft); }
.enquiry-form__status.is-error { color: var(--accent-deep); }

/* ---------- Inner page head ---------- */
.page-head { padding: var(--sp-7) 0 var(--sp-6); background: var(--paper-2); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: var(--fs-6); }
.entry-content { line-height: 1.7; }
.entry-content h2 { margin-top: var(--sp-6); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; color: var(--text-soft); }

/* ---------- Comments (WP core classes, minimal skin) ---------- */
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; padding-left: var(--sp-5); }
.comment-body { padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.comment-form input, .comment-form textarea {
	width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
	background: #fff; font-family: var(--font-sans); font-size: 0.9375rem; margin-bottom: var(--sp-3);
}

/* ---------- Team / guide detail ---------- */
.fact-line { display: flex; gap: var(--sp-3); flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: var(--sp-2); }
