@font-face{font-family:"Cormorant Garamond";font-weight:500;font-display:swap;src:url("/fonts/cormorant-garamond-500.woff2") format("woff2")}
@font-face{font-family:"DM Sans";font-weight:400;font-display:swap;src:url("/fonts/dm-sans-400.woff2") format("woff2")}
body{margin:0}
/*
 * Sir GOAT Group — living hero.
 *
 * Desktop (>= 1024 px) follows the LOCKED frame 2214:2: every size is written in
 * frame pixels times --u, where 1440 frame pixels = the viewport width.
 * Below 1024 px it follows 2255:63: the scene is a card on top, the text below.
 */

.sgg-hero {
	--h-bg: #fbf6ec;
	--h-ink: #15100a;
	--h-muted: #4a3a22;
	--h-accent: #6b4a14;
	--h-line: rgba(186, 140, 58, 0.5);
	--h-glass: rgba(255, 250, 240, 0.58);
	--h-glass-strong: rgba(255, 251, 243, 0.9);
	--h-cta-bg: #14110c;
	--h-cta-ink: #fbf6ec;
	--h-cta-rim: rgba(214, 170, 82, 0.9);
	--h-status-bg: rgba(255, 251, 243, 0.72);
	--h-status-line: rgba(150, 110, 40, 0.6);
	--h-chip-bg: #161c2b;
	--h-chip-ink: #ffffff;
	--h-scrim: 251, 246, 236;
	--h-focus: #6b4a14;
	--h-sky-card: linear-gradient(180deg, #f4e6c8 0%, #f8eedb 55%, #efdcb8 100%);
	--u: calc(100vw / 1440);

	position: relative;
	box-sizing: border-box;
	margin: 0;
	background: var(--h-bg);
	color: var(--h-ink);
	font-family: "DM Sans", system-ui, sans-serif;
	overflow: hidden;
}

:root[data-sgg-theme="dark"] .sgg-hero,
:root[data-sgg-theme="dark"] .sgg-hero-footer {
	--h-bg: #0b0805;
	--h-ink: #f5ecd9;
	--h-muted: #d8c9aa;
	--h-accent: #ebb94f;
	--h-line: rgba(226, 176, 76, 0.5);
	--h-glass: rgba(20, 14, 7, 0.55);
	--h-glass-strong: rgba(24, 18, 10, 0.88);
	--h-cta-bg: #ebb94f;
	--h-cta-ink: #1b1307;
	--h-cta-rim: rgba(255, 226, 150, 0.9);
	--h-status-bg: rgba(18, 13, 7, 0.6);
	--h-status-line: rgba(235, 185, 79, 0.75);
	--h-chip-bg: #f6ead2;
	--h-chip-ink: #15100a;
	--h-scrim: 11, 8, 5;
	--h-focus: #ebb94f;
	--h-sky-card: linear-gradient(180deg, #0b0c1c 0%, #1d1830 55%, #4a3417 100%);
}

:root[data-sgg-theme="dark"] body {
	background: #0b0805;
}

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

.sgg-hero a {
	color: inherit;
}

.sgg-hero :focus-visible,
.sgg-hero-footer :focus-visible {
	outline: 2px solid var(--h-focus);
	outline-offset: 3px;
	border-radius: 6px;
}

/* ------------------------------------------------------------------ variants */

.sgg-plate--dark,
.sgg-plate-pic--dark,
.sgg-theme-toggle__to-light {
	display: none !important;
}

:root[data-sgg-theme="dark"] .sgg-plate--dark,
:root[data-sgg-theme="dark"] .sgg-plate-pic--dark,
:root[data-sgg-theme="dark"] .sgg-theme-toggle__to-light {
	display: block !important;
}

:root[data-sgg-theme="dark"] .sgg-theme-toggle__to-light {
	display: inline !important;
}

:root[data-sgg-theme="dark"] .sgg-plate--light,
:root[data-sgg-theme="dark"] .sgg-plate-pic--light,
:root[data-sgg-theme="dark"] .sgg-theme-toggle__to-dark {
	display: none !important;
}

/* Gold GOAT: six exact layers placed by their Figma insets inside a square box. */
.sgg-mark {
	position: relative;
	display: block;
	aspect-ratio: 1;
	height: 100%;
	width: auto;
}

.sgg-mark__layer {
	position: absolute;
	display: block;
}

.sgg-mark__layer img {
	position: absolute;
	display: block;
	max-width: none;
}

/* ------------------------------------------------------------------- scene */

.sgg-hero__scene {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	container-type: size;
	pointer-events: none;
}

.sgg-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.sgg-canvas--sky {
	background: var(--h-sky-card);
}

.sgg-stage {
	position: absolute;
	aspect-ratio: 1440 / 790;
}

.sgg-layer {
	position: absolute;
	inset: 0;
	will-change: transform;
}

.sgg-layer--light {
	mix-blend-mode: screen;
}

.sgg-rays,
.sgg-beam {
	will-change: opacity;
}

:root[data-sgg-theme="dark"] .sgg-rays path {
	fill-opacity: 0.45;
}

.sgg-beam span {
	position: absolute;
	display: block;
	border-radius: 50%;
}

.sgg-beam__bloom {
	background: radial-gradient(closest-side, rgba(255, 251, 238, 0.95), rgba(255, 228, 164, 0.45) 45%, rgba(255, 214, 130, 0) 100%);
}

.sgg-beam__shaft {
	background: radial-gradient(50% 100% at 50% 100%, rgba(255, 251, 240, 0.95) 0%, rgba(255, 234, 180, 0.55) 45%, rgba(255, 220, 150, 0) 100%);
	-webkit-mask-image: linear-gradient(to top, #000 35%, transparent 100%);
	mask-image: linear-gradient(to top, #000 35%, transparent 100%);
}

.sgg-beam .sgg-beam__core {
	border-radius: 2px;
	background: linear-gradient(to top, rgba(255, 253, 245, 1) 0%, rgba(255, 246, 220, 0.8) 60%, rgba(255, 240, 200, 0) 100%);
}

.sgg-beam__lens {
	background: radial-gradient(closest-side, rgba(255, 250, 235, 0.75), rgba(255, 226, 160, 0.25) 50%, rgba(255, 214, 130, 0) 100%);
}

.sgg-plate,
.sgg-plate-pic,
.sgg-plate-pic img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
}

.sgg-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.sgg-rings--back {
	z-index: 1;
}

.sgg-goat--glow {
	z-index: 3;
}

.sgg-goat--body {
	z-index: 4;
}

.sgg-rings--front {
	z-index: 5;
}

.sgg-ring-line {
	fill: none;
	stroke: #cf9d42;
	stroke-width: 1.3;
	opacity: 0.92;
}

.sgg-ring-halo {
	fill: none;
	stroke: #ffe2a0;
	stroke-width: 5;
	opacity: 0.16;
}

.sgg-glint,
.sgg-glint-soft {
	fill: none;
	stroke-linecap: round;
}

.sgg-glint {
	stroke: #fffaf0;
	stroke-width: 2.2;
	stroke-dasharray: 26 974;
}

.sgg-glint-soft {
	stroke: #ffe3a0;
	stroke-width: 9;
	stroke-dasharray: 44 956;
	opacity: 0.32;
}

.sgg-goat {
	position: absolute;
	aspect-ratio: 1;
	height: auto;
	overflow: visible;
}

.sgg-goat use {
	fill: none;
	stroke-width: 0.55;
	stroke-linejoin: round;
	stroke-linecap: round;
}

.sgg-goat--glow use {
	stroke: #ffd37a;
	opacity: 0.7;
}

:root[data-sgg-theme="dark"] .sgg-goat--glow use {
	stroke: #ffc75a;
	opacity: 1;
}

.sgg-goat-depth {
	stroke: #7b5314;
	opacity: 0.8;
}

.sgg-goat-gold {
	stroke: url(#sgg-goat-gold);
}

.sgg-goat .sgg-goat-shine {
	stroke: url(#sgg-goat-shine);
	stroke-width: 0.2;
}

.sgg-sphere {
	position: absolute;
	z-index: 2;
	aspect-ratio: 1;
	border-radius: 50%;
	background:
		radial-gradient(circle at 34% 27%, #fffdf4 0 5%, rgba(255, 246, 214, 0) 16%),
		radial-gradient(circle at 50% 50%, #e8bf66 0%, #c8913a 38%, #8a5a16 62%, #3f2808 80%, #9c7032 92%, #edc97c 100%);
	box-shadow: 0 0.35em 0.8em rgba(70, 44, 8, 0.28);
	will-change: transform;
}

.sgg-sphere::after {
	content: "";
	position: absolute;
	left: 14%;
	right: 14%;
	top: 48%;
	height: 22%;
	border-radius: 50%;
	background: linear-gradient(180deg, rgba(255, 240, 200, 0.55), rgba(255, 240, 200, 0));
}

.sgg-sphere.is-front {
	z-index: 6;
}

.sgg-hero__scrim {
	position: absolute;
	inset: 0;
	display: none;
}

/* Goat morph on scroll (desktop): hero.js sets --morph 0..1 on the stage. */
.sgg-rings,
.sgg-layer--light,
.sgg-layer--emblem .sgg-sphere {
	opacity: calc(1 - var(--morph, 0) * 1.7);
}

/* --------------------------------------------------------------- UI pieces */

/* The header brand is the gold GOAT alone: tap it to come home. */
.sgg-hero__brand {
	display: flex;
	flex: none;
	align-items: center;
	border-radius: 14px;
	text-decoration: none;
	transition: filter 300ms ease, transform 300ms ease;
}

.sgg-hero__brand .sgg-logo {
	flex: none;
}

.sgg-hero__brand:hover {
	filter: drop-shadow(0 0 10px rgba(235, 185, 79, 0.55));
}

/* The emblem arrives in the header logo (goat morph on scroll). */
.sgg-hero__brand.is-receiving {
	filter: drop-shadow(0 0 14px rgba(255, 210, 120, 0.9));
	transform: scale(1.08);
}

/* Podium stair light: the rings light up floor to top and back (hero.js sets opacity). */
.sgg-step {
	opacity: 0;
}

.sgg-step-line,
.sgg-step-soft {
	fill: none;
}

.sgg-step-line {
	stroke: #fff6da;
	stroke-width: 1.8;
}

.sgg-step-soft {
	stroke: #ffd98a;
	stroke-width: 9;
	opacity: 0.45;
}

.sgg-hero__nav a,
.sgg-hero__brands a {
	text-decoration: none;
}

.sgg-hero__nav a:hover,
.sgg-hero__brands a:hover {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

.sgg-hero .sgg-hero__headcta,
.sgg-hero .sgg-hero__cta .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.7em;
	border: 0;
	border-radius: 999px;
	background: var(--h-cta-bg);
	color: var(--h-cta-ink);
	box-shadow: 0 0 0 1.5px var(--h-cta-rim), 0 8px 22px rgba(40, 26, 6, 0.22);
	font-family: "DM Sans", system-ui, sans-serif;
	font-weight: 400;
	text-decoration: none;
	white-space: nowrap;
}

.sgg-hero .sgg-hero__headcta::after,
.sgg-hero .sgg-hero__cta .wp-block-button__link::after {
	content: "→";
	font-size: 1.1em;
}

.sgg-theme-toggle {
	position: absolute;
	z-index: 20;
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	border: 1px solid var(--h-line);
	border-radius: 999px;
	background: var(--h-chip-bg);
	color: var(--h-chip-ink);
	font-family: "DM Sans", system-ui, sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	cursor: pointer;
	pointer-events: auto;
}

.sgg-theme-toggle::after {
	content: "↗";
}

.sgg-hero__copy {
	position: relative;
	z-index: 10;
}

.sgg-hero .sgg-hero__eyebrow {
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.32em;
	color: var(--h-muted);
}

.sgg-hero .sgg-hero__title {
	margin: 0;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 500;
	text-transform: uppercase;
	line-height: 0.93;
	letter-spacing: 0;
	color: var(--h-ink);
}

.sgg-hero__accent {
	color: var(--h-accent);
}

.sgg-hero .sgg-hero__lede {
	margin: 0;
	line-height: 1.36;
	color: var(--h-ink);
}

.sgg-hero__actions {
	display: flex;
	align-items: center;
}

.sgg-hero .sgg-hero__buttons {
	display: flex;
	margin: 0;
	gap: 0;
}

.sgg-hero .sgg-hero__status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	border: 1.5px solid var(--h-status-line);
	border-radius: 999px;
	background: var(--h-status-bg);
	color: var(--h-ink);
	white-space: nowrap;
}

.sgg-hero .sgg-hero__brands {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--h-ink);
}

.sgg-hero__brands li {
	margin: 0;
}

.sgg-hero__brands li + li::before {
	content: "·";
	margin: 0 0.9em;
	color: var(--h-accent);
}

.sgg-hero__words,
.sgg-card {
	display: none;
}

.sgg-vh {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* ------------------------------------------------------------------ footer */

.sgg-hero-footer {
	--h-bg: #fbf6ec;
	--h-muted: #4a3a22;
	--h-line: rgba(186, 140, 58, 0.5);
	--h-focus: #6b4a14;

	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0;
	padding: 22px 16px 28px;
	border-top: 1px solid var(--h-line);
	background: var(--h-bg);
	color: var(--h-muted);
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 14px;
}

.sgg-hero-footer .sgg-logo {
	height: 52px;
}

.sgg-hero-footer p {
	margin: 0;
}

/* ============================================================ below 1024 px */

@media (max-width: 1023.98px) {
	.sgg-hero {
		display: flex;
		flex-direction: column;
		padding-top: calc(76px + env(safe-area-inset-top, 0px));
		padding-bottom: 40px;
	}

	/* Fixed bar with the gold GOAT; stays reachable while scrolling. */
	.sgg-hero__header {
		position: fixed;
		z-index: 60;
		top: 0;
		left: 0;
		right: 0;
		display: flex;
		align-items: center;
		height: calc(76px + env(safe-area-inset-top, 0px));
		padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
		border-bottom: 1px solid var(--h-line);
		background: var(--h-glass-strong);
		-webkit-backdrop-filter: blur(14px);
		backdrop-filter: blur(14px);
	}

	.sgg-hero__brand .sgg-logo {
		height: 60px;
	}

	.sgg-hero__nav,
	.sgg-hero .sgg-hero__headcta {
		display: none;
	}

	/* The theme chip sits in the fixed header, opposite the logo. */
	.sgg-theme-toggle {
		position: fixed;
		z-index: 61;
		top: calc(22px + env(safe-area-inset-top, 0px));
		right: max(16px, env(safe-area-inset-right, 0px));
		height: 32px;
		padding: 0 14px;
		font-size: 12px;
	}

	.sgg-hero__scene {
		margin: 16px 16px 0;
		aspect-ratio: 1;
		border: 1px solid var(--h-line);
		border-radius: 18px;
	}

	/* Same stage as desktop, framed the way 2255:63 frames it. */
	.sgg-stage {
		left: -148.6cqw;
		top: -27.04cqw;
		width: 358.2cqw;
	}

	.sgg-hero__copy {
		padding: 26px 16px 0;
	}

	.sgg-hero .sgg-hero__eyebrow {
		font-size: 11px;
		margin-bottom: 16px;
	}

	.sgg-hero .sgg-hero__title {
		font-size: clamp(36px, 11vw, 56px);
		margin-bottom: 18px;
	}

	.sgg-hero .sgg-hero__lede {
		font-size: 16px;
		margin-bottom: 26px;
		max-width: 34em;
	}

	.sgg-hero__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.sgg-hero .sgg-hero__cta,
	.sgg-hero .sgg-hero__cta .wp-block-button__link {
		width: 100%;
	}

	.sgg-hero .sgg-hero__cta .wp-block-button__link,
	.sgg-hero .sgg-hero__status {
		min-height: 52px;
		padding: 0 24px;
		font-size: 16px;
	}

	.sgg-hero .sgg-hero__brands {
		justify-content: center;
		margin-top: 30px;
		font-size: 11px;
		line-height: 2;
	}
}

@media (min-width: 600px) and (max-width: 1023.98px) {
	.sgg-hero__scene {
		aspect-ratio: 4 / 3;
	}

	.sgg-stage {
		left: -73.07cqw;
		top: -29.15cqw;
		width: 230.9cqw;
	}

	.sgg-hero__copy {
		padding: 32px 32px 0;
	}

	.sgg-hero__actions {
		flex-direction: row;
		align-items: center;
	}

	.sgg-hero .sgg-hero__cta,
	.sgg-hero .sgg-hero__cta .wp-block-button__link {
		width: auto;
	}

	.sgg-hero .sgg-hero__brands {
		justify-content: flex-start;
	}
}

/* ============================================================ 1024 and up */

@media (min-width: 1024px) {
	/*
	 * One unit (--u) = one LOCKED-frame pixel. It follows the width but never lets the hero
	 * grow taller than the screen: on wide or short screens (21:9, ultrawide, low laptops)
	 * the whole composition scales by height and centres; --ox is the side margin.
	 */
	.sgg-hero {
		--u: min(calc(100vw / 1440), max(calc(100svh / 790), 0.66px));
		--ox: calc((100vw - 1440 * var(--u)) / 2);

		height: calc(790 * var(--u));
	}

	.sgg-hero__scene {
		position: absolute;
		inset: 0;
	}

	.sgg-stage {
		left: 50%;
		top: 0;
		width: calc(1440 * var(--u));
		transform: translateX(-50%);
	}

	.sgg-hero__scrim {
		display: block;
		background:
			linear-gradient(90deg,
				rgba(var(--h-scrim), 0.84) 0%,
				rgba(var(--h-scrim), 0.7) 24%,
				rgba(var(--h-scrim), 0.28) 36%,
				rgba(var(--h-scrim), 0) 44%),
			linear-gradient(270deg,
				rgba(var(--h-scrim), 0.45) 0%,
				rgba(var(--h-scrim), 0) 14%);
	}

	.sgg-hero__header {
		position: absolute;
		z-index: 15;
		position: fixed;
		z-index: 60;
		top: calc(15 * var(--u));
		left: calc(var(--ox) + 28 * var(--u));
		right: calc(var(--ox) + 30 * var(--u));
		height: max(60px, calc(88 * var(--u)));
		display: flex;
		align-items: center;
		padding: calc(5 * var(--u)) calc(5 * var(--u)) calc(5 * var(--u)) calc(22 * var(--u));
		transition: top 260ms ease, height 260ms ease, background-color 260ms ease, box-shadow 260ms ease;
		border: 1px solid var(--h-line);
		border-radius: max(12px, calc(16 * var(--u)));
		background: var(--h-glass);
		-webkit-backdrop-filter: blur(14px) saturate(1.15);
		backdrop-filter: blur(14px) saturate(1.15);
	}

	.sgg-hero__brand {
		height: 100%;
	}

	.sgg-hero__brand .sgg-logo {
		height: max(52px, calc(76 * var(--u)));
	}

	/* Compact header once the page scrolls. */
	:root.sgg-scrolled .sgg-hero__header {
		top: 10px;
		height: max(56px, calc(68 * var(--u)));
		background: var(--h-glass-strong);
		box-shadow: 0 12px 30px rgba(40, 26, 6, 0.14);
	}

	.sgg-hero__nav {
		display: flex;
		gap: calc(40 * var(--u));
		margin-left: auto;
		font-size: max(13px, calc(15 * var(--u)));
	}

	.sgg-hero__headcta {
		margin: 0 calc(12 * var(--u)) 0 calc(44 * var(--u));
		height: max(42px, calc(52 * var(--u)));
		padding: 0 calc(32 * var(--u));
		font-size: max(14px, calc(16.5 * var(--u)));
	}

	.sgg-theme-toggle {
		top: calc(113 * var(--u));
		right: calc(var(--ox) + 24 * var(--u));
		height: max(28px, calc(34 * var(--u)));
		padding: 0 calc(14 * var(--u));
		font-size: max(11px, calc(11.5 * var(--u)));
	}

	.sgg-hero__copy {
		position: absolute;
		left: max(20px, calc(var(--ox) + 58 * var(--u)));
		top: calc(150 * var(--u));
		width: calc(490 * var(--u));
		min-width: 380px;
	}

	.sgg-hero .sgg-hero__eyebrow {
		font-size: max(11px, calc(13 * var(--u)));
		margin-bottom: calc(22 * var(--u));
	}

	.sgg-hero .sgg-hero__title {
		font-size: max(40px, calc(62 * var(--u)));
		margin-bottom: calc(26 * var(--u));
	}

	.sgg-hero .sgg-hero__lede {
		max-width: calc(450 * var(--u));
		min-width: 360px;
		font-size: max(15px, calc(17 * var(--u)));
		margin-bottom: calc(32 * var(--u));
	}

	.sgg-hero__actions {
		gap: calc(18 * var(--u));
	}

	.sgg-hero .sgg-hero__cta .wp-block-button__link,
	.sgg-hero .sgg-hero__status {
		height: max(44px, calc(54 * var(--u)));
		padding: 0 calc(34 * var(--u));
		font-size: max(14px, calc(16.5 * var(--u)));
	}

	.sgg-hero .sgg-hero__brands {
		margin-top: calc(50 * var(--u));
		font-size: max(10px, calc(12 * var(--u)));
	}

	.sgg-hero__words {
		position: absolute;
		z-index: 10;
		display: block;
		left: calc(var(--ox) + 1300 * var(--u));
		top: calc(162 * var(--u));
		margin: 0;
		padding: 0;
		list-style: none;
		font-size: max(10px, calc(12 * var(--u)));
		line-height: calc(24 * var(--u));
		letter-spacing: 0.24em;
		text-transform: uppercase;
		color: var(--h-ink);
	}

	.sgg-hero__words::after {
		content: "";
		display: block;
		width: calc(40 * var(--u));
		height: 2px;
		margin-top: calc(18 * var(--u));
		background: currentColor;
		opacity: 0.6;
	}

	.sgg-card {
		position: absolute;
		z-index: 10;
		display: block;
		left: calc(var(--ox) + 1075 * var(--u));
		top: calc(298 * var(--u));
		width: calc(320 * var(--u));
		height: calc(440 * var(--u));
		overflow: hidden;
		border: 1px solid rgba(255, 255, 255, 0.6);
		border-radius: max(12px, calc(18 * var(--u)));
		box-shadow: 0 18px 40px rgba(60, 40, 10, 0.2);
		color: #fff;
		font-size: max(10px, calc(13 * var(--u)));
		letter-spacing: 0.2em;
		text-transform: uppercase;
		line-height: 1.6;
	}

	.sgg-card__media {
		position: absolute;
		inset: 0;
		background: var(--h-sky-card);
	}

	.sgg-card__media::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(180deg, rgba(20, 13, 4, 0.78) 0%, rgba(20, 13, 4, 0.55) 20%, rgba(20, 13, 4, 0) 40%, rgba(20, 13, 4, 0) 52%, rgba(20, 13, 4, 0.72) 74%, rgba(20, 13, 4, 0.86) 100%);
	}

	.sgg-card__img {
		position: absolute;
		left: -150%;
		top: -38%;
		width: 330%;
		max-width: none;
		height: auto;
	}

	.sgg-card p {
		position: absolute;
		left: calc(30 * var(--u));
		right: calc(24 * var(--u));
		margin: 0;
		text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
	}

	.sgg-card__top {
		top: calc(38 * var(--u));
	}

	.sgg-card__bottom {
		bottom: calc(30 * var(--u));
	}

	.sgg-card__bottom::after {
		content: "";
		display: block;
		width: calc(40 * var(--u));
		height: 2px;
		margin-top: calc(22 * var(--u));
		background: currentColor;
		opacity: 0.8;
	}
}

/* Wider than the LOCKED frame (21:9, ultrawide, short laptops): the plates end at the frame,
 * so their outer edges melt into the living sky instead of stopping hard. */
@media (min-width: 1024px) and (min-aspect-ratio: 1440 / 790) {
	.sgg-layer--land,
	.sgg-layer--arch {
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
		mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
	}
}

/* Phones lying down: a slimmer header, and the scene fills the height between header and dock. */
@media (max-width: 1023.98px) and (orientation: landscape) and (max-height: 560px) {
	.sgg-hero {
		padding-top: calc(56px + env(safe-area-inset-top, 0px));
	}

	.sgg-hero__header {
		height: calc(56px + env(safe-area-inset-top, 0px));
	}

	.sgg-hero__brand .sgg-logo {
		height: 44px;
	}

	.sgg-theme-toggle {
		top: calc(12px + env(safe-area-inset-top, 0px));
	}

	.sgg-hero__scene {
		aspect-ratio: auto;
		height: calc(100svh - 56px - 16px - 92px);
		min-height: 200px;
		margin-top: 12px;
	}

	.sgg-stage {
		left: 50%;
		top: 50%;
		width: max(100cqw, calc(100cqh * 1440 / 790));
		transform: translate(-50%, -50%);
	}
}

/* Calm mode (dock "Calm"): everything holds still, like reduced motion. */
:root[data-sgg-calm="on"] .sgg-hero *,
:root[data-sgg-calm="on"] .sgg-hero *::before,
:root[data-sgg-calm="on"] .sgg-hero *::after {
	transition: none !important;
	animation: none !important;
}

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

/* Owner plates are placed by assets/plates/plates.json (stage coordinates). */
.sgg-plate-pic--owner {
	left: var(--dx);
	top: var(--dy);
	width: var(--dw);
	height: var(--dh);
}

@media (max-width: 1023.98px) {
	.sgg-plate-pic--owner {
		left: var(--mx);
		top: var(--my);
		width: var(--mw);
		height: var(--mh);
	}
}

/* ------------------------------------------------------------ entrance
 * Plays once on load: the rings draw themselves, each sphere pops out where the
 * ring reaches it (delays set per sphere in build.mjs), the goat and beam rise.
 * It only uses opacity, scale and dash offset, so the steady scene is unchanged,
 * and it is skipped under prefers-reduced-motion. */

.sgg-beam {
	position: absolute;
	inset: 0;
	transform-origin: 53.19% 87.09%;
	animation: sgg-beam-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s backwards;
}

/* Rings and spheres are driven by hero.js so each sphere pops exactly when the drawing
 * ring reaches it. html.sgg-intro is set before first paint (theme boot script) and removed
 * by hero.js when the entrance ends; the 5 s failsafe shows everything if JS never runs. */
.sgg-intro .sgg-ring-line,
.sgg-intro .sgg-ring-halo {
	stroke-dasharray: 1000;
	stroke-dashoffset: 1000;
	animation: sgg-failsafe-dash 0.01s 5s forwards;
}

.sgg-intro .sgg-glint,
.sgg-intro .sgg-glint-soft {
	opacity: 0;
}

.sgg-glint,
.sgg-glint-soft {
	transition: opacity 0.8s ease;
}

.sgg-sphere {
	transition: scale 0.6s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.25s ease;
}

.sgg-intro .sgg-sphere {
	opacity: 0;
	scale: 0;
	animation: sgg-failsafe-pop 0.01s 5s forwards;
}

.sgg-intro .sgg-sphere.is-in {
	opacity: 1;
	scale: 1;
	animation: none;
}

.sgg-goat {
	transform-origin: 50% 55%;
	animation: sgg-rise 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s backwards;
}

@keyframes sgg-failsafe-dash {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes sgg-failsafe-pop {
	to {
		opacity: 1;
		scale: 1;
	}
}

@keyframes sgg-rise {
	from {
		opacity: 0;
		scale: 0.94;
	}
	to {
		opacity: 1;
		scale: 1;
	}
}

@keyframes sgg-beam-in {
	from {
		opacity: 0;
		scale: 1 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sgg-beam,
	.sgg-goat {
		animation: none !important;
	}
}
