/* =====================================================================
   Wildstar — main build stylesheet
   Global foundation: design tokens, typography, buttons, header
   (star-nav overlay) and footer. Page sections build on top of this.
   Source of truth: Figma "stage 3 Developer file" (node 280:4092).
   ===================================================================== */

:root {
	/* Brand palette */
	--ws-navy-900: #061229; /* primary dark / hero backgrounds */
	--ws-navy-800: #0D1B37;
	--ws-navy-700: #101E38;
	--ws-steel:    #7FAFC4; /* primary accent (nav overlay, buttons) */
	--ws-orange:   #FB9300; /* hover / highlight */
	--ws-white:    #FFFFFF;
	--ws-grey-100: #DEDEDE;
	--ws-grey-400: #717171;
	--ws-grey-700: #343539;

	/* Semantic */
	--ws-ink:      var(--ws-navy-900); /* body text on light */
	--ws-bg:       var(--ws-white);

	/* Type */
	--ws-font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	/* Fluid type scale */
	--ws-fs-display: clamp(3rem, 8vw, 6.5rem);   /* big hero titles */
	--ws-fs-h1:      clamp(2.25rem, 5vw, 3.5rem);
	--ws-fs-h2:      clamp(1.75rem, 3.5vw, 2.5rem);
	--ws-fs-h3:      clamp(1.25rem, 2vw, 1.5rem);
	--ws-fs-body:    1rem;   /* 16px, matches design body/nav */
	--ws-fs-small:   0.875rem;

	/* Layout */
	--ws-container: 1200px;
	--ws-container-wide: 1500px;
	--ws-gutter: clamp(1.25rem, 4vw, 3rem);

	/* Header */
	--ws-header-h: 96px;
}

/* ------------------------------------------------------------------ Base */
body {
	font-family: var(--ws-font);
	font-size: var(--ws-fs-body);
	font-weight: 500;
	color: var(--ws-ink);
	background: var(--ws-bg);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-weight: 800;
	line-height: 1.05;
	margin: 0 0 0.5em;
}

h1 { font-size: var(--ws-fs-h1); }
h2 { font-size: var(--ws-fs-h2); }
h3 { font-size: var(--ws-fs-h3); }

a { text-decoration: none; }
a:hover { color: var(--ws-orange); }

.container {
	width: 100%;
	max-width: var(--ws-container);
	margin: 0 auto;
	padding-inline: var(--ws-gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	border: 0;
}

.skip-link:focus {
	position: fixed; top: 0.5rem; left: 0.5rem;
	width: auto; height: auto; clip: auto;
	padding: 0.5rem 1rem; background: #fff; z-index: 2000;
}

/* --------------------------------------------------------------- Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	font-family: var(--ws-font);
	font-weight: 600;
	font-size: var(--ws-fs-body);
	line-height: 1;
	padding: 0.95em 2.2em;
	border: 2px solid transparent;
	border-radius: 0;               /* design uses sharp corners */
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

/* Outline → orange (e.g. "See All Clients") */
.btn--outline {
	border-color: var(--ws-steel);
	color: var(--ws-steel);
}
.btn--outline:hover,
.btn--outline:focus-visible {
	background: var(--ws-orange);
	border-color: var(--ws-orange);
	color: #000;
}

/* Steel fill → orange (e.g. "Play Trailer") */
.btn--fill {
	background: var(--ws-steel);
	color: var(--ws-navy-900);
}
.btn--fill:hover,
.btn--fill:focus-visible {
	background: var(--ws-orange);
	color: var(--ws-navy-900);
}

/* ---------------------------------------------------- Header / star-nav */
.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 1000;
	height: var(--ws-header-h);
	display: flex;
	align-items: center;
	justify-content: flex-end; /* nav toggle only — no logo/wordmark */
	padding-inline: var(--ws-gutter);
	pointer-events: none; /* let hero interactions through; children re-enable */
}
.site-header > * { pointer-events: auto; }

.site-logo {
	display: inline-flex;
	align-items: center;
	font-weight: 900;
	letter-spacing: 0.02em;
	color: var(--ws-white);
	text-transform: uppercase;
}
.site-logo img { max-height: 56px; width: auto; }

/* The star toggle (top-right) */
.nav-toggle,
.nav-close {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	background: none;
	border: 0;
	font-family: var(--ws-font);
	font-weight: 600;
	font-size: var(--ws-fs-body);
	color: var(--ws-white);
	cursor: pointer;
}
/* Nudge the Menu toggle 50px in from the gutter (matches the Close + nav shift). */
.nav-toggle { margin-right: 50px; }
.nav-toggle__star,
.nav-close__star {
	width: 1.9em;   /* scales with the button label; Figma menu star ≈ 31px */
	height: auto;
	transition: transform 0.4s ease;
}
.nav-open .nav-toggle__star { transform: rotate(90deg); }

/* Overlay panel — steel quarter-circle anchored top-right */
.nav-overlay {
	position: fixed;
	inset: 0;
	z-index: 1500;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.nav-open .nav-overlay {
	visibility: visible;
	opacity: 1;
	transition: opacity 0.35s ease;
}

/* Quarter-circle centred on the top-right corner (Figma: 1425∅ circle, so a
   712px-radius quarter disc ≈ 37vw at 1920). Content right-aligns inside it. */
.nav-overlay__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(54vw, 88vh, 640px);
	aspect-ratio: 1;
	background: var(--ws-steel);
	border-radius: 0 0 0 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	/* right inset = header gutter so links + close align to the header toggle */
	padding: calc(var(--ws-header-h) + 0.5rem) var(--ws-gutter) 2rem;
	transform: translateX(6%);
	transition: transform 0.4s ease;
}
.nav-open .nav-overlay__panel { transform: translateX(0); }

/* Mirror the header toggle exactly so the Close star sits where the Menu star was */
.nav-close {
	position: absolute;
	top: 0;
	right: calc(var(--ws-gutter) + 50px);
	height: var(--ws-header-h);
	margin: 0;
	color: var(--ws-navy-900);
}

.nav-overlay__nav { margin-right: 50px; } /* shift links 50px in, aligned with Close */
.nav-overlay__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: right;
}
.nav-overlay__nav li { margin: 0.5em 0; }
.nav-overlay__nav a {
	display: inline-block;
	/* ~7em wraps the two-word items (Wildstar Expedition/Foundation) onto two
	   lines like Figma, while the widest single item (Productions ≈ 5.9em) stays
	   on one line. In em so it holds as the link font-size scales. */
	max-width: 7em;
	font-weight: 800;
	font-size: clamp(1.05rem, 1.35vw, 1.45rem); /* Figma 23px @1920 */
	line-height: 1.15;
	color: var(--ws-navy-900);
}
.nav-overlay__nav a:hover { color: var(--ws-white); }
/* Secondary items (Wildstar Expedition / Foundation) render lighter */
.nav-overlay__nav .menu-item.is-secondary a { font-weight: 500; }

/* ------------------------------------------------------------- Site main */
.site-main { min-height: 60vh; }

/* --------------------------------------------------------------- Footer */
.site-footer {
	background: var(--ws-white);
	color: var(--ws-ink);
	padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem;
	border-top: 1px solid var(--ws-grey-100);
}
.site-footer__inner {
	max-width: var(--ws-container-wide);
	margin: 0 auto;
	padding-inline: var(--ws-gutter);
}
.site-footer__top {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr auto;
	gap: 2.5rem;
	align-items: start;
}
.footer-brand__logo {
	display: block;
	width: 220px;
	max-width: 100%;
	height: auto;
}
.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}
.footer-menu a { color: var(--ws-ink); }
.footer-contact p { margin: 0 0 1rem; line-height: 1.5; }
.footer-contact a { color: var(--ws-ink); text-decoration: underline; }
.footer-social {
	display: flex;
	gap: 1rem;
}
.footer-social a {
	display: inline-flex;
	color: var(--ws-navy-900);
}
.footer-social svg { width: 24px; height: 24px; fill: currentColor; }
.footer-social a:hover { color: var(--ws-orange); }

.site-footer__statement {
	max-width: 70ch;
	margin: 2.5rem 0;
	padding: 2rem 0;
	border-top: 1px solid var(--ws-grey-100);
	border-bottom: 1px solid var(--ws-grey-100);
	color: var(--ws-grey-700);
	line-height: 1.6;
}
.site-footer__legal {
	font-size: var(--ws-fs-small);
	color: var(--ws-grey-400);
	display: grid;
	gap: 0.4rem;
}
.site-footer__legal a { color: var(--ws-grey-400); text-decoration: underline; }
.site-footer__legal-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 0.5rem;
}

/* =============================================================== Homepage */
.hp-section { position: relative; }

/* Section 'clunk' snapping for the parallax block (sizzle + slides) is handled in
   JS (initSectionSnap in main.js): one slide per scroll gesture with a symmetric
   ease-in-out, never resting between slides, and releasing to normal scrolling for
   mission/awards/footer. Done in JS because CSS scroll-snap can't control the snap
   easing/duration and can't both avoid mid-slide resting and keep the footer free.
   Disabled for prefers-reduced-motion (native scroll). */

/* Full-screen media sections (sizzle + slides) */
.hp-sizzle,
.hp-slide {
	height: 100vh;
	min-height: 620px;
	overflow: hidden;
}

/* Parallax image layer. The media is 140% tall (20% overflow above + below) and
   drifts via transform for reliably-visible motion with no gaps. Because the slide
   images now carry vertical bleed (tall crops), a 140% cover box adds little zoom —
   so we get strong parallax with the designed framing mostly intact. */
.hp-media {
	position: absolute;
	top: -20%;
	left: 0;
	right: 0;
	height: 140%;
	background-size: cover;
	/* right-aligned: keep the right of the frame (subjects) and crop only the left,
	   which sits under the bottom-left caption/vignette anyway */
	background-position: 100% 50%;
	will-change: transform;
	transform: translate3d(0, 0, 0);
}

/* Sizzle intro — full-screen muted autoplay video reel (cover-fills the section,
   sits under the scrim + scroll-cue; not parallax-driven, unlike the slide images). */
.hp-sizzle__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: var(--ws-navy-900);
	z-index: 0;
}
.hp-sizzle__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(6,18,41,0.35), rgba(6,18,41,0.10) 40%, rgba(6,18,41,0.65));
}
.hp-scrollcue {
	position: absolute;
	left: 50%;
	bottom: clamp(1.5rem, 4vw, 3rem);
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	color: var(--ws-white);
	font-weight: 700;
	z-index: 3;
}
.hp-scrollcue:hover { color: var(--ws-orange); }
.hp-scrollcue__arrow {
	font-size: 1.6rem;
	line-height: 0.6;
	animation: hp-bounce 1.8s ease-in-out infinite;
}
@keyframes hp-bounce {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(6px); }
}

/* Production slides */
.hp-slide__vignette {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(115deg, rgba(6,18,41,0.65) 0%, rgba(6,18,41,0.15) 38%, transparent 60%),
		linear-gradient(0deg, rgba(6,18,41,0.55), transparent 45%);
	z-index: 1;
}
.hp-slide__info {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 2;
	padding: clamp(2rem, 6vw, 5rem);
	max-width: 60ch;
	color: var(--ws-white);
}
.hp-slide__broadcaster {
	display: block;
	font-size: var(--ws-fs-small);
	font-weight: 500;
	letter-spacing: 0.02em;
	opacity: 0.92;
	order: 2;
	margin-top: 0.5rem;
}
.hp-slide__info { display: flex; flex-direction: column; }
.hp-slide__title {
	order: 1;
	font-size: clamp(2rem, 5vw, 4rem);
	line-height: 1.03;
	margin: 0;
}

/* Mission */
.hp-mission {
	position: relative;
	overflow: hidden;
	background: var(--ws-navy-900);
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(3rem, 8vw, 6rem) 1.5rem;
}
/* Giant teal circle — Figma: 4500∅ centred, bottom point on the section floor
   (diameter ≈ 2.34 × section width). Only its rounded bottom shows; the navy
   background reads through the two lower corners. */
.hp-mission__circle {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 234vw;
	height: 234vw;
	background: var(--ws-steel);
	border-radius: 50%;
	z-index: 0;
	pointer-events: none;
}
/* Star + copy are concentric (Figma): the star sits behind, the navy copy over
   its lower half, the pair centred in the section. */
.hp-mission__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--ws-navy-900); /* navy copy sits on the teal */
	width: min(1100px, 92vw); /* Figma text box = 1100px @1920 */
}
.hp-mission__star {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: clamp(220px, 32vw, 600px);
	height: auto;
	z-index: -1; /* behind the copy */
	pointer-events: none;
}
.hp-mission__copy { position: relative; }
.hp-mission__inner p {
	font-weight: 800;
	font-size: clamp(1.1rem, 2.34vw, 2.8rem); /* Figma 45px @1920 */
	line-height: 1.44;
	margin: 0 0 1.2em;
}
.hp-mission__inner p:last-child { margin-bottom: 0; }

/* Awards & clients */
.hp-awards {
	background: var(--ws-navy-900);
	color: var(--ws-white);
	padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.hp-awards__block {
	text-align: center;
	padding: clamp(2rem, 5vw, 3.5rem) 0;
}
.hp-awards__block + .hp-awards__block { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.hp-awards__heading {
	font-size: var(--ws-fs-h3);
	margin-bottom: 2rem;
}
.hp-logo-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: clamp(2rem, 6vw, 5rem);
	margin-bottom: 2rem;
}
.hp-logo { height: 56px; width: auto; object-fit: contain; }

/* Respect reduced-motion: freeze parallax + scroll-cue bounce */
@media (prefers-reduced-motion: reduce) {
	.hp-media { transform: none !important; }
	.hp-scrollcue__arrow { animation: none; }
}

/* --------------------------------------------------------- Responsive */
@media (max-width: 900px) {
	.site-footer__top { grid-template-columns: 1fr 1fr; }
	.footer-social { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.nav-overlay__panel {
		width: 100%;
		height: 100%;
		aspect-ratio: auto;
		border-radius: 0;
		align-items: center;
		justify-content: center;
		padding: 2rem 1.5rem;
	}
	.nav-overlay__nav ul { text-align: center; }
	.site-footer__top { grid-template-columns: 1fr; }
}
