/* Pages built from the design canvas. All component styling is inline in the canvas markup. */
html, body { margin: 0; }
body { background: #FFFFFF; overflow-x: clip; font-family: Inter, sans-serif; -webkit-font-smoothing: antialiased; }
html[data-theme="night"] body { background: #0B0D12; }
a { color: #033ECF; }
a:hover { color: #022FA0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
img { max-width: none; }
:focus-visible { outline: 3px solid #3563F5; outline-offset: 3px; }

/* Server-rendered copies: show the one matching the screen and theme until the live page mounts. */
.ss-ssr { display: none; }
@media (min-width: 1024px) {
	html:not([data-theme="night"]) .ss-ssr--desktop.ss-ssr--day,
	html[data-theme="night"] .ss-ssr--desktop.ss-ssr--night { display: block; }
}
@media (min-width: 768px) and (max-width: 1023px) {
	html:not([data-theme="night"]) .has-tablet .ss-ssr--tablet.ss-ssr--day,
	html[data-theme="night"] .has-tablet .ss-ssr--tablet.ss-ssr--night { display: block; }
	html:not([data-theme="night"]) .ss-app:not(.has-tablet) .ss-ssr--mobile.ss-ssr--day,
	html[data-theme="night"] .ss-app:not(.has-tablet) .ss-ssr--mobile.ss-ssr--night { display: block; }
}
@media (max-width: 767px) {
	html:not([data-theme="night"]) .ss-ssr--mobile.ss-ssr--day,
	html[data-theme="night"] .ss-ssr--mobile.ss-ssr--night { display: block; }
}

/* Full-width sections: the page fills wide screens instead of sitting in a 1440px box. */
.ss-live.ss-desktop > div:first-of-type,
.ss-ssr--desktop > div:first-of-type { width: 100% !important; min-width: 1440px; }

/* Client logo wall: scrolling row (home) and one-at-a-time spotlight (About). */
[data-wall="row"] .ss-wall-track { animation: ss-marquee 48s linear infinite; }
[data-wall="row"]:hover .ss-wall-track { animation-play-state: paused; }
@keyframes ss-marquee { to { transform: translateX(calc(-100% - var(--wall-gap, 16px))); } }
[data-wall] [role="listitem"] { transition: transform 300ms ease, box-shadow 300ms ease; }
[data-wall] [role="listitem"]:hover { transform: translateY(-6px) scale(1.04); box-shadow: 0 0 0 2px #3563F5, 0 16px 36px rgba(3, 62, 207, 0.28); }
[data-wall="wrap"] [role="listitem"] { animation: ss-spot 21.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 1.2s); }
[data-wall="wrap"]:hover [role="listitem"] { animation-play-state: paused; }
@keyframes ss-spot {
	0%, 7%, 100% { transform: none; box-shadow: 0 0 0 0 rgba(53, 99, 245, 0); }
	3% { transform: translateY(-6px) scale(1.05); box-shadow: 0 0 0 2px #3563F5, 0 16px 40px rgba(3, 62, 207, 0.35); }
}

/* Project cards: lift on hover and scroll the full-page screenshot top to bottom. */
img[alt$="website screenshot"] { transition: object-position 6s ease-in-out !important; }
a:hover img[alt$="website screenshot"] { object-position: center bottom !important; }
a[href]:has(img[alt$="website screenshot"]) { transition: transform 300ms ease; }
a[href]:has(img[alt$="website screenshot"]):hover { transform: translateY(-6px); }
.ss-inc { transition: transform 300ms ease, box-shadow 300ms ease; }
.ss-inc:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(3, 62, 207, 0.12); }

/* About hero: words rise in, the infinity mark draws itself, the work collage floats. */
.ss-word { animation: ss-word 700ms cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(var(--i, 0) * 90ms + 100ms); }
@keyframes ss-word { from { opacity: 0; transform: translateY(24px); } }
path[stroke-dasharray="760"] { stroke-dashoffset: 760; animation: ss-draw 2.4s ease forwards 900ms; }
@keyframes ss-draw { to { stroke-dashoffset: 0; } }
.ss-float { animation: ss-float 6s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes ss-float { 50% { translate: 0 -10px; } }

@media (prefers-reduced-motion: reduce) {
	[data-wall] .ss-wall-track, [data-wall] [role="listitem"], .ss-word, .ss-float { animation: none !important; }
	path[stroke-dasharray="760"] { animation: none; stroke-dashoffset: 0; }
	img[alt$="website screenshot"] { transition: none !important; }
}
