/* Layout: one 68rem column with a navy masthead band; same palette as the brochure and the film. */
:root {
	--navy: #0d366b;
	--navy-2: #184f95;
	--blue: #2a78d6;
	--orange: #eb6834;
	--green: #1baf7a;
	--amber: #eda100;
	--bg: #fbfbf8;
	--surface: #f1f0eb;
	--fg: #14171c;
	--fg-2: #4d5056;
	--line: #dedcd5;
	--on-navy: #ffffff;
	--on-navy-2: #b8d0f0;
	--serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
	--sans: 'Source Sans 3', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--max: 68rem;
	--text: 40rem;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #12161d;
		--surface: #1b212b;
		--fg: #eceae4;
		--fg-2: #b4b2ab;
		--line: #2c333f;
		--navy: #0a2a54;
		--blue: #4b93e6;
		color-scheme: dark;
	}
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; }
img, video { max-width: 100%; display: block; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.prose { max-width: var(--text); }
.prose > * + * { margin-top: 1rem; }

/* masthead */
.mast { background: var(--navy); color: var(--on-navy); }
.mast .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-block: 1rem; }
.brand { color: var(--on-navy); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.nav a { color: var(--on-navy-2); text-decoration: none; font-weight: 600; padding-block: .25rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--on-navy); }
.nav a[aria-current="page"] { color: var(--on-navy); border-color: var(--amber); }

/* film hero */
.film { background: var(--navy); color: var(--on-navy); padding-bottom: 2.5rem; }
.player { position: relative; border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; max-width: 100%; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.sound { position: absolute; left: 1rem; bottom: 4rem; display: inline-flex; align-items: center; gap: .5rem; border: 0; border-radius: 999px; padding: .6rem 1.1rem; background: var(--amber); color: #14171c; font: 700 1rem var(--sans); cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.sound[hidden] { display: none; }
.film .lead { color: var(--on-navy-2); font-size: 1.2rem; max-width: var(--text); }
.film h1 { margin-top: 1.75rem; }
.film .stack { gap: .75rem; }

/* sections */
section { padding-block: 3rem; }
section + section { border-top: 1px solid var(--line); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid > * { min-width: 0; }
.card { background: var(--surface); border-radius: 8px; padding: 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.card .big { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.card .src, .src { font-size: .8rem; color: var(--fg-2); }
.c-blue { color: var(--blue); }
.c-orange { color: var(--orange); }
.c-green { color: var(--green); }
.c-amber { color: var(--amber); }

/* downloads */
.dl { display: flex; gap: 1rem; align-items: flex-start; text-decoration: none; color: var(--fg); background: var(--surface); border-radius: 8px; padding: 1.1rem 1.25rem; border: 1px solid transparent; }
.dl:hover { border-color: var(--blue); }
.dl .doc { flex: none; width: 3rem; height: 3.8rem; border-radius: 4px; background: var(--navy); color: var(--on-navy); font: 700 .75rem var(--sans); display: flex; align-items: flex-end; justify-content: center; padding-bottom: .4rem; }
.dl strong { display: block; font-size: 1.05rem; }
.dl span { color: var(--fg-2); font-size: .92rem; }

/* bars */
.bars { display: flex; flex-direction: column; gap: .6rem; }
.bar { display: grid; grid-template-columns: minmax(7rem, 14rem) 1fr; gap: .75rem; align-items: center; }
.bar .track { background: var(--line); border-radius: 4px; height: 1.6rem; position: relative; }
.bar .fill { height: 100%; border-radius: 4px; display: flex; align-items: center; justify-content: flex-end; padding-right: .5rem; color: #fff; font-weight: 700; font-size: .9rem; min-width: 2.6rem; }
.stackbar { display: flex; gap: 3px; height: 3rem; border-radius: 6px; overflow: hidden; }
.stackbar div { display: flex; align-items: center; padding-left: .5rem; color: #fff; font-weight: 700; white-space: nowrap; overflow: hidden; min-width: 0; font-size: clamp(.75rem, 2.4vw, 1rem); }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .92rem; }
.legend i { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; margin-right: .4rem; vertical-align: -1px; }

.eq { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-weight: 700; }
.eq span { padding: .55rem .9rem; border-radius: 6px; color: #fff; }
.eq b { font-size: 1.4rem; color: var(--fg-2); }
.note { border-left: 4px solid var(--orange); background: var(--surface); padding: .9rem 1.1rem; border-radius: 0 6px 6px 0; max-width: var(--text); }
.note.blue { border-color: var(--blue); }

ol.asks { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; counter-reset: ask; }
ol.asks li { counter-increment: ask; display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; }
ol.asks li::before { content: counter(ask); width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--orange); color: #fff; font: 700 1.2rem var(--sans); display: flex; align-items: center; justify-content: center; }
ol.asks li > div { min-width: 0; }

.cta { background: var(--navy); color: var(--on-navy); border-radius: 10px; padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.cta p { color: var(--on-navy-2); }
.button { display: inline-flex; align-self: flex-start; align-items: center; gap: .5rem; background: var(--amber); color: #14171c; text-decoration: none; font-weight: 700; border: 0; border-radius: 6px; padding: .75rem 1.25rem; font-size: 1rem; cursor: pointer; font-family: var(--sans); }
.button:hover { filter: brightness(1.05); }

/* form */
form { display: flex; flex-direction: column; gap: 1rem; max-width: 30rem; }
label { font-weight: 600; display: flex; flex-direction: column; gap: .35rem; }
input[type="text"], input[type="email"] { font: inherit; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); }
.check { flex-direction: row; align-items: flex-start; gap: .6rem; font-weight: 400; font-size: .95rem; }
.check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; flex: none; }
.hp { position: absolute; left: -9999px; }
.status { padding: .8rem 1rem; border-radius: 6px; background: var(--surface); }
.status.ok { border-left: 4px solid var(--green); }
.status.err { border-left: 4px solid var(--orange); }

footer { background: var(--surface); padding-block: 2rem; font-size: .9rem; color: var(--fg-2); margin-top: 2rem; }
footer .wrap { display: flex; flex-direction: column; gap: .5rem; }

@media (max-width: 34rem) {
	.bar { grid-template-columns: 1fr; gap: .2rem; }
	.sound { bottom: 3.5rem; left: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; }
}
