/* ==========================================================
   Send and Return – monochrome scroll page (HTML + CSS only)
   ========================================================== */

/* Variable fonts (latin subset), self-hosted. See OFL-*.txt */
@font-face {
	font-family: "Oswald";
	src: url("../fonts/Oswald-latin-variable.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Roboto";
	src: url("../fonts/Roboto-latin-variable.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

:root {
	color-scheme: dark;

	--black: #000;
	--white: #fff;
	--ink: #111;
	--rule: rgb(255 255 255 / .25);
	--accent: #3DA8CF;           /* from the logo; focus indication only */

	--font-head: "Oswald", "Arial Narrow", Arial, sans-serif;
	--font-body: "Roboto", Helvetica, Arial, sans-serif;

	/* Logo width (logo-cropped.png, 1764 x 623). Desktop (>= 1140px): fixed 240px.
	   The hamburger breakpoint is 1139/1140px instead of 991/992px so the logo never has
	   to shrink when the five links appear (budget in README). Smaller screens: see the
	   max-width overrides below. */
	--logo-w: 240px;
	/* Bar height: 2 x 12px padding + logo height (taller than the 24px line) */
	--nav-h: calc(24px + var(--logo-w) * 623 / 1764);
	--gutter: clamp(1rem, 4vw, 3rem);
	--band-space: clamp(4rem, 10vw, 10rem);
}

/* ---------- Base ---------- */

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

html {
	background: var(--black);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--black);
	color: var(--white);
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
	overflow-wrap: break-word;
}

img { display: block; max-inline-size: 100%; block-size: auto; }

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

a { color: inherit; text-decoration: none; }
a { transition: opacity .4s; }
a:hover { opacity: .75; }

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
}

h1, h2, h3 {
	font-family: var(--font-head);
	font-weight: 700;
	text-transform: uppercase;
	margin-block: 0;
}
h1 {
	font-size: clamp(3.5rem, 8vw, 10rem);
	line-height: 1;
	letter-spacing: -.025em;
}
h2 {
	font-size: 36px;
	line-height: 40px;
	margin-block-end: 1.5rem;
}
h3 {
	font-size: 24px;
	line-height: 32px;
	margin-block-end: 1rem;
}

p { margin-block: 0 1rem; }

.lead {
	font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem);
	font-weight: 300;
	line-height: 1.6;
}
.lead strong { font-weight: 700; }

.text-link {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}

.wrap {
	inline-size: 100%;
	max-inline-size: 90rem;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.visually-hidden {
	position: absolute !important;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.sprite { position: absolute; inline-size: 0; block-size: 0; overflow: hidden; }
.icon { display: block; inline-size: 16px; block-size: 16px; flex: none; }

/* ---------- Navigation ---------- */

/* Not sticky: the bar sits on top of the hero and scrolls away with the page */
.navbar-top {
	position: absolute;
	inset: 0 0 auto;
	z-index: 9;
	padding: 12px 0;
	background: var(--black);
}

.navbar-container {
	display: flex;
	align-items: center;
	padding: 0 24px;
	line-height: 24px;
}

/* Logo has real transparency; its dark grey is too weak on black, so it is shown white */
.brand {
	display: block;
	flex: none;
	margin-right: 24px;
}
.brand img {
	display: block;
	width: var(--logo-w);
	filter: brightness(0) invert(1);
}

.nav-top {
	flex: 1;
	display: flex;
	justify-content: flex-end;
	align-self: center;
	align-items: flex-end;
}
.nav-menu {
	flex: 1;
	display: flex;
	align-self: center;
}

.nav-link,
.mobile-nav-link {
	position: relative;
	color: var(--white);
	text-transform: uppercase;
	transition: opacity .4s, color .4s;
}
.nav-link {
	margin: 0 8px;
	padding: 4px 8px;
	font-size: 12px;
	font-weight: 700;
	line-height: 24px;
	letter-spacing: 4px;
	white-space: nowrap;   /* labels never wrap inside the bar */
}
.nav-link:hover {
	opacity: 1;
	color: #ffffffbf;
}

/* Underline grows from the left: in with outExpo (400ms), out with inOutBack (500ms) */
.nav-link-line {
	position: absolute;
	inset: auto 0 0 0;
	display: block;
	width: 0%;
	height: 1px;
	background: var(--white);
	transition: width 500ms cubic-bezier(.68, -.55, .265, 1.55);
}
.nav-link:hover .nav-link-line,
.nav-link:focus-visible .nav-link-line,
.mobile-nav-link:hover .nav-link-line,
.mobile-nav-link:focus-visible .nav-link-line {
	width: 100%;
	transition: width 400ms cubic-bezier(.19, 1, .22, 1);
}

.nav-social {
	display: flex;
	justify-content: flex-end;
	align-self: center;
	align-items: center;
}
.nav-social a {
	display: block;
	margin: 0 8px;
}
.nav-social a:hover { opacity: .5; }
.nav-social .icon { width: 16px; height: 16px; }

/* Hamburger (only <= 1139px) */
.fullscreen-nav {
	position: relative;
	display: none;
	flex-direction: column;
	justify-content: center;
	align-self: center;
	align-items: flex-end;
	margin-left: 24px;
	transition: opacity .4s;
}
.fullscreen-nav:hover { opacity: .75; }

.hamburger-line {
	display: block;
	height: 2px;
	margin-bottom: 8px;
	background: var(--white);
	/* close / default state: 500ms inOutQuart, width without easing */
	transition:
		transform 500ms cubic-bezier(.77, 0, .175, 1),
		width 500ms linear;
}
.hamburger-line.first { width: 32px; }
.hamburger-line.middle { width: 40px; }
.hamburger-line.last { width: 24px; margin-bottom: 0; }

/* Two overlaid links: "open" (#menu) and "close" (#_, a non-existent fragment,
   so the page does not jump to the top). Only one is visible at a time. */
.menu-toggle {
	position: absolute;
	inset: -10px;
}
.menu-close { visibility: hidden; }

/* Mobile menu panel */
.mobile-menu { display: none; }

.mobile-nav {
	display: flex;
	flex-direction: column;
	padding-inline: 12px;
}
.mobile-nav-link {
	display: block;
	align-self: flex-start;
	font-family: var(--font-head);
	font-weight: 500;
	letter-spacing: 2px;
	font-size: 4vw;
	line-height: 8vw;
}
.mobile-social {
	display: flex;
	justify-content: flex-start;
	align-self: stretch;
	margin-top: 4px;
	padding-top: 12px;
	border-top: 1px solid #ffffff40;
}

@media (max-width: 1139px) {
	:root { --logo-w: min(100vw - 301px, 240px); }

	.navbar-top { padding-inline: 12px; }

	/* Header menu hidden as a whole (no empty navigation in the accessibility tree);
	   the bar's social icons stay visible */
	.nav-menu { display: none; }

	.fullscreen-nav { display: flex; }

	.mobile-menu {
		position: fixed;
		top: 0;
		left: 0;
		z-index: -1;          /* below the bar's content: logo and X stay visible */
		display: flex;
		flex-direction: column;
		justify-content: center;
		justify-content: safe center;   /* short landscape screens: start at top instead of clipping */
		width: 0;
		height: 100vh;
		height: 100dvh;
		padding-inline: 12px;
		padding-block-start: var(--nav-h);   /* content never starts under the bar */
		overflow-x: hidden;
		overflow-y: auto;
		background: var(--black);
		transform: translateX(-100vw);
		visibility: hidden;   /* not reachable by keyboard / screen readers while closed */
		/* "Mobile Menu Hide": 500ms, then hide */
		transition:
			transform 500ms cubic-bezier(.77, 0, .175, 1),
			width 500ms cubic-bezier(.77, 0, .175, 1),
			visibility 0s linear 500ms;
	}

	/* "Mobile Menu Reveal": 1200ms outExpo */
	.mobile-menu:target {
		width: 100vw;
		transform: translateX(0);
		visibility: visible;
		transition:
			transform 1200ms cubic-bezier(.19, 1, .22, 1),
			width 1200ms cubic-bezier(.19, 1, .22, 1),
			visibility 0s;
	}

	/* Hamburger -> X (works without :has(), via the sibling combinator) */
	#menu:target ~ .navbar-container .hamburger-line.first {
		width: 40px;
		transform: translateY(10px) rotate(-45deg);
	}
	#menu:target ~ .navbar-container .hamburger-line.middle { transform: rotate(45deg); }
	#menu:target ~ .navbar-container .hamburger-line.last { width: 0; }
	#menu:target ~ .navbar-container .menu-open { visibility: hidden; }
	#menu:target ~ .navbar-container .menu-close { visibility: visible; }

	/* Scroll lock while open (progressive: without :has() only the lock is missing) */
	html:has(#menu:target) { overflow: hidden; }

	/* Covered content leaves the tab order while the menu is open. Hidden only after
	   the 1200ms reveal, so the page stays visible behind the sliding panel; visible
	   again immediately on close. Without :has() this rule is simply ignored. */
	main,
	.site-footer { transition: visibility 0s; }
	html:has(#menu:target) :is(main, .site-footer) {
		visibility: hidden;
		transition: visibility 0s linear 1200ms;
	}

	/* Full-width links inside the clipped panel: keep the focus ring inside */
	.mobile-menu a:focus-visible { outline-offset: -3px; }
}

@media (max-width: 767px) {
	.navbar-container { padding-inline: 12px; }
	.mobile-nav { padding-inline: 4px; }
	.mobile-nav-link { font-size: 6vw; line-height: 12vw; }
}

@media (max-width: 479px) {
	.navbar-top { margin-bottom: 1em; }
	:root { --logo-w: min(100vw - 240px, 179px); }

	.navbar-container { padding-inline: 4px; }
	.fullscreen-nav { margin-left: 4px; padding: 4px; }   /* px, so the width budget does not depend on the root font size */
	/* Both icon groups (bar and mobile menu) become a 4-column grid */
	.nav-top > .nav-social,
	.mobile-social {
		display: grid;
		grid-template-columns: repeat(4, auto);
		gap: 16px;
	}
	/* The grid gap replaces the 8px icon margins in the bar: the width goes to the logo */
	.nav-top > .nav-social a { margin: 0; }
	.mobile-menu { padding-inline: 0; }
	.mobile-nav { margin-top: 6em; padding-inline: 12px; }
	.mobile-nav-link { padding-inline: 0; font-size: 8vw; line-height: 16vw; }
}

/* Narrowest screens: bar 2 x 4px, icon gap 8px, logo up to 120px -> 300px, fits 320px with 20px to spare */
@media (max-width: 359px) {
	:root { --logo-w: min(100vw - 200px, 120px); }
	.navbar-top { padding-inline: 4px; }
	.nav-top > .nav-social { gap: 8px; }
}

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

.hero {
	position: relative;
	display: grid;
	align-items: end;
	min-block-size: 100vh;
	min-block-size: 100svh;
	overflow: hidden;
	overflow: clip;   /* clip: no scroll container, so view() keeps tracking the viewport */
	background: var(--black);
}
.hero-bg {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top, rgb(0 0 0 / .95) 0%, rgb(0 0 0 / .55) 45%, rgb(0 0 0 / .15) 100%),
		url("../img/body4.jpg") 40% 30% / cover no-repeat;
}
.hero-content {
	position: relative;
	inline-size: 100%;
	max-inline-size: 90rem;
	margin-inline: auto;
	padding: calc(var(--nav-h) + 4rem) var(--gutter) clamp(2rem, 5vw, 4rem);
}
.subheading {
	margin-block-end: 1rem;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 8px;
	text-transform: uppercase;
}

.store-links {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 0;
	margin-block-start: 1rem;
}
.store-links li {
	margin-inline-end: 1rem;
	padding-inline-end: 1rem;
	border-inline-end: 1px solid var(--white);
	font-size: 16px;
	line-height: 1.25;
}
.store-links a {
	display: inline-block;
	padding-block: .5rem;
}
.store-links li:last-child {
	margin-inline-end: 0;
	padding-inline-end: 0;
	border-inline-end: 0;
}

/* ---------- Content bands ---------- */

.band {
	padding-block: var(--band-space);
	background: var(--black);
}

.two-col {
	display: grid;
	gap: 2.5rem clamp(2rem, 8vw, 8rem);
}
.two-col > * { min-inline-size: 0; }

@media (min-width: 768px) {
	.two-col { grid-template-columns: 1fr 2fr; }
	.two-col-media {
		grid-template-columns: 1fr 1fr;
		align-items: center;
	}
}

.cover { inline-size: 100%; }

.addresses { margin-block-end: 2.5rem; }

.list-social {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 2rem;
	margin-block-start: 2.5rem;
}
.list-social a {
	display: flex;
	align-items: center;
	gap: .5rem;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 4px;
	text-transform: uppercase;
}

/* ---------- Video ---------- */

.video-band {
	background: var(--black);
	padding-block-end: 1rem;
}
.video {
	inline-size: 100%;
	max-inline-size: calc(100vh * 16 / 9);
	max-inline-size: calc(100svh * 16 / 9);
	margin-inline: auto;
	aspect-ratio: 16 / 9;
	background: var(--black);
}
.video iframe {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	border: 0;
}
.video-fallback {
	margin-block: 1.5rem 3rem;
	padding-inline: var(--gutter);
	text-align: center;
}

/* ---------- References ---------- */

.references {
	position: relative;
	padding-block: var(--band-space);
	overflow: hidden;
	overflow: clip;   /* clip: no scroll container, so view() keeps tracking the viewport */
	background: var(--black);
}
/* Same photo as the hero, different crop: zoomed in on the right-hand figure */
.references-bg {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(rgb(0 0 0 / .72), rgb(0 0 0 / .72)),
		url("../img/body4.jpg") center / cover no-repeat;
	transform: scale(1.8);
	transform-origin: 92% 72%;
}
.references-inner { position: relative; }

.ref-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr));
	gap: 1rem;
}
@media (min-width: 768px) {
	.ref-grid { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
}
.ref-card {
	display: flex;
	align-items: center;
	min-block-size: 5.5rem;
	padding: 1rem;
	background: var(--white);
	color: var(--ink);
	border-radius: 4px;
	box-shadow: 0 0 12px #00000040;
	font-family: var(--font-head);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
}
.ref-more {
	margin-block: 1rem 0;
	font-family: var(--font-head);
	font-size: 1.5rem;
	font-weight: 700;
}

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

.site-footer {
	padding-block: clamp(2rem, 5vw, 4rem) 1.5rem;
	background: var(--black);
}
.wordmark-box { container-type: inline-size; }

/* Oswald 700 sets this text at 7.18em wide (measured from font metrics),
   so 13cqi fills about 93% of the box. It may wrap, but never overflow. */
.wordmark {
	margin: 0 0 2rem;
	font-family: var(--font-head);
	font-size: 11.5vw;
	font-size: 13cqi;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.025em;
	text-transform: uppercase;
}

.footer-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem 2rem;
	padding-block-end: 1.5rem;
}
.footer-social {
	display: flex;
	gap: 16px;
	align-items: center;
}
.footer-social a { display: block; padding: 8px; margin: -8px; }

.footer-row .nav-list a {
	display: block;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 4px;
	text-transform: uppercase;
}
.footer-row .nav-list {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 2rem;
}

.copyright {
	margin: 0;
	padding-block-start: 1rem;
	border-block-start: 1px solid var(--rule);
	font-size: 12px;
	text-align: end;
}

/* ---------- Scroll-driven effects ----------
   Only on screens (print and full-page captures must not show faded
   cards), with browser support and without a reduced-motion preference.
   Everything is fully visible by default. */

@media screen and (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }

	@supports (animation-timeline: view()) {
		.hero-bg {
			animation: hero-parallax linear both;
			animation-timeline: view();
			animation-range: exit 0% exit 100%;
		}
		.hero-content {
			animation: hero-out linear both;
			animation-timeline: view();
			animation-range: exit 0% exit 80%;
		}
		.ref-card {
			animation: card-in linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 90%;
		}
	}
}

@keyframes hero-parallax {
	to { transform: translateY(15%); }
}
@keyframes hero-out {
	to { opacity: .2; transform: translateY(-1.5rem); }
}
@keyframes card-in {
	from { opacity: 0; transform: translateY(1.5rem); }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}
