/* =====================================================================
   Page Strategist "chrome" (ported from the Scalyr site): top bar, header,
   services mega menu, mobile menu, mobile CTA bar and the right-side scroll rail.
   ===================================================================== */
:root { --header-h-top: 84px; --green-text: #0b8048; }
html[data-theme="dark"] { --green-text: #3ccf83; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* ---------------------------------------------------------------- Top bar */
.topbar {
	background: var(--paper-2);
	color: var(--ink);
	border-bottom: 1px solid var(--line);
	font-size: 13px;
	position: relative;
	z-index: 101;
}
.topbar-inner {
	max-width: var(--frame);
	margin: 0 auto;
	padding: 0 var(--gutter);
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.topbar-offer { display: flex; align-items: center; gap: 10px; margin: 0; min-width: 0; white-space: nowrap; }
.topbar-offer .mono { font-size: 10.5px; color: var(--accent-text); }
.topbar-offer .pulse { width: 7px; height: 7px; flex: none; }
.topbar-sep { opacity: 0.35; }
.topbar-text { color: rgba(var(--fg-rgb), 0.72); overflow: hidden; text-overflow: ellipsis; }
.topbar-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--ink); }
.topbar-link .icon { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.topbar-link:hover .icon { transform: translateX(3px); }
.topbar-contact { list-style: none; display: flex; align-items: center; gap: 22px; }
.topbar-contact a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; text-decoration: none; color: rgba(var(--fg-rgb), 0.72); transition: color 0.2s; }
.topbar-contact a:hover { color: var(--ink); }
.topbar-contact .icon { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- Header */
.site-header {
	--hh: var(--header-h-top);
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(var(--bg-rgb), 0.86);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--line);
	transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Transparent while sitting over the homepage hero */
.site-header.on-hero:not(.is-scrolled):not(.mega-open) {
	background: transparent;
	border-bottom-color: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}
.site-header.is-scrolled { --hh: var(--header-h); box-shadow: 0 10px 30px -22px rgba(var(--shadow-rgb), 0.35); }

.header-inner {
	height: var(--hh);
	max-width: var(--frame);
	margin: 0 auto;
	padding: 0 var(--gutter);
	display: flex;
	align-items: center;
	gap: 20px;
	transition: height 0.45s var(--ease);
}


/* Brand: the "P." folded-page monogram + "page strategist." wordmark.
   Header uses the line mark (B2): the P draws itself on load and again on hover,
   and the dot pops in after it. Footer uses the solid tile (B). */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: none; color: var(--brand-text); }
.brand .mark { width: 36px; height: 36px; flex: none; overflow: visible; transition: width 0.45s var(--ease), height 0.45s var(--ease); }
.brand .mark .mk-line { stroke-dasharray: 100; stroke-dashoffset: 0; }
.brand .mark .mk-dot { transform-box: fill-box; transform-origin: center; }
.js .site-header .brand .mark .mk-line { animation: mk-draw 0.9s var(--ease) 0.25s backwards; }
.js .site-header .brand .mark .mk-dot { animation: mk-pop 0.45s var(--ease) 1s backwards; }
.brand:hover .mark .mk-line { animation: mk-draw 0.8s var(--ease); }
.brand:hover .mark .mk-dot { animation: mk-pop 0.4s var(--ease) 0.55s backwards; }
@keyframes mk-draw { from { stroke-dashoffset: 100; } }
@keyframes mk-pop { from { transform: scale(0); } }
@media (prefers-reduced-motion: reduce) { .brand .mark .mk-line, .brand .mark .mk-dot { animation: none !important; } }
.wordmark { display: inline-flex; flex-direction: column; gap: 5px; line-height: 1; white-space: nowrap; }
.wordmark-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.04em; line-height: 0.85; }
.wordmark-role { font-family: var(--font-mono); font-weight: 500; font-size: 7.5px; letter-spacing: 0.38em; text-transform: uppercase; color: var(--muted); padding-left: 1px; }
.site-header .wordmark-role { transition: opacity 0.35s, max-height 0.45s var(--ease); max-height: 10px; overflow: hidden; }
.site-header.is-scrolled .brand .mark { width: 32px; height: 32px; }
.site-header.is-scrolled .wordmark-role { opacity: 0; max-height: 0; }
.site-header.is-scrolled .wordmark { gap: 0; }
.footer-brand .mark { width: 44px; height: 44px; }
.footer-brand .wordmark-name { font-size: 24px; }
.footer-brand .wordmark-role { font-size: 8.5px; }
/* Primary nav with sliding pill + rolling labels */
.primary-nav { position: relative; flex: 1; display: flex; justify-content: center; }
.nav-list { list-style: none; display: flex; gap: 2px; position: relative; z-index: 1; }
.nav-list > li { position: relative; }
.nav-list a {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 13px;
	border-radius: 8px;
	font-family: var(--font-mono);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink-2);
	transition: color 0.3s;
}
.nav-list a.is-pill { color: var(--paper); }
.nav-roll { position: relative; display: block; overflow: hidden; height: 1.4em; line-height: 1.4em; }
.nav-roll > span { display: block; transition: transform 0.45s var(--ease); }
.nav-roll > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
.nav-list a:hover .nav-roll > span,
.nav-list a:focus-visible .nav-roll > span { transform: translateY(-100%); }
.nav-caret { width: 13px; height: 13px; transition: transform 0.35s var(--ease); }
.mega-open .nav-caret { transform: rotate(180deg); }

.nav-pill {
	position: absolute;
	top: 50%;
	left: 0;
	height: 34px;
	width: 0;
	border-radius: 8px;
	background: var(--ink);
	opacity: 0;
	transform: translateY(-50%);
	transition: left 0.45s var(--ease), width 0.45s var(--ease), opacity 0.3s;
	pointer-events: none;
}

/* Right-hand actions */
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.header-call {
	display: flex; align-items: center; gap: 10px;
	padding: 0 12px 0 4px;
	height: 42px;
	text-decoration: none;
	border-radius: 999px;
	transition: background 0.25s;
}
.header-call:hover { background: rgba(var(--fg-rgb), 0.05); }
.header-call-ico {
	width: 34px; height: 34px;
	display: grid; place-items: center;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	position: relative;
}
.header-call-ico::after {
	content: "";
	position: absolute; top: 1px; right: 1px;
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 0 2px var(--paper);
}
.header-call-ico .icon { width: 16px; height: 16px; }
.header-call:hover .header-call-ico .icon { animation: ring 0.6s var(--ease); }
@keyframes ring { 20%, 60% { transform: rotate(-14deg); } 40%, 80% { transform: rotate(14deg); } }
.header-call-text { display: flex; flex-direction: column; line-height: 1.15; }
.header-call-text .mono { font-size: 9.5px; color: var(--muted); }
.header-call-text strong { font-size: 14px; letter-spacing: -0.01em; }

.header-wa {
	display: inline-flex; align-items: center; gap: 8px;
	height: 42px;
	padding: 0 16px 0 13px;
	border-radius: 999px;
	border: 1px solid rgba(17, 163, 90, 0.4);
	color: var(--green-text);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.header-wa:hover { background: var(--green); border-color: var(--green); color: #fff; }
.header-wa .icon { width: 18px; height: 18px; }

.header-cta {
	position: relative;
	display: inline-flex; align-items: center; gap: 10px;
	height: 42px;
	padding: 0 18px 0 20px;
	border-radius: 999px;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--font-mono);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	overflow: hidden;
	isolation: isolate;
	box-shadow: 0 10px 22px -12px rgba(var(--shadow-rgb), 0.6);
	transition: background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
/* light sweep every few seconds to draw the eye */
.header-cta::before {
	content: "";
	position: absolute; inset: 0;
	z-index: -1;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
	transform: translateX(-120%);
	animation: sweep 6s ease-in-out 2s infinite;
}
@keyframes sweep { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.header-cta:hover { background: var(--accent); transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(31, 79, 224, 0.7); }
.header-cta .icon { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.header-cta:hover .icon { transform: translateX(3px); }
.header-cta-label { display: block; overflow: hidden; height: 1.4em; line-height: 1.4em; }
.header-cta-label > span { display: block; position: relative; transition: transform 0.45s var(--ease); }
.header-cta-label > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
.header-cta:hover .header-cta-label > span { transform: translateY(-100%); }

.nav-toggle {
	display: none;
	width: 44px; height: 44px;
	border-radius: 12px;
	background: var(--ink);
	border: 0;
	cursor: pointer;
	place-items: center;
}
.burger { position: relative; display: block; width: 18px; height: 12px; }
.burger i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--paper); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.burger i:first-child { top: 0; }
.burger i:last-child { top: 10px; }
.menu-open .burger i:first-child { top: 5px; transform: rotate(45deg); }
.menu-open .burger i:last-child { top: 5px; transform: rotate(-45deg); }

/* Scroll progress line (shown when the side rail is hidden) */
.header-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; display: none; }
.header-progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* ---------------------------------------------------------------- Mega menu */
.mega {
	position: absolute;
	left: 0; right: 0; top: 100%;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 30px 60px -30px rgba(var(--shadow-rgb), 0.35);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0.3s;
}
.mega-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner {
	max-width: var(--frame);
	margin: 0 auto;
	padding: 26px var(--gutter) 30px;
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 26px;
}
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mega-item {
	display: flex; align-items: center; gap: 14px;
	padding: 14px;
	border-radius: 14px;
	text-decoration: none;
	border: 1px solid transparent;
	opacity: 0;
	transform: translateY(6px);
	transition: background 0.25s, border-color 0.25s, opacity 0.4s, transform 0.4s var(--ease);
}
.mega-open .mega-item { opacity: 1; transform: none; }
.mega-open .mega-item:nth-child(2) { transition-delay: 0s, 0s, 40ms, 40ms; }
.mega-open .mega-item:nth-child(3) { transition-delay: 0s, 0s, 80ms, 80ms; }
.mega-open .mega-item:nth-child(4) { transition-delay: 0s, 0s, 120ms, 120ms; }
.mega-open .mega-item:nth-child(5) { transition-delay: 0s, 0s, 160ms, 160ms; }
.mega-open .mega-item:nth-child(6) { transition-delay: 0s, 0s, 200ms, 200ms; }
.mega-item:hover { background: var(--card); border-color: var(--line); }
.mega-item .chip-ico { flex: none; }
.mega-item.c-yellow .chip-ico { color: var(--ink); }
.mega-text { display: flex; flex-direction: column; min-width: 0; }
.mega-text strong { font-size: 16px; letter-spacing: -0.015em; }
.mega-text span { font-size: 13.5px; color: var(--muted); }
.mega-item > .icon { margin-left: auto; width: 16px; height: 16px; color: var(--muted); opacity: 0; transform: translateX(-6px); transition: opacity 0.25s, transform 0.25s var(--ease); }
.mega-item:hover > .icon { opacity: 1; transform: none; color: var(--c); }
.mega-aside { padding: 22px 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.mega-aside .kicker { margin-bottom: 10px; }
.mega-aside h3 { font-size: 24px; letter-spacing: -0.03em; margin-bottom: 8px; }
.mega-aside h3 em { font-family: var(--font-display); font-style: normal; font-weight: 500; color: var(--accent-text); }
.mega-aside p { font-size: 14.5px; color: var(--ink-2); margin-bottom: 16px; }
.mega-aside .btn { height: 44px; width: 100%; justify-content: center; }
.mega-all { display: block; text-align: center; margin-top: 12px; text-decoration: none; color: var(--muted); }
.mega-all:hover { color: var(--ink); }

/* ---------------------------------------------------------------- Mobile menu */
.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 99;
	background: var(--paper);
	padding-top: var(--menu-top, 110px);
	overflow-y: auto;
	visibility: hidden;
	clip-path: inset(0 0 100% 0);
	transition: clip-path 0.6s var(--ease), visibility 0.6s;
}
.admin-bar .mobile-menu { top: 46px; }
.menu-open .mobile-menu { visibility: visible; clip-path: inset(0 0 0 0); }
.menu-open { overflow: hidden; }
.mobile-menu-inner { padding: 24px var(--gutter) 40px; display: grid; gap: 34px; }
.m-nav { list-style: none; counter-reset: m; border-top: 1px solid var(--line); }
.m-nav li { border-bottom: 1px solid var(--line); overflow: hidden; }
.m-nav a {
	display: flex; align-items: baseline; gap: 16px;
	padding: 14px 0;
	font-size: clamp(30px, 8vw, 44px);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.05;
	text-decoration: none;
	transform: translateY(110%);
	transition: transform 0.6s var(--ease), color 0.2s;
}
.m-nav a::before {
	counter-increment: m;
	content: counter(m, decimal-leading-zero);
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.1em;
	color: var(--muted);
}
.m-nav a:hover, .m-nav .current-menu-item a:not([href*="#"]) { color: var(--accent-text); }
.menu-open .m-nav a { transform: none; }
.menu-open .m-nav li:nth-child(1) a { transition-delay: 0.12s; }
.menu-open .m-nav li:nth-child(2) a { transition-delay: 0.17s; }
.menu-open .m-nav li:nth-child(3) a { transition-delay: 0.22s; }
.menu-open .m-nav li:nth-child(4) a { transition-delay: 0.27s; }
.menu-open .m-nav li:nth-child(5) a { transition-delay: 0.32s; }
.menu-open .m-nav li:nth-child(6) a { transition-delay: 0.37s; }
.menu-open .m-nav li:nth-child(7) a { transition-delay: 0.42s; }
.m-services .mono { margin-bottom: 12px; }
.m-services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-services-grid a { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.m-services-grid i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.m-actions { display: grid; gap: 10px; }
.m-actions .btn { justify-content: center; width: 100%; }
.m-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-actions .mono { text-align: center; margin-top: 6px; }
.m-services, .m-actions { opacity: 0; transform: translateY(14px); transition: opacity 0.5s 0.35s, transform 0.6s var(--ease) 0.35s; }
.menu-open .m-services, .menu-open .m-actions { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Mobile CTA bar */
.mobile-cta {
	position: fixed;
	left: 12px; right: 12px; bottom: 12px;
	z-index: 98;
	display: none;
	grid-template-columns: auto 1fr;
	gap: 8px;
	padding: 8px;
	border-radius: 18px;
	background: rgba(var(--bg-rgb), 0.9);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid var(--line);
	box-shadow: 0 20px 40px -18px rgba(var(--shadow-rgb), 0.45);
	transform: translateY(140%);
	transition: transform 0.55s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 15px; }
.mobile-cta .icon { width: 18px; height: 18px; }
.mobile-cta-wa { padding: 0 16px; background: var(--green); color: #fff; }
.mobile-cta-main { background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: 12px !important; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------------------------------------------------------------- Right rail */
.rail {
	position: fixed;
	right: 0;
	top: var(--rail-top, 0px);
	bottom: 0;
	width: 60px;
	z-index: 90;
	cursor: crosshair;
	overflow: hidden;
	touch-action: none;
	user-select: none;
}
.rail-bg {
	position: absolute; inset: 0;
	background: rgba(var(--bg-rgb), 0.55);
	backdrop-filter: blur(9px);
	-webkit-backdrop-filter: blur(9px);
	mask-image: linear-gradient(to left, #000 40%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
	-webkit-mask-image: linear-gradient(to left, #000 40%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
	transition: background 0.5s;
}
.rail-strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.rail-tick { position: absolute; right: 0; height: 1px; width: 10px; background: var(--ink); opacity: 0.32; transform-origin: right center; }
.rail-tick.is-major { width: 18px; opacity: 0.75; }
.rail-num { position: absolute; right: 24px; transform: translateY(-50%); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; color: var(--ink); opacity: 0.45; }
.rail-marker { position: absolute; right: 0; width: 60px; height: 3px; margin-top: -1.5px; background: var(--ink); will-change: transform; }
.rail-odo {
	position: absolute; right: 6px;
	margin-top: -20px;
	display: flex;
	height: 13px;
	overflow: hidden;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	line-height: 13px;
	color: var(--ink);
	will-change: transform;
}
.rail-odo-col { display: flex; flex-direction: column; transition: transform 0.55s var(--ease); }
.rail-odo-pct { margin-left: 1px; opacity: 0.5; }

/* Flying section labels */
.rail-labels { position: fixed; inset: 0; z-index: 95; pointer-events: none; }
.rail-letter {
	position: absolute; top: 0; left: 0;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 34px;
	line-height: 1;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	white-space: pre;
	color: color-mix(in srgb, var(--ink) 32%, var(--paper));
	text-shadow: 0 0 4px var(--paper), 0 0 10px var(--paper);
	pointer-events: auto;
	cursor: pointer;
	will-change: transform;
	transition: color 0.35s;
}
.rail-letter.is-mono { font-family: var(--font-display); font-weight: 700; text-transform: none; letter-spacing: 0; }
.rail-letter.is-active { color: var(--ink); }
.rail-letter.is-home { text-shadow: none; color: var(--ink); }

/* The flying label takes the place of the stuck bar's right-hand caption */
.rail-on .section-bar > .mono:last-child:not(:first-child) { transition: opacity 0.3s; }
.rail-on .section-bar.is-stuck > .mono:last-child:not(:first-child) { opacity: 0; }

/* Hide the real hero wordmark: its letters are drawn by the rail layer */
.rail-on [data-rail-home] { color: transparent; }

/* Give content room for the rail on narrower desktops */
@media (min-width: 1100px) and (max-width: 1480px) {
	.rail-on { --frame-pr: calc(var(--gutter) + 46px); }
	.rail-on .footer-giant { margin-right: calc(var(--frame-pr) * -1); }
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1360px) {
	.header-call-text { display: none; }
	.header-call { padding: 0 4px; }
}
@media (max-width: 1240px) {
	.header-call { display: none; }
	.nav-list a { padding: 0 10px; }
}
@media (max-width: 1099px) {
	.rail, .rail-labels { display: none !important; }
	.header-progress { display: block; }
	.primary-nav { display: none; }
	.nav-toggle { display: grid; }
	.header-wa span { display: none; }
	.header-wa { padding: 0; width: 42px; justify-content: center; }
	.brand { margin-right: auto; }
	.mega { display: none; }
}
@media (max-width: 900px) {
	.topbar-contact { display: none; }
	.mobile-cta { display: grid; }
	.site-footer { padding-bottom: 80px; }
}
@media (max-width: 640px) {
	.topbar-text, .topbar-sep { display: none; }
	.topbar-inner { justify-content: center; }
	.header-cta { display: none; }
	:root { --header-h-top: 66px; }
	.site-header .wordmark-name { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.header-cta::before { animation: none; }
}

/* ---------------------------------------------------------------- Theme switch (Light / Device / Dark) */
.theme-switch {
	--ts: 26px;
	position: relative;
	display: inline-flex;
	align-items: center;
	flex: none;
	padding: 2px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--card);
	isolation: isolate;
}
.theme-switch button {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: var(--ts);
	min-width: var(--ts);
	padding: 0 6px;
	border: 0;
	border-radius: 999px;
	background: none;
	color: var(--muted);
	font: inherit;
	cursor: pointer;
	transition: color 0.3s;
}
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-checked="true"] { color: var(--paper); }
.theme-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-switch .icon { width: 14px; height: 14px; transition: transform 0.6s var(--ease); }
.theme-switch [data-theme-set="light"][aria-checked="true"] .icon { transform: rotate(90deg); }
.theme-switch [data-theme-set="dark"][aria-checked="true"] .icon { transform: rotate(-25deg); }
.theme-switch [data-theme-set="system"][aria-checked="true"] .icon { transform: scale(1.08); }
.theme-switch-thumb {
	position: absolute;
	top: 2px; bottom: 2px; left: 2px;
	width: var(--ts);
	border-radius: 999px;
	background: var(--ink);
	opacity: 0;
	transition: left 0.45s var(--ease), width 0.45s var(--ease), background-color 0.45s, opacity 0.2s;
}
.theme-switch.is-ready .theme-switch-thumb { opacity: 1; }
.theme-switch-label {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.theme-switch--labels button { padding: 0 11px; }
.theme-switch--labels .theme-switch-label {
	position: static; width: auto; height: auto; overflow: visible; clip: auto;
	font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
}
.theme-switch--topbar { --ts: 22px; margin-left: 4px; }
.theme-switch--topbar .icon { width: 13px; height: 13px; }
.topbar-contact { margin-left: auto; }
.m-theme { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.m-theme .mono { margin: 0; }
@media (max-width: 640px) { .footer-bottom .theme-switch { order: -1; } }


.mobile-cta.is-single { grid-template-columns: 1fr; }
.m-actions-row:has(> :only-child) { grid-template-columns: 1fr; }
.m-actions .mono a { text-decoration: none; }

