/* =========================================================
   Stargazer Press
   A journey from the forest floor into the galaxy.
   Mobile-first, accessible, brand-driven. No images.
   ========================================================= */

:root {
	--star: #fcefc6;
	--star-soft: #f6e6bd;
	--gold: #f3ae4c;
	--gold-deep: #d39346;
	--maroon: #78001c;
	--maroon-deep: #56001c;
	--maroon-bright: #b21437;

	--ink: #eae4d6;
	--ink-dim: #b9b3c9;
	--night-0: #05070f;
	--night-1: #0a0d1c;
	--panel: rgba(18, 16, 34, 0.55);
	--panel-line: rgba(243, 174, 76, 0.22);
	--panel-line-strong: rgba(243, 174, 76, 0.5);

	--font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--wrap: 1160px;
	--radius: 16px;
	--shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.85);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 300;
	font-size: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
	line-height: 1.7;
	color: var(--ink);
	/* Each page is its own "world": the sky and page background are tinted per
	   page so every warp lands somewhere new. Foreground trees melt into it. */
	--sky-top: #0b1030; --sky-mid: #090c22; --sky-bot: #05060f;
	--page-bg: #05060f; --page-mid: #101636; --page-bg2: #07040f;
	--fly-a: 252,239,198; --fly-b: 214,240,168;
	/* Hold the hero colour through the first screen, then journey through a
	   richer mid tone and settle into a deep footer tone. On a long page this
	   reads as travelling downward instead of one flat colour. */
	background: linear-gradient(180deg, var(--page-bg) 0, var(--page-bg) 100vh, var(--page-mid) 62%, var(--page-bg2) 100%);
	background-repeat: no-repeat;
	min-height: 100vh;
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

/* Per-page worlds. Each keeps a near-black bottom so the sky blends into the
   page with no seam; only the upper sky and page tint change. */
body.world-portfolio { --sky-top: #2b0b3e; --sky-mid: #180826; --sky-bot: #0a0512; --page-bg: #0a0512; --page-mid: #24123f; --page-bg2: #0c0518; --fly-a: 244,200,255; --fly-b: 210,160,255; }
body.world-services  { --sky-top: #06403a; --sky-mid: #04231f; --sky-bot: #05100d; --page-bg: #05100d; --page-mid: #0b3029; --page-bg2: #06110d; --fly-a: 190,255,235; --fly-b: 150,230,200; }
body.world-about     { --sky-top: #3c1e06; --sky-mid: #221004; --sky-bot: #0e0805; --page-bg: #0e0805; --page-mid: #2c1a08; --page-bg2: #0d0704; --fly-a: 255,224,170; --fly-b: 255,190,120; }
body.world-authors   { --sky-top: #0a3f20; --sky-mid: #052314; --sky-bot: #05100a; --page-bg: #05100a; --page-mid: #0b3320; --page-bg2: #06110b; --fly-a: 210,255,170; --fly-b: 150,230,120; }
body.world-journal   { --sky-top: #1c0f42; --sky-mid: #10082a; --sky-bot: #070512; --page-bg: #070512; --page-mid: #191046; --page-bg2: #080415; --fly-a: 200,210,255; --fly-b: 170,160,255; }
body.world-contact   { --sky-top: #3e0814; --sky-mid: #22060c; --sky-bot: #0e0406; --page-bg: #0e0406; --page-mid: #310a16; --page-bg2: #0c0305; --fly-a: 255,205,190; --fly-b: 255,150,160; }
body.world-work      { --sky-top: #2b0b3e; --sky-mid: #180826; --sky-bot: #0a0512; --page-bg: #0a0512; --page-mid: #24123f; --page-bg2: #0c0518; --fly-a: 244,200,255; --fly-b: 220,160,255; }

/* The night-sky canvas covers the top of the page (the hero) and scrolls away,
   so the rest of the page is the solid dark background. */
.sgp-cosmos {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100vh;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}
#sgp-canvas { display: block; width: 100%; height: 100%; }

/* A soft forest silhouette anchored to the bottom of the viewport. */
.sgp-forest {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 42vh;
	pointer-events: none;
	transition: opacity 0.6s var(--ease);
}
.sgp-vignette {
	position: absolute; inset: 0;
	pointer-events: none;
	background:
		radial-gradient(120% 80% at 50% -10%, transparent 40%, rgba(0,0,0,0.35) 100%),
		radial-gradient(100% 60% at 50% 120%, rgba(0,0,0,0.55), transparent 60%);
}

/* Everything else sits above the sky. The header always sits above content. */
.site-main, .site-footer { position: relative; z-index: 1; }
.skip-link { z-index: 999; }
/* Fixed (overlay) header so it does not push the hero down: the hero fills the
   viewport from the very top and the scene sits at the true bottom. */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
/* Inner pages get top spacing so the fixed header never overlaps content. */
body:not(.sgp-front) .site-main { padding-top: 4.5rem; }

/* Fade the world out during a warp jump so only the streaking stars show. */
body.sgp-warping .site-header,
body.sgp-warping .site-main,
body.sgp-warping .site-footer { opacity: 0; transition: opacity 0.4s var(--ease); }

/* ---------- Accessibility helpers ---------- */
.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: 8px; top: -60px;
	background: var(--gold); color: #1a1206; padding: 0.6rem 1rem;
	border-radius: 8px; font-weight: 600; z-index: 999; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 8px; }

:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.band { position: relative; }

/* ---------- Type ---------- */
h1, h2, h3, .hero__title, .section-title {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: 0.005em;
	color: var(--star);
	margin: 0 0 0.6em;
}
p { margin: 0 0 1.1em; }
a { color: var(--gold); text-decoration: none; }
a:hover, a:focus-visible { color: var(--star); }

.eyebrow {
	font-family: var(--font-body);
	text-transform: uppercase;
	letter-spacing: 0.28em;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--gold);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1rem;
}
.eyebrow--center { justify-content: center; width: 100%; }
.sgp-sparkle { width: 0.9em; height: 0.9em; color: var(--gold); filter: drop-shadow(0 0 6px rgba(243,174,76,0.7)); transform-origin: center; animation: sgpSparkle 3.6s ease-in-out infinite; }
.eyebrow--center .sgp-sparkle { animation-delay: 0.4s; }
@keyframes sgpSparkle { 0%, 100% { opacity: 0.55; transform: scale(0.82) rotate(0deg); } 50% { opacity: 1; transform: scale(1.12) rotate(24deg); } }

.section-head { max-width: 46rem; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }
.section-title { font-size: clamp(1.8rem, 1.2rem + 3vw, 3.1rem); }
/* Headlines that the fireflies swarm carry a soft glow. */
.section-title, .finale__title, .page-hero__title { text-shadow: 0 0 34px rgba(243,174,76,0.14); }
.section-lede { color: var(--ink-dim); font-size: 1.1rem; }

/* ---------- Header / Nav ---------- */
/* No backdrop-filter on the header itself: it would trap the fixed mobile
   menu inside the header's box. The frosted look is a pseudo-element instead. */
.site-header {
	background: linear-gradient(180deg, rgba(5,6,16,0.78), rgba(5,6,16,0));
	transition: background 0.4s var(--ease);
}
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	-webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
	mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.site-header.is-stuck { background: rgba(5,6,16,0.85); box-shadow: 0 10px 30px -20px #000; }
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto;
	padding-block: 0.9rem;
}
.site-logo { display: inline-flex; align-items: center; }
.sgp-logo { width: clamp(150px, 34vw, 230px); height: auto; display: block; overflow: visible; }
.sgp-logo .cls-1, .site-logo:hover .sgp-logo { transition: filter 0.4s var(--ease); }
.site-logo:hover .sgp-logo { filter: drop-shadow(0 0 10px rgba(243,174,76,0.45)); }

/* On the home page the header logo stays hidden until you scroll past the
   giant one in the hero, so the hero logo gets to be the star. */
body.sgp-front .site-header .site-branding .site-logo {
	opacity: 0; transform: translateY(-8px); pointer-events: none;
	transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
body.sgp-front.sgp-show-nav-logo .site-header .site-branding .site-logo {
	opacity: 1; transform: none; pointer-events: auto;
}

.main-navigation .menu {
	list-style: none; display: flex; gap: 0.2rem; margin: 0; padding: 0;
}
.main-navigation a {
	position: relative; display: inline-block; padding: 0.55rem 0.95rem 0.6rem;
	color: var(--ink); font-size: 0.95rem; letter-spacing: 0.02em;
	transition: color 0.3s var(--ease), letter-spacing 0.3s var(--ease);
}
/* a constellation line that draws itself in from the centre */
.main-navigation a::after {
	content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.35rem;
	height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
	transform: scaleX(0); transform-origin: center;
	transition: transform 0.4s var(--ease); opacity: 0.9;
}
/* a small star that rises above the word */
.main-navigation a::before {
	content: "\2726"; position: absolute; top: -0.15rem; left: 50%;
	transform: translate(-50%, 0.5rem) scale(0.6); opacity: 0;
	color: var(--gold); font-size: 0.6rem;
	transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
	text-shadow: 0 0 8px rgba(243,174,76,0.9);
}
.main-navigation a:hover, .main-navigation a:focus-visible,
.main-navigation .current-menu-item > a { color: var(--star); letter-spacing: 0.05em; }
.main-navigation a:hover::after, .main-navigation a:focus-visible::after,
.main-navigation .current-menu-item > a::after { transform: scaleX(1); }
.main-navigation a:hover::before, .main-navigation a:focus-visible::before,
.main-navigation .current-menu-item > a::before { opacity: 1; transform: translate(-50%, 0) scale(1); }
.main-navigation .current-menu-item > a::before { animation: sgpTwinkle 2.6s ease-in-out infinite; }
@keyframes sgpTwinkle { 0%, 100% { opacity: 0.5; transform: translate(-50%, 0) scale(0.85); } 50% { opacity: 1; transform: translate(-50%, -1px) scale(1.1); } }

.nav-toggle {
	display: none; width: 44px; height: 44px; border: 0; background: transparent;
	cursor: pointer; padding: 0; color: var(--star);
}
.nav-toggle__box { display: block; position: relative; width: 26px; height: 18px; margin: 0 auto; }
.nav-toggle__line, .nav-toggle__line::before, .nav-toggle__line::after {
	content: ""; position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
	background: currentColor; transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle__line { top: 50%; transform: translateY(-50%); }
.nav-toggle__line::before { top: -8px; }
.nav-toggle__line::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__line { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__line::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__line::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-block; font-family: var(--font-body); font-weight: 500;
	font-size: 0.98rem; letter-spacing: 0.02em; padding: 0.85rem 1.6rem;
	border-radius: 999px; cursor: pointer; border: 1px solid transparent;
	transition: transform 0.25s var(--ease), box-shadow 0.3s, background 0.3s, color 0.3s;
	will-change: transform;
}
.btn--primary {
	background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
	color: #22160a; box-shadow: 0 10px 30px -12px rgba(243,174,76,0.6);
}
.btn--primary:hover, .btn--primary:focus-visible { transform: translateY(-2px); color: #1a1206; box-shadow: 0 16px 40px -14px rgba(243,174,76,0.75); }
.btn--ghost {
	background: rgba(120,0,28,0.18); color: var(--star);
	border-color: var(--panel-line-strong);
}
.btn--ghost:hover, .btn--ghost:focus-visible { transform: translateY(-2px); background: rgba(178,20,55,0.28); border-color: var(--gold); }

.link-arrow { font-weight: 500; color: var(--gold); }
.link-arrow:hover { color: var(--star); }

/* ---------- Hero ---------- */
/* Layered, parallaxing hero. Back to front: mountains, mid trees, logo,
   near trees, then the text always on top. Each layer moves at its own speed. */
.hero {
	position: relative;
	min-height: 100svh;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; padding: 7rem 1.25rem 6rem;
	overflow: hidden;
}
.hero__text { position: relative; z-index: 4; max-width: 54rem; margin-inline: auto; }

/* One scene container, 75vh tall, anchored to the bottom, holds the mountains
   and the three parallaxing tree bands. Offscreen trees are clipped. */
.hero__scene {
	position: absolute; left: 0; bottom: 0; width: 100vw; height: 82vh;
	overflow: hidden; z-index: 1; pointer-events: none;
}
.hero__scene [data-speed] {
	position: absolute; left: 0; bottom: 0; width: 100%; height: 100%;
	translate: 0 var(--sgp-par-y, 0px); will-change: translate;
}
.hero__mtns { z-index: 1; }
.hero__mtns svg { display: block; width: 100%; height: 100%; }
/* Blends the bottom of the scene into the page so there is no seam line. */
.scene-fade {
	position: absolute; left: 0; right: 0; bottom: 0; height: 24vh; z-index: 300;
	pointer-events: none;
	background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, var(--page-bg) 80%, var(--page-bg) 100%);
}
.hero .scene-fade { height: 14vh; } /* home already melts nicely; keep it light */

/* Inner pages get their own biome scene behind the page hero. It sits BEHIND
   all page content (z-index below the content), and the sky canvas is confined
   to the hero height so the starfield never shows through content below. */
.inner-hero {
	position: absolute; top: 0; left: 0; width: 100%; height: 72vh;
	z-index: -1; overflow: hidden; pointer-events: none;
}
.inner-hero .hero__scene { height: 72vh; }
.page-hero { position: relative; z-index: 1; }
.site-main > .wrap,
.site-main > article,
.site-main > .contact-grid { position: relative; z-index: 1; }
body:not(.sgp-front) .sgp-cosmos { height: 72vh; }
#sgp-trees-bg { z-index: 2; }
#sgp-trees-mid { z-index: 3; }
#sgp-trees-fg { z-index: 4; }

/* The logo sits in front of the scene. */
.hero__logo {
	position: relative; z-index: 3;
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 1.2rem; width: min(760px, 94vw);
}
.hero__logo .sgp-logo {
	position: relative; z-index: 2; width: 100%; height: auto;
	filter: drop-shadow(0 0 14px rgba(243,174,76,0.28)) drop-shadow(0 0 34px rgba(243,174,76,0.12));
	animation: sgpLogoGlow 6s ease-in-out infinite;
}
@keyframes sgpLogoGlow {
	0%, 100% { filter: drop-shadow(0 0 12px rgba(243,174,76,0.22)) drop-shadow(0 0 28px rgba(243,174,76,0.10)); }
	50%      { filter: drop-shadow(0 0 20px rgba(243,174,76,0.40)) drop-shadow(0 0 48px rgba(243,174,76,0.18)); }
}
/* the compass emblem settles gently on north (hero + header logos) */
.hero .sgp-emblem,
.site-header .sgp-emblem {
	transform-box: fill-box; transform-origin: center;
	animation: sgpCompass 5s ease-in-out infinite;
}
/* the little star and circle orbit the compass */
.sgp-orbit {
	transform-box: view-box; transform-origin: 444.38px 65.39px;
	animation: sgpOrbit 18s linear infinite;
}
@keyframes sgpOrbit { to { transform: rotate(360deg); } }
/* a soft glow on the wordmark letters */
.sgp-word { filter: drop-shadow(0 0 5px rgba(252, 239, 198, 0.28)); }
@keyframes sgpCompass {
	0%   { transform: rotate(-6deg); }
	45%  { transform: rotate(6deg); }
	60%  { transform: rotate(2deg); }
	75%  { transform: rotate(4deg); }
	100% { transform: rotate(-6deg); }
}
.hero__logo-rose { display: none; }

.hero__title {
	font-size: clamp(1.5rem, 1rem + 3vw, 2.7rem);
	font-weight: 600; margin-bottom: 0.7em;
	text-shadow: 0 2px 30px rgba(5,6,15,0.95);
}
.hero__line { display: block; }
.hero__line--accent {
	background: linear-gradient(120deg, var(--gold) 0%, var(--star) 50%, var(--gold) 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	font-style: italic;
}
.hero__tagline { font-size: clamp(1.05rem, 0.95rem + 0.8vw, 1.45rem); color: var(--ink); max-width: 40rem; margin-inline: auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.hero__actions--center { justify-content: center; }

.scroll-cue {
	position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
	display: inline-flex; flex-direction: column; align-items: center; gap: 0.6rem;
	color: var(--ink-dim); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
}
.scroll-cue:hover { color: var(--star); }
.scroll-cue__arrow { width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); position: relative; }
.scroll-cue__arrow::after {
	content: ""; position: absolute; bottom: 0; left: 50%; width: 8px; height: 8px;
	border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
	transform: translate(-50%, 2px) rotate(45deg);
	animation: cueBob 1.8s var(--ease) infinite;
}
@keyframes cueBob { 0%,100% { transform: translate(-50%, -4px) rotate(45deg); opacity: 0.4; } 50% { transform: translate(-50%, 4px) rotate(45deg); opacity: 1; } }

/* On short or narrow screens the cue would crowd the hero buttons, so hide it. */
@media (max-width: 640px), (max-height: 760px) {
	.scroll-cue { display: none; }
}

/* ---------- Panels & cards ---------- */
.panel {
	background: var(--panel);
	border: 1px solid var(--panel-line);
	border-radius: var(--radius);
	padding: clamp(1.4rem, 3vw, 2.2rem);
	backdrop-filter: blur(6px);
	box-shadow: var(--shadow);
}
.panel--center { text-align: center; }

.card-grid, .work-grid, .value-grid, .quote-grid, .service-list, .steps {
	display: grid; gap: 1.25rem;
}
.card-grid { grid-template-columns: 1fr; }
.card__glyph, .service__glyph {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem;
	color: var(--gold); background: rgba(243,174,76,0.1);
	border: 1px solid var(--panel-line); margin-bottom: 0.8rem;
}
.card__title, .service__title { font-size: 1.35rem; }
.card { transition: transform 0.35s var(--ease), border-color 0.35s; }
.card:hover { transform: translateY(-4px); border-color: var(--panel-line-strong); }

.section-cta { text-align: center; margin-top: 2.5rem; }

/* ---------- Work / portfolio cards (drawn with CSS, no images) ---------- */
.work-grid { grid-template-columns: 1fr; }
.work-grid--full { margin-top: 2rem; }
.work-card {
	display: block; border-radius: var(--radius); overflow: hidden;
	border: 1px solid var(--panel-line); background: var(--panel);
	transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
	color: var(--ink);
}
.work-card:hover { transform: translateY(-6px); border-color: var(--panel-line-strong); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.9); }
.work-card__canvas {
	display: grid; place-items: center; aspect-ratio: 3 / 4; position: relative;
	background:
		radial-gradient(80% 60% at 50% 20%, rgba(243,174,76,0.25), transparent 60%),
		linear-gradient(160deg, var(--maroon-deep), #1a0410 70%);
	overflow: hidden;
}
.work-card__canvas::before {
	content: ""; position: absolute; inset: 0;
	background-image:
		radial-gradient(1px 1px at 20% 30%, #fff, transparent),
		radial-gradient(1px 1px at 70% 60%, var(--star), transparent),
		radial-gradient(1.5px 1.5px at 40% 80%, var(--gold), transparent),
		radial-gradient(1px 1px at 85% 25%, #fff, transparent);
	opacity: 0.8;
}
.work-card__spine { position: absolute; left: 12%; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--gold), transparent); opacity: 0.7; }
.work-card__title-plate {
	font-family: var(--font-display); font-style: italic; font-size: 1.35rem;
	color: var(--star); text-align: center; padding: 0 1.4rem; position: relative;
	text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}
.work-card__meta { display: flex; flex-direction: column; gap: 0.15rem; padding: 1rem 1.2rem 1.2rem; }
.work-card__meta strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--star); }
.work-card__meta em { color: var(--ink-dim); font-style: normal; font-size: 0.85rem; letter-spacing: 0.03em; }
.work-card.is-hidden { display: none; }

/* Portfolio cards that use a real uploaded image. Book covers are portrait,
   website screenshots are landscape, so nothing gets cropped into a book shape. */
.work-grid--full { align-items: start; }
.work-card--book .work-card__canvas { aspect-ratio: 2 / 3; }
.work-card--website .work-card__canvas { aspect-ratio: 16 / 10; }
.work-card__canvas img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-card--website .work-card__canvas img { object-position: top center; }
.work-card--image .work-card__canvas { background: #0a0714; }
.work-card--image .work-card__canvas::before { display: none; }

/* Portfolio controls: type filter + search */
.portfolio-controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.8rem; }
.portfolio-controls .filter-bar { margin-bottom: 0; justify-content: flex-start; }
.portfolio-search input {
	font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
	background: rgba(5,6,16,0.6); border: 1px solid var(--panel-line); border-radius: 999px;
	padding: 0.6rem 1.15rem; min-width: 240px; transition: border-color 0.25s, box-shadow 0.25s;
}
.portfolio-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(243,174,76,0.18); }
.portfolio-empty { text-align: center; color: var(--ink-dim); padding: 2.5rem 0; }

/* Single project page */
.project-meta {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem;
	margin-bottom: 2.5rem; padding: 1.7rem 1.9rem;
	background: linear-gradient(135deg, rgba(243,174,76,0.09), rgba(120,0,28,0.06));
	border: 1px solid var(--panel-line-strong); border-radius: var(--radius);
}
.project-meta dt { color: var(--gold); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.4rem; }
.project-meta dd { margin: 0; color: var(--star); font-size: 1.2rem; font-family: var(--font-display); line-height: 1.2; }
.project-hero-image { margin: 0 auto 2.6rem; text-align: center; }
.project-hero-image--book { max-width: 520px; }
.project-hero-image img {
	max-width: 100%; max-height: 82vh; width: auto; height: auto;
	border-radius: var(--radius); display: inline-block; box-shadow: var(--shadow);
}
.project-body { max-width: 46rem; margin-inline: auto; font-size: 1.08rem; }
.project-body > p:first-of-type { font-size: 1.22rem; color: var(--star); font-family: var(--font-display); line-height: 1.5; }
.project-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.project-body .wp-block-gallery, .project-body .wp-block-image { margin: 1.8rem 0; }
.project-link { text-align: center; margin: 2.5rem 0; }
.project-nav { max-width: 46rem; margin: 2rem auto 0; }
@media (min-width: 640px) { .project-meta { grid-template-columns: repeat(4, 1fr); } }

/* Different cover moods so the shelf feels varied */
.cover-b .work-card__canvas { background: radial-gradient(70% 60% at 50% 30%, rgba(120,80,200,0.35), transparent 60%), linear-gradient(160deg, #0a0f33, #05061a 70%); }
.cover-c .work-card__canvas { background: radial-gradient(70% 60% at 50% 30%, rgba(243,174,76,0.3), transparent 60%), linear-gradient(160deg, #14324a, #05121a 70%); }
.cover-d .work-card__canvas { background: linear-gradient(160deg, #1a0410, #000 80%); }
.cover-e .work-card__canvas { background: radial-gradient(60% 50% at 50% 40%, rgba(60,140,110,0.4), transparent 60%), linear-gradient(160deg, #04140f, #02120c 70%); }
.cover-f .work-card__canvas { background: radial-gradient(80% 60% at 50% 20%, rgba(200,120,160,0.35), transparent 60%), linear-gradient(160deg, #2a0a2a, #0a0414 70%); }
.cover-g .work-card__canvas { background: radial-gradient(70% 60% at 50% 30%, rgba(243,174,76,0.35), transparent 60%), linear-gradient(160deg, #3a2410, #120a04 70%); }
.cover-h .work-card__canvas { background: radial-gradient(60% 50% at 50% 40%, rgba(90,120,200,0.4), transparent 60%), linear-gradient(160deg, #050a20, #01030f 70%); }
.cover-i .work-card__canvas { background: radial-gradient(80% 60% at 50% 20%, rgba(200,90,60,0.35), transparent 60%), linear-gradient(160deg, #24120a, #0a0402 70%); }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem; }
.filter {
	font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.04em;
	padding: 0.5rem 1.1rem; border-radius: 999px; cursor: pointer;
	background: transparent; color: var(--ink-dim);
	border: 1px solid var(--panel-line); transition: all 0.25s var(--ease);
}
.filter:hover { color: var(--star); border-color: var(--panel-line-strong); }
.filter.is-active { background: rgba(243,174,76,0.15); color: var(--star); border-color: var(--gold); }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.step { position: relative; }
.step__num { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold); display: block; line-height: 1; margin-bottom: 0.4rem; }
.step__title { font-size: 1.3rem; }

/* ---------- Services ---------- */
.service { display: grid; gap: 1rem; }
.service__lead { display: flex; align-items: center; gap: 1rem; }
.service__lead .service__glyph { margin-bottom: 0; }
.tick-list { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.tick-list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.5rem; color: var(--ink-dim); }
.tick-list li::before { content: "\2726"; position: absolute; left: 0; color: var(--gold); }

/* ---------- Prose ---------- */
.prose { max-width: 44rem; margin-inline: auto; }
.prose > p { font-size: 1.12rem; color: var(--ink); }
.pullquote {
	margin: 2.5rem 0; padding: 1.5rem 2rem; border-left: 3px solid var(--gold);
	font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--star);
	background: rgba(243,174,76,0.06); border-radius: 0 var(--radius) var(--radius) 0;
}
.pullquote p { margin: 0; }

.value-grid { margin-top: 2.5rem; }
.value h3 { font-size: 1.2rem; }
.value p { margin: 0; color: var(--ink-dim); }

/* ---------- Quotes ---------- */
.quote blockquote { margin: 0 0 1rem; font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--star); }
.quote blockquote p { margin: 0; }
.quote figcaption { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Callout ---------- */
.callout { margin-top: 3rem; }
.callout h2 { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.2rem); }
.callout p { color: var(--ink-dim); max-width: 34rem; margin-inline: auto; }

/* ---------- Finale ---------- */
.band--finale { padding-block: clamp(5rem, 12vw, 9rem); }
.finale { text-align: center; max-width: 44rem; margin-inline: auto; }
.finale__title { font-size: clamp(2rem, 1.3rem + 4vw, 3.6rem); }
.finale__lede { color: var(--ink); font-size: 1.2rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero--inner { padding: clamp(6rem, 12vw, 9rem) 0 clamp(1rem, 3vw, 2rem); text-align: center; }
.page-hero__title { font-size: clamp(2.1rem, 1.3rem + 4vw, 3.6rem); }
.page-hero__lede { color: var(--ink-dim); max-width: 42rem; margin-inline: auto; font-size: 1.12rem; }

/* ---------- Blog ---------- */
.post-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.post-card__meta { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.4rem; }
.post-card__title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.post-card__title a { color: var(--star); }
.post-card__excerpt { color: var(--ink-dim); }
.entry-content { max-width: 44rem; margin-inline: auto; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.pagination { margin-top: 3rem; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: 0.5rem 0.9rem; border-radius: 8px; color: var(--ink); border: 1px solid var(--panel-line); margin: 0 0.15rem; }
.pagination .current { background: var(--gold); color: #1a1206; border-color: var(--gold); }

/* ---------- Forms ---------- */
.contact-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.sgp-form .field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.sgp-form label { font-size: 0.85rem; letter-spacing: 0.04em; color: var(--star); font-weight: 500; }
.req { color: var(--gold); }
.sgp-form input, .sgp-form select, .sgp-form textarea {
	font-family: var(--font-body); font-size: 1rem; color: var(--ink);
	background: rgba(5,6,16,0.6); border: 1px solid var(--panel-line);
	border-radius: 10px; padding: 0.8rem 0.9rem; transition: border-color 0.25s, box-shadow 0.25s;
}
.sgp-form input:focus, .sgp-form select:focus, .sgp-form textarea:focus {
	outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(243,174,76,0.18);
}
.sgp-form textarea { resize: vertical; }
.field--hp { position: absolute; left: -9999px; }
.field--submit { margin-top: 0.5rem; }
.form-note { border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 1.2rem; }
.form-note--ok { background: rgba(60,140,110,0.15); border: 1px solid rgba(90,200,150,0.4); }
.form-note--error { background: rgba(178,20,55,0.15); border: 1px solid rgba(178,20,55,0.5); }
.mini-steps, .value p { margin: 0; }
.mini-steps { padding-left: 1.1rem; color: var(--ink-dim); }
.mini-steps li { margin-bottom: 0.5rem; }
.contact-aside { display: grid; gap: 1.25rem; align-content: start; }

/* ---------- Footer ---------- */
.site-footer {
	margin-top: 4rem; padding: clamp(3rem, 7vw, 5rem) 0 2.5rem;
	border-top: 1px solid var(--panel-line);
	/* The page gradient eases into this solid footer tone. */
	background: var(--page-bg2);
}
.site-footer__inner { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; display: grid; gap: 2rem; text-align: center; }
.site-logo--footer .sgp-logo { width: clamp(160px, 40vw, 220px); margin-inline: auto; }
.site-footer__tag { font-family: var(--font-display); font-style: italic; color: var(--ink-dim); font-size: 1.15rem; margin-top: 1rem; }
.site-footer__family { max-width: 46rem; margin: 1.5rem auto 0.5rem; color: var(--ink-dim); font-size: 0.98rem; line-height: 1.7; }
.site-footer__family p { margin-bottom: 1.1rem; }
.btn--studio { font-size: 0.9rem; padding: 0.6rem 1.4rem; }
.footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; justify-content: center; padding: 0; margin: 0; }
.footer-menu a { color: var(--ink); }
.footer-menu a:hover { color: var(--gold); }
.site-footer__meta { color: var(--ink-dim); font-size: 0.85rem; }
.site-footer__meta p { margin: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
	.card-grid { grid-template-columns: repeat(2, 1fr); }
	.work-grid { grid-template-columns: repeat(2, 1fr); }
	.post-grid { grid-template-columns: repeat(2, 1fr); }
	.value-grid, .quote-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
	.card-grid { grid-template-columns: repeat(4, 1fr); }
	.work-grid { grid-template-columns: repeat(3, 1fr); }
	.steps { grid-template-columns: repeat(4, 1fr); }
	.service { grid-template-columns: 260px 1fr; align-items: start; }
	.service__lead { flex-direction: column; align-items: flex-start; }
	.contact-grid { grid-template-columns: 1.5fr 1fr; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 820px) {
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 210; }
	/* full-screen dim behind the panel */
	.main-navigation::before {
		content: ""; position: fixed; inset: 0; background: rgba(2,3,10,0.6);
		opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
		z-index: -1;
	}
	.main-navigation {
		position: fixed; top: 0; right: 0; bottom: 0; left: auto;
		width: min(340px, 84vw); height: 100dvh;
		background: #080a18; background: linear-gradient(180deg, #0a0c1e 0%, #06040f 100%);
		transform: translateX(100%); transition: transform 0.45s var(--ease);
		padding: 5.5rem 1.6rem 2rem; z-index: 200;
		box-shadow: -30px 0 70px -30px #000;
		border-left: 1px solid var(--panel-line-strong);
		overflow-y: auto;
	}
	.main-navigation.is-open { transform: translateX(0); }
	.main-navigation.is-open::before { opacity: 1; visibility: visible; }
	.main-navigation .menu { flex-direction: column; gap: 0.15rem; align-items: stretch; }
	.main-navigation a { display: block; padding: 0.85rem 0.5rem; font-size: 1.1rem; }
	.main-navigation a::after { left: 0.5rem; right: auto; width: 26px; }
	.main-navigation a::before { left: auto; right: 0.6rem; }
	body.nav-open { overflow: hidden; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
	.reveal { opacity: 1; transform: none; }
	.scroll-cue__arrow::after { animation: none; }
}

/* ---------- Print ---------- */
@media print {
	.sgp-cosmos, .nav-toggle, .scroll-cue, .site-header { display: none !important; }
	body { background: #fff; color: #111; }
	.panel { border: 1px solid #ccc; box-shadow: none; background: #fff; }
}
