/* ==========================================================================
   Stratagised – main styles
   ========================================================================== */

@font-face {
	font-family: "Recharge";
	src: url("../fonts/recharge_bd.woff2") format("woff2"), url("../fonts/recharge_bd.woff") format("woff");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Rajdhani";
	src: url("../fonts/rajdhani-latin-500-normal.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Rajdhani";
	src: url("../fonts/rajdhani-latin-600-normal.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Rajdhani";
	src: url("../fonts/rajdhani-latin-700-normal.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	--font-ui: "Rajdhani", "Segoe UI", system-ui, sans-serif;
	--font-body: "Inter", "Segoe UI", system-ui, sans-serif;
	--font-text: "Inter", "Segoe UI", system-ui, sans-serif;
	--font-brand: "Recharge", "Rajdhani", sans-serif;
	--adminbar: var(--wp-admin--admin-bar--height, 0px);
	--header-h: 84px;
	--footer-h: 34px;
	--rail-w: 78px;
	--gutter: 24px;
	--ease: cubic-bezier(.2, .75, .15, 1);
	--radius: 16px;

	/* Brand (from the Stratagised logo) */
	--brand-blue: #115b94;
	--brand-blue-deep: #1e4481;
	--brand-purple: #63278c;
	--brand-navy: #03306c;
	--brand-cyan: #3da7c0;
	--brand-blue-l: #6cb3e6;
	--brand-purple-l: #bf95e8;
	--brand-cyan-l: #7fd3e6;
	--brand-grad: linear-gradient(120deg, var(--brand-blue) 0%, var(--brand-blue-deep) 45%, var(--brand-purple) 100%);
	/* Day (default) */
	--bg: #cfe0f1;
	--text: #0c2a52;
	--muted: #46608a;
	--accent: var(--brand-blue);
	--accent-2: var(--brand-purple);
	--head: var(--brand-blue);
	--glass: rgba(255, 255, 255, .2);
	--glass-strong: rgba(255, 255, 255, .42);
	--glass-border: rgba(255, 255, 255, .6);
	--card: rgba(255, 255, 255, .26);
	--card-hover: rgba(255, 255, 255, .4);
	--glow: rgba(17, 91, 148, .32);
	--shadow: 0 30px 80px -34px rgba(3, 48, 108, .4);
	--tile-label: rgba(17, 91, 148, .62);
	--tile-text: #ffffff;
	--tint: .32;
	--s-a: var(--brand-cyan);
	--s-b: var(--brand-blue);
	--s-c: var(--brand-purple);
	--pulse: #ffffff;
	--focus: rgba(244, 247, 250, .45);
	--tile-shadow: 0 26px 50px -22px rgba(3, 48, 108, .5);
	--haze: 255, 255, 255;
	--haze-a: .62;
	--hero-edge: 3 48 108 / .32;
	--hero-ink: #4b5563;
	--hero-glow-a: rgba(255, 255, 255, .85);
	--hero-glow-b: rgba(255, 255, 255, .55);
	--strip-a: .14;
	--card-a: .5;
	--card-a2: .38;
	--hero-a: #1b7f9c;
}

html[data-sky="dawn"] {
	--hero-ink: #4f5363;
	--hero-glow-a: rgba(255, 255, 255, .85);
	--hero-glow-b: rgba(255, 255, 255, .5);
	--strip-a: .14;
	--card-a: .48;
	--card-a2: .36;
	--haze: 255, 246, 250;
	--haze-a: .6;
	--hero-a: #1b7f9c;
	--bg: #e9c7c0;
	--text: #1d2456;
	--muted: #5a5a86;
	--accent: var(--brand-blue);
	--accent-2: var(--brand-purple);
	--head: var(--brand-purple);
	--glass: rgba(255, 245, 248, .2);
	--glass-strong: rgba(255, 245, 248, .42);
	--glass-border: rgba(255, 240, 246, .6);
	--card: rgba(255, 246, 250, .26);
	--card-hover: rgba(255, 246, 250, .4);
	--glow: rgba(99, 39, 140, .3);
	--tile-label: rgba(99, 39, 140, .58);
	--tile-text: #ffffff;
	--s-a: var(--brand-cyan);
	--s-b: var(--brand-blue);
	--s-c: var(--brand-purple);
	--focus: rgba(255, 240, 235, .32);
}

html[data-sky="dusk"] {
	--hero-ink: #d9dde3;
	--hero-glow-a: rgba(191, 149, 232, .6);
	--hero-glow-b: rgba(108, 179, 230, .4);
	--hero-edge: 255 255 255 / .16;
	--strip-a: .16;
	--card-a: .42;
	--card-a2: .32;
	--haze: 40, 18, 74;
	--haze-a: .42;
	--hero-a: var(--s-a);
	--bg: #2a2150;
	--text: #f7f1ff;
	--muted: #d2bfee;
	--accent: var(--brand-purple-l);
	--accent-2: var(--brand-blue-l);
	--head: var(--brand-purple-l);
	--glass: rgba(99, 39, 140, .2);
	--glass-strong: rgba(60, 24, 92, .5);
	--glass-border: rgba(191, 149, 232, .32);
	--card: rgba(99, 39, 140, .22);
	--card-hover: rgba(99, 39, 140, .36);
	--glow: rgba(191, 149, 232, .42);
	--shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
	--tile-label: rgba(99, 39, 140, .62);
	--tile-text: #ffffff;
	--tint: .5;
	--s-a: var(--brand-blue-l);
	--s-b: var(--brand-purple-l);
	--s-c: #8a4fc0;
	--pulse: #fbf3ff;
	--focus: rgba(16, 10, 34, .28);
	--tile-shadow: 0 26px 50px -20px rgba(0, 0, 0, .65);
}

html[data-sky="night"] {
	--hero-ink: #d7dde5;
	--hero-glow-a: rgba(127, 211, 230, .55);
	--hero-glow-b: rgba(108, 179, 230, .4);
	--hero-edge: 255 255 255 / .14;
	--strip-a: .18;
	--card-a: .38;
	--card-a2: .28;
	--haze: 2, 18, 44;
	--haze-a: .45;
	--hero-a: var(--s-a);
	--bg: #04141c;
	--text: #f1f7ff;
	--muted: #a8c4e6;
	--accent: var(--brand-blue-l);
	--accent-2: var(--brand-purple-l);
	--head: var(--brand-blue-l);
	--glass: rgba(3, 48, 108, .22);
	--glass-strong: rgba(3, 40, 90, .52);
	--glass-border: rgba(108, 179, 230, .28);
	--card: rgba(17, 91, 148, .2);
	--card-hover: rgba(17, 91, 148, .34);
	--glow: rgba(108, 179, 230, .42);
	--shadow: 0 30px 80px -30px rgba(0, 0, 0, .75);
	--tile-label: rgba(17, 91, 148, .62);
	--tile-text: #ffffff;
	--tint: .55;
	--s-a: var(--brand-cyan-l);
	--s-b: var(--brand-blue-l);
	--s-c: var(--brand-purple-l);
	--pulse: #e6f4ff;
	--focus: rgba(1, 10, 20, .3);
	--tile-shadow: 0 26px 50px -20px rgba(0, 0, 0, .75);
}

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

html {
	background: var(--bg);
	-webkit-text-size-adjust: 100%;
	transition: background-color 1s ease;
}

body {
	margin: 0;
	min-height: 100svh;
	overflow: hidden;
	font: 400 16px/1.6 var(--font-body);
	color: var(--text);
	background: transparent;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); }

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

::selection { background: var(--accent); color: #fff; }

.sg-skip {
	position: fixed;
	top: -100px;
	left: 16px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--glass-strong);
	color: var(--text);
	font: 600 14px var(--font-ui);
}
.sg-skip:focus { top: calc(var(--adminbar) + 12px); }

.sg-icon { display: block; flex: none; }

/* ---------- Sky ---------- */
.sg-sky,
.sg-sky-fallback {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}
.sg-sky { z-index: 0; }
.sg-sky-fallback {
	z-index: -1;
	background: #e6eaee url("../img/scene/bg-melbourne.jpg") center 70% / cover no-repeat;
}

/* ---------- Glass helper ---------- */
.sg-login,
.sg-rail,
.sg-tile__meta {
	-webkit-backdrop-filter: blur(22px) saturate(160%);
	backdrop-filter: blur(22px) saturate(160%);
}

/* ---------- Header ---------- */
.sg-header {
	position: fixed;
	top: var(--adminbar);
	left: 0;
	right: 0;
	z-index: 50;
	height: var(--header-h);
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 0 calc(var(--rail-w) + 4px) 0 var(--gutter);
	font-family: var(--font-ui);
}

.sg-loading .sg-header::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 35%;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--accent), transparent);
	animation: sgLoad 1s linear infinite;
}
@keyframes sgLoad {
	from { transform: translateX(-100%); }
	to { transform: translateX(300%); }
}

.sg-brand {
	display: flex;
	align-items: center;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	flex: none;
}
.sg-brand img {
	display: block;
	width: auto;
	height: 56px;
	/* Transparent background, logo untouched. A soft halo (same in every sky
	   mode) lifts it off a dark night sky without a plate. */
	filter:
		drop-shadow(0 0 2px rgba(255, 255, 255, .6))
		drop-shadow(0 0 11px rgba(255, 255, 255, .4))
		drop-shadow(0 1px 4px rgba(0, 0, 0, .28));
}
/* One real logo, untouched, in every sky mode. */
.sg-brand__light { display: none !important; }

.sg-hud {
	display: flex;
	align-items: center;
	gap: 0;
	color: var(--text);
	min-width: 0;
}
.sg-hud > div {
	padding: 0 22px;
	border-left: 1px solid var(--glass-border);
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}
.sg-hud__city {
	font-weight: 700;
	font-size: 12px;
	letter-spacing: .28em;
	text-transform: uppercase;
}
.sg-hud__coords,
.sg-hud__date {
	font-size: 13px;
	color: var(--muted);
	letter-spacing: .06em;
}
.sg-hud__time { flex-direction: row !important; align-items: baseline; gap: 12px; }
.sg-hud__clock {
	font-size: 30px;
	font-weight: 500;
	letter-spacing: .04em;
	line-height: 1;
}
.sg-hud__sky span {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .24em;
	text-transform: uppercase;
}
.sg-hud__bar {
	display: block;
	width: 96px;
	height: 2px;
	margin-top: 7px;
	background: var(--glass-border);
	border-radius: 2px;
	overflow: hidden;
}
.sg-hud__bar b {
	display: block;
	height: 100%;
	width: 50%;
	background: linear-gradient(90deg, var(--s-a), var(--s-c));
	transition: width 1s ease;
}

.sg-login {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--glass);
	border: 1px solid var(--glass-border);
	color: var(--text);
	font: 700 13px var(--font-ui);
	letter-spacing: .16em;
	text-transform: uppercase;
	text-decoration: none;
	transition: box-shadow .3s, background-color .3s;
}
.sg-login:hover {
	background: var(--glass-strong);
	box-shadow: 0 0 0 1px var(--accent), 0 0 24px -4px var(--glow);
}
.sg-login .sg-icon { width: 17px; height: 17px; }

/* ---------- Rail ---------- */
.sg-rail {
	position: fixed;
	right: 16px;
	top: calc(50% + var(--adminbar) / 2);
	transform: translateY(-50%);
	z-index: 50;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 8px;
	border-radius: 999px;
	background: var(--glass);
	border: 1px solid var(--glass-border);
	box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .45);
}
.sg-rail a,
.sg-rail button {
	position: relative;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: transparent;
	color: var(--text);
	cursor: pointer;
	transition: background-color .25s, color .25s, box-shadow .25s;
}
.sg-rail a:hover,
.sg-rail button:hover {
	background: var(--card-hover);
	color: var(--accent);
	box-shadow: 0 0 18px -4px var(--glow);
}
.sg-rail [data-tip]::after {
	content: attr(data-tip);
	position: absolute;
	right: calc(100% + 12px);
	top: 50%;
	transform: translate(6px, -50%);
	padding: 6px 10px;
	border-radius: 8px;
	background: var(--glass-strong);
	border: 1px solid var(--glass-border);
	color: var(--text);
	font: 600 12px var(--font-ui);
	letter-spacing: .1em;
	text-transform: uppercase;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s, transform .2s;
}
.sg-rail [data-tip]:hover::after,
.sg-rail [data-tip]:focus-visible::after {
	opacity: 1;
	transform: translate(0, -50%);
}
.sg-rail__sep {
	width: 22px;
	height: 1px;
	margin: 4px 0;
	background: var(--glass-border);
}
.sg-skymode span { display: grid; place-items: center; }
.sg-skymode[aria-expanded="true"] { background: var(--card-hover); color: var(--accent); }
.sg-skymode[aria-expanded="true"]::after { display: none; }

/* Sky menu */
.sg-skymenu {
	position: absolute;
	right: calc(100% + 14px);
	bottom: 0;
	z-index: 60;
	display: grid;
	gap: 2px;
	width: 228px;
	padding: 10px;
	border-radius: 18px;
	background: var(--glass-strong);
	border: 1px solid var(--glass-border);
	box-shadow: var(--shadow, 0 30px 80px -30px rgba(0, 0, 0, .55));
	backdrop-filter: blur(18px) saturate(1.2);
	-webkit-backdrop-filter: blur(18px) saturate(1.2);
	animation: sg-skymenu-in .22s ease-out;
}
.sg-skymenu[hidden] { display: none; }
@keyframes sg-skymenu-in { from { opacity: 0; transform: translateX(8px) scale(.98); } }
.sg-skymenu__title {
	margin: 2px 8px 6px;
	font: 700 11px var(--font-ui);
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--muted);
}
.sg-rail .sg-skymenu__item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	height: auto;
	padding: 8px 10px;
	border-radius: 12px;
	text-align: left;
	color: var(--text);
	background: transparent;
	box-shadow: none;
}
.sg-rail .sg-skymenu__item .sg-icon { flex: none; width: 20px; height: 20px; }
.sg-skymenu__item span { display: grid; font: 600 13px var(--font-ui); letter-spacing: .06em; text-transform: uppercase; }
.sg-skymenu__item small { font: 400 12px var(--font-body, inherit); letter-spacing: 0; text-transform: none; color: var(--muted); }
.sg-rail .sg-skymenu__item:hover,
.sg-rail .sg-skymenu__item:focus-visible { background: var(--card-hover); color: var(--accent); box-shadow: none; outline: none; }
.sg-rail .sg-skymenu__item[aria-checked="true"] { background: var(--card); color: var(--accent); box-shadow: inset 0 0 0 1px var(--glass-border); }
.sg-skymenu__item[aria-checked="true"] small { color: var(--text); }
.sg-skymenu__item:first-of-type { margin-bottom: 6px; }
@media (max-height: 640px) and (min-width: 601px) {
	.sg-skymenu { width: 420px; grid-template-columns: 1fr 1fr; }
	.sg-skymenu__title { grid-column: 1 / -1; }
	.sg-skymenu__item:first-of-type { margin-bottom: 0; }
}

/* ---------- Stage ---------- */
.sg-stage {
	position: fixed;
	top: calc(var(--adminbar) + var(--header-h));
	left: 0;
	right: var(--rail-w);
	bottom: var(--footer-h);
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	perspective: 1600px;
	transition: filter .8s var(--ease), opacity .8s var(--ease), transform .8s var(--ease);
}
.sg-stage::before {
	content: "";
	position: absolute;
	inset: -6% -4%;
	z-index: 0;
	pointer-events: none;
	background: radial-gradient(ellipse 52% 48% at 50% 50%, var(--focus) 0%, transparent 80%);
	transition: background 1s ease;
}
.sg-has-panel .sg-stage {
	filter: blur(8px) saturate(.85);
	opacity: .42;
	transform: scale(.94);
	pointer-events: none;
}

.sg-s {
	--tw: min(calc((100vw - var(--rail-w) - 2 * var(--gutter) - 72px) / 6.6), calc((100svh - var(--adminbar) - var(--header-h) - var(--footer-h) - 60px) / 3.95), 270px);
	--th: calc(var(--tw) * .74);
	--gx: calc(var(--tw) * .2);
	--gy: calc(var(--tw) * .2);
	position: relative;
	display: grid;
	grid-template-columns: repeat(5, var(--tw));
	grid-template-rows: repeat(4, var(--th));
	column-gap: var(--gx);
	row-gap: var(--gy);
	transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transform-style: preserve-3d;
	transition: transform .7s var(--ease);
}

/* S stroke */
.sg-s__path {
	position: absolute;
	left: 0;
	top: 0;
	overflow: visible;
	pointer-events: none;
	z-index: 0;
}
.sg-s__path path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sg-s__glow {
	stroke: url(#sg-s-grad);
	stroke-width: 16;
	opacity: .35;
	filter: url(#sg-s-blur);
}
.sg-s__line {
	stroke: url(#sg-s-grad);
	stroke-width: 2.5;
	opacity: .9;
}
.sg-js .sg-s__line,
.sg-js .sg-s__glow {
	stroke-dasharray: calc(var(--s-len, 4000) * 1px);
	stroke-dashoffset: calc(var(--s-len, 4000) * 1px);
	transition: stroke-dashoffset 2.4s cubic-bezier(.6, .1, .2, 1) .15s;
}
.sg-js.sg-ready .sg-s__line,
.sg-js.sg-ready .sg-s__glow { stroke-dashoffset: 0; }
.sg-s__pulse {
	stroke: var(--pulse);
	stroke-width: 3.5;
	stroke-dasharray: 70px calc(var(--s-len, 4000) * 1px);
	stroke-dashoffset: 70px;
	opacity: 0;
	filter: drop-shadow(0 0 6px var(--s-a)) drop-shadow(0 0 14px var(--s-b));
}
.sg-ready .sg-s__pulse {
	opacity: 1;
	animation: sgPulse 6s linear 2.4s infinite;
}
.sg-ready .sg-s__pulse--2 { animation-delay: 5.4s; }
@keyframes sgPulse {
	from { stroke-dashoffset: 70px; }
	to { stroke-dashoffset: calc(var(--s-len, 4000) * -1px); }
}

/* Hero copy: centred brand lockup in the heart of the S, glowing with it */
.sg-hero {
	--hw: calc(var(--tw) * 3 + var(--gx) * 2);
	position: relative;
	grid-column: 2 / 5;
	grid-row: 2 / 4;
	align-self: center;
	justify-self: center;
	text-align: center;
	z-index: 3;
	pointer-events: none;
	padding: 10px 28px;
	isolation: isolate;
}

.sg-hero__name {
	margin: 0;
	font-family: var(--font-brand);
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	filter: drop-shadow(0 0 4px var(--hero-glow-a)) drop-shadow(0 0 16px var(--hero-glow-b));
}
.sg-hero__l1,
.sg-hero__l2 {
	display: block;
	color: var(--head);
	/* sheen band (moves like the pulse on the S) over the brand gradient */
	background-image:
		linear-gradient(100deg, transparent 42%, var(--pulse) 50%, transparent 58%),
		linear-gradient(var(--hero-ink), var(--hero-ink));
	background-size: 260% 100%, 100% 100%;
	background-repeat: no-repeat;
	background-position: 160% 0, 0 0;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.sg-hero__l1 {
	font-size: clamp(18px, calc(var(--hw) / 9.6), 92px);
	letter-spacing: .07em;
}
.sg-hero__l2 {
	margin-top: .32em;
	font-size: clamp(10px, calc(var(--hw) / 19), 46px);
	letter-spacing: .36em;
	padding-left: .36em; /* balance trailing letter-spacing so the line stays centred */
}
.sg-hero__tag {
	margin: 14px 0 0;
	padding-left: .34em;
	font: 700 clamp(9px, calc(var(--tw) * .062), 16px) var(--font-ui);
	letter-spacing: .34em;
	text-transform: uppercase;
	color: var(--hero-ink);
	opacity: .9;
}
.sg-hero__l1,
.sg-hero__l2 { -webkit-text-stroke: 0; }
.sg-ready .sg-hero__l1,
.sg-ready .sg-hero__l2 { animation: sgSheen 6s linear 2.4s infinite; }
.sg-ready .sg-hero__l2 { animation-delay: 2.6s; }
.sg-ready .sg-hero__name { animation: sgGlow 6s ease-in-out 2.4s infinite; }
@keyframes sgSheen {
	0% { background-position: 160% 0, 0 0; }
	35%, 100% { background-position: -60% 0, 0 0; }
}
@keyframes sgGlow {
	0%, 100% { filter: drop-shadow(0 0 4px var(--hero-glow-a)) drop-shadow(0 0 16px var(--hero-glow-b)); }
	18% { filter: drop-shadow(0 0 7px var(--hero-glow-a)) drop-shadow(0 0 30px var(--hero-glow-a)); }
}

.sg-hint {
	grid-column: 2 / 5;
	grid-row: 3;
	align-self: end;
	justify-self: center;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 8px 16px 8px 12px;
	border-radius: 999px;
	background: var(--glass-strong);
	border: 1px solid var(--glass-border);
	box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .45);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	font: 700 clamp(11px, calc(var(--tw) * .062), 16px) var(--font-ui);
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--text);
	z-index: 1;
	pointer-events: none;
}
.sg-hint span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 0 var(--glow);
	animation: sgPing 2s ease-out infinite;
}
@keyframes sgPing {
	0% { box-shadow: 0 0 0 0 var(--glow); }
	100% { box-shadow: 0 0 0 12px transparent; }
}
.sg-js .sg-hero,
.sg-js .sg-hint {
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .9s var(--ease) 1.2s, transform .9s var(--ease) 1.2s;
}
.sg-js.sg-ready .sg-hero,
.sg-js.sg-ready .sg-hint { opacity: 1; transform: none; }

/* ---------- Tiles ---------- */
.sg-tile {
	--delay: calc(var(--ds, 0) * 70ms + 150ms);
	grid-column: var(--dc);
	grid-row: var(--dr);
	position: relative;
	z-index: 2;
	display: block;
	color: var(--tile-text);
	text-decoration: none;
	transform-style: preserve-3d;
}
.sg-js .sg-tile {
	opacity: 0;
	translate: -22px 0;
	scale: .9;
	transition: opacity .8s var(--ease) var(--delay), translate .8s var(--ease) var(--delay), scale .8s var(--ease) var(--delay);
}
.sg-js.sg-ready .sg-tile {
	opacity: 1;
	translate: 0 0;
	scale: 1;
}

.sg-tile__frame {
	position: absolute;
	inset: 0;
	display: block;
	border-radius: 14px;
	overflow: hidden;
	background: var(--glass);
	border: 1px solid var(--glass-border);
	border-width: 1.5px;
	box-shadow: var(--tile-shadow), 0 0 0 1px hsl(var(--h) 66% 60% / .18), 0 0 26px -10px hsl(var(--h) 66% 60% / .55), inset 0 1px 0 rgba(255, 255, 255, .4);
	transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.sg-tile:hover .sg-tile__frame,
.sg-tile:focus-visible .sg-tile__frame {
	transform: translate3d(0, -6px, 40px);
	border-color: hsl(var(--h) 66% 70% / .9);
	box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6), 0 0 0 1px hsl(var(--h) 66% 65% / .5), 0 0 34px -6px hsl(var(--h) 66% 60% / .65);
}
.sg-tile.is-current .sg-tile__frame {
	border-color: var(--accent);
	box-shadow: 0 0 0 2px var(--accent), 0 0 30px -4px var(--glow);
}
.sg-tile:focus-visible { outline: none; }

/* HUD corner brackets */
.sg-tile__frame::before,
.sg-tile__frame::after {
	content: "";
	position: absolute;
	z-index: 4;
	width: 14px;
	height: 14px;
	border-color: hsl(var(--h) 66% 70%);
	border-style: solid;
	opacity: .9;
	pointer-events: none;
	transition: width .4s var(--ease), height .4s var(--ease);
}
.sg-tile__frame::before { top: 7px; left: 7px; border-width: 2px 0 0 2px; border-top-left-radius: 4px; }
.sg-tile__frame::after { top: 7px; right: 7px; border-width: 2px 2px 0 0; border-top-right-radius: 4px; }
.sg-tile:hover .sg-tile__frame::before,
.sg-tile:hover .sg-tile__frame::after { width: 22px; height: 22px; }

.sg-tile__img {
	position: absolute;
	inset: 0;
	display: block;
}
.sg-tile__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.05);
	transition: transform 1s var(--ease), filter .6s;
}
html[data-sky="night"] .sg-tile__img img,
html[data-sky="dusk"] .sg-tile__img img { filter: saturate(.85) brightness(.82); }
.sg-tile:hover .sg-tile__img img { transform: scale(1.14); filter: none; }

.sg-tile__tint {
	position: absolute;
	inset: 0;
	display: block;
	background: linear-gradient(150deg, hsl(var(--h) 66% 62% / var(--tint)), hsl(calc(var(--h) + 40) 66% 55% / .15) 55%, transparent 80%);
	mix-blend-mode: screen;
	transition: opacity .5s;
}
.sg-tile__shine {
	position: absolute;
	inset: 0;
	display: block;
	background: radial-gradient(circle at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, .55), transparent 48%);
	opacity: 0;
	transition: opacity .35s;
	mix-blend-mode: soft-light;
}
.sg-tile:hover .sg-tile__shine { opacity: 1; }

.sg-tile__scan {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .5) 50%, transparent 62%);
	transform: translateX(-130%);
	pointer-events: none;
}
.sg-ready .sg-tile__scan { animation: sgScan 9s ease-in-out infinite; animation-delay: calc(var(--ds, 0) * .38s + 3.2s); }
@keyframes sgScan {
	0% { transform: translateX(-130%); }
	14%, 100% { transform: translateX(130%); }
}
.sg-tile:hover .sg-tile__scan { animation: none; }

.sg-tile__meta {
	position: absolute;
	left: -1px;
	right: -1px;
	bottom: -2px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: calc(var(--tw) * .045) calc(var(--tw) * .055);
	background: var(--tile-label);
	border-top: 1px solid hsl(var(--h) 66% 65% / .45);
}
.sg-tile__meta::before {
	content: "";
	position: absolute;
	left: 0;
	top: -1px;
	width: 34%;
	height: 2px;
	background: linear-gradient(90deg, hsl(var(--h) 66% 55%), transparent);
}
.sg-tile__num {
	font: 700 clamp(10px, calc(var(--tw) * .062), 15px) var(--font-ui);
	letter-spacing: .12em;
	color: rgba(255, 255, 255, .78);
}

.sg-tile__label {
	font: 700 clamp(11px, calc(var(--tw) * .082), 21px)/1.08 var(--font-ui);
	letter-spacing: .07em;
	text-transform: uppercase;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.sg-tile__icon {
	margin-left: auto;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(24px, calc(var(--tw) * .155), 40px);
	height: clamp(24px, calc(var(--tw) * .155), 40px);
}
.sg-tile__icon .sg-hicon {
	width: 100%;
	height: 100%;
	stroke: rgba(255, 255, 255, .96);
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45));
}
.sg-tile__icon .sg-hicon .d { fill: #fff; fill-opacity: .24; stroke: none; }

.sg-extra {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: center;
}
.sg-extra .sg-tile {
	width: 150px;
	height: 100px;
	opacity: 1;
	translate: none;
	scale: 1;
}

/* ---------- Office beacon ---------- */
.sg-office {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 12;
	width: 0;
	height: 0;
	color: var(--text);
	text-decoration: none;
	transition: opacity .5s;
}
.sg-office[hidden] { display: none; }
.sg-has-panel .sg-office { opacity: 0; pointer-events: none; }
.sg-js .sg-office { opacity: 0; transition: opacity .8s ease 2.6s; }
.sg-js.sg-ready .sg-office { opacity: 1; }
.sg-js.sg-ready.sg-has-panel .sg-office,
.sg-has-panel .sg-office { opacity: 0; transition-delay: 0s; }
.sg-office::before {
	content: "";
	position: absolute;
	left: -18px;
	top: -18px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
}
.sg-office__dot {
	position: absolute;
	left: -6px;
	top: -6px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--accent);
	border: 2px solid rgba(255, 255, 255, .95);
	box-shadow: 0 0 14px 2px var(--glow);
}
.sg-office__dot::after {
	content: "";
	position: absolute;
	inset: -2px;
	border-radius: 50%;
	border: 2px solid var(--accent);
	animation: sgBeacon 2.4s ease-out infinite;
}
@keyframes sgBeacon {
	0% { transform: scale(1); opacity: .8; }
	100% { transform: scale(3.4); opacity: 0; }
}
.sg-office__label {
	position: absolute;
	left: 16px;
	top: -22px;
	display: block;
	padding: 7px 13px;
	border-radius: 11px;
	background: var(--glass);
	border: 1px solid var(--glass-border);
	box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .5);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	white-space: nowrap;
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity .3s, transform .3s var(--ease);
	pointer-events: none;
}
.sg-office__label b {
	display: block;
	font: 700 12px var(--font-ui);
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--accent);
}
.sg-office__label small {
	display: block;
	margin-top: 2px;
	font: 500 13px var(--font-body);
	color: var(--text);
}
.sg-office:hover .sg-office__label,
.sg-office:focus-visible .sg-office__label,
.sg-office.is-intro .sg-office__label { opacity: 1; transform: none; }
@media (max-width: 760px) { .sg-office { display: none; } }

/* ---------- Panel ---------- */
#sg-panel-mount {
	position: fixed;
	top: calc(var(--adminbar) + var(--header-h));
	left: 0;
	right: var(--rail-w);
	bottom: var(--footer-h);
	z-index: 30;
	display: flex;
	justify-content: center;
	padding: 4px var(--gutter) 12px;
	pointer-events: none;
}
.sg-has-panel #sg-panel-mount { pointer-events: auto; }

.sg-panel {
	position: relative;
	width: min(max(1200px, 74vw), 1640px, 100%);
	height: 100%;
	pointer-events: auto;
	transform-origin: left center;
	animation: sgOpen 1s var(--ease) .5s both;
}
.sg-panel[data-state="opening"] { animation: sgOpen .95s var(--ease) both; }
.sg-panel[data-state="open"] { animation: none; }
.sg-panel[data-state="closing"] { animation: sgClose .55s var(--ease) both; pointer-events: none; }

@keyframes sgOpen {
	0% { transform: translateX(-42px) scale(.985); }
	100% { transform: none; }
}
@keyframes sgClose {
	0% { opacity: 1; transform: none; }
	100% { opacity: 0; transform: translateX(42px) scale(.985); }
}

.sg-panel__frame {
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	border-radius: 22px;
	background: var(--glass);
	border: 1px solid var(--glass-border);
	box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .3);
	overflow: hidden;
}
/* HUD corners */
.sg-panel__frame::before,
.sg-panel__frame::after {
	content: "";
	position: absolute;
	z-index: 6;
	width: 26px;
	height: 26px;
	border: 0 solid hsl(var(--h, 220) 66% 66%);
	pointer-events: none;
}
.sg-panel__frame::before { top: 10px; left: 10px; border-width: 2px 0 0 2px; border-top-left-radius: 8px; }
.sg-panel__frame::after { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; border-bottom-right-radius: 8px; }

/* Light bar leading the left-to-right reveal */
.sg-panel__sweep {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 7;
	width: 3px;
	background: linear-gradient(transparent, hsl(var(--h, 200) 66% 75%), transparent);
	box-shadow: 0 0 28px 8px hsl(var(--h, 200) 66% 60% / .55);
	opacity: 0;
	pointer-events: none;
}
.sg-panel:not([data-state]) .sg-panel__sweep { animation: sgSweep 1s var(--ease) .5s both; }
.sg-panel[data-state="opening"] .sg-panel__sweep { animation: sgSweep .95s var(--ease) both; }
@keyframes sgSweep {
	0% { left: 0; opacity: 1; }
	85% { opacity: 1; }
	100% { left: calc(100% - 3px); opacity: 0; }
}

.sg-panel__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 28px 18px 30px;
	border-bottom: 1px solid var(--glass-border);
}
.sg-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font: 600 12px var(--font-ui);
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--muted);
}
.sg-crumbs { color: var(--accent); }
.sg-crumbs a {
	color: var(--accent);
	text-decoration: none;
	opacity: .85;
}
.sg-crumbs a:hover { color: var(--accent-2); opacity: 1; }
.sg-crumbs__current { color: var(--accent-2); }
.sg-panel__title {
	margin: 6px 0 0;
	font-family: var(--font-brand);
	font-weight: 700;
	font-size: clamp(20px, 2.4vw, 34px);
	line-height: 1.15;
	letter-spacing: .05em;
	color: var(--head);
	background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 85%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	outline: none;
}
.sg-panel__close {
	flex: none;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--card);
	border: 1px solid var(--glass-border);
	color: var(--text);
	transition: transform .35s var(--ease), color .25s, box-shadow .25s;
}
.sg-panel__close:hover {
	transform: rotate(90deg);
	color: var(--accent);
	box-shadow: 0 0 22px -4px var(--glow);
}

.sg-panel__body {
	flex: 1;
	min-height: 0;
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
}
.sg-panel__body.no-side { grid-template-columns: minmax(0, 1fr); }

.sg-panel__side {
	min-height: 0;
	overflow: auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 20px 18px 20px 22px;
	border-right: 1px solid var(--glass-border);
	scrollbar-width: thin;
}
.sg-side__tile {
	position: relative;
	display: block;
	flex: none;
	aspect-ratio: 4 / 3;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--glass-border);
	color: var(--tile-text);
	text-decoration: none;
}
.sg-side__tile {
	background:
		radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 62%),
		linear-gradient(150deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent-2) 14%, transparent));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 16px 36px -22px var(--glow);
}
.sg-side__icon {
	position: absolute;
	inset: 0 0 34px;
	z-index: 2;
	display: grid;
	place-items: center;
}
.sg-side__icon .sg-hicon {
	width: 44%;
	height: auto;
	filter: drop-shadow(0 0 10px var(--glow));
	animation: sgFloat 6s ease-in-out infinite;
}
@keyframes sgFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-4px); }
}
.sg-side__tile::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%);
	background-size: 250% 100%;
	animation: sgHoloShine 7s ease-in-out infinite;
	pointer-events: none;
}
.sg-side__tile::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(150deg, hsl(var(--h) 66% 62% / var(--tint)), transparent 70%);
	mix-blend-mode: screen;
}
.sg-side__label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 8px 12px;
	background: var(--tile-label);
	font: 700 14px var(--font-ui);
	letter-spacing: .12em;
	text-transform: uppercase;
}
.sg-subnav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.sg-subnav a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border-radius: 10px;
	color: var(--text);
	text-decoration: none;
	font: 600 14.5px/1.25 var(--font-ui);
	letter-spacing: .06em;
	text-transform: uppercase;
	transition: background-color .2s, color .2s, padding .25s var(--ease);
}
.sg-subnav a::before {
	content: "";
	flex: none;
	width: 10px;
	height: 2px;
	border-radius: 2px;
	background: var(--muted);
	opacity: .5;
	transition: width .25s var(--ease), background-color .2s, opacity .2s;
}
.sg-subnav a:hover {
	background: var(--card);
	color: var(--accent);
}
.sg-subnav a:hover::before { width: 16px; background: var(--accent); opacity: 1; }
.sg-subnav a.is-current {
	background: var(--brand-grad);
	color: #fff;
	box-shadow: 0 10px 24px -14px var(--glow);
}
.sg-subnav a.is-current::before { width: 16px; background: #fff; opacity: 1; }

.sg-panel__content {
	min-height: 0;
	overflow: auto;
	padding: 26px 32px 40px;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--glass-border) transparent;
	transition: opacity .18s ease, transform .18s ease;
}
.sg-panel__content.is-leaving { transform: translateX(14px); }
.sg-panel__content.is-leaving .sg-card > *,
.sg-panel__content.is-leaving .sg-explore,
.sg-panel__content.is-leaving .sg-pager { opacity: 0; transition: opacity .16s ease; }

/* ---------- Content cards ---------- */
.sg-cards {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: 1180px;
}
.sg-card {
	position: relative;
	padding: 24px 28px;
	border-radius: var(--radius);
	background: var(--card);
	border: 1px solid var(--glass-border);
	box-shadow: 0 16px 40px -28px rgba(0, 0, 0, .5);
	color: var(--text);
	font: 400 15.5px/1.72 var(--font-body);
	animation: sgCardIn .7s var(--ease) both;
	animation-delay: calc(var(--i, 0) * 80ms + .3s);
}
.sg-panel:not([data-state]) .sg-card,
.sg-panel:not([data-state]) .sg-explore li { animation-delay: calc(var(--i, 0) * 80ms + 1.15s); }
@keyframes sgCardIn {
	from { transform: translateY(12px); }
	to { transform: none; }
}
@keyframes sgTextIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}
.sg-card::after {
	content: "";
	display: table;
	clear: both;
}
.sg-card::before {
	content: "";
	position: absolute;
	left: -1px;
	top: 22px;
	width: 3px;
	height: 26px;
	border-radius: 0 3px 3px 0;
	background: linear-gradient(var(--s-a), var(--s-c));
}
.sg-card h3 {
	margin: 0 0 12px;
	font: 700 21px/1.2 var(--font-ui);
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--head);
}
.sg-card h4 {
	margin: 22px 0 6px;
	font: 700 16.5px/1.3 var(--font-ui);
	letter-spacing: .04em;
	color: var(--accent-2);
}
.sg-card h3 + h4,
.sg-card .sg-figure + h4 { margin-top: 4px; }
.sg-card p { margin: 0 0 12px; }
.sg-card > :last-child { margin-bottom: 0; }
.sg-card a { color: var(--accent); text-underline-offset: 3px; }
.sg-card ul,
.sg-card ol {
	margin: 4px 0 14px;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 6px;
}
.sg-card ul:has(li:nth-child(8)) {
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	column-gap: 28px;
}
.sg-card li {
	position: relative;
	padding-left: 22px;
}
.sg-card li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: .8em;
	width: 9px;
	height: 2px;
	border-radius: 2px;
	background: var(--accent);
}
.sg-figure {
	float: right;
	max-width: 36%;
	margin: 2px 0 12px 24px !important;
}
.sg-figure img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	border: 1px solid var(--glass-border);
	box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .55);
}
/* Holo icon badge (replaces content photos) */
.sg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sg-hicon .d { fill: url(#sg-ic-grad); fill-opacity: .2; stroke: none; }
.sg-card .sg-figure.sg-holo {
	float: right;
	position: relative;
	display: grid;
	place-items: center;
	width: clamp(84px, 9vw, 128px);
	max-width: none;
	aspect-ratio: 1;
	margin: 2px 0 12px 26px !important;
	border-radius: 26%;
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 68%),
		linear-gradient(150deg, color-mix(in srgb, var(--accent) 14%, transparent), color-mix(in srgb, var(--accent-2) 14%, transparent));
	border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 32px -18px var(--glow), 0 0 30px -14px var(--glow);
}
.sg-holo .sg-hicon {
	position: relative;
	z-index: 1;
	width: 54%;
	height: auto;
	filter: drop-shadow(0 0 8px var(--glow));
}
.sg-holo::before,
.sg-holo::after {
	content: "";
	position: absolute;
	width: 12px;
	height: 12px;
	border: 0 solid color-mix(in srgb, var(--accent) 60%, transparent);
	pointer-events: none;
}
.sg-holo::before { top: 9px; left: 9px; border-width: 1.5px 0 0 1.5px; border-top-left-radius: 5px; }
.sg-holo::after { bottom: 9px; right: 9px; border-width: 0 1.5px 1.5px 0; border-bottom-right-radius: 5px; }
.sg-card:hover .sg-holo .sg-hicon { animation: sgFloat 2.4s ease-in-out infinite; }
@keyframes sgHoloShine {
	0%, 55% { background-position: 160% 0; }
	100% { background-position: -60% 0; }
}
.sg-placeholder {
	position: relative;
	margin: 6px 0 0 !important;
	padding: 26px 16px 12px;
	border: 1px dashed var(--accent);
	border-radius: 12px;
	background: hsl(var(--h, 220) 66% 60% / .07);
	color: var(--muted);
	font-size: 14px;
}
.sg-placeholder::before {
	content: "Placeholder";
	position: absolute;
	top: 8px;
	left: 16px;
	font: 700 10px var(--font-ui);
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--accent);
}
.sg-card.is-placeholder::before { display: none; }

/* Contact block */
.sg-contact {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
	margin: 8px 0 16px;
}
.sg-contact__office {
	padding: 16px 18px;
	border-radius: 14px;
	background: var(--card-hover);
	border: 1px solid var(--glass-border);
}
.sg-contact__office h4 { margin: 0 0 8px !important; }
.sg-contact__row {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0 0 6px !important;
	font-size: 14.5px;
}
.sg-contact__row .sg-icon { margin-top: 3px; color: var(--accent); width: 18px; height: 18px; }
.sg-contact__row a { color: var(--text); text-decoration: none; }
.sg-contact__row a:hover { color: var(--accent); }

/* Request card */
.sg-request {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 18px 28px;
	align-items: end;
	margin: 18px 0 4px;
	padding: 18px 20px;
	border-radius: 14px;
	background: var(--card-hover);
	border: 1px solid var(--glass-border);
}
.sg-request h4 { margin: 0 0 4px !important; }
.sg-request p { margin: 0 0 6px !important; color: var(--muted); font-size: 14px; }
.sg-request ul { margin: 0 !important; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important; font-size: 14px; }
.sg-request__actions { display: flex; flex-direction: column; gap: 8px; }
.sg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 18px;
	border-radius: 999px;
	background: var(--brand-grad);
	color: #fff !important;
	text-decoration: none !important;
	font: 700 13px var(--font-ui);
	letter-spacing: .12em;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: 0 10px 24px -12px var(--glow);
	transition: transform .25s var(--ease), box-shadow .25s;
}
.sg-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px var(--glow); }
.sg-btn .sg-icon { width: 17px; height: 17px; }
.sg-btn--ghost {
	background: transparent;
	color: var(--text) !important;
	border: 1px solid var(--glass-border);
	box-shadow: none;
}
@media (max-width: 760px) {
	.sg-request { grid-template-columns: 1fr; }
}

/* Section explore grid */
.sg-explore {
	max-width: 1180px;
	margin-top: 30px;
}
.sg-explore__title {
	margin: 0 0 12px;
	font: 700 13px var(--font-ui);
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--muted);
}
.sg-explore__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 12px;
}
.sg-explore li {
	animation: sgCardIn .7s var(--ease) both;
	animation-delay: calc(var(--i, 0) * 60ms + .45s);
}
.sg-explore a {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 100%;
	padding: 15px 16px;
	border-radius: 14px;
	background: var(--card);
	border: 1px solid var(--glass-border);
	color: var(--text);
	text-decoration: none;
	font: 700 15px/1.2 var(--font-ui);
	letter-spacing: .05em;
	text-transform: uppercase;
	transition: transform .3s var(--ease), border-color .3s, background-color .3s, box-shadow .3s;
}
.sg-explore a:hover {
	transform: translateX(4px);
	border-color: var(--accent);
	background: var(--card-hover);
	box-shadow: 0 0 24px -8px var(--glow);
}
.sg-explore__num {
	font-size: 12px;
	color: var(--accent);
	letter-spacing: .12em;
}
.sg-explore__name { flex: 1; }
.sg-explore .sg-icon {
	width: 18px;
	height: 18px;
	color: var(--muted);
	transition: color .3s, transform .3s var(--ease);
}
.sg-explore a:hover .sg-icon { color: var(--accent); transform: translateX(3px); }

/* Pager */
.sg-pager {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	max-width: 1180px;
	margin-top: 26px;
}
.sg-pager a {
	display: flex;
	flex-direction: column;
	gap: 2px;
	max-width: 48%;
	padding: 12px 16px;
	border-radius: 12px;
	background: var(--card);
	border: 1px solid var(--glass-border);
	color: var(--text);
	text-decoration: none;
	font: 700 14px/1.25 var(--font-ui);
	letter-spacing: .05em;
	text-transform: uppercase;
	transition: border-color .3s, box-shadow .3s;
}
.sg-pager a:hover { border-color: var(--accent); box-shadow: 0 0 22px -8px var(--glow); }
.sg-pager small {
	font-size: 11px;
	letter-spacing: .24em;
	color: var(--muted);
}
.sg-pager__next { margin-left: auto; text-align: right; }

/* Section chips */
.sg-chips {
	flex: none;
	position: relative;
	z-index: 2;
	border-bottom: 1px solid var(--glass-border);
	padding: 16px 20px 10px 30px;
	background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent);
}
.sg-chips::-webkit-scrollbar { display: none; }
.sg-chips li { min-width: 0; }
.sg-chips ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 6px;
}
.sg-chip {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 12px 4px 4px;
	border-radius: 10px;
	border: 1px solid transparent;
	color: var(--muted);
	text-decoration: none;
	white-space: nowrap;
	font: 700 12px var(--font-ui);
	letter-spacing: .06em;
	text-transform: uppercase;
	transition: color .2s, background-color .2s, border-color .2s;
	min-width: 0;
}
.sg-chip span {
	overflow: hidden;
	text-overflow: ellipsis;
}
.sg-chip__ic {
	flex: none;
	display: grid;
	place-items: center;
	width: 34px;
	height: 28px;
	border-radius: 8px;
	background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent-2) 14%, transparent));
	border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
	opacity: .8;
	transition: opacity .2s, box-shadow .2s;
}
.sg-chip__ic .sg-hicon { width: 19px; height: 19px; }
.sg-chip:hover .sg-chip__ic { opacity: 1; }
.sg-chip:hover { color: var(--text); background: var(--card); }
.sg-chip.is-current {
	color: var(--text);
	background: var(--card-hover);
	border-color: hsl(var(--h) 66% 65% / .7);
	box-shadow: 0 0 18px -8px hsl(var(--h) 66% 60%);
}
.sg-chip.is-current .sg-chip__ic { opacity: 1; box-shadow: 0 0 14px -4px var(--glow); }

/* ---------- Footer ---------- */
.sg-footer {
	position: fixed;
	left: 0;
	right: var(--rail-w);
	bottom: 0;
	z-index: 20;
	height: var(--footer-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 0 var(--gutter);
	font: 600 10.5px var(--font-ui);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
}
.sg-footer__copy { margin: 0; }
.sg-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 18px;
}
.sg-footer__credit {
	padding-left: 18px;
	border-left: 1px solid var(--glass-border);
	opacity: .7;
	letter-spacing: .1em;
}
.sg-footer__credit a { font-weight: 700; }
.sg-credit { display: none; }
.sg-footer a {
	color: inherit;
	text-decoration: none;
}
.sg-footer a:hover { color: var(--accent); }

/* Type: Inter for reading text, Recharge for headings */
:root { --font-body: "Inter", "Segoe UI", system-ui, sans-serif; --font-tech: "Recharge", "Rajdhani", sans-serif; }
body { font-size: 16px; }
.sg-card { font-size: 16px !important; line-height: 1.72 !important; letter-spacing: 0; }
.sg-card h3 { font-family: var(--font-tech); font-weight: 700; font-size: 17px; letter-spacing: .06em; line-height: 1.35; text-transform: none; }
.sg-card h4 { font-family: var(--font-tech); font-weight: 700; font-size: 14px; letter-spacing: .04em; line-height: 1.4; }

/* ==========================================================================
   Holo windows – see-through panels, coloured translucent cards (Holocards)
   ========================================================================== */
.sg-panel__frame {
	background: transparent;
	box-shadow: 0 40px 90px -50px rgba(3, 30, 70, .55), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.sg-chips,
.sg-panel__head,
.sg-panel__side {
	background-color: rgba(var(--haze), var(--strip-a));
	-webkit-backdrop-filter: blur(12px) saturate(140%);
	backdrop-filter: blur(12px) saturate(140%);
}
.sg-panel__content { text-shadow: none; }

.sg-card {
	--c1: 17 91 148;
	--c2: 30 68 129;
	--text: #ffffff;
	--muted: rgba(255, 255, 255, .82);
	--accent: #d3ecff;
	--accent-2: #eedfff;
	--head: #ffffff;
	--card: rgba(255, 255, 255, .12);
	--card-hover: rgba(255, 255, 255, .18);
	--glass-border: rgba(255, 255, 255, .3);
	--glow: rgba(255, 255, 255, .35);
	background:
		linear-gradient(158deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 34%),
		linear-gradient(135deg, rgb(var(--c1) / var(--card-a)), rgb(var(--c2) / var(--card-a2)));
	-webkit-backdrop-filter: blur(4px) saturate(160%);
	backdrop-filter: blur(4px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, .32);
	box-shadow: 0 26px 50px -30px rgb(var(--c1) / .9), inset 0 1px 0 rgba(255, 255, 255, .35);
	color: #fff;
	font-size: 16px;
	text-shadow: 0 1px 3px rgba(0, 18, 48, .45), 0 0 1px rgba(0, 18, 48, .35);
	animation: sgCardIn .6s var(--ease) both;
	animation-delay: .1s;
}
.sg-cards .sg-card:nth-child(4n + 2) { --c1: 99 39 140; --c2: 59 42 140; }
.sg-cards .sg-card:nth-child(4n + 3) { --c1: 27 128 158; --c2: 17 91 148; }
.sg-cards .sg-card:nth-child(4n + 4) { --c1: 30 68 129; --c2: 99 39 140; }
.sg-panel:not([data-state]) .sg-card { animation-delay: .5s; }
.sg-card > * { animation: sgTextIn .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms + .25s); }
.sg-panel:not([data-state]) .sg-card > * { animation-delay: calc(var(--i, 0) * 50ms + .7s); }
.sg-card::before { background: rgba(255, 255, 255, .9); box-shadow: 0 0 10px rgba(255, 255, 255, .6); }
.sg-card h3 { color: #fff; }
.sg-card h4 { color: #dcefff; }
.sg-card a { color: #fff; text-decoration-color: rgba(255, 255, 255, .55); }
.sg-card strong { color: #fff; }
.sg-card li::before { background: rgba(255, 255, 255, .85); }
.sg-card .sg-btn { background: #fff; color: var(--brand-blue) !important; text-shadow: none; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .5); }
.sg-card .sg-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .55); }
.sg-card .sg-hicon { stroke: #fff; }
.sg-card .sg-hicon .d { fill: #fff; fill-opacity: .16; }
.sg-card .sg-figure.sg-holo {
	background: linear-gradient(150deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06));
	border-color: rgba(255, 255, 255, .38);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 14px 30px -18px rgba(0, 0, 0, .45);
}
.sg-card .sg-holo::before,
.sg-card .sg-holo::after { border-color: rgba(255, 255, 255, .7); }
.sg-card .sg-holo .sg-hicon { filter: drop-shadow(0 0 8px rgba(255, 255, 255, .45)); }

/* Section explore grid + pager as small holo cards */
.sg-explore li { animation: sgCardIn .6s var(--ease) both; animation-delay: .15s; }
.sg-explore a,
.sg-pager a {
	background: linear-gradient(135deg, rgb(17 91 148 / var(--card-a)), rgb(99 39 140 / var(--card-a2)));
	border: 1px solid rgba(255, 255, 255, .3);
	color: #fff;
	box-shadow: 0 18px 36px -26px rgba(17, 91, 148, .9), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.sg-explore a:hover,
.sg-pager a:hover { background: linear-gradient(135deg, rgb(17 91 148 / .95), rgb(99 39 140 / .9)); border-color: rgba(255, 255, 255, .6); }
.sg-explore__num,
.sg-pager small { color: rgba(255, 255, 255, .78); }
.sg-explore .sg-icon,
.sg-explore a:hover .sg-icon { color: #fff; }
.sg-explore__title { color: var(--head); }

/* ---------- Responsive ---------- */
@media (max-height: 640px) and (min-width: 601px) {
	.sg-hero__tag { display: none; }
}
@media (max-height: 500px) and (orientation: landscape) {
	:root { --header-h: 54px; --footer-h: 26px; }
	.sg-brand { padding: 5px 10px; }
	.sg-brand img { height: 28px; }
	.sg-hud__date, .sg-hud__place { display: none !important; }
	.sg-hud__clock { font-size: 20px; }
	.sg-login { padding: 7px 12px; }
	.sg-hint { display: none; }
	.sg-hero { align-self: center; }
	.sg-tile__num { display: none; }
	.sg-rail { gap: 2px; padding: 5px; }
	.sg-rail a, .sg-rail button { width: 36px; height: 36px; }
	.sg-footer { font-size: 10px; }
	.sg-footer__copy { display: none; }
	.sg-panel__head { padding: 10px 18px 8px 20px; }
	.sg-panel__title { font-size: 20px; }
	.sg-crumbs { display: none; }
	.sg-panel__close { width: 36px; height: 36px; }
	.sg-panel__body { grid-template-columns: 200px minmax(0, 1fr); }
	.sg-side__tile { display: none; }
	.sg-chips { display: none; }
	.sg-panel__content { padding: 14px 18px 24px; }
}
@media (max-width: 380px) {
	.sg-tile__meta { padding: 4px 4px 5px; }
	.sg-tile__label { font-size: 8.6px !important; letter-spacing: .01em !important; hyphens: auto; -webkit-hyphens: auto; }
	.sg-hero__tag { display: none; }
	.sg-hint { font-size: 9px; padding: 6px 12px 6px 9px; }
}

@media (max-width: 1100px), (max-height: 760px) and (max-width: 1400px) {
	.sg-chips { padding: 8px 0 8px 12px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
	.sg-chips::-webkit-scrollbar { display: none; }
	.sg-chips ul { display: flex; padding-right: 48px; }
	.sg-chips li { flex: none; }
	.sg-chip span { overflow: visible; }
	.sg-figure { max-width: 30%; }
}
@media (max-width: 600px) {
	.sg-card .sg-figure { float: none; max-width: none; margin: 0 0 14px !important; }
	.sg-card .sg-figure img { width: 100%; max-height: 150px; object-fit: cover; }
	.sg-card .sg-figure.sg-holo { float: right; width: 72px; margin: 0 0 8px 14px !important; }
}

@media (min-width: 2200px) {
	:root { --header-h: 112px; --rail-w: 96px; --footer-h: 52px; --gutter: 48px; }
	.sg-brand img { height: 64px; }
	.sg-hud__clock { font-size: 40px; }
	.sg-hud__city, .sg-hud__sky span { font-size: 14px; }
	.sg-hud__coords, .sg-hud__date { font-size: 16px; }
	.sg-login { font-size: 15px; padding: 13px 24px; }
	.sg-rail a, .sg-rail button { width: 56px; height: 56px; }
	.sg-rail .sg-icon { width: 24px; height: 24px; }
	.sg-footer { font-size: 12px; }
}
@media (min-width: 1800px) {
	:root { --header-h: 96px; --gutter: 36px; }
	.sg-brand img { height: 54px; }
	.sg-panel__body { grid-template-columns: 320px minmax(0, 1fr); }
	.sg-cards,
	.sg-explore,
	.sg-pager { max-width: none; }
	.sg-card { font-size: 17px; padding: 28px 34px; }
	.sg-card h3 { font-size: 24px; }
	.sg-subnav a { font-size: 16px; }
}

@media (max-width: 1200px) {
	.sg-hud__sky { display: none !important; }
}

@media (max-width: 1000px) {
	.sg-hud__place { display: none !important; }
	.sg-hud > div:first-of-type { border-left: 0; }
	.sg-panel__body { grid-template-columns: 220px minmax(0, 1fr); }
	.sg-footer__tag { display: none; }
}

@media (max-width: 760px) {
	:root {
		--header-h: 64px;
		--rail-w: 0px;
		--footer-h: 76px;
		--gutter: 14px;
	}
	.sg-header { gap: 12px; padding-right: var(--gutter); }
	.sg-brand { padding: 6px 10px; border-radius: 12px; }
	.sg-brand img { height: 32px; }
	.sg-hud { display: none; }
	.sg-login { padding: 9px 12px; }
	.sg-login span { display: none; }

	.sg-rail {
		top: auto;
		right: auto;
		left: 50%;
		bottom: calc(10px + env(safe-area-inset-bottom));
		transform: translateX(-50%);
		flex-direction: row;
		padding: 6px;
	}
	.sg-rail [data-tip]::after { display: none; }
	.sg-rail__sep { width: 1px; height: 22px; margin: 0 4px; }
	.sg-skymenu {
		right: auto;
		left: 50%;
		bottom: calc(100% + 10px);
		transform: translateX(-50%);
		width: min(340px, calc(100vw - 32px));
		grid-template-columns: 1fr 1fr;
		animation: none;
	}
	.sg-skymenu__title { grid-column: 1 / -1; }
	.sg-skymenu__item:first-of-type { grid-column: 1 / -1; margin-bottom: 2px; }
	.sg-rail .sg-skymenu__item { padding: 8px; gap: 8px; }
	.sg-skymenu__item span { font-size: 12px; }
	.sg-skymenu__item small { font-size: 11px; }
	.sg-has-panel .sg-rail { opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: opacity .3s, transform .3s; }

	.sg-footer { display: none; }
	.sg-credit { display: block; margin: 22px 0 0; text-align: center; font: 600 10px var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); opacity: .75; }
	.sg-credit a { color: inherit; font-weight: 700; text-decoration: none; }

	.sg-has-panel #sg-panel-mount { bottom: 0; padding: 2px 8px calc(8px + env(safe-area-inset-bottom)); }
	.sg-panel__frame { border-radius: 18px; }
	.sg-panel__head { padding: 16px 16px 12px 18px; }
	.sg-crumbs { font-size: 10.5px; letter-spacing: .14em; gap: 6px; }
	.sg-panel__close { width: 40px; height: 40px; }
	.sg-panel__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
	.sg-panel__side {
		padding: 10px 12px;
		border-right: 0;
		border-bottom: 1px solid var(--glass-border);
		overflow: visible;
	}
	.sg-side__tile { display: none; }
	.sg-subnav { overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
	.sg-subnav::-webkit-scrollbar { display: none; }
	.sg-subnav ul { flex-direction: row; gap: 6px; }
	.sg-subnav a { white-space: nowrap; font-size: 13px; padding: 7px 12px; background: var(--card); border: 1px solid var(--glass-border); }
	.sg-subnav a::before { display: none; }
	.sg-panel__content { padding: 16px 14px 28px; }
	.sg-card { padding: 18px 18px; font-size: 15px !important; line-height: 1.7 !important; }
	.sg-card h3 { font-size: 18px; }
	.sg-figure { max-width: 42%; margin-left: 14px !important; }
	.sg-chips { padding: 8px 0 8px 10px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
	.sg-chips ul { display: flex; padding-right: 40px; }
	.sg-chips li { flex: none; }
}

/* S layout 4×5: phones and portrait tablets */
@media (max-width: 600px), (max-width: 1024px) and (orientation: portrait) {
	.sg-s {
		--tw: min(calc((100vw - var(--rail-w) - 2 * var(--gutter) - 3 * 18px) / 4), calc((100svh - var(--adminbar) - var(--header-h) - var(--footer-h) - 90px) / 5.3), 210px);
		--th: calc(var(--tw) * .82);
		--gx: 18px;
		--gy: 18px;
		grid-template-columns: repeat(4, var(--tw));
		grid-template-rows: repeat(5, var(--th));
	}
	.sg-tile {
		--delay: calc(var(--ms, 0) * 60ms + 150ms);
		grid-column: var(--mc);
		grid-row: var(--mr);
	}
	.sg-hero {
		--hw: calc(var(--tw) * 3 + var(--gx) * 2);
		grid-column: 2 / 5;
		grid-row: 2;
		align-self: center;
		justify-self: center;
		padding: 4px 6px;
	}
	.sg-hero__l1 { font-size: calc(var(--hw) / 9.2); }
	.sg-hero__l2 { font-size: calc(var(--hw) / 18.5); }
	.sg-hero__tag { margin-top: 8px; font-size: clamp(7.5px, calc(var(--tw) * .062), 13px); letter-spacing: .2em; padding-left: .2em; }
	.sg-hint {
		grid-column: 1 / 4;
		grid-row: 4;
		align-self: center;
	}
	.sg-tile__label { font-size: clamp(10.5px, calc(var(--tw) * .085), 18px); }
}

@media (max-width: 600px) {
	.sg-s {
		--tw: min(calc((100vw - 28px - 30px) / 4), calc((100svh - var(--adminbar) - 64px - 96px - 60px) / 5.4));
		--th: var(--tw);
		--gx: 10px;
		--gy: 10px;
	}
	.sg-tile__frame { border-radius: 12px; -webkit-box-reflect: unset; }
	.sg-tile__frame::before,
	.sg-tile__frame::after { width: 9px; height: 9px; top: 5px; }
	.sg-tile__frame::before { left: 5px; }
	.sg-tile__frame::after { right: 5px; }
	.sg-tile__meta { padding: 5px 6px; min-height: 40%; align-items: flex-end; }
	.sg-tile__num { display: none; }
	.sg-tile__label {
		font-size: 10.5px;
		line-height: 1.1;
		letter-spacing: .05em;
	}
	.sg-hint { font-size: 10px; letter-spacing: .18em; }
}

@media (max-height: 560px) and (min-width: 601px) {
	:root { --header-h: 60px; --footer-h: 30px; }
	.sg-brand img { height: 30px; }
	.sg-hud__clock { font-size: 22px; }
	.sg-s { --tw: min(13.2vw, calc((100svh - var(--adminbar) - 120px) / 3.2), 198px); }
	.sg-hero__tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .001ms !important;
		animation-delay: 0s !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		transition-delay: 0s !important;
	}
	.sg-s__pulse { display: none; }
}

/* Heading sizes on small screens */
@media (max-width: 760px) {
	.sg-card h3 { font-size: 15px; letter-spacing: .04em; }
	.sg-card h4 { font-size: 13px; }
}

/* Home tiles: labels in Recharge */
.sg-tile__label {
	font-family: var(--font-tech);
	font-weight: 700;
	font-size: clamp(8.5px, calc(var(--tw) * .062), 15px);
	line-height: 1.25;
	letter-spacing: .04em;
	text-transform: none;
}
@media (max-width: 600px), (max-width: 1024px) and (orientation: portrait) {
	.sg-tile__label { font-size: clamp(8px, calc(var(--tw) * .062), 13px); }
}
/* Phones: tiles are too narrow for a wide face – keep the original condensed label font */
@media (max-width: 600px) {
	.sg-tile__label { font-family: var(--font-ui); font-weight: 700; font-size: 10.5px; line-height: 1.1; letter-spacing: .05em; text-transform: uppercase; }
}
@media (max-width: 380px) {
	.sg-tile__label { font-size: 8.6px !important; letter-spacing: .01em !important; }
}
