/* assets/css/site.css */

/* ==========================================================================
   nestudio shared site styles
   ========================================================================== */

:root {
	--bg: #efefec;
	--text: #111111;
	--muted: #7d7d78;
	--card: #dcdcd7;
	--surface: #f6f6f3;
	--surface-border: #e5e5df;
	--surface-strong: #111111;
	--surface-strong-text: #ffffff;
	--nav-bg: rgba(246, 246, 243, 0.94);
	--nav-active: #ffffff;
	--line: rgba(17, 17, 17, 0.08);
	--shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
	--shadow-strong: 0 18px 46px rgba(0, 0, 0, 0.08);

	--accent: #b9a06b;
	--accent-soft: rgba(185, 160, 107, 0.18);

	--container: 1440px;

	--radius-sm: 12px;
	--radius-md: 16px;
	--radius-lg: 18px;
	--radius-xl: 24px;
	--radius-2xl: 32px;
	--radius-pill: 999px;

	--header-height: 60px;
	--bottom-nav-offset: 16px;
	--bottom-nav-safe-space: 128px;

	--font-sans:
		Inter,
		ui-sans-serif,
		system-ui,
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		sans-serif;

	--fs-1: 12px;
	--fs-2: 14px;
	--fs-3: 16px;
	--fs-4: 22px;
	--fs-5: 28px;
	--fs-6: clamp(40px, 5vw, 60px);
	--fs-7: clamp(44px, 7vw, 82px);

	--fw-regular: 400;
	--fw-medium: 500;
	--fw-semibold: 600;

	--lh-title: 1.12;
	--lh-body: 1.6;

	--tracking-tight: -0.04em;
	--tracking-medium: -0.02em;
	--tracking-label: 0.04em;

	--reveal-y: 24px;

	--transition-base: 0.25s ease;
	--transition-slow: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

body.dark {
	--bg: #0f1115;
	--text: #f2f3f5;
	--muted: #9da3ae;
	--card: #171b21;
	--surface: #171a20;
	--surface-border: #262b33;
	--surface-strong: #f2f3f5;
	--surface-strong-text: #0f1115;
	--nav-bg: rgba(20, 23, 29, 0.94);
	--nav-active: #1f242c;
	--line: rgba(255, 255, 255, 0.08);
	--shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
	--shadow-strong: 0 22px 58px rgba(0, 0, 0, 0.42);

	--accent: #d4bc7f;
	--accent-soft: rgba(212, 188, 127, 0.14);
}

/* ==========================================================================
   Reset / base
   ========================================================================== */

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

html {
	min-height: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-height) + 16px);
	overflow-anchor: none;
	-webkit-text-size-adjust: 100%;
}

body {
	min-width: 320px;
	min-height: 100vh;
	padding-top: 0;
	padding-bottom: calc(var(--bottom-nav-safe-space) + env(safe-area-inset-bottom, 0px));
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: var(--fs-3);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
	overscroll-behavior-y: none;
	overflow-anchor: none;
	transition:
		background-color var(--transition-base),
		color var(--transition-base);
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	border: 0;
	background: none;
	touch-action: manipulation;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
}

img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

::selection {
	background: var(--surface-strong);
	color: var(--surface-strong-text);
}

:focus-visible {
	outline: 3px solid rgba(17, 17, 17, 0.16);
	outline-offset: 3px;
}

body.dark :focus-visible {
	outline-color: rgba(255, 255, 255, 0.24);
}

/* ==========================================================================
   Shared layout
   ========================================================================== */

.page {
	width: min(var(--container), calc(100% - 20px));
	margin: 0 auto;
	padding: calc(var(--header-height) + 12px) 0 32px;
	position: relative;
	z-index: 1;
	overflow-anchor: none;
	opacity: 1;
	transform: none;
	transition:
		opacity 0.7s ease,
		transform 0.7s ease;
}

.section-title {
	font-size: var(--fs-1);
	line-height: 1.2;
	font-weight: var(--fw-medium);
	letter-spacing: var(--tracking-label);
	color: var(--muted);
	margin-bottom: 14px;
	text-transform: uppercase;
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 0.8s ease,
		transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-ready .section-title {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.05s;
}

.content-text {
	max-width: 68ch;
	font-size: var(--fs-3);
	line-height: var(--lh-body);
	color: var(--muted);
}

.pill-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
}

.pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 8px 12px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--surface-border);
	background: var(--surface);
	color: var(--text);
	font-size: 13px;
	line-height: 1;
	font-weight: var(--fw-medium);
	white-space: nowrap;
}

body.dark .pill {
	background: rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   Fixed header
   ========================================================================== */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: var(--header-height);
	z-index: 100000;
	background: var(--nav-bg);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.035);
	overflow: hidden;
	overflow-anchor: none;
	transform: translateZ(0);
	-webkit-transform: translateZ(0);
}

body.dark .site-header {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.topbar {
	width: min(var(--container), calc(100% - 20px));
	height: var(--header-height);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.brand-link,
.footer-brand-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 0 0 auto;
}

.brand-logo,
.footer-logo {
	width: 26px;
	height: 26px;
	object-fit: contain;
	border-radius: 8px;
	flex: 0 0 auto;
}

body.dark .brand-logo,
body.dark .footer-logo {
	content: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFwAAABgCAYAAACQVxWOAAAe5UlEQVR42u19e3xd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s+PNFM6FVRPRMzA6vAuc1zaFuva2nM1+/Who/Gh/f6uUz96GoL63XHxfOPwPVfX5+f5aylEbsYGBlUifdqTlfOGv0M4a6vqvpGzyor7qghUAAAD7u7sXZlOpj0NN+6VhHPr8V7kUAIJ6bzY1dSV4Fz8RVtXCQ0ND9UvbWh8OhSI3MdOHFX1//+BHRy0LWJYZt03SS0xzr2Xa/TZCIzpCeU1RoKGqKBwKOcFaLiKEmmoDoVBzMBw4keX40wKBwDm8EDwjEAy2FhrIlFp31id7swSjx1JDw4+vrvCg53Eh8IPBUSp1Q6Sh/qFAMNRSzhdcZ3+puzAIxsC2bUQdhzAsQAzD2Y5t1bIcH2BZNhwIzqWZK1nHJMQyCf61JkoPtixfPnw8WIgj3loTw++c3NSy9MFwpPZKlmWBZdueFYVewmFYFjDg0IeoKS3UpjsVf4i6sJugrr2miLl7Wpet3A7ej0PMpq40ZnVwqOZrVNX+zPYXBKP9mih+aT7D8eNKw4tD6ZNXrPhrPhT6shAMfFgQAmXZ2mpHoeqBUgcYCO4l0NgkxuO/XXXWWRL43zQ6OjbwyXj8IlWSnibYSBe3rDbN6rTfmpUBmkE/kqpIf8hOTl5xLD4HfNxpuNsYGxs4oaF28YZAKHQhwzDnMyyzShACkQLSmLbXh5NKDMMAlmXntFMiGBPqOOO2Ze2m1H45l0y/umLt2pH3kjIeUzza3b0l0tKy7uSQEDpdEIRzGIY9w6H22oAQbOCEQA3LsQwAgAJKgW1ZhGAs244zwTKgx7HMPZjYb02mUvvXv8vQ7kjG/wBn6xfu4W+LhwAAAABJRU5ErkJggg==");
}

.brand-text,
.footer-brand-text {
	font-size: 15px;
	line-height: 1;
	font-weight: var(--fw-semibold);
	letter-spacing: var(--tracking-medium);
	white-space: nowrap;
}

.header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-left: auto;
	min-width: 0;
	flex: 0 1 auto;
}

.header-contact {
	display: none;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 0 2px;
}

.header-contact a,
.header-contact span {
	font-size: var(--fs-2);
	line-height: 1;
	color: var(--muted);
	white-space: nowrap;
	transition:
		color 0.2s ease,
		opacity 0.2s ease;
}

.header-contact a:hover {
	color: var(--text);
}

.header-divider {
	width: 1px;
	height: 14px;
	background: var(--line);
	flex: 0 0 auto;
}

.header-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 0 12px;
	border-radius: var(--radius-pill);
	background: var(--surface-strong);
	color: var(--surface-strong-text);
	border: 1px solid var(--surface-strong);
	font-size: 12px;
	line-height: 1;
	font-weight: var(--fw-medium);
	white-space: nowrap;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	transition:
		transform var(--transition-base),
		opacity var(--transition-base),
		box-shadow var(--transition-base);
}

.header-cta:hover {
	transform: translateY(-1px);
	opacity: 0.92;
}


.theme-toggle {
	width: 28px;
	height: 28px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: transparent;
	color: var(--text);
	cursor: pointer;
	font-size: 14px;
	transition:
		transform 0.2s ease,
		opacity 0.2s ease;
	flex: 0 0 auto;
}

.theme-toggle:hover {
	transform: rotate(8deg);
	opacity: 0.8;
}

/* ==========================================================================
   Portfolio index page
   ========================================================================== */

.portfolio-intro {
	margin-bottom: 12px;
	background: var(--card);
	border-radius: var(--radius-lg);
	padding: 18px;
	box-shadow: var(--shadow);
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.portfolio-intro::after {
	content: "";
	position: absolute;
	inset: auto -20% -35% auto;
	width: 320px;
	height: 320px;
	background: radial-gradient(
		circle,
		rgba(255, 255, 255, 0.2) 0,
		rgba(255, 255, 255, 0) 70%
	);
	opacity: 0.55;
	pointer-events: none;
	z-index: -1;
}

body.dark .portfolio-intro::after {
	background: radial-gradient(
		circle,
		rgba(79, 142, 255, 0.16) 0,
		rgba(79, 142, 255, 0) 70%
	);
	opacity: 0.9;
}

.portfolio-title {
	font-size: var(--fs-6);
	line-height: 1.02;
	font-weight: var(--fw-semibold);
	letter-spacing: var(--tracking-tight);
	max-width: 11ch;
	margin: 6px 0 12px;
	text-wrap: balance;
}

.portfolio-title .line-wrap {
	display: block;
	overflow: hidden;
}

.portfolio-title .line {
	display: block;
	transform: translateY(115%);
	opacity: 0;
	transition:
		transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.9s ease;
}

.portfolio-text {
	max-width: 62ch;
	font-size: 15px;
	line-height: 1.55;
	color: var(--muted);
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 0.8s ease,
		transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-ready .portfolio-title .line {
	transform: translateY(0);
	opacity: 1;
}

body.is-ready .portfolio-title .line:nth-child(2) {
	transition-delay: 0.08s;
}

body.is-ready .portfolio-title .line:nth-child(3) {
	transition-delay: 0.16s;
}

body.is-ready .portfolio-text {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.22s;
}

/* Filters */

.filters-sticky {
	position: sticky;
	top: var(--header-height);
	z-index: 90000;
	margin-bottom: 12px;
	padding: 8px 0 12px;
	/* background: var(--nav-bg);
	backdrop-filter: blur(14px); 
	-webkit-backdrop-filter: blur(14px);*/
	overflow-anchor: none;
}

.filters-shell {
	background: var(--surface);
	border: 1px solid var(--surface-border);
	border-radius: var(--radius-lg);
	padding: 8px;
	box-shadow: var(--shadow);
}

.filters-menu {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 2px;
}

.filters-menu::-webkit-scrollbar {
	display: none;
}

.filter-btn {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid var(--surface-border);
	background: transparent;
	color: var(--muted);
	border-radius: var(--radius-pill);
	padding: 10px 13px;
	font-size: 13px;
	line-height: 1;
	font-weight: var(--fw-medium);
	cursor: pointer;
	transition:
		background-color 0.22s ease,
		color 0.22s ease,
		border-color 0.22s ease,
		box-shadow 0.22s ease,
		transform 0.22s ease,
		opacity 0.22s ease;
	white-space: nowrap;
	flex: 0 0 auto;
	outline: none;
	user-select: none;
}

.filter-btn:hover {
	color: var(--text);
	transform: translateY(-1px);
}

.filter-btn.active {
	background: var(--surface-strong);
	color: var(--surface-strong-text);
	border-color: var(--surface-strong);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Works masonry */

.works {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	align-items: start;
	overflow-anchor: none;
	transition: min-height 0.12s linear;
}

.works.is-filtering {
	pointer-events: none;
}

.masonry-col {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.card {
	display: block;
	width: 100%;
	min-width: 0;
	margin: 0;
	overflow-anchor: none;
}

.cardlink {
	display: block;
}

.cardimage {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--card);
	box-shadow: var(--shadow);
	margin-bottom: 8px;
	isolation: isolate;
}

.cardimage::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			180deg,
			rgba(0, 0, 0, 0) 55%,
			rgba(0, 0, 0, 0.12) 100%
		);
	opacity: 0;
	transition: opacity var(--transition-base);
	pointer-events: none;
}

.card:hover .cardimage::after {
	opacity: 1;
}

.cardimage img {
	background: var(--card);
	transition:
		transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
		filter 0.35s ease;
	filter: saturate(0.98) contrast(1.02);
}

.card:hover .cardimage img {
	transform: scale(1.03);
	filter: saturate(1.05) contrast(1.04);
}

.h-220 {
	height: 210px;
}

.h-260 {
	height: 230px;
}

.h-300 {
	height: 250px;
}

.h-340 {
	height: 280px;
}

.h-380 {
	height: 310px;
}

.h-420 {
	height: 340px;
}

.cardtitle {
	font-size: 16px;
	line-height: 1.15;
	font-weight: var(--fw-semibold);
	letter-spacing: var(--tracking-tight);
	margin-bottom: 6px;
}

.cardmeta {
	font-size: 12px;
	line-height: 1.45;
	color: var(--muted);
	max-width: 36ch;
}

/* ==========================================================================
   Project detail pages
   ========================================================================== */

.hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-bottom: 12px;
	align-items: start;
}

.hero-card {
	min-height: auto;
	display: grid;
	align-content: start;
	gap: 22px;
	background: var(--card);
	border-radius: var(--radius-xl);
	padding: 22px;
	box-shadow: var(--shadow);
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.hero-card::after {
	content: "";
	position: absolute;
	right: -18%;
	bottom: -38%;
	width: 420px;
	height: 420px;
	background: radial-gradient(
		circle,
		rgba(255, 255, 255, 0.2) 0,
		rgba(255, 255, 255, 0) 70%
	);
	opacity: 0.6;
	pointer-events: none;
	z-index: -1;
}

body.dark .hero-card::after {
	background: radial-gradient(
		circle,
		rgba(212, 188, 127, 0.14) 0,
		rgba(212, 188, 127, 0) 70%
	);
	opacity: 1;
}

.hero-title {
	max-width: 11ch;
	margin: 8px 0 14px;
	font-size: var(--fs-7);
	line-height: 0.95;
	font-weight: var(--fw-semibold);
	letter-spacing: -0.07em;
	text-wrap: balance;
}

.hero-text {
	max-width: 66ch;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.6;
}

.hero-photo {
	min-height: 300px;
	border-radius: var(--radius-xl);
	overflow: hidden;
	background: #0d1218;
	box-shadow: var(--shadow);
}

.media-frame {
	width: 100%;
	height: 100%;
	min-height: inherit;
	border-radius: inherit;
	overflow: hidden;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
		var(--card);
	position: relative;
}

.hero-photo .media-frame {
	background: #0d1218;
}

.media-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.98) contrast(1.03);
}

.hero-photo .media-frame img {
	object-fit: contain;
	object-position: center center;
	background: #0d1218;
}

.meta-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-bottom: 12px;
}

.meta-card {
	background: var(--surface);
	border: 1px solid var(--surface-border);
	border-radius: var(--radius-lg);
	padding: 16px;
	box-shadow: var(--shadow);
}

.meta-label {
	font-size: var(--fs-1);
	line-height: 1.2;
	font-weight: var(--fw-medium);
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 8px;
}

.meta-value {
	font-size: 16px;
	line-height: 1.35;
	font-weight: var(--fw-semibold);
	letter-spacing: var(--tracking-medium);
	color: var(--text);
}

.project-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-bottom: 12px;
	align-items: start;
}

.sidebar-card {
	display: grid;
	gap: 18px;
	background: var(--surface);
	border: 1px solid var(--surface-border);
	border-radius: var(--radius-xl);
	padding: 20px;
	box-shadow: var(--shadow);
}

.sidebar-block {
	display: grid;
	gap: 8px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--line);
}

.sidebar-block:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.sidebar-block h3 {
	font-size: 18px;
	line-height: 1.2;
	font-weight: var(--fw-semibold);
	letter-spacing: var(--tracking-medium);
}

.visuals {
	display: grid;
	gap: 12px;
	min-width: 0;
}

.content-card {
	background: var(--surface);
	border: 1px solid var(--surface-border);
	border-radius: var(--radius-xl);
	padding: 20px;
	box-shadow: var(--shadow);
}

.content-card h2 {
	max-width: 14ch;
	margin-bottom: 14px;
	font-size: clamp(28px, 5vw, 48px);
	line-height: 1.02;
	font-weight: var(--fw-semibold);
	letter-spacing: var(--tracking-tight);
	text-wrap: balance;
}

.visual-pair {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.visual-card {
	display: grid;
	gap: 12px;
	background: var(--surface);
	border: 1px solid var(--surface-border);
	border-radius: var(--radius-xl);
	padding: 10px;
	box-shadow: var(--shadow);
}

.visual-card .media-frame {
	min-height: 260px;
	border-radius: calc(var(--radius-xl) - 8px);
}

.visual-caption {
	color: var(--muted);
	font-size: 14px;
	line-height: 1.55;
	padding: 0 4px 4px;
}

.cta {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-top: 12px;
}

.cta-card {
	background: var(--surface);
	border: 1px solid var(--surface-border);
	border-radius: var(--radius-xl);
	padding: 22px;
	box-shadow: var(--shadow);
	position: relative;
	overflow: hidden;
}

.cta-card--dark {
	background: var(--surface-strong);
	color: var(--surface-strong-text);
	border-color: var(--surface-strong);
}

.cta-card--dark .section-title,
.cta-card--dark .cta-text {
	color: rgba(255, 255, 255, 0.72);
}

body.dark .cta-card--dark .section-title,
body.dark .cta-card--dark .cta-text {
	color: rgba(15, 17, 21, 0.72);
}

.cta-card h2 {
	max-width: 15ch;
	margin-bottom: 14px;
	font-size: clamp(28px, 5vw, 48px);
	line-height: 1.02;
	font-weight: var(--fw-semibold);
	letter-spacing: var(--tracking-tight);
	text-wrap: balance;
}

.cta-text {
	max-width: 68ch;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.6;
}

.cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 22px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 16px;
	border-radius: var(--radius-pill);
	background: var(--surface-strong);
	color: var(--surface-strong-text);
	border: 1px solid var(--surface-strong);
	font-size: 14px;
	line-height: 1;
	font-weight: var(--fw-medium);
	white-space: nowrap;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	transition:
		transform var(--transition-base),
		opacity var(--transition-base),
		box-shadow var(--transition-base),
		background-color var(--transition-base),
		color var(--transition-base);
}

.btn:hover {
	transform: translateY(-1px);
	opacity: 0.92;
}

.cta-card--dark .btn {
	background: var(--surface-strong-text);
	color: var(--surface-strong);
	border-color: var(--surface-strong-text);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	width: min(var(--container), calc(100% - 20px));
	margin: 0 auto 24px;
	background: var(--surface);
	border: 1px solid var(--surface-border);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.footer-inner {
	padding: 20px;
}

.footer-top {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
}

.footer-brand {
	display: grid;
	gap: 14px;
}

.footer-logo {
	width: 34px;
	height: 34px;
}

.footer-brand-text {
	font-size: 18px;
}

.footer-description {
	max-width: 42ch;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.6;
}

.footer-column {
	display: grid;
	align-content: start;
	gap: 12px;
}

.footer-title {
	font-size: var(--fs-1);
	line-height: 1.2;
	font-weight: var(--fw-medium);
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
	color: var(--muted);
}

.footer-links {
	display: grid;
	gap: 8px;
}

.footer-links a,
.footer-links span {
	color: var(--text);
	font-size: 14px;
	line-height: 1.35;
}

.footer-links a {
	transition:
		color var(--transition-base),
		opacity var(--transition-base);
}

.footer-links a:hover {
	color: var(--muted);
}

.footer-bottom {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 20px;
	margin-top: 22px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 13px;
	line-height: 1.4;
}

.footer-bottom-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.footer-bottom-links a {
	color: var(--text);
}



body[data-page="works"] .masonry-col {
	padding-bottom: 48px;
}

@media (max-width: 640px) {
	body[data-page="works"] .masonry-col {
		padding-bottom: 72px;
	}
}




/* ==========================================================================
   Bottom navigation
   ========================================================================== */

#site-bottom-nav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	height: 96px;
	z-index: 2147483000;
	pointer-events: none;
	transform: translateZ(0);
	-webkit-transform: translateZ(0);
}

.bottom-nav {
	position: fixed;
	left: 50%;
	bottom: calc(var(--bottom-nav-offset) + env(safe-area-inset-bottom, 0px));
	transform: translate3d(-50%, 0, 0);
	-webkit-transform: translate3d(-50%, 0, 0);
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 5px;
	background: var(--nav-bg);
	border: 1px solid var(--surface-border);
	border-radius: var(--radius-pill);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
	z-index: 2147483001;
	width: calc(100% - 20px);
	max-width: 420px;
	pointer-events: auto;
	will-change: transform;
}

.bottom-nav a {
	flex: 1 1 0;
	text-align: center;
	padding: 10px 6px;
	border-radius: var(--radius-pill);
	font-size: 13px;
	line-height: 1;
	color: var(--muted);
	white-space: nowrap;
	border: 1px solid transparent;
	transition: var(--transition-base);
}

.bottom-nav a:hover {
	color: var(--text);
}

.bottom-nav a.active {
	background: var(--surface-strong);
	color: var(--surface-strong-text);
	border-color: var(--surface-strong);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Reveal animations
   ========================================================================== */

.reveal {
	opacity: 0;
	transform: translateY(var(--reveal-y));
	transition:
		opacity var(--transition-slow),
		transform var(--transition-slow);
	will-change: opacity, transform;
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.reveal--fast {
	transition-duration: 0.55s;
}

.reveal--delay-1 {
	transition-delay: 0.08s;
}

.reveal--delay-2 {
	transition-delay: 0.16s;
}

.reveal--delay-3 {
	transition-delay: 0.24s;
}

.reveal--delay-4 {
	transition-delay: 0.32s;
}

.card.reveal {
	transform: translateY(26px);
}

.works.is-filtering .card {
	pointer-events: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 421px) {
	.works {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.h-220 {
		height: 170px;
	}

	.h-260 {
		height: 190px;
	}

	.h-300 {
		height: 220px;
	}

	.h-340 {
		height: 250px;
	}

	.h-380 {
		height: 280px;
	}

	.h-420 {
		height: 320px;
	}
}

@media (min-width: 641px) {
	:root {
		--header-height: 60px;
		--fs-4: 22px;
		--fs-5: 28px;
		--fs-6: clamp(40px, 5vw, 60px);
		--bottom-nav-offset: 8px;
		--bottom-nav-safe-space: 112px;
	}

	.page {
		width: min(var(--container), calc(100% - 32px));
		padding: calc(var(--header-height) + 20px) 0 32px;
	}

	.topbar {
		width: min(var(--container), calc(100% - 32px));
		gap: 16px;
	}

	.brand-logo {
		width: 30px;
		height: 30px;
	}

	.brand-text {
		font-size: var(--fs-3);
	}

	.header-cta {
		min-height: 38px;
		padding: 0 16px;
		font-size: var(--fs-2);
	}

	.theme-toggle {
		width: 32px;
		height: 32px;
		font-size: var(--fs-3);
	}

	.portfolio-intro {
		margin-bottom: 18px;
		padding: 28px;
		border-radius: var(--radius-xl);
	}

	.portfolio-title {
		max-width: 12ch;
		margin: 10px 0 16px;
	}

	.portfolio-text {
		font-size: var(--fs-3);
		line-height: var(--lh-body);
	}

	.filters-sticky {
		margin-bottom: 18px;
		padding: 10px 0 14px;
	}

	.filters-shell {
		border-radius: var(--radius-xl);
		padding: 10px;
	}

	.filters-menu {
		flex-wrap: wrap;
		overflow: visible;
		padding-bottom: 0;
	}

	.filter-btn {
		padding: 10px 14px;
	}

	.cardimage {
		border-radius: var(--radius-xl);
		margin-bottom: 12px;
	}

	.cardtitle {
		font-size: var(--fs-4);
		line-height: 1.12;
	}

	.cardmeta {
		font-size: var(--fs-2);
		line-height: 1.5;
	}

	.hero {
		gap: 14px;
		margin-bottom: 14px;
	}

	.hero-card {
		padding: 28px;
		gap: 24px;
	}

	.hero-text {
		font-size: var(--fs-3);
	}

	.hero-photo {
		min-height: 360px;
	}

	.meta-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
		margin-bottom: 14px;
	}

	.project-layout {
		gap: 14px;
		margin-bottom: 14px;
	}

	.visuals {
		gap: 14px;
	}

	.content-card,
	.sidebar-card,
	.cta-card {
		padding: 28px;
		border-radius: var(--radius-xl);
	}

	.visual-pair {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.visual-card {
		gap: 14px;
		padding: 12px;
	}

	.visual-card .media-frame {
		min-height: 340px;
	}

	.cta {
		gap: 14px;
		margin-top: 14px;
	}

	.site-footer {
		width: min(var(--container), calc(100% - 32px));
		margin-bottom: 24px;
	}

	.footer-inner {
		padding: 28px;
	}

	.footer-top {
		grid-template-columns: 1.3fr repeat(3, 0.7fr);
		gap: 24px;
	}

	.footer-bottom {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.bottom-nav {
		width: auto;
		max-width: none;
		padding: 6px;
	}

	.bottom-nav a {
		flex: 0 0 auto;
		padding: 10px 18px;
		font-size: 14px;
	}
}

@media (min-width: 769px) {
	.header-contact {
		display: flex;
	}
}

@media (min-width: 960px) {
	.hero {
		grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
		align-items: start;
	}

	.hero-card,
	.hero-photo {
		height: 390px;
		min-height: 390px;
	}

	.hero-card {
		align-content: start;
		gap: 22px;
	}

	.hero-card > div:first-child {
		align-self: start;
	}

	.hero-card > div:last-child {
		align-self: start;
		margin-top: 0;
	}

	.hero-photo {
		margin-top: 0;
	}

	.hero-photo .media-frame {
		height: 100%;
		min-height: 100%;
	}

	.hero-photo .media-frame img {
		width: 100%;
		height: 100%;
		object-fit: contain;
		object-position: center center;
	}

	.meta-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.project-layout {
		grid-template-columns: minmax(260px, 0.34fr) minmax(0, 0.66fr);
	}

	.sidebar-card {
		position: sticky;
		top: calc(var(--header-height) + 18px);
	}

	.cta {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	}

	.cta-card {
		min-height: 300px;
	}
}

@media (min-width: 1181px) {
	.works {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 14px;
	}

	.masonry-col {
		gap: 14px;
	}

	.hero-card,
	.hero-photo {
		height: 390px;
		min-height: 390px;
		border-radius: var(--radius-2xl);
	}

	.h-220 {
		height: 220px;
	}

	.h-260 {
		height: 260px;
	}

	.h-300 {
		height: 300px;
	}

	.h-340 {
		height: 340px;
	}

	.h-380 {
		height: 380px;
	}

	.h-420 {
		height: 420px;
	}
}

@media (max-width: 768px) {
	.header-contact {
		display: none;
	}
}

@media (max-width: 640px) {
	:root {
		--header-height: 46px;
		--fs-4: 20px;
		--fs-5: 24px;
		--fs-6: 34px;
		--fs-7: 42px;
		--bottom-nav-offset: 14px;
		--bottom-nav-safe-space: 84px;
	}

	html {
		scroll-padding-top: calc(var(--header-height) + 18px);
	}

	body {
		padding-bottom: 0;
	}

	.page {
		padding-top: calc(var(--header-height) + 14px);
		padding-bottom: 20px;
	}

	.topbar {
		align-items: center;
		justify-content: space-between;
	}

	.header-actions {
		width: auto;
		margin-left: auto;
		justify-content: flex-end;
		gap: 8px;
		flex-wrap: nowrap;
	}

	.header-contact {
		display: none;
	}

	.section-title {
		margin-bottom: 12px;
	}

	.hero-card {
		min-height: auto;
		height: auto;
		gap: 22px;
		padding: 20px;
		align-content: start;
	}

	.hero-title {
		margin-bottom: 14px;
	}

	.hero-card .pill-list {
		margin-top: 18px;
	}

	.hero-card > div:last-child {
		margin-top: 0;
	}

	.hero-photo {
		min-height: auto;
		height: auto;
		aspect-ratio: 16 / 10;
	}

	.hero-photo .media-frame {
		min-height: 100%;
		height: 100%;
	}

	.hero-photo .media-frame img {
		object-fit: contain;
		object-position: center center;
	}

	.meta-card {
		padding: 14px;
	}

	.content-card h2,
	.cta-card h2 {
		max-width: 12ch;
	}

	.btn {
		width: 100%;
	}

	.cta-actions {
		flex-direction: column;
	}

	.footer-top {
		gap: 20px;
	}

	.site-footer {
		margin-bottom: calc(var(--bottom-nav-safe-space) + env(safe-area-inset-bottom, 0px));
	}

	#site-bottom-nav {
		height: 112px;
	}

	.bottom-nav {
		bottom: calc(var(--bottom-nav-offset) + env(safe-area-inset-bottom, 0px));
	}
}

@media (max-width: 420px) {
	.hero-photo {
		aspect-ratio: 16 / 10.8;
	}
}

@media (max-width: 380px) {
	.brand-text {
		display: none;
	}

	.header-cta {
		padding: 0 10px;
		font-size: 11px;
	}
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}

	.reveal,
	.reveal.is-visible,
	.portfolio-title .line,
	.portfolio-text,
	.section-title,
	.page {
		opacity: 1 !important;
		transform: none !important;
	}
}


/* ==========================================================================
   About page
   ========================================================================== */

:root {
      --panel-soft:#f7f7f4;
      --panel-mid:#ecebe5;
      --panel-strong:#deddd6;
      --panel-photo:#d3d1ca;
      --lh-ui:1.45;
}

body.dark {
      --panel-soft:#171a20;
      --panel-mid:#1d2229;
      --panel-strong:#242a32;
      --panel-photo:#2a3038;
}

body[data-page="about"].is-loading .page {
	      opacity:0;
	      transform:translateY(18px);
}

body[data-page="about"] .page {
	      width:min(var(--container), calc(100% - 32px));
	      margin:0 auto;
	      padding:20px 0 84px;
	      opacity:1;
	      transform:none;
	      transition:opacity .7s ease, transform .7s ease;
	      position:relative;
	      z-index:1;
}

body[data-page="about"] .hero,
body[data-page="about"] .about-grid,
body[data-page="about"] .studio-grid,
body[data-page="about"] .cta {
	      display:grid;
	      gap:18px;
	      align-items:stretch;
	      margin-bottom:18px;
}

body[data-page="about"] .hero {
	grid-template-columns:1.08fr .92fr
}

body[data-page="about"] .about-grid {
	grid-template-columns:.78fr 1.02fr .88fr
}

body[data-page="about"] .studio-grid {
	grid-template-columns:1.08fr .92fr
}

body[data-page="about"] .cta {
	grid-template-columns:1.14fr .86fr
}

body[data-page="about"] .metrics {
	      display:grid;
	      grid-template-columns:repeat(4, minmax(0, 1fr));
	      gap:14px;
	      margin-bottom:18px;
}

body[data-page="about"] .process-grid {
	      display:grid;
	      grid-template-columns:repeat(5, minmax(0, 1fr));
	      gap:14px;
	      margin-bottom:18px;
}

body[data-page="about"] main.page section:last-of-type {
	margin-bottom:0
}

body[data-page="about"] .hero-card,
body[data-page="about"] .hero-photo,
body[data-page="about"] .metric-card,
body[data-page="about"] .about-card,
body[data-page="about"] .process-card,
body[data-page="about"] .studio-card,
body[data-page="about"] .cta-card {
	      border-radius:var(--radius-xl);
	      box-shadow:var(--shadow);
	      position:relative;
	      transition:
	        transform .45s cubic-bezier(.22,1,.36,1),
	        background-color var(--transition-base),
	        box-shadow var(--transition-base),
	        border-color var(--transition-base);
}

body[data-page="about"] .hero-card:hover,
body[data-page="about"] .hero-photo:hover,
body[data-page="about"] .metric-card:hover,
body[data-page="about"] .about-card:hover,
body[data-page="about"] .process-card:hover,
body[data-page="about"] .studio-card:hover,
body[data-page="about"] .cta-card:hover {
	      transform:translateY(-3px);
}

body[data-page="about"] .hero-card,
body[data-page="about"] .metric-card,
body[data-page="about"] .about-card,
body[data-page="about"] .process-card,
body[data-page="about"] .cta-card {
	      padding:28px;
}

body[data-page="about"] .hero-card {
	      background:var(--panel-strong);
	      border:1px solid rgba(17,17,17,.04);
	      min-height:470px;
	      display:flex;
	      flex-direction:column;
	      justify-content:space-between;
	      overflow:hidden;
	      isolation:isolate;
}

body[data-page="about"].dark .hero-card {
	      border-color:rgba(255,255,255,.05);
}

body[data-page="about"] .hero-card::after {
	      content:"";
	      position:absolute;
	      inset:auto -10% -25% auto;
	      width:340px;
	      height:340px;
	      background:radial-gradient(circle, rgba(255,255,255,.18) 0, rgba(255,255,255,0) 70%);
	      opacity:.55;
	      pointer-events:none;
}

body[data-page="about"].dark .hero-card::after {
	      background:radial-gradient(circle, rgba(79,142,255,.16) 0, rgba(79,142,255,0) 70%);
	      opacity:.9;
}

body[data-page="about"] .hero-photo {
	      min-height:470px;
	      overflow:hidden;
	      background:var(--panel-photo);
	      border:1px solid rgba(17,17,17,.05);
}

body[data-page="about"].dark .hero-photo {
	      border-color:rgba(255,255,255,.06);
}

body[data-page="about"] .metric-card,
body[data-page="about"] .about-card,
body[data-page="about"] .process-card,
body[data-page="about"] .studio-card,
body[data-page="about"] .cta-card {
	      background:var(--panel-soft);
	      border:1px solid var(--surface-border);
}

body[data-page="about"] .studio-card {
	      overflow:hidden;
	      padding:0;
}

body[data-page="about"] .about-visual {
	      background:var(--panel-photo);
	      padding:0;
	      overflow:hidden;
	      min-height:100%;
}

body[data-page="about"] .section-title {
	      font-size:var(--fs-1);
	      line-height:1.2;
	      font-weight:var(--fw-medium);
	      letter-spacing:var(--tracking-label);
	      color:var(--muted);
	      margin-bottom:18px;
	      text-transform:uppercase;
	      opacity:0;
	      transform:translateY(18px);
	      transition:opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1);
}

body[data-page="about"] .hero-title {
	      font-size:var(--fs-6);
	      line-height:1.02;
	      font-weight:var(--fw-semibold);
	      letter-spacing:var(--tracking-tight);
	      max-width:12ch;
	      text-wrap:balance;
	      margin:10px 0 16px;
}

body[data-page="about"] .hero-title .line-wrap {
	      display:block;
	      overflow:hidden;
}

body[data-page="about"] .hero-title .line {
	      display:block;
	      transform:translateY(115%);
	      opacity:0;
	      transition:transform .9s cubic-bezier(.22,1,.36,1), opacity .9s ease;
}

body[data-page="about"] .hero-text {
	      max-width:60ch;
	      font-size:var(--fs-3);
	      line-height:var(--lh-body);
	      color:var(--muted);
	      opacity:0;
	      transform:translateY(18px);
	      transition:opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1);
}

body[data-page="about"] .hero-photo img,
body[data-page="about"] .about-visual img,
body[data-page="about"] .studio-cardmedia img {
	      transition:transform 1.1s cubic-bezier(.22,1,.36,1), filter .4s ease;
	      filter:saturate(.98) contrast(1.02);
}

body[data-page="about"] .hero-photo:hover img,
body[data-page="about"] .about-visual:hover img,
body[data-page="about"] .studio-card:hover .studio-cardmedia img {
	      transform:scale(1.05);
	      filter:saturate(1.03) contrast(1.04);
}

body[data-page="about"] .icon {
	      width:18px;
	      height:18px;
	      stroke:currentColor;
	      fill:none;
	      stroke-width:1.8;
	      stroke-linecap:round;
	      stroke-linejoin:round;
	      flex:0 0 auto;
}

body[data-page="about"] .icon-badge,
body[data-page="about"] .cta-meta-icon {
	      width:40px;
	      height:40px;
	      display:grid;
	      place-items:center;
	      border-radius:50%;
	      background:var(--surface);
	      border:1px solid var(--surface-border);
	      color:var(--text);
	      flex:0 0 auto;
}

body[data-page="about"] .cta-meta-icon {
	      width:34px;
	      height:34px;
}

body[data-page="about"] .metric-card {
	      min-height:168px;
	      display:flex;
	      flex-direction:column;
	      justify-content:space-between;
}

body[data-page="about"] .metric-top {
	      display:flex;
	      align-items:flex-start;
	      justify-content:space-between;
	      gap:14px;
	      margin-bottom:18px;
}

body[data-page="about"] .metric-number {
	      font-size:var(--fs-5);
	      line-height:1;
	      font-weight:var(--fw-semibold);
	      letter-spacing:var(--tracking-tight);
}

body[data-page="about"] .metric-label {
	      font-size:var(--fs-2);
	      line-height:var(--lh-ui);
	      color:var(--muted);
	      max-width:22ch;
}

body[data-page="about"] .about-lead,
body[data-page="about"] .process-name,
body[data-page="about"] .studio-title {
	      font-size:var(--fs-4);
	      line-height:var(--lh-title);
	      font-weight:var(--fw-semibold);
	      letter-spacing:var(--tracking-tight);
}

body[data-page="about"] .about-lead {
	      max-width:18ch;
	      margin-bottom:22px;
	      text-wrap:balance;
}

body[data-page="about"] .about-copy {
	      display:grid;
	      gap:14px;
}

body[data-page="about"] .about-copy p,
body[data-page="about"] .studio-copy,
body[data-page="about"] .cta-text {
	      font-size:var(--fs-3);
	      line-height:var(--lh-body);
	      color:var(--muted);
}

body[data-page="about"] .about-points {
	      display:grid;
	      gap:12px;
	      margin-top:22px;
}

body[data-page="about"] .about-point {
	      display:flex;
	      align-items:center;
	      gap:12px;
	      font-size:var(--fs-2);
	      line-height:var(--lh-ui);
	      color:var(--muted);
}

body[data-page="about"] .about-point .icon-badge {
	      width:34px;
	      height:34px;
}

body[data-page="about"] .process-card {
	      min-height:260px;
	      display:flex;
	      flex-direction:column;
	      justify-content:space-between;
	      overflow:hidden;
}

body[data-page="about"] .process-card::before {
	      content:"";
	      position:absolute;
	      top:0;
	      left:0;
	      width:100%;
	      height:1px;
	      background:linear-gradient(90deg, transparent, rgba(17,17,17,.18), transparent);
	      opacity:.85;
}

body[data-page="about"].dark .process-card::before {
	      background:linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
}

body[data-page="about"] .process-card.checkpoint {
	      background:var(--panel-soft);
	      border:1px solid rgba(17,17,17,.10);
	      box-shadow:0 8px 22px rgba(0,0,0,.04), inset 0 0 0 1px rgba(17,17,17,.03);
}

body[data-page="about"].dark .process-card.checkpoint {
	      background:var(--panel-soft);
	      border:1px solid rgba(255,255,255,.08);
	      box-shadow:0 10px 28px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.03);
}

body[data-page="about"] .process-top {
	      display:flex;
	      align-items:center;
	      justify-content:space-between;
	      gap:12px;
	      margin-bottom:16px;
}

body[data-page="about"] .process-time,
body[data-page="about"] .cta-meta-label {
	      font-size:var(--fs-1);
	      line-height:1.35;
	      color:var(--muted);
}

body[data-page="about"] .process-name {
	      margin-bottom:14px;
}

body[data-page="about"] .process-desc {
	      font-size:var(--fs-2);
	      line-height:1.55;
	      color:var(--muted);
}

body[data-page="about"] .studio-cardmedia {
	      height:310px;
	      overflow:hidden;
	      background:var(--panel-photo);
}

body[data-page="about"] .studio-cardmeta {
	      padding:18px 20px 20px;
	      display:grid;
	      gap:12px;
}

body[data-page="about"] .studio-head {
	      display:flex;
	      align-items:center;
	      justify-content:space-between;
	      gap:12px;
}

body[data-page="about"] .studio-copy {
	      max-width:54ch;
}

body[data-page="about"] .cta-title {
	      font-size:var(--fs-5);
	      line-height:1.15;
	      font-weight:var(--fw-semibold);
	      letter-spacing:var(--tracking-tight);
	      max-width:14ch;
	      text-wrap:balance;
	      margin-bottom:16px;
}

body[data-page="about"] .cta-text {
	      max-width:58ch;
	      margin-bottom:22px;
}

body[data-page="about"] .cta-button {
	      display:inline-flex;
	      align-items:center;
	      gap:10px;
	      padding:14px 18px;
	      border-radius:var(--radius-pill);
	      background:var(--surface-strong);
	      color:var(--surface-strong-text);
	      border:1px solid var(--surface-strong);
	      font-size:var(--fs-2);
	      line-height:1;
	      font-weight:var(--fw-medium);
	      box-shadow:0 8px 20px rgba(0,0,0,.08);
	      transition:transform var(--transition-base), opacity var(--transition-base), box-shadow var(--transition-base);
}

body[data-page="about"] .cta-button:hover {
	      transform:translateY(-2px);
}

body[data-page="about"] .cta-meta {
	      display:grid;
	      gap:14px;
}

body[data-page="about"] .cta-meta-item {
	      display:grid;
	      grid-template-columns:34px 1fr;
	      gap:12px;
	      align-items:start;
	      padding:18px 0;
	      border-bottom:1px solid var(--surface-border);
}

body[data-page="about"] .cta-meta-item:last-child {
	      border-bottom:none;
	      padding-bottom:0;
}

body[data-page="about"] .cta-meta-value {
	      font-size:var(--fs-3);
	      line-height:1.45;
	      letter-spacing:var(--tracking-medium);
}

body[data-page="about"] .reveal {
	      opacity:0;
	      transform:translateY(var(--reveal-y));
	      transition:opacity var(--transition-slow), transform var(--transition-slow);
}

body[data-page="about"] .reveal.is-visible {
	      opacity:1;
	      transform:translateY(0);
}

body[data-page="about"] .reveal--fast {
	transition-duration:.55s
}

body[data-page="about"] .reveal--delay-1 {
	transition-delay:.08s
}

body[data-page="about"] .reveal--delay-2 {
	transition-delay:.16s
}

body[data-page="about"] .reveal--delay-3 {
	transition-delay:.24s
}

body[data-page="about"] .reveal--delay-4 {
	transition-delay:.32s
}

body[data-page="about"].is-ready .hero-title .line {
	      transform:translateY(0);
	      opacity:1;
}

body[data-page="about"].is-ready .hero-title .line:nth-child(2) {
	transition-delay:.08s
}

body[data-page="about"].is-ready .hero-title .line:nth-child(3) {
	transition-delay:.16s
}

body[data-page="about"].is-ready .hero-text,
body[data-page="about"].is-ready .section-title {
	      opacity:1;
	      transform:translateY(0);
}

body[data-page="about"].is-ready .hero-text {
	transition-delay:.22s
}

body[data-page="about"].is-ready .section-title {
	transition-delay:.05s
}

@media (prefers-reduced-motion: reduce) {
	body[data-page="about"] *::before,
	body[data-page="about"] *::after {
		        animation:none !important;
		        transition:none !important;
		        scroll-behavior:auto !important;
	}

	body[data-page="about"] .reveal,
	body[data-page="about"] .reveal.is-visible,
	body[data-page="about"] .hero-title .line,
	body[data-page="about"] .hero-text,
	body[data-page="about"] .section-title,
	body[data-page="about"] .page {
		        opacity:1 !important;
		        transform:none !important;
	}
}

@media (max-width:1180px) {
	body[data-page="about"] .hero,
	body[data-page="about"] .about-grid,
	body[data-page="about"] .studio-grid,
	body[data-page="about"] .cta {
		        grid-template-columns:1fr;
	}

	body[data-page="about"] .hero-photo {
		        min-height:auto;
		        height:520px;
	}

	body[data-page="about"] .metrics {
		        grid-template-columns:repeat(2, minmax(0, 1fr));
	}

	body[data-page="about"] .process-grid {
		        grid-template-columns:repeat(2, minmax(0, 1fr));
	}

	body[data-page="about"] .about-visual {
		        min-height:420px;
	}
}

@media (max-width:640px) {
	body[data-page="about"] .page {
		        width:calc(100% - 20px);
	}

	body[data-page="about"] .page {
		        padding-top:12px;
		        padding-bottom:72px;
	}

	body[data-page="about"] .hero,
	body[data-page="about"] .metrics,
	body[data-page="about"] .about-grid,
	body[data-page="about"] .process-grid,
	body[data-page="about"] .studio-grid,
	body[data-page="about"] .cta {
		        gap:12px;
	}

	body[data-page="about"] .hero,
	body[data-page="about"] .about-grid,
	body[data-page="about"] .studio-grid,
	body[data-page="about"] .cta,
	body[data-page="about"] .metrics,
	body[data-page="about"] .process-grid {
		        margin-bottom:12px;
	}

	body[data-page="about"] .hero-card,
	body[data-page="about"] .metric-card,
	body[data-page="about"] .about-card:not(.about-visual),
	body[data-page="about"] .process-card,
	body[data-page="about"] .cta-card {
		        padding:18px;
	}

	body[data-page="about"] .hero-card,
	body[data-page="about"] .hero-photo,
	body[data-page="about"] .metric-card,
	body[data-page="about"] .about-card,
	body[data-page="about"] .process-card,
	body[data-page="about"] .cta-card,
	body[data-page="about"] .studio-card {
		        border-radius:var(--radius-lg);
	}

	body[data-page="about"] .hero-card {
		        min-height:auto;
	}

	body[data-page="about"] .section-title {
		        margin-bottom:12px;
	}

	body[data-page="about"] .hero-title {
		        margin:6px 0 12px;
		        max-width:11ch;
	}

	body[data-page="about"] .hero-text {
		        font-size:15px;
		        line-height:1.55;
	}

	body[data-page="about"] .hero-photo {
		        min-height:auto;
		        height:300px;
	}

	body[data-page="about"] .metric-number {
		        font-size:24px;
	}

	body[data-page="about"] .about-visual {
		        min-height:320px;
		        overflow:hidden;
		        padding:0;
	}

	body[data-page="about"] .about-visual img {
		        width:100%;
		        height:100%;
		        object-fit:cover;
	}

	body[data-page="about"] .process-grid {
		        grid-template-columns:1fr;
	}

	body[data-page="about"] .process-card {
		        min-height:auto;
	}

	body[data-page="about"] .studio-cardmedia {
		        height:240px;
	}

	body[data-page="about"] .studio-cardmeta {
		        padding:16px 18px 18px;
	}

	body[data-page="about"] .cta-title {
		        margin-bottom:12px;
	}

	body[data-page="about"] .cta-text {
		        margin-bottom:16px;
	}

	body[data-page="about"] .cta-meta {
		        gap:10px;
	}

	body[data-page="about"] .cta-meta-item {
		        padding:14px 0;
	}
}

/* ============================================================================
   Contact page
   ============================================================================ */

body[data-page="contact"] .page {
	width: min(var(--container), calc(100% - 32px));
	padding: calc(var(--header-height) + 20px) 0 84px;
}

body[data-page="contact"] .hero,
body[data-page="contact"] .contact-grid,
body[data-page="contact"] .details-grid,
body[data-page="contact"] .cta {
	display: grid;
	gap: 18px;
	align-items: stretch;
	margin-bottom: 18px;
}

body[data-page="contact"] .hero {
	grid-template-columns: 1.04fr 0.96fr;
}

body[data-page="contact"] .contact-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-page="contact"] .details-grid {
	grid-template-columns: 0.95fr 1.05fr;
}

body[data-page="contact"] .cta {
	grid-template-columns: 1.1fr 0.9fr;
}

body[data-page="contact"] main.page section:last-of-type {
	margin-bottom: 0;
}

body[data-page="contact"] .hero-card,
body[data-page="contact"] .hero-panel,
body[data-page="contact"] .contact-card,
body[data-page="contact"] .detail-card,
body[data-page="contact"] .cta-card {
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow);
	position: relative;
	transition:
		transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		background-color var(--transition-base),
		box-shadow var(--transition-base),
		border-color var(--transition-base);
}

body[data-page="contact"] .hero-card:hover,
body[data-page="contact"] .hero-panel:hover,
body[data-page="contact"] .contact-card:hover,
body[data-page="contact"] .detail-card:hover,
body[data-page="contact"] .cta-card:hover {
	transform: translateY(-3px);
}

body[data-page="contact"] .hero-card,
body[data-page="contact"] .contact-card,
body[data-page="contact"] .detail-card,
body[data-page="contact"] .cta-card {
	padding: 28px;
	background: var(--panel-soft);
	border: 1px solid var(--surface-border);
}

body[data-page="contact"] .hero-card {
	background: var(--panel-strong);
	min-height: 500px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	isolation: isolate;
	border: 1px solid rgba(17, 17, 17, 0.04);
}

body.dark[data-page="contact"] .hero-card {
	border-color: rgba(255, 255, 255, 0.05);
}

body[data-page="contact"] .hero-card::after {
	content: "";
	position: absolute;
	inset: auto -10% -28% auto;
	width: 340px;
	height: 340px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0) 70%);
	opacity: 0.55;
	pointer-events: none;
}

body.dark[data-page="contact"] .hero-card::after {
	background: radial-gradient(circle, rgba(79, 142, 255, 0.16) 0, rgba(79, 142, 255, 0) 70%);
	opacity: 0.9;
}

body[data-page="contact"] .hero-panel {
	min-height: 500px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.02)),
		var(--panel-photo);
	border: 1px solid rgba(17, 17, 17, 0.05);
	overflow: hidden;
	display: grid;
	grid-template-rows: auto 1fr auto;
}

body.dark[data-page="contact"] .hero-panel {
	border-color: rgba(255, 255, 255, 0.06);
}

body[data-page="contact"] .hero-panel-top,
body[data-page="contact"] .hero-panel-bottom {
	padding: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

body[data-page="contact"] .hero-panel-center {
	padding: 0 24px 24px;
	display: grid;
	gap: 12px;
	align-content: end;
}

body[data-page="contact"] .section-title {
	margin-bottom: 18px;
}

body[data-page="contact"] .hero-title {
	font-size: var(--fs-6);
	line-height: 1.02;
	font-weight: var(--fw-semibold);
	letter-spacing: var(--tracking-tight);
	max-width: 12ch;
	text-wrap: balance;
	margin: 10px 0 16px;
}

body[data-page="contact"] .hero-title .line-wrap {
	display: block;
	overflow: hidden;
}

body[data-page="contact"] .hero-title .line {
	display: block;
	transform: translateY(115%);
	opacity: 0;
	transition:
		transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.9s ease;
}

body.is-ready[data-page="contact"] .hero-title .line {
	transform: translateY(0);
	opacity: 1;
}

body.is-ready[data-page="contact"] .hero-title .line:nth-child(2) {
	transition-delay: 0.08s;
}

body.is-ready[data-page="contact"] .hero-title .line:nth-child(3) {
	transition-delay: 0.16s;
}

body[data-page="contact"] .hero-text,
body[data-page="contact"] .section-title {
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 0.8s ease,
		transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-ready[data-page="contact"] .hero-text,
body.is-ready[data-page="contact"] .section-title {
	opacity: 1;
	transform: translateY(0);
}

body.is-ready[data-page="contact"] .hero-text {
	transition-delay: 0.22s;
}

body.is-ready[data-page="contact"] .section-title {
	transition-delay: 0.05s;
}

body[data-page="contact"] .hero-text {
	max-width: 60ch;
	font-size: var(--fs-3);
	line-height: var(--lh-body);
	color: var(--muted);
}

body[data-page="contact"] .hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

body[data-page="contact"] .hero-note {
	display: grid;
	gap: 10px;
	margin-top: 28px;
	color: rgba(17, 17, 17, 0.8);
	max-width: 42ch;
}

body.dark[data-page="contact"] .hero-note {
	color: rgba(242, 243, 245, 0.82);
}

body[data-page="contact"] .badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	padding: 10px 14px;
	border-radius: var(--radius-pill);
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(17, 17, 17, 0.06);
	color: var(--text);
	font-size: var(--fs-2);
	line-height: 1;
	font-weight: var(--fw-medium);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

body.dark[data-page="contact"] .badge {
	background: rgba(15, 17, 21, 0.32);
	border-color: rgba(255, 255, 255, 0.06);
}

body[data-page="contact"] .hero-kicker {
	font-size: 13px;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

body[data-page="contact"] .hero-panel-title {
	font-size: var(--fs-5);
	line-height: 1.08;
	letter-spacing: var(--tracking-tight);
	font-weight: var(--fw-semibold);
	max-width: 10ch;
}

body[data-page="contact"] .hero-panel-copy,
body[data-page="contact"] .detail-copy,
body[data-page="contact"] .cta-text,
body[data-page="contact"] .list,
body[data-page="contact"] .contact-copy {
	color: var(--muted);
	font-size: var(--fs-3);
	line-height: var(--lh-body);
}

body[data-page="contact"] .hero-mini-grid {
	display: grid;
	gap: 12px;
}

body[data-page="contact"] .hero-mini {
	padding: 16px 18px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.46);
	border: 1px solid rgba(17, 17, 17, 0.06);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

body.dark[data-page="contact"] .hero-mini {
	background: rgba(15, 17, 21, 0.28);
	border-color: rgba(255, 255, 255, 0.06);
}

body[data-page="contact"] .hero-mini-label {
	font-size: var(--fs-1);
	line-height: 1.35;
	color: var(--muted);
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: var(--tracking-label);
}

body[data-page="contact"] .hero-mini-value {
	font-size: var(--fs-4);
	line-height: 1.15;
	letter-spacing: var(--tracking-tight);
	font-weight: var(--fw-semibold);
}

body[data-page="contact"] .contact-card,
body[data-page="contact"] .detail-card,
body[data-page="contact"] .cta-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 220px;
}

body[data-page="contact"] .contact-top,
body[data-page="contact"] .detail-top,
body[data-page="contact"] .cta-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 18px;
}

body[data-page="contact"] .icon,
body[data-page="contact"] .arrow-icon {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: 0 0 auto;
}

body[data-page="contact"] .icon-badge,
body[data-page="contact"] .mini-icon {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--surface);
	border: 1px solid var(--surface-border);
	color: var(--text);
	flex: 0 0 auto;
}

body[data-page="contact"] .mini-icon {
	width: 34px;
	height: 34px;
}

body[data-page="contact"] .contact-title,
body[data-page="contact"] .detail-title,
body[data-page="contact"] .cta-title {
	font-size: var(--fs-4);
	line-height: var(--lh-title);
	font-weight: var(--fw-semibold);
	letter-spacing: var(--tracking-tight);
	margin-bottom: 10px;
}

body[data-page="contact"] .contact-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	font-size: var(--fs-2);
	line-height: 1;
	font-weight: var(--fw-medium);
}

body[data-page="contact"] .contact-link:hover .arrow-wrap,
body[data-page="contact"] .cta-button:hover .arrow-wrap,
body[data-page="contact"] .action-button:hover .arrow-wrap {
	transform: translateX(2px);
}

body[data-page="contact"] .arrow-wrap {
	display: inline-flex;
	transition: transform 0.2s ease;
}

body[data-page="contact"] .detail-list {
	display: grid;
	gap: 12px;
	margin-top: 8px;
}

body[data-page="contact"] .detail-item {
	display: grid;
	grid-template-columns: 34px 1fr;
	gap: 12px;
	align-items: start;
	padding: 14px 0;
	border-bottom: 1px solid var(--surface-border);
}

body[data-page="contact"] .detail-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

body[data-page="contact"] .detail-label {
	font-size: var(--fs-1);
	line-height: 1.35;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: var(--tracking-label);
	margin-bottom: 4px;
}

body[data-page="contact"] .detail-value {
	font-size: var(--fs-3);
	line-height: 1.5;
	letter-spacing: var(--tracking-medium);
}

body[data-page="contact"] .list {
	display: grid;
	gap: 12px;
}

body[data-page="contact"] .list-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

body[data-page="contact"] .list-item .mini-icon {
	margin-top: 2px;
}

body[data-page="contact"] .cta-title {
	font-size: var(--fs-5);
	line-height: 1.12;
	max-width: 13ch;
	margin-bottom: 16px;
}

body[data-page="contact"] .cta-text {
	max-width: 58ch;
	margin-bottom: 22px;
}

body[data-page="contact"] .cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

body[data-page="contact"] .cta-button,
body[data-page="contact"] .action-button,
body[data-page="contact"] .ghost-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 18px;
	border-radius: var(--radius-pill);
	font-size: var(--fs-2);
	line-height: 1;
	font-weight: var(--fw-medium);
	white-space: nowrap;
	transition:
		transform var(--transition-base),
		opacity var(--transition-base),
		box-shadow var(--transition-base),
		background-color var(--transition-base),
		color var(--transition-base),
		border-color var(--transition-base);
}

body[data-page="contact"] .cta-button,
body[data-page="contact"] .action-button {
	background: var(--surface-strong);
	color: var(--surface-strong-text);
	border: 1px solid var(--surface-strong);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

body[data-page="contact"] .ghost-button {
	background: transparent;
	color: var(--text);
	border: 1px solid var(--surface-border);
}

body[data-page="contact"] .cta-button:hover,
body[data-page="contact"] .action-button:hover,
body[data-page="contact"] .ghost-button:hover {
	transform: translateY(-1px);
	opacity: 0.94;
}

@media (prefers-reduced-motion: reduce) {
	body[data-page="contact"] .hero-title .line,
	body[data-page="contact"] .hero-text,
	body[data-page="contact"] .section-title {
		opacity: 1 !important;
		transform: none !important;
	}
}

@media (max-width: 1180px) {
	body[data-page="contact"] .hero,
	body[data-page="contact"] .details-grid,
	body[data-page="contact"] .cta {
		grid-template-columns: 1fr;
	}

	body[data-page="contact"] .contact-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body[data-page="contact"] .hero-panel,
	body[data-page="contact"] .hero-card {
		min-height: auto;
	}
}

@media (max-width: 640px) {
	body[data-page="contact"] .page {
		width: calc(100% - 20px);
		padding-top: calc(var(--header-height) + 14px);
		padding-bottom: 20px;
	}

	body[data-page="contact"] .hero,
	body[data-page="contact"] .contact-grid,
	body[data-page="contact"] .details-grid,
	body[data-page="contact"] .cta {
		gap: 12px;
		margin-bottom: 12px;
	}

	body[data-page="contact"] .hero-card,
	body[data-page="contact"] .contact-card,
	body[data-page="contact"] .detail-card,
	body[data-page="contact"] .cta-card {
		padding: 18px;
		border-radius: var(--radius-lg);
	}

	body[data-page="contact"] .hero-panel {
		border-radius: var(--radius-lg);
	}

	body[data-page="contact"] .hero-panel-top,
	body[data-page="contact"] .hero-panel-center,
	body[data-page="contact"] .hero-panel-bottom {
		padding: 18px;
	}

	body[data-page="contact"] .section-title {
		margin-bottom: 12px;
	}

	body[data-page="contact"] .hero-title {
		margin: 6px 0 12px;
		max-width: 11ch;
	}

	body[data-page="contact"] .hero-text,
	body[data-page="contact"] .hero-panel-copy,
	body[data-page="contact"] .detail-copy,
	body[data-page="contact"] .cta-text,
	body[data-page="contact"] .list,
	body[data-page="contact"] .contact-copy {
		font-size: 15px;
		line-height: 1.55;
	}

	body[data-page="contact"] .hero-actions,
	body[data-page="contact"] .cta-actions {
		flex-direction: column;
		align-items: stretch;
	}

	body[data-page="contact"] .action-button,
	body[data-page="contact"] .ghost-button,
	body[data-page="contact"] .cta-button {
		width: 100%;
	}

	body[data-page="contact"] .contact-grid {
		grid-template-columns: 1fr;
	}
}



.hero-photo {
	background: var(--card);
}

.hero-photo .media-frame {
	background: var(--card);
}

.hero-photo .media-frame img {
	object-fit: cover;
	object-position: center center;
	background: transparent;
}

.cardlink{all:unset;display:block;cursor:pointer;width:100%}
.cardlink:focus-visible .cardimage{outline:2px solid var(--accent);outline-offset:3px}
.cardimage img{width:100%;height:100%;object-fit:cover;display:block;position:relative;z-index:1}
.ar-v1{aspect-ratio:9/16}.ar-v2{aspect-ratio:2/3}
.ar-p1{aspect-ratio:4/5}.ar-p2{aspect-ratio:3/4}
.cardimage img{object-position:50% 50%}
.cardimage{border-radius:22px;margin-bottom:10px}
.cardtitle{font-size:15px;line-height:1.2;margin-bottom:3px}
.carddate{margin-top:0;font-size:12px}
.cardimage .ph{position:absolute;inset:0;display:flex;align-items:flex-end;padding:16px;
 background:radial-gradient(circle at 80% 15%,rgba(255,255,255,.35),transparent 55%),linear-gradient(135deg,#2a2a28,#6b6a63);color:#fff;
 font-weight:600;font-size:18px;line-height:1.15;letter-spacing:-.02em;z-index:0}
body.dark .cardimage .ph{background:radial-gradient(circle at 80% 15%,rgba(212,188,127,.25),transparent 55%),linear-gradient(135deg,#171b21,#2b313b)}
.cardimage img.broken{opacity:0}
.play{position:absolute;left:50%;top:50%;width:56px;height:56px;margin:-28px 0 0 -28px;border-radius:50%;
 background:rgba(255,255,255,.9);display:grid;place-items:center;z-index:3;box-shadow:0 10px 30px rgba(0,0,0,.25);
 transform:scale(.85);opacity:.0;transition:opacity .25s ease,transform .35s cubic-bezier(.22,1,.36,1)}
.play svg{width:24px;height:24px;fill:#111}
.card:hover .play,.cardlink:focus-visible .play{opacity:1;transform:scale(1)}
@media (hover:none){.play{opacity:.9;transform:scale(.8)}}
.badge{position:absolute;left:10px;top:10px;z-index:3;font-size:11px;line-height:1;padding:6px 9px;border-radius:999px;
 background:rgba(17,17,17,.55);color:#fff;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.works,.masonry-col{gap:18px}
.page{width:min(1480px,calc(100% - 24px))}
@media (max-width:760px){.works,.masonry-col{gap:10px}.cardtitle{font-size:14px}.cardmeta{display:none}.badge{font-size:10px;padding:5px 7px}}
.carddate{font-size:11px;color:var(--muted);margin-top:4px;opacity:.8}
.cardimage::after{z-index:2}
.filter-btn .cnt{opacity:.55;font-size:11px;margin-left:3px}
.works{grid-template-columns:repeat(var(--cols,3),minmax(0,1fr))}
/* modal */
.vmodal{position:fixed;inset:0;z-index:200000;display:none;align-items:center;justify-content:center;
 padding:max(56px,env(safe-area-inset-top)) 12px max(16px,env(safe-area-inset-bottom));
 background:rgba(8,8,8,.9);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);overflow:hidden;overscroll-behavior:none;touch-action:none}
/* landscape phones: the video takes the whole height, the caption below stays reachable by scrolling */
@media (max-height:519px){.vmodal{overflow-y:auto;overscroll-behavior:contain;touch-action:auto}}
.vmodal.open{display:flex;animation:vfade .25s ease}
@keyframes vfade{from{opacity:0}to{opacity:1}}
.vbox{position:relative;display:flex;flex-direction:column;align-items:center;gap:14px;margin:auto;animation:vup .35s cubic-bezier(.22,1,.36,1)}
@keyframes vup{from{transform:translateY(18px);opacity:0}to{transform:none;opacity:1}}
.vframe{position:relative;background:#000;border-radius:18px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.55);flex:0 0 auto;
 -webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
.vframe video,.vframe iframe,.vframe .yt-host{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000;object-fit:contain;display:block}
.vframe .yt-host{inset:auto;left:0;right:0;top:-140px;height:calc(100% + 280px)}
.vframe .yt-host iframe{position:absolute;inset:0;width:100%;height:100%}
.vframe video::-webkit-media-controls{display:none!important}
.pl-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1;transition:opacity .4s ease;pointer-events:none}
.vframe.started .pl-cover{opacity:0}
.pl-tap{position:absolute;inset:0;z-index:2;cursor:pointer}
.pl-play{position:absolute;left:50%;top:50%;z-index:3;width:72px;height:72px;margin:-36px 0 0 -36px;border-radius:50%;border:0;padding:0;
 background:rgba(255,255,255,.92);display:grid;place-items:center;cursor:pointer;box-shadow:0 10px 30px rgba(0,0,0,.35);
 transition:opacity .3s ease,transform .3s ease;opacity:0;transform:scale(.8);pointer-events:none}
.pl-play svg{width:28px;height:28px;fill:#111}
.vframe[data-state="paused"] .pl-play{opacity:1;transform:none;pointer-events:auto}
.vframe.passthru .pl-tap,.vframe.passthru .pl-play{pointer-events:none}
.pl-bar{position:absolute;left:0;right:0;bottom:0;z-index:4;height:24px;display:flex;align-items:flex-end;cursor:pointer;touch-action:none}
.pl-track{position:relative;width:100%;height:4px;background:rgba(255,255,255,.25);transition:height .15s ease}
.pl-bar:hover .pl-track,.pl-bar.drag .pl-track{height:6px}
.pl-fill{position:absolute;left:0;top:0;bottom:0;width:0;background:#fff}
.vframe:not(.started) .pl-bar{opacity:0}
.pl-fs{position:absolute;top:10px;right:10px;z-index:5;width:44px;height:44px;border:0;border-radius:50%;padding:0;background:rgba(0,0,0,.45);display:none;place-items:center;cursor:pointer}
.pl-fs:hover{background:rgba(0,0,0,.65)}
.pl-fs svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
/* in fullscreen the same button shrinks back: corners pointing inwards, as on YouTube */
.pl-fs .fs-off{display:none}
.vframe:fullscreen .pl-fs .fs-on{display:none}
.vframe:fullscreen .pl-fs .fs-off{display:block}
.vframe:-webkit-full-screen .pl-fs .fs-on{display:none}
.vframe:-webkit-full-screen .pl-fs .fs-off{display:block}
.vframe.can-fs .pl-fs{display:grid}
.vframe:fullscreen{width:100%!important;height:100%!important;border-radius:0;box-shadow:none}
.vframe:-webkit-full-screen{width:100%!important;height:100%!important;border-radius:0;box-shadow:none}
.pl-spin{position:absolute;left:50%;top:50%;z-index:3;width:40px;height:40px;margin:-20px 0 0 -20px;border-radius:50%;
 border:3px solid rgba(255,255,255,.25);border-top-color:#fff;animation:plspin .8s linear infinite;display:none;pointer-events:none}
.vframe[data-state="loading"] .pl-spin{display:block}
@keyframes plspin{to{transform:rotate(360deg)}}
.vinfo{color:#fff;width:100%;min-width:0}
.vinfo h3{font-size:18px;line-height:1.2;letter-spacing:-.02em;font-weight:600;margin:0 0 6px}
.vinfo p{font-size:13px;line-height:1.5;color:rgba(255,255,255,.7);margin:0}
.vinfo .vmeta{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:rgba(255,255,255,.5);margin-bottom:6px}
.vshare{display:inline-flex;align-items:center;gap:7px;margin-top:12px;padding:8px 14px;border:0;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font:inherit;font-size:13px;cursor:pointer}
.vshare:hover{background:rgba(255,255,255,.26)}
.vshare svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.vclose{position:fixed;top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));width:46px;height:46px;border-radius:50%;border:0;padding:0;background:rgba(255,255,255,.14);display:grid;place-items:center;cursor:pointer;z-index:200001}
.vclose:hover{background:rgba(255,255,255,.26)}
.vnav{position:fixed;top:50%;width:52px;height:52px;margin-top:-26px;border-radius:50%;border:0;padding:0;background:rgba(255,255,255,.12);display:grid;place-items:center;cursor:pointer;z-index:200001}
.vclose svg,.vnav svg{fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.vclose svg{width:20px;height:20px}.vnav svg{width:24px;height:24px}
.vnav:hover{background:rgba(255,255,255,.26)}.vprev{left:14px}.vnext{right:14px}
@media (max-width:760px){.vnav{display:none}.vinfo h3{font-size:16px}.vframe{border-radius:14px}}
.vlocal{position:absolute;inset:0;display:block;color:#fff;z-index:5}
.vlocal img{width:100%;height:100%;object-fit:cover;opacity:.85}
.vlocal .play{opacity:1;transform:none;width:72px;height:72px;margin:-36px 0 0 -36px}
.vlocal-note{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);padding:9px 16px;border-radius:999px;background:rgba(0,0,0,.6);font-size:13px;white-space:nowrap}

/* page of one video: /v/<slug>/ */
.case-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:24px;align-items:center}
.case-intro.vertical{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
.case-text-col{display:flex;flex-direction:column;gap:14px;min-width:0}
.case-intro .section-title{margin:0}
.case-intro .section-title a{text-decoration:underline;text-underline-offset:3px}
.case-title{font-size:var(--fs-5);line-height:var(--lh-title);font-weight:var(--fw-semibold);letter-spacing:var(--tracking-medium);margin:0;text-wrap:balance}
.case-desc{font-size:15px;line-height:1.6;max-width:62ch;margin:0}
.case-facts{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.case-facts li{font-size:12px;padding:6px 10px;border-radius:var(--radius-pill);border:1px solid var(--line, rgba(127,127,127,.25));color:var(--muted)}
.case-actions{display:flex;flex-wrap:wrap;gap:8px}
.case-actions .header-cta{min-height:40px;padding:0 16px;font-size:13px}
.case-actions .ghost{background:transparent;color:inherit}
.case-media{min-width:0}
.case-media .card .cardtitle,.case-media .card .carddate{display:none}
.case-intro.vertical .case-media{max-width:340px;justify-self:center;width:100%}
.related-title{margin:28px 0 12px;opacity:1;transform:none}
@media (max-width:760px){.case-intro,.case-intro.vertical{grid-template-columns:1fr}.case-media{order:-1}.case-intro.vertical .case-media{max-width:240px}}

/* case study under the video (cases/<slug>.md): story, frames, project passport, FAQ, call to action */
.case-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:48px;align-items:start;margin:48px auto 0;max-width:1120px}
.case-body{min-width:0;max-width:740px;font-size:16px;line-height:1.7}
.case-body>:first-child{margin-top:0}
.case-body h2{font-size:26px;line-height:1.2;letter-spacing:var(--tracking-medium);font-weight:var(--fw-semibold);margin:48px 0 14px;scroll-margin-top:calc(var(--header-height) + 24px);text-wrap:balance}
.case-body h3{font-size:18px;line-height:1.3;font-weight:var(--fw-semibold);margin:28px 0 8px}
.case-body p{margin:0 0 14px}
.case-body ul{margin:0 0 16px;padding-left:20px}
.case-body li{margin:0 0 6px}
.case-body li::marker{color:var(--accent)}
.case-body strong{font-weight:var(--fw-semibold)}
.case-body a{text-decoration:underline;text-underline-offset:3px}
.case-steps{list-style:none;counter-reset:step;margin:4px 0 18px;padding:0;display:grid;gap:10px}
.case-steps li{counter-increment:step;position:relative;margin:0;padding:14px 16px 14px 58px;border-radius:var(--radius-md);background:var(--surface);border:1px solid var(--surface-border)}
.case-steps li::before{content:counter(step);position:absolute;left:14px;top:12px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);color:var(--text);font-size:14px;font-weight:var(--fw-semibold)}
.case-body blockquote{margin:22px 0;padding:18px 22px;border-left:3px solid var(--accent);border-radius:0 var(--radius-md) var(--radius-md) 0;background:var(--surface);font-size:17px;line-height:1.6;font-style:italic}
.case-frame{margin:22px 0}
.case-frame.tall{max-width:380px}
.case-frame-img{position:relative;border-radius:var(--radius-lg);overflow:hidden;background:var(--card)}
.case-frame img{display:block;width:100%;height:auto}
.case-frame figcaption{margin-top:8px;font-size:13px;line-height:1.5;color:var(--muted)}
.case-frame-play{position:absolute;left:10px;bottom:10px;border:0;border-radius:var(--radius-pill);padding:7px 12px;background:rgba(0,0,0,.6);color:#fff;font:inherit;font-size:12px;cursor:pointer;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);transition:background var(--transition-base)}
.case-frame-img:has(.case-frame-play){cursor:pointer}   /* the whole frame plays the video, see site.js */
.case-frame-play:hover,.case-frame-img:hover .case-frame-play{background:rgba(0,0,0,.85)}
.case-gallery{display:grid;gap:14px;margin:22px 0}
.case-gallery.n2{grid-template-columns:repeat(2,minmax(0,1fr))}
.case-gallery.n3{grid-template-columns:repeat(3,minmax(0,1fr))}
.case-gallery .case-frame{margin:0;max-width:none}
.case-faq{border-bottom:1px solid var(--line)}
.case-faq summary{list-style:none;cursor:pointer;padding:16px 36px 16px 0;position:relative;font-weight:var(--fw-semibold);font-size:16px;line-height:1.4}
.case-faq summary::-webkit-details-marker{display:none}
.case-faq summary::after{content:"+";position:absolute;right:4px;top:12px;font-size:22px;font-weight:400;color:var(--muted);transition:transform var(--transition-base)}
.case-faq[open] summary::after{transform:rotate(45deg)}
.case-faq p{margin:0 0 16px;color:var(--muted)}
.case-passport{position:sticky;top:calc(var(--header-height) + 20px)}
.case-passport-in{padding:22px;border-radius:var(--radius-xl);background:var(--surface);border:1px solid var(--surface-border);display:flex;flex-direction:column;gap:16px}
.case-passport .section-title{margin:0}
.case-passport dl{margin:0;display:grid;gap:12px}
.case-passport dt{font-size:11px;letter-spacing:var(--tracking-label);text-transform:uppercase;color:var(--muted);margin-bottom:2px}
.case-passport dd{margin:0;font-size:14px;line-height:1.45}
.case-passport .header-cta{justify-content:center;min-height:42px;font-size:13px}
.case-cta{max-width:1120px;margin:56px auto 8px;padding:40px 28px;border-radius:var(--radius-xl);background:var(--surface-strong);color:var(--surface-strong-text);text-align:center}
.case-cta h2{font-size:clamp(24px,3vw,32px);line-height:1.15;letter-spacing:var(--tracking-medium);font-weight:var(--fw-semibold);margin:0 0 10px}
.case-cta p{margin:0 auto 20px;max-width:56ch;opacity:.75;font-size:15px;line-height:1.6}
.case-cta .case-actions{justify-content:center}
.case-cta .header-cta{background:var(--surface-strong-text);color:var(--surface-strong);border-color:var(--surface-strong-text)}
.case-cta .header-cta.ghost{background:transparent;color:inherit;border-color:currentColor}
@media (max-width:1000px){.case-layout{grid-template-columns:1fr;gap:28px}.case-passport{position:static;order:-1}.case-passport dl{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.case-layout{margin-top:32px}.case-body{font-size:15px}.case-body h2{font-size:22px;margin-top:36px}
 .case-gallery.n3{grid-template-columns:repeat(2,minmax(0,1fr))}.case-frame.tall{max-width:none}.case-passport dl{grid-template-columns:1fr}.case-cta{padding:32px 18px}}

/* phones: contact bar at the bottom (the header there shows only one button); computers have contacts in the header */
.bottom-nav a.primary{background:var(--surface-strong);color:var(--surface-strong-text);border-color:var(--surface-strong);box-shadow:0 8px 20px rgba(0,0,0,.08)}
html:has(.vmodal.open) #site-bottom-nav{display:none}
@media (min-width:761px){#site-bottom-nav{display:none}body{padding-bottom:0}}


.case-body li,.case-body p{overflow-wrap:anywhere}
/* phones: fullscreen over the whole page, without the browser's own "full screen" banner */
.vframe.pfs{position:fixed;left:0;top:0;width:var(--pfs-w,100vw)!important;height:var(--pfs-h,100vh)!important;border-radius:0;box-shadow:none;z-index:200002}
@media (orientation:portrait){.vframe.pfs.pfs-land{left:50%;top:50%;width:var(--pfs-h,100vh)!important;height:var(--pfs-w,100vw)!important;transform:translate(-50%,-50%) rotate(90deg)}}
.vframe.pfs .pl-fs .fs-on{display:none}
.vframe.pfs .pl-fs .fs-off{display:block}
.pl-msg{position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px;text-align:center;color:#fff;background:rgba(0,0,0,.72)}
.pl-msg p{margin:0;font-size:16px;font-weight:600}
.pl-msg button{border:0;border-radius:999px;padding:10px 20px;background:#fff;color:#111;font:inherit;font-size:14px;cursor:pointer}
.pl-msg small{font-size:12px;opacity:.65}
.vframe.failed .pl-play{display:none}
.svc-list{margin:0;padding-left:16px}.svc-list li{margin:2px 0}

/* Websites portfolio (/sayty/) */
.portfolio-text a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.filter-link{text-decoration:none;display:inline-flex;align-items:center}
.sites{margin:48px 0 0;display:grid;gap:88px}
.site-case{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:56px;align-items:center;scroll-margin-top:calc(var(--header-height) + 24px)}
.site-case:nth-child(even) .site-shots{order:2}
.site-shots{position:relative;display:block;padding:0 12% 9% 0;color:inherit}
.site-browser{border-radius:var(--radius-lg);overflow:hidden;border:1px solid var(--surface-border);background:var(--surface);box-shadow:var(--shadow-strong);transition:transform var(--transition-base)}
.site-bar{display:flex;align-items:center;gap:6px;height:30px;padding:0 12px;background:var(--surface);border-bottom:1px solid var(--surface-border)}
.site-bar i{width:9px;height:9px;border-radius:50%;background:var(--line)}
.site-bar span{margin-left:10px;font-size:11px;color:var(--muted);background:var(--bg);border-radius:var(--radius-pill);padding:3px 12px}
.site-browser img,.site-phone img{display:block;width:100%;height:auto}
.site-phone{position:absolute;right:0;bottom:0;width:25%;border-radius:22px;overflow:hidden;border:5px solid #111;background:#111;box-shadow:var(--shadow-strong);transition:transform var(--transition-base)}
.site-shots-link{display:block;color:inherit}
.site-shots-link:hover .site-browser{transform:translateY(-4px)}
.site-shots-link:hover .site-phone{transform:translateY(-8px)}
.site-info h3{font-size:clamp(26px,3vw,36px);line-height:1.1;letter-spacing:var(--tracking-medium);font-weight:var(--fw-semibold);margin:8px 0 6px}
.site-client{color:var(--muted);font-size:14px;margin:0 0 14px}
.site-info p{line-height:1.6}
.site-info ul{margin:0 0 16px;padding-left:18px;line-height:1.55;font-size:15px}
.site-info li{margin:6px 0}
.site-tags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 20px}
.site-tags span{font-size:12px;border:1px solid var(--surface-border);border-radius:var(--radius-pill);padding:6px 10px;color:var(--muted)}
@media (max-width:860px){.sites{gap:56px;margin-top:32px}.site-case{grid-template-columns:1fr;gap:24px}.site-case:nth-child(even) .site-shots{order:0}}
.site-info h3 a{color:inherit}
.site-badge{display:inline-block;margin-left:6px;padding:3px 8px;border-radius:var(--radius-pill);background:var(--accent-soft);color:var(--text);font-size:11px;letter-spacing:0;text-transform:none;vertical-align:1px}
.sites-group{font-size:clamp(22px,2.4vw,28px);font-weight:var(--fw-semibold);letter-spacing:var(--tracking-medium);margin:0 0 -48px;padding-top:8px;border-top:1px solid var(--surface-border)}
.sites-group span{color:var(--muted);font-weight:var(--fw-regular);margin-left:6px}
.sites-note{margin:0 0 -40px;color:var(--muted);max-width:60ch;line-height:1.6}
.site-hero{margin:32px 0 0}
.site-shots.big{padding:0 10% 7% 0}
.site-shots.big .site-phone{width:22%}
.site-demo-note{color:var(--muted);font-size:14px;border-left:3px solid var(--surface-border);padding-left:12px}
.site-others{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.site-others a{display:block;color:inherit;border:1px solid var(--surface-border);border-radius:var(--radius-md);overflow:hidden;background:var(--surface);transition:transform var(--transition-base)}
.site-others a:hover{transform:translateY(-3px)}
.site-others img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;object-position:top}
.site-others span{display:block;padding:10px 12px;font-size:13px;line-height:1.4;color:var(--muted)}
.site-others b{display:block;color:var(--text);font-weight:var(--fw-semibold)}

/* Two lines of work: header switch and tiles on the portfolio */
.dir-nav{display:flex;gap:2px;padding:3px;margin-left:14px;border:1px solid var(--surface-border);border-radius:var(--radius-pill);flex:0 0 auto}
.dir-nav a{padding:7px 13px;border-radius:var(--radius-pill);font-size:13px;line-height:1;font-weight:var(--fw-medium);color:var(--muted);white-space:nowrap;transition:var(--transition-base)}
.dir-nav a:hover{color:var(--text)}
.dir-nav a[aria-current="page"]{background:var(--surface-strong);color:var(--surface-strong-text)}
.dirs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:12px;margin-top:28px}
.dir-tile{position:relative;display:flex;align-items:stretch;justify-content:space-between;gap:16px;min-height:168px;padding:20px;border:1px solid var(--surface-border);border-radius:var(--radius-xl);background:var(--surface);color:inherit;overflow:hidden;transition:transform var(--transition-base),border-color var(--transition-base),box-shadow var(--transition-base)}
.dir-tile:hover{transform:translateY(-3px);border-color:var(--text);box-shadow:var(--shadow)}
.dir-text{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1 1 auto}
.dir-kicker{font-size:11px;letter-spacing:var(--tracking-label);text-transform:uppercase;color:var(--muted)}
.dir-name{font-size:clamp(20px,2.2vw,26px);line-height:1.1;font-weight:var(--fw-semibold);letter-spacing:var(--tracking-medium)}
.dir-desc{font-size:14px;line-height:1.45;color:var(--muted);max-width:34ch}
.dir-more{margin-top:auto;font-size:14px;font-weight:var(--fw-medium)}
.dir-thumbs{position:relative;flex:0 0 42%;max-width:240px}
.dir-thumbs>img{position:absolute;width:62%;aspect-ratio:3/4;object-fit:cover;border-radius:var(--radius-md);box-shadow:var(--shadow-strong)}
.dir-thumbs>img:nth-child(1){right:38%;top:14%;transform:rotate(-6deg)}
.dir-thumbs>img:nth-child(2){right:19%;top:4%;transform:rotate(2deg);z-index:1}
.dir-thumbs>img:nth-child(3){right:0;top:18%;transform:rotate(7deg);z-index:2}
.dir-site{position:absolute;width:84%;border-radius:8px;overflow:hidden;border:1px solid var(--surface-border);box-shadow:var(--shadow-strong);background:var(--surface)}
.dir-site::before{content:"";display:block;height:9px;background:var(--bg);border-bottom:1px solid var(--surface-border)}
.dir-site img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;object-position:top}
.dir-site{right:14%;top:50%;transform:translateY(-50%)}
.dir-phone{position:absolute;right:0;bottom:2%;width:30%;border:3px solid #111;border-radius:12px;overflow:hidden;background:#111;box-shadow:var(--shadow-strong);z-index:1}
.dir-phone img{display:block;width:100%;aspect-ratio:9/16;object-fit:cover;object-position:top}
.bottom-nav a.current{color:var(--text);border-color:var(--surface-border)}
.case-faq summary::after{transition:transform .34s cubic-bezier(.2,.7,.2,1)}
.case-faq p{transition:opacity .34s ease}
.case-faq.is-opening p{animation:faq-in .34s ease both}
@keyframes faq-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.home-faq{max-width:820px;margin:72px auto 24px}
.home-faq .related-title{margin-bottom:8px}
@media (max-width:860px){.dir-thumbs{flex-basis:38%}}
@media (max-width:640px){.dirs{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin-top:20px}.dir-tile{min-height:0;padding:14px;flex-direction:column;gap:10px;border-radius:var(--radius-lg)}.dir-thumbs{display:none}.dir-desc{display:none}.dir-name{font-size:17px}.dir-kicker{font-size:10px}
  .dir-nav{margin-left:8px}.dir-nav a{padding:7px 10px}}
@media (max-width:420px){.site-header .header-cta{display:none}}

/* websites: full page width like the video portfolio */
[data-section="sites"] .case-layout{max-width:none;grid-template-columns:minmax(0,1fr) 340px;gap:64px}
[data-section="sites"] .case-body{max-width:900px}
[data-section="sites"] .case-cta{max-width:none}
[data-section="sites"] .site-shots.big{padding:0 9% 6% 0}
.case-intro .dirs{grid-column:1/-1;margin-top:8px}
.dir-tile.is-current{border-color:var(--text);box-shadow:inset 0 0 0 1px var(--text)}
.dir-tile.is-current .dir-kicker{color:var(--text)}
.dir-tile:not(.is-current){opacity:.92}
.dir-tile:not(.is-current):hover{opacity:1}
@media (max-width:1000px){[data-section="sites"] .case-layout{grid-template-columns:1fr;gap:28px}}
.site-browser video{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;background:#0b0b0c}
.site-feature{border-left:3px solid var(--text);padding-left:12px}

/* Contact button (replaces the phone bottom bar) and the on-site chat */
#site-bottom-nav{position:static!important;height:auto!important;display:block!important;pointer-events:auto!important;transform:none!important}
body{padding-bottom:0!important}
.contact-fab{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:2147483001;display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.fab{width:56px;height:56px;border-radius:50%;border:0;background:var(--surface-strong);color:var(--surface-strong-text);display:grid;place-items:center;cursor:pointer;box-shadow:0 10px 30px rgba(0,0,0,.18);transition:transform .5s cubic-bezier(.22,1,.36,1)}
.fab:hover{transform:translateY(-2px)}
.fab:active{transform:scale(.96)}
.fab .ic{width:26px;height:26px}
.fab span{grid-area:1/1;display:grid;transition:opacity .3s cubic-bezier(.22,1,.36,1),transform .5s cubic-bezier(.22,1,.36,1)}
.fab .fab-off{opacity:0;transform:rotate(-90deg) scale(.6)}
.contact-fab.open .fab .fab-on{opacity:0;transform:rotate(90deg) scale(.6)}
.contact-fab.open .fab .fab-off{opacity:1;transform:none}
.fab-menu{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.fab-menu[hidden]{display:none}
.fab-item{display:inline-flex;align-items:center;gap:8px;padding:10px 16px 10px 12px;border-radius:999px;border:1px solid var(--surface-border);background:var(--nav-bg);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:var(--text);font:inherit;font-size:15px;font-weight:var(--fw-medium);text-decoration:none;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.08);opacity:0;transform:translateY(12px);animation:fabin .5s cubic-bezier(.22,1,.36,1) forwards}
.fab-item .ic{width:20px;height:20px}
.fab-item:hover{background:var(--surface);border-color:var(--text)}
.fab-item:nth-last-child(1){animation-delay:0s}.fab-item:nth-last-child(2){animation-delay:.05s}.fab-item:nth-last-child(3){animation-delay:.1s}.fab-item:nth-last-child(4){animation-delay:.15s}
@keyframes fabin{to{opacity:1;transform:none}}
html:has(.vmodal.open) .contact-fab,html:has(.vmodal.open) .chat{display:none}
.chat{position:fixed;right:16px;bottom:calc(88px + env(safe-area-inset-bottom,0px));z-index:2147483002;width:min(380px,calc(100vw - 32px));max-height:min(620px,calc(100dvh - 120px));display:flex;flex-direction:column;background:var(--surface);color:var(--text);border:1px solid var(--surface-border);border-radius:24px;box-shadow:0 24px 60px rgba(0,0,0,.2);overflow:hidden;opacity:0;transform:translateY(16px);transition:opacity .3s cubic-bezier(.22,1,.36,1),transform .5s cubic-bezier(.22,1,.36,1)}
.chat[hidden]{display:none}
.chat.open{opacity:1;transform:none}
.chat-h{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:16px 16px 12px 20px;border-bottom:1px solid var(--surface-border)}
.chat-h b{display:block;font-size:16px;font-weight:var(--fw-semibold)}
.chat-h span{display:block;font-size:13px;line-height:1.4;color:var(--muted);margin-top:2px}
.chat-x{border:0;background:none;color:var(--muted);width:36px;height:36px;border-radius:50%;display:grid;place-items:center;cursor:pointer;flex:none}
.chat-x:hover{background:var(--card);color:var(--text)}
.chat-x .ic{width:20px;height:20px}
.chat-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:8px;min-height:120px}
.msg{max-width:85%;display:flex;flex-direction:column}
.msg p{margin:0;padding:10px 14px;border-radius:18px;font-size:14px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.msg.us{align-self:flex-start}.msg.us p{background:var(--card);border-bottom-left-radius:6px}
.msg.me{align-self:flex-end}.msg.me p{background:var(--surface-strong);color:var(--surface-strong-text);border-bottom-right-radius:6px}
.msg small{font-size:11px;color:var(--muted);margin:4px 8px 0}
.msg.me small{align-self:flex-end}
.chat-f{padding:12px 16px 16px;border-top:1px solid var(--surface-border);display:flex;flex-direction:column;gap:8px}
.chat-who{display:grid;gap:8px}
.chat-f input,.chat-f textarea{width:100%;border:1px solid var(--surface-border);background:var(--bg);color:var(--text);border-radius:14px;padding:10px 12px;font:inherit;font-size:15px;outline:0;transition:border-color .3s cubic-bezier(.22,1,.36,1)}
.chat-f input:focus,.chat-f textarea:focus{border-color:var(--text)}
.chat-f textarea{resize:none;min-height:44px;max-height:140px}
.chat-row{display:flex;gap:8px;align-items:flex-end}
.chat-send{flex:none;width:44px;height:44px;border-radius:50%;border:0;background:var(--surface-strong);color:var(--surface-strong-text);display:grid;place-items:center;cursor:pointer;transition:transform .5s cubic-bezier(.22,1,.36,1),opacity .3s}
.chat-send:active{transform:scale(.94)}
.chat-send[disabled]{opacity:.5;cursor:default}
.chat-send .ic{width:20px;height:20px}
.chat-me{margin:0;font-size:13px;color:var(--muted)}
.chat-me button{border:0;background:none;padding:0;color:var(--text);text-decoration:underline;text-underline-offset:3px;font:inherit;cursor:pointer}
.chat-err{margin:0;font-size:13px;color:#c0392b;min-height:0}
.chat-err:empty{display:none}
.chat-note{margin:0;font-size:11px;line-height:1.4;color:var(--muted)}
.chat .hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
@media (max-width:640px){
  .contact-fab{right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  .chat{left:8px;right:8px;width:auto;bottom:calc(8px + env(safe-area-inset-bottom,0px));max-height:calc(100dvh - 72px);border-radius:24px}
  html:has(.chat.open) .contact-fab{display:none}
}
@media (prefers-reduced-motion:reduce){.fab,.fab span,.fab-item,.chat{transition:none;animation:none;opacity:1;transform:none}}
.chat-who[hidden],.chat-me[hidden]{display:none}
.msg.us p{background:var(--bg);border:1px solid var(--surface-border)}

/* Contact menu v2: coloured round buttons in brand colours, label on the left (order: call, Telegram, Viber, WhatsApp, MAX, mail, chat) */
.fab-menu{gap:10px}
.fab-item{display:flex;align-items:center;gap:12px;padding:0;border:0;background:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;border-radius:0;color:var(--text);text-decoration:none;cursor:pointer;font:inherit}
.fab-item[hidden]{display:none}
.fab-item:hover{background:none;border:0}
.fab-c{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;color:#fff;flex:none;box-shadow:0 6px 18px rgba(0,0,0,.18);transition:transform .5s cubic-bezier(.22,1,.36,1),box-shadow .3s cubic-bezier(.22,1,.36,1)}
.fab-c .ic{width:24px;height:24px}
.fab-item:hover .fab-c,.fab-item:focus-visible .fab-c{transform:scale(1.08);box-shadow:0 10px 24px rgba(0,0,0,.22)}
.fab-item:active .fab-c{transform:scale(.96)}
.fab-l{background:var(--surface);color:var(--text);border:1px solid var(--surface-border);padding:6px 12px;border-radius:999px;font-size:14px;line-height:20px;font-weight:var(--fw-semibold);white-space:nowrap;box-shadow:0 4px 14px rgba(0,0,0,.08)}
.fi-call .fab-c{background:#2fb553}
.fi-tg .fab-c{background:#2aabee}
.fi-viber .fab-c{background:#7360f2}
.fi-wa .fab-c{background:#25d366}
.fi-max .fab-c{background:#4f5bff}
.fi-mail .fab-c{background:#ea4335}
.fi-chat .fab-c{background:var(--surface-strong);color:var(--surface-strong-text)}
.fi-wa .fab-c .ic,.fi-tg .fab-c .ic,.fi-viber .fab-c .ic{width:26px;height:26px}
.max-t{font-weight:800;font-size:13px;letter-spacing:.03em;line-height:1}
.fab-item:nth-last-child(1){animation-delay:0s}.fab-item:nth-last-child(2){animation-delay:.04s}.fab-item:nth-last-child(3){animation-delay:.08s}.fab-item:nth-last-child(4){animation-delay:.12s}.fab-item:nth-last-child(5){animation-delay:.16s}.fab-item:nth-last-child(6){animation-delay:.2s}.fab-item:nth-last-child(7){animation-delay:.24s}
.contact-fab.open::before{content:"";position:fixed;inset:0;background:rgba(0,0,0,.18);z-index:-1;animation:fadein .3s ease forwards}
@keyframes fadein{from{opacity:0}to{opacity:1}}

/* mail panel */
.mailbox{max-height:none}
.mail-b{padding:20px;display:grid;gap:8px}
.mail-a{font-size:20px;line-height:28px;font-weight:var(--fw-semibold);margin:0 0 8px;user-select:all;overflow-wrap:anywhere}
.mail-btn{display:flex;gap:10px;align-items:center;padding:12px 14px;border-radius:14px;border:1px solid var(--surface-border);background:var(--bg);color:var(--text);font:inherit;font-size:15px;text-decoration:none;cursor:pointer;transition:border-color .3s cubic-bezier(.22,1,.36,1),transform .5s cubic-bezier(.22,1,.36,1)}
.mail-btn:hover{border-color:var(--text)}
.mail-btn:active{transform:scale(.98)}
.mail-btn.primary{background:var(--surface-strong);color:var(--surface-strong-text);border-color:transparent}
.mail-btn .ic{width:20px;height:20px;flex:none}
.mail-ok{font-size:13px;margin:4px 0 0;color:var(--muted)}
.mail-ok:empty{display:none}
html:has(.vmodal.open) .mailbox{display:none}
@media (max-width:640px){html:has(.mailbox.open) .contact-fab{display:none}}

/* chat: buttons in the fallback message */
.msg .acts{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 0}
.msg .acts a{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;color:#fff;font-size:14px;font-weight:var(--fw-semibold);text-decoration:none}
.msg .acts a .ic{width:18px;height:18px}

/* footer social icons */
.socials{display:flex;gap:8px;margin-top:8px}
.socials .so{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--card);color:var(--text);transition:transform .5s cubic-bezier(.22,1,.36,1)}
.socials .so:hover{transform:translateY(-2px)}
.socials .so[hidden]{display:none}
.socials .so .ic{width:18px;height:18px}
@media (prefers-reduced-motion:reduce){.fab-c,.mail-btn,.socials .so{transition:none}.contact-fab.open::before{animation:none;opacity:1}}
