/* ==========================================================================
   Underdog Theme — main stylesheet
   Dark, editorial, creative-agency portfolio aesthetic
   ========================================================================== */

/* ----- Custom properties ----- */
:root {
	/* Light theme — white site background */
	--ud-bg: #ffffff;
	--ud-bg-2: #f5f5f3;
	--ud-bg-3: #ececea;
	--ud-fg: #000000;
	--ud-fg-dim: #555555;
	--ud-fg-mid: #000000;
	--ud-accent: #573F99; /* tertiary purple from the hero gradient */
	--ud-line: rgba(0, 0, 0, 0.10);
	--ud-line-strong: rgba(0, 0, 0, 0.25);

	/* Hero gradient (also used wherever a colored block is needed) */
	--ud-hero-gradient: linear-gradient(90deg, rgba(0, 144, 209, 1) 0%, rgba(55, 103, 177, 1) 50%, rgba(87, 63, 153, 1) 100%);

	--ud-font-display: 'Arvo', Georgia, serif;
	--ud-font-body: 'Arvo', Georgia, serif;

	--ud-max: 1480px;
	--ud-gutter: clamp(20px, 4vw, 60px);

	--ud-ease: cubic-bezier(0.65, 0, 0.35, 1);
	--ud-ease-out: cubic-bezier(0.16, 1, 0.3, 1);

	/* Font-size scale multipliers (1 = theme default). Overridable from
	   Customizer → Typography / Font Sizes. */
	--ud-fs-global: 1;   /* affects every text size site-wide */
	--ud-fs-body: 1;     /* body / paragraph / intro copy */
	--ud-fs-heading: 1;  /* all major headings & titles */
	--ud-fs-work: 1;     /* work page card titles & meta */
	--ud-fs-crumb: 1;    /* breadcrumbs */
}

/* ----- Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--ud-bg);
	color: var(--ud-fg);
	font-family: var(--ud-font-body);
	font-size: calc(14px * var(--ud-fs-global, 1) * var(--ud-fs-body, 1));
	line-height: 1.55;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

body.has-custom-cursor { cursor: none; }
body.has-custom-cursor a, body.has-custom-cursor button { cursor: none; }
@media (hover: none), (pointer: coarse) { body.has-custom-cursor { cursor: auto; } body.has-custom-cursor a, body.has-custom-cursor button { cursor: auto; } }

body.menu-open { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: opacity .3s var(--ud-ease); }
a:hover { opacity: .7; }

button { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ud-font-display);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.02em;
	margin: 0;
}

p { margin: 0; }

::selection { background: var(--ud-accent); color: var(--ud-bg); }

.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px;
	margin: -1px; overflow: hidden; padding: 0; position: absolute; word-wrap: normal !important;
}
.skip-link {
	position: absolute; top: -40px; left: 6px; background: var(--ud-accent); color: var(--ud-bg);
	padding: 8px 16px; z-index: 10000; font-weight: 600;
}
.skip-link:focus { top: 6px; }

/* ----- Container ----- */
.container {
	width: 100%;
	max-width: var(--ud-max);
	margin: 0 auto;
	padding-left: var(--ud-gutter);
	padding-right: var(--ud-gutter);
}
.container--narrow { max-width: 800px; }

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.ud-preloader {
	position: fixed; inset: 0;
	background: var(--ud-bg);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}
.ud-preloader__inner {
	width: 100%;
	max-width: 600px;
	padding: 0 var(--ud-gutter);
	text-align: center;
}
.ud-preloader__text {
	font-family: var(--ud-font-display);
	font-size: calc((clamp(30px, 8vw, 90px)) * var(--ud-fs-global, 1));
	font-weight: 700;
	letter-spacing: -0.04em;
	margin-bottom: 32px;
	color: var(--ud-fg);
	overflow: hidden;
}
.ud-preloader__count {
	font-family: var(--ud-font-display);
	font-size: calc((10.5px) * var(--ud-fs-global, 1));
	letter-spacing: 0.1em;
	color: var(--ud-fg-dim);
	margin-bottom: 24px;
}
.ud-preloader__bar {
	height: 1px;
	background: var(--ud-line);
	overflow: hidden;
}
.ud-preloader__bar span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--ud-accent);
	transition: width 0.1s linear;
}
body.is-loaded .ud-preloader { pointer-events: none; }

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.ud-cursor {
	position: fixed;
	top: 0; left: 0;
	width: 0; height: 0;
	pointer-events: none;
	z-index: 9998;
	will-change: transform;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.ud-cursor.is-ready { opacity: 1; }
.ud-cursor__dot, .ud-cursor__ring {
	position: absolute;
	border-radius: 50%;
	transform: translate(-50%, -50%);
}
.ud-cursor__dot {
	width: 8px; height: 8px;
	background: var(--ud-accent);
	box-shadow: 0 0 0 2px rgba(255,255,255,0.85);
	transition: transform 0.2s var(--ud-ease), background 0.2s ease, opacity 0.2s ease;
}
.ud-cursor__ring {
	width: 40px; height: 40px;
	border: 2px solid var(--ud-accent);
	background: rgba(255, 255, 255, 0.05);
	box-shadow: 0 0 0 1px rgba(255,255,255,0.4);
	transition: transform 0.4s var(--ud-ease), opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease, width 0.4s var(--ud-ease), height 0.4s var(--ud-ease);
}
.ud-cursor__label {
	position: absolute;
	transform: translate(20px, 20px);
	font-family: var(--ud-font-display);
	font-size: calc((9px) * var(--ud-fs-global, 1));
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #ffffff;
	background: var(--ud-accent);
	padding: 4px 10px;
	border-radius: 999px;
	opacity: 0;
	transition: opacity 0.3s ease;
	white-space: nowrap;
}
.ud-cursor.is-hover .ud-cursor__ring {
	transform: translate(-50%, -50%) scale(1.8);
	background: var(--ud-accent);
	border-color: var(--ud-accent);
}
.ud-cursor.is-hover .ud-cursor__dot { opacity: 0; }
.ud-cursor.has-label .ud-cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .ud-cursor { display: none !important; } }

/* ==========================================================================
   HEADER & NAV
   ========================================================================== */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	padding: 18px 0;
	transition: background 0.4s var(--ud-ease), padding 0.4s var(--ud-ease), box-shadow 0.4s var(--ud-ease);
	background: #ffffff;
	color: var(--ud-fg);
	border-bottom: 1px solid var(--ud-line);
}
.site-header.is-scrolled {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	padding: 14px 0;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}
.site-header__inner {
	max-width: var(--ud-max);
	margin: 0 auto;
	padding: 0 var(--ud-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.site-branding .site-title {
	font-family: var(--ud-font-display);
	font-weight: 700;
	font-size: calc((15px) * var(--ud-fs-global, 1));
	letter-spacing: -0.02em;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ud-fg);
}
.site-title__mark { color: var(--ud-accent); font-size: calc((18px) * var(--ud-fs-global, 1)); line-height: 0; }
.custom-logo-link img { max-height: 40px; width: auto; }

.primary-menu {
	display: flex;
	gap: 36px;
	list-style: none;
	margin: 0; padding: 0;
	font-family: var(--ud-font-display);
	font-size: calc(18px * var(--ud-fs-global, 1));
	font-weight: 500;
	letter-spacing: 0.02em;
}
.primary-menu > li {
	position: relative;
}
.primary-menu a {
	position: relative;
	padding: 4px 0;
	color: var(--ud-fg);
	display: inline-block;
}
.primary-menu > li > a::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 1px;
	background: var(--ud-accent);
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform 0.4s var(--ud-ease);
}
.primary-menu a:hover { opacity: 1; }
.primary-menu > li > a:hover::after { transform: scaleX(1); transform-origin: left center; }

/* Simple "+" icon on items that have a submenu — appears on the right with spacing, no animation */
.primary-menu .menu-item-has-children > a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.primary-menu .menu-item-has-children > a::after {
	content: '+';
	font-family: var(--ud-font-display);
	font-size: calc((14px) * var(--ud-fs-global, 1));
	font-weight: 400;
	line-height: 1;
	color: currentColor;
	flex-shrink: 0;
}

/* Submenu (desktop dropdown) */
.primary-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 12px 0;
	position: absolute;
	top: calc(100% + 8px);
	left: -16px;
	min-width: 220px;
	background: #ffffff;
	border-radius: 8px;
	border: 1px solid var(--ud-line);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.25s var(--ud-ease), transform 0.25s var(--ud-ease), visibility 0.25s var(--ud-ease);
	z-index: 110;
}
.primary-menu > li:hover > .sub-menu,
.primary-menu > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.primary-menu .sub-menu li {
	display: block;
}
.primary-menu .sub-menu a {
	display: block;
	padding: 10px 22px;
	font-size: calc((10.5px) * var(--ud-fs-global, 1));
	color: var(--ud-fg);
	white-space: nowrap;
	transition: background 0.2s var(--ud-ease), color 0.2s var(--ud-ease);
}
.primary-menu .sub-menu a::after { display: none; }
.primary-menu .sub-menu a:hover {
	background: var(--ud-bg-2);
	color: var(--ud-accent);
}

.menu-toggle {
	display: none;
	width: 44px; height: 44px;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	align-items: center;
	color: var(--ud-fg);
	position: relative;
	z-index: 101; /* sits above the open menu panel */
	border-radius: 50%;
	transition: background 0.3s var(--ud-ease);
}
.menu-toggle:hover { background: var(--ud-bg-2); opacity: 1; }
.menu-toggle__line {
	display: block;
	width: 26px; height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.35s var(--ud-ease), background 0.3s var(--ud-ease);
	transform-origin: center center;
}
.menu-toggle.is-open {
	color: var(--ud-accent);
}
.menu-toggle.is-open .menu-toggle__line:first-child {
	transform: translateY(5px) rotate(45deg);
}
.menu-toggle.is-open .menu-toggle__line:last-child {
	transform: translateY(-5px) rotate(-45deg);
}

.main-navigation__close {
	display: none;
}

@media (max-width: 900px) {
	.menu-toggle { display: flex; }
	.main-navigation {
		position: fixed;
		top: 0; right: 0;
		width: min(420px, 100%);
		height: 100vh;
		background: var(--ud-bg);
		color: var(--ud-fg);
		padding: 90px 32px 40px;
		transform: translateX(100%);
		transition: transform 0.5s var(--ud-ease);
		z-index: 99;
		box-shadow: -20px 0 60px rgba(0,0,0,0.1);
		overflow-y: auto;
	}
	.main-navigation.is-open { transform: translateX(0); }
	.main-navigation__close {
		display: inline-flex;
		position: absolute;
		top: 22px; right: 22px;
		width: 44px; height: 44px;
		border-radius: 50%;
		background: var(--ud-accent);
		color: #ffffff;
		align-items: center;
		justify-content: center;
		border: 0;
		cursor: pointer;
		z-index: 2;
		transition: transform 0.3s var(--ud-ease), background 0.3s var(--ud-ease);
		box-shadow: 0 8px 24px rgba(87, 63, 153, 0.3);
	}
	.main-navigation__close:hover { transform: scale(1.08) rotate(90deg); opacity: 1; }
	.primary-menu {
		flex-direction: column;
		gap: 24px;
		font-size: calc((21px) * var(--ud-fs-global, 1));
		color: var(--ud-fg);
		align-items: flex-start;
	}
	.primary-menu > li { width: 100%; }
	.primary-menu .menu-item-has-children > a {
		justify-content: space-between;
		width: 100%;
	}
	/* Inline submenu on mobile — no dropdown overlay, just indented list */
	.primary-menu .sub-menu {
		position: static;
		opacity: 0;
		visibility: hidden;
		transform: none;
		max-height: 0;
		overflow: hidden;
		min-width: 0;
		background: transparent;
		border: 0;
		box-shadow: none;
		padding: 0;
		margin: 0;
		transition: max-height 0.4s var(--ud-ease), opacity 0.3s var(--ud-ease), visibility 0.3s var(--ud-ease), margin 0.4s var(--ud-ease);
		width: 100%;
	}
	.primary-menu > li:hover > .sub-menu,
	.primary-menu > li:focus-within > .sub-menu,
	.primary-menu > li.is-open > .sub-menu {
		opacity: 1;
		visibility: visible;
		max-height: 600px;
		margin-top: 12px;
	}
	.primary-menu .sub-menu a {
		padding: 8px 0 8px 18px;
		font-size: calc((12.75px) * var(--ud-fs-global, 1));
		font-weight: 400;
		border-left: 2px solid var(--ud-line);
		white-space: normal;
	}
	.primary-menu .sub-menu a:hover {
		background: transparent;
		color: var(--ud-accent);
		border-left-color: var(--ud-accent);
	}
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.ud-button {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 16px 28px;
	border-radius: 999px;
	font-family: var(--ud-font-display);
	font-size: calc((10.5px) * var(--ud-fs-global, 1));
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: transform 0.4s var(--ud-ease), background 0.4s var(--ud-ease), color 0.4s var(--ud-ease), border-color 0.4s var(--ud-ease);
	position: relative;
	overflow: hidden;
	white-space: nowrap;
}
.ud-button:hover { opacity: 1; transform: translateY(-2px); }
.ud-button__arrow { transition: transform 0.4s var(--ud-ease); }
.ud-button:hover .ud-button__arrow { transform: translateX(4px); }

.ud-button--accent { background: var(--ud-accent); color: #ffffff; }
.ud-button--accent:hover { background: var(--ud-fg); color: #ffffff; }

.ud-button--ghost { background: transparent; color: var(--ud-fg); border: 1px solid var(--ud-line-strong); }
.ud-button--ghost:hover { background: var(--ud-fg); color: var(--ud-bg); border-color: var(--ud-fg); }

.ud-button--outline { background: transparent; color: var(--ud-fg); border: 1px solid var(--ud-fg); }
.ud-button--outline:hover { background: var(--ud-accent); color: #ffffff; border-color: var(--ud-accent); }

/* ==========================================================================
   HERO
   ========================================================================== */
/* ==========================================================================
   HERO — centered big logo/wordmark + paragraph + bottom bar
   ========================================================================== */
.ud-hero {
	position: relative;
	min-height: 100vh;
	display: grid;
	grid-template-rows: 1fr auto;
	overflow: hidden;
	background: var(--ud-hero-gradient) !important;
	color: #ffffff;
	padding-top: 100px; /* leave space for the fixed white header */
}
.ud-hero__bg {
	position: absolute; inset: -10%;
	background:
		radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.12), transparent 55%),
		radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08), transparent 55%);
	z-index: 0;
	will-change: transform;
}

.ud-hero__center {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 40px 0 60px;
}

.ud-hero__logo {
	margin-bottom: 48px;
	width: 100%;
	display: flex;
	justify-content: center;
}
.ud-hero__logo img {
	max-width: min(1200px, 90vw);
	width: auto;
	height: auto;
	max-height: 40vh;
	object-fit: contain;
}

.ud-hero__wordmark {
	font-family: var(--ud-font-display);
	font-size: calc((clamp(60px, 18vw, 210px)) * var(--ud-fs-global, 1));
	font-weight: 700;
	letter-spacing: -0.05em;
	line-height: 0.9;
	margin: 0 0 48px;
	color: #ffffff;
	position: relative;
	display: inline-block;
}
.ud-hero__wordmark-reg {
	position: absolute;
	top: 0.15em;
	font-size: 0.18em;
	font-weight: 500;
	letter-spacing: 0;
	margin-left: 0.06em;
	vertical-align: super;
}

.ud-hero__subtitle {
	font-size: calc((clamp(10.5px, 1.3vw, 15px)) * var(--ud-fs-global, 1));
	color: rgba(255, 255, 255, 0.92);
	max-width: 78ch;
	margin: 0 auto;
	line-height: 1.5;
	font-weight: 400;
}

/* Bottom bar — scroll cue on left, featured projects on right */
.ud-hero__bottom {
	position: relative;
	z-index: 2;
	padding-bottom: 32px;
}
.ud-hero__bottom-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
}

.ud-hero__scroll-cue {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: #ffffff;
	font-family: var(--ud-font-body);
	font-size: calc((11.25px) * var(--ud-fs-global, 1));
	letter-spacing: 0.01em;
}
.ud-hero__scroll-cue:hover { opacity: 1; }
.ud-hero__scroll-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px; height: 38px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.4);
	font-size: calc((14px) * var(--ud-fs-global, 1));
	transition: background 0.4s var(--ud-ease), border-color 0.4s var(--ud-ease), transform 0.4s var(--ud-ease);
	animation: udScrollArrowBob 2.4s ease-in-out infinite;
}
.ud-hero__scroll-cue:hover .ud-hero__scroll-arrow {
	background: #ffffff;
	color: var(--ud-accent);
	border-color: #ffffff;
}
@keyframes udScrollArrowBob {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(6px); }
}
.ud-hero__scroll-text { white-space: nowrap; }

.ud-hero__featured {
	color: #ffffff;
	font-family: var(--ud-font-body);
	font-size: calc((11.25px) * var(--ud-fs-global, 1));
	position: relative;
	padding-bottom: 4px;
}
.ud-hero__featured::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 1px;
	background: rgba(255, 255, 255, 0.5);
	transform: scaleX(0.4);
	transform-origin: left center;
	transition: transform 0.4s var(--ud-ease), background 0.4s var(--ud-ease);
}
.ud-hero__featured:hover { opacity: 1; }
.ud-hero__featured:hover::after {
	transform: scaleX(1);
	background: #ffffff;
}

@media (max-width: 600px) {
	.ud-hero__bottom-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
	.ud-hero__wordmark { font-size: calc((clamp(48px, 22vw, 105px)) * var(--ud-fs-global, 1)); }
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.ud-marquee {
	border-top: 1px solid var(--ud-line);
	border-bottom: 1px solid var(--ud-line);
	overflow: hidden;
	padding: 24px 0;
	background: var(--ud-bg);
}
.ud-marquee__track {
	display: flex;
	gap: 60px;
	white-space: nowrap;
	font-family: var(--ud-font-display);
	font-size: calc((clamp(21px, 5vw, 54px)) * var(--ud-fs-global, 1));
	font-weight: 600;
	letter-spacing: -0.02em;
	will-change: transform;
}
.ud-marquee__item {
	display: inline-block;
	color: var(--ud-fg);
}
.ud-marquee__item:nth-child(2n) { color: var(--ud-accent); }
.ud-marquee {
	background: var(--ud-bg);
}


/* ==========================================================================
   WORK / PROJECTS GRID
   ========================================================================== */
.ud-work {
	padding: 70px 0;
}
.ud-work__head { margin-bottom: 40px; }
.ud-work__label {
	font-family: var(--ud-font-display);
	font-size: calc((10.5px) * var(--ud-fs-global, 1) * var(--ud-fs-body, 1));
	color: var(--ud-fg-dim);
	letter-spacing: 0.05em;
	margin-bottom: 12px;
}
.ud-work__heading {
	font-size: calc((clamp(30px, 6vw, 72px)) * var(--ud-fs-global, 1) * var(--ud-fs-heading, 1));
	font-weight: 500;
	letter-spacing: -0.03em;
}
.ud-work__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}
@media (max-width: 1100px) { .ud-work__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .ud-work__grid { grid-template-columns: 1fr; } }

.ud-project {
	display: block;
	color: var(--ud-fg);
	position: relative;
}
.ud-project:hover { opacity: 1; }
/* Stagger disabled for the 3-column grid so rows align cleanly. */
.ud-project--right { transform: none; }

.ud-project__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: var(--ud-bg-2);
	border: 1px solid var(--ud-line);
	border-radius: 8px;
	margin-bottom: 24px;
}
.ud-project__img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ud-ease);
	will-change: transform;
}
.ud-project__img--placeholder {
	width: 100%; height: 100%;
	background: linear-gradient(135deg, var(--ud-bg-2), var(--ud-bg-3));
}
.ud-project:hover .ud-project__img { transform: scale(1.06); }

.ud-project__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0);
	transition: background 0.5s var(--ud-ease);
}
.ud-project__view {
	font-family: var(--ud-font-display);
	font-size: calc((9.75px) * var(--ud-fs-global, 1));
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #ffffff;
	background: var(--ud-accent);
	padding: 14px 24px;
	border: 1px solid var(--ud-accent);
	border-radius: 999px;
	transform: translateY(20px);
	opacity: 0;
	transition: transform 0.5s var(--ud-ease), opacity 0.5s var(--ud-ease);
}
.ud-project:hover .ud-project__overlay { background: rgba(87, 63, 153, 0.25); }
.ud-project:hover .ud-project__view { transform: translateY(0); opacity: 1; }

.ud-project__info { padding: 0 4px; }
.ud-project__top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 8px;
	gap: 16px;
}
.ud-project__title {
	font-size: calc((clamp(16.5px, 2vw, 24px)) * 0.8 * var(--ud-fs-global, 1));
	font-weight: 500;
	letter-spacing: -0.02em;
}
.ud-project__year {
	font-family: var(--ud-font-display);
	font-size: calc((10.5px) * var(--ud-fs-global, 1));
	color: var(--ud-fg-dim);
}
.ud-project__bottom {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-family: var(--ud-font-display);
	font-size: calc((9.75px) * var(--ud-fs-global, 1));
	color: var(--ud-fg-mid);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.ud-project__tagline {
	color: var(--ud-fg-dim);
	font-size: calc((11.25px) * var(--ud-fs-global, 1));
	margin-top: 12px;
	max-width: 50ch;
}

.ud-work__more {
	text-align: center;
	margin-top: 100px;
}

.ud-empty {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--ud-fg-dim);
	padding: 80px 20px;
	font-size: calc((13.5px) * var(--ud-fs-global, 1));
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ud-bg); border-top: 1px solid var(--ud-line); }
.site-footer__main { padding: 50px 0 32px; }

.footer-info {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 32px;
	flex-wrap: wrap;
	margin-bottom: 36px;
}
.footer-info__address {
	font-style: normal;
	font-size: calc((11.25px) * var(--ud-fs-global, 1));
	line-height: 1.55;
	color: #000000;
	max-width: 60ch;
}
.footer-info__left {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}
.footer-info__right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 16px;
	margin-left: auto;
}
.footer-info__email {
	font-size: calc((12.75px) * var(--ud-fs-global, 1));
	color: var(--ud-accent);
	font-weight: 700;
	border-bottom: 1px solid var(--ud-line-strong);
	padding-bottom: 4px;
	transition: border-color 0.3s var(--ud-ease), opacity 0.3s ease;
}
.footer-info__email:hover { border-color: var(--ud-accent); opacity: 0.75; }

.footer-social {
	display: flex;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.footer-social li { margin: 0; }
.footer-social a {
	width: 40px; height: 40px;
	border-radius: 50%;
	border: 1px solid var(--ud-line-strong);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #000000;
	transition: background 0.3s var(--ud-ease), color 0.3s var(--ud-ease), border-color 0.3s var(--ud-ease), transform 0.3s var(--ud-ease);
}
.footer-social a:hover {
	background: var(--ud-accent);
	color: #ffffff;
	border-color: var(--ud-accent);
	transform: translateY(-2px);
	opacity: 1;
}

@media (max-width: 700px) {
	.footer-info { flex-direction: column; gap: 24px; }
	.footer-info__left { align-items: flex-start; }
	.footer-info__right { align-items: flex-start; margin-left: 0; }
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	border-top: 1px solid var(--ud-line);
	padding-top: 28px;
	font-family: var(--ud-font-display);
	font-size: calc((9.75px) * var(--ud-fs-global, 1));
	color: var(--ud-fg-dim);
	flex-wrap: wrap;
}
.footer-copy, .footer-credit { margin: 0; }
.footer-credit a {
	color: var(--ud-fg);
	border-bottom: 1px solid var(--ud-line-strong);
	padding-bottom: 2px;
	transition: color 0.3s var(--ud-ease), border-color 0.3s var(--ud-ease);
}
.footer-credit a:hover {
	color: var(--ud-accent);
	border-color: var(--ud-accent);
	opacity: 1;
}
@media (max-width: 600px) {
	.footer-bottom { flex-direction: column; gap: 12px; }
}

/* ==========================================================================
   REVEAL ANIMATIONS (initial state, JS adds .is-visible)
   ========================================================================== */
[data-reveal] {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.9s var(--ud-ease-out), transform 0.9s var(--ud-ease-out);
}
[data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

[data-split] .split-line {
	display: block;
	overflow: hidden;
}
[data-split] .split-line__inner {
	display: block;
	transform: translateY(110%);
	transition: transform 1s var(--ud-ease-out);
}
[data-split].is-visible .split-line__inner {
	transform: translateY(0);
}
[data-split].is-visible .split-line:nth-child(2) .split-line__inner { transition-delay: 0.08s; }
[data-split].is-visible .split-line:nth-child(3) .split-line__inner { transition-delay: 0.16s; }
[data-split].is-visible .split-line:nth-child(4) .split-line__inner { transition-delay: 0.24s; }
[data-split].is-visible .split-line:nth-child(5) .split-line__inner { transition-delay: 0.32s; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	[data-reveal], [data-split] .split-line__inner { opacity: 1; transform: none; }
	.ud-cursor { display: none; }
}

/* ==========================================================================
   PRODUCTS (uses .ud-work base styles)
   ========================================================================== */
.ud-products .ud-work__intro {
	margin-top: 24px;
	max-width: 60ch;
	color: var(--ud-fg-mid);
	font-size: calc((clamp(12px, 1.3vw, 14.25px)) * var(--ud-fs-global, 1));
	line-height: 1.55;
}

/* ==========================================================================
   FULL-WIDTH YOUTUBE VIDEO
   ========================================================================== */
.ud-video {
	padding: 40px 0 50px;
	background: var(--ud-bg);
	position: relative;
}
.ud-video__label {
	font-family: var(--ud-font-display);
	font-size: calc((10.5px) * var(--ud-fs-global, 1));
	letter-spacing: 0.05em;
	color: var(--ud-fg-dim);
	margin-bottom: 40px;
	text-transform: uppercase;
}
.ud-video__frame {
	width: 100%;
	overflow: hidden;
	position: relative;
}
.ud-video__inner {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	overflow: hidden;
}
.ud-video__player,
.ud-video__player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
.ud-video__sound {
	position: absolute;
	right: 24px; bottom: 24px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	color: var(--ud-fg);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	font-family: var(--ud-font-display);
	font-size: calc((9.75px) * var(--ud-fs-global, 1));
	letter-spacing: 0.05em;
	text-transform: uppercase;
	transition: background 0.3s var(--ud-ease), transform 0.3s var(--ud-ease);
}
.ud-video__sound:hover { background: #ffffff; transform: scale(1.04); }
.ud-video__sound-icon { display: inline-flex; }
.ud-video__sound-icon .is-unmuted { display: none; }
.ud-video__sound.is-on .is-muted { display: none; }
.ud-video__sound.is-on .is-unmuted { display: inline; }
@media (max-width: 600px) {
	.ud-video__sound { right: 12px; bottom: 12px; padding: 10px 14px; font-size: calc((8.25px) * var(--ud-fs-global, 1)); }
	.ud-video__sound-text { display: none; }
}

/* ==========================================================================
   CTA SECTION (with gradient + animated shapes)
   ========================================================================== */
.ud-cta {
	position: relative;
	padding: 60px 0;
	background: var(--ud-hero-gradient);
	color: #ffffff;
	overflow: hidden;
	isolation: isolate;
}
.ud-cta__bg {
	position: absolute; inset: 0;
	z-index: 0;
	pointer-events: none;
}
.ud-cta__bg-shape {
	position: absolute;
	width: 600px; height: 600px;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.5;
	will-change: transform;
}
.ud-cta__bg-shape--1 {
	background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, transparent 70%);
	top: -200px; left: -150px;
	animation: udCtaFloat1 14s ease-in-out infinite;
}
.ud-cta__bg-shape--2 {
	background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, transparent 70%);
	bottom: -250px; right: -100px;
	animation: udCtaFloat2 18s ease-in-out infinite;
}
@keyframes udCtaFloat1 {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50%      { transform: translate(80px, 60px) scale(1.15); }
}
@keyframes udCtaFloat2 {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50%      { transform: translate(-60px, -80px) scale(1.1); }
}
.ud-cta__inner {
	position: relative;
	z-index: 2;
	text-align: center;
}
.ud-cta__eyebrow {
	font-family: var(--ud-font-display);
	font-size: calc((10.5px) * var(--ud-fs-global, 1));
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 28px;
}
.ud-cta__heading {
	font-size: calc((clamp(18px, 3.4vw, 44px)) * var(--ud-fs-global, 1));
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1.05;
	max-width: none;
	margin: 0 auto 48px;
	color: #ffffff;
	white-space: nowrap;
}
@media (max-width: 700px) {
	.ud-cta__heading { white-space: normal; max-width: 26ch; }
}
.ud-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: center;
	justify-content: center;
}
.ud-cta__button {
	background: #ffffff;
	color: var(--ud-accent);
}
.ud-cta__button:hover { background: var(--ud-fg); color: #ffffff; }
.ud-cta__email {
	color: #ffffff;
	font-family: var(--ud-font-display);
	font-size: calc((13.5px) * var(--ud-fs-global, 1));
	border-bottom: 1px solid rgba(255, 255, 255, 0.4);
	padding-bottom: 4px;
}
.ud-cta__email:hover { border-color: #ffffff; opacity: 1; }

/* ==========================================================================
   OUR CLIENTS — logo grid (homepage section + standalone page)
   ========================================================================== */
.ud-clients {
	padding: 55px 0;
	background: var(--ud-bg);
}
.ud-clients--page {
	padding: 40px 0 50px;
}
.ud-clients__head {
	margin-bottom: 40px;
	text-align: center;
}
.ud-clients__label {
	font-family: var(--ud-font-display);
	font-size: calc((10.5px) * var(--ud-fs-global, 1));
	color: var(--ud-fg-dim);
	letter-spacing: 0.05em;
	margin-bottom: 16px;
}
.ud-clients__heading {
	font-size: calc((clamp(18px, 3.2vw, 40px)) * var(--ud-fs-global, 1));
	font-weight: 500;
	letter-spacing: -0.03em;
	max-width: none;
	margin: 0 auto;
	white-space: nowrap;
}
@media (max-width: 600px) {
	.ud-clients__heading { white-space: normal; max-width: 18ch; }
}
/* --- Carousel (homepage "Trusted by brands" section) --- */
.ud-clients__carousel {
	overflow: hidden;
	border-top: 1px solid var(--ud-line);
	border-bottom: 1px solid var(--ud-line);
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.ud-clients__track {
	display: flex;
	flex-wrap: nowrap;
	width: max-content;
	will-change: transform;
	animation: ud-clients-scroll 40s linear infinite;
}
.ud-clients__carousel:hover .ud-clients__track {
	animation-play-state: paused;
}
@keyframes ud-clients-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
.ud-clients__carousel .ud-clients__item {
	flex: 0 0 auto;
	width: 240px;
	border-top: none;
	border-bottom: none;
	border-left: none;
}

/* --- Grid (standalone "Our Clients" page) --- */
.ud-clients__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0;
	border-left: 1px solid var(--ud-line);
}
.ud-clients__grid .ud-clients__item {
	border-top: 1px solid var(--ud-line);
	border-bottom: 1px solid var(--ud-line);
}

/* --- Shared item + logo styling (both grid and carousel) --- */
.ud-clients__item {
	aspect-ratio: 3 / 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 24px;
	border-right: 1px solid var(--ud-line);
	transition: background 0.4s var(--ud-ease);
	position: relative;
}
.ud-clients__item:hover {
	background: #ffffff;
}
.ud-clients__logo {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: grayscale(100%);
	opacity: 0.75;
	transition: filter 0.5s var(--ud-ease), opacity 0.5s var(--ud-ease), transform 0.5s var(--ud-ease);
}
.ud-clients__item:hover .ud-clients__logo {
	filter: grayscale(0);
	opacity: 1;
	transform: scale(1.05);
}
.ud-clients__empty {
	text-align: center;
	color: var(--ud-fg-dim);
	font-size: calc((14px) * var(--ud-fs-global, 1));
	padding: 60px 20px;
}
@media (prefers-reduced-motion: reduce) {
	.ud-clients__track { animation: none; }
}

@media (max-width: 1100px) {
	.ud-clients__grid { grid-template-columns: repeat(4, 1fr); }
	.ud-clients__carousel .ud-clients__item { width: 220px; }
}
@media (max-width: 800px) {
	.ud-clients__grid { grid-template-columns: repeat(3, 1fr); }
	.ud-clients__carousel .ud-clients__item { width: 190px; }
	.ud-clients { padding: 50px 0; }
}
@media (max-width: 500px) {
	.ud-clients__grid { grid-template-columns: repeat(2, 1fr); }
	.ud-clients__carousel .ud-clients__item { width: 150px; }
	.ud-clients__item { padding: 20px 14px; }
}

.ud-clients-page__intro {
	text-align: center;
	margin: 0 auto 60px;
	max-width: 720px;
}

/* ==========================================================================
   INSIDE-PAGE HERO — blue gradient, white centered title
   ========================================================================== */
.ud-inside-hero {
	position: relative;
	background: var(--ud-hero-gradient);
	color: #ffffff;
	padding: 130px 0 60px;
	overflow: hidden;
	text-align: center;
	isolation: isolate;
}
.ud-inside-hero__bg {
	position: absolute; inset: -10%;
	background:
		radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.12), transparent 55%),
		radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08), transparent 55%);
	z-index: 0;
	will-change: transform;
}
.ud-inside-hero__inner { position: relative; z-index: 2; }
.ud-inside-hero__eyebrow {
	font-family: var(--ud-font-display);
	font-size: calc((10.5px) * var(--ud-fs-global, 1));
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 24px;
}
.ud-inside-hero__title {
	font-family: var(--ud-font-display);
	font-size: calc((clamp(21px, 4.9vw, 57.75px)) * var(--ud-fs-global, 1) * var(--ud-fs-heading, 1));
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1.0;
	color: #ffffff;
	margin: 0 auto;
	max-width: 22ch;
}
.ud-inside-hero__title em { font-style: italic; opacity: 0.85; }

/* Safeguard: the inside-page hero sits above the fold, so it must never stay
   hidden if the scroll-reveal observer doesn't fire on a given template.
   A short delayed keyframe forces the reveal state; when JS adds .is-visible
   first (the normal path), that animation drives the motion and this is a
   harmless no-op fallback. */
@keyframes ud-hero-force-in {
	to { opacity: 1; transform: none; }
}
.ud-inside-hero__intro[data-reveal]:not(.is-visible) {
	animation: ud-hero-force-in 0.01s linear 1.2s forwards;
}
.ud-inside-hero__title[data-split]:not(.is-visible) .split-line__inner {
	animation: ud-hero-force-in 0.01s linear 1.2s forwards;
}
/* Project archive ("Work that punches above its weight.") on a single line */
.post-type-archive-project .ud-inside-hero__title {
	font-size: calc((clamp(16px, 3.6vw, 42px)) * var(--ud-fs-global, 1) * var(--ud-fs-heading, 1));
	max-width: none;
	white-space: nowrap;
}
@media (max-width: 600px) {
	.post-type-archive-project .ud-inside-hero__title { white-space: normal; }
}
.ud-inside-hero__intro {
	font-size: calc((clamp(12px, 1.4vw, 16.5px)) * var(--ud-fs-global, 1) * var(--ud-fs-body, 1));
	color: rgba(255, 255, 255, 0.85);
	max-width: 65ch;
	margin: 32px auto 0;
	line-height: 1.55;
}

/* ==========================================================================
   PROJECTS — horizontal scroller (homepage)
   ========================================================================== */
.ud-projects-scroll {
	padding: 60px 0 120px;
	background: var(--ud-bg);
	overflow: hidden;
	position: relative;
}
.ud-projects-scroll__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 40px;
	margin-bottom: 35px;
}
.ud-projects-scroll__label {
	font-family: var(--ud-font-display);
	font-size: calc((10.5px) * var(--ud-fs-global, 1));
	color: var(--ud-fg-dim);
	letter-spacing: 0.05em;
	margin: 0 0 14px;
}
.ud-projects-scroll__heading {
	font-size: calc((clamp(30px, 6vw, 72px)) * var(--ud-fs-global, 1));
	font-weight: 500;
	letter-spacing: -0.03em;
	margin: 0;
}
.ud-projects-scroll__intro {
	margin-top: 20px;
	color: var(--ud-fg-mid);
	max-width: 50ch;
	font-size: calc((clamp(12px, 1.2vw, 13.5px)) * var(--ud-fs-global, 1));
}
.ud-projects-scroll__controls {
	display: flex;
	gap: 12px;
	flex-shrink: 0;
}
.ud-projects-scroll__btn {
	width: 56px; height: 56px;
	border-radius: 50%;
	border: 1px solid var(--ud-line-strong);
	background: transparent;
	color: var(--ud-fg);
	font-size: calc((13.5px) * var(--ud-fs-global, 1));
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s var(--ud-ease), color 0.3s var(--ud-ease), border-color 0.3s var(--ud-ease), transform 0.3s var(--ud-ease);
}
.ud-projects-scroll__btn:hover {
	background: var(--ud-accent);
	color: #ffffff;
	border-color: var(--ud-accent);
	transform: scale(1.05);
}
.ud-projects-scroll__btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.ud-projects-scroll__track-wrap {
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 20px 0 40px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}
.ud-projects-scroll__track-wrap::-webkit-scrollbar { display: none; }

.ud-projects-scroll__track {
	display: flex;
	gap: 28px;
	padding: 0 var(--ud-gutter);
	width: max-content;
}

/* Project card */
.ud-pcard {
	flex: 0 0 auto;
	width: clamp(280px, 32vw, 480px);
	display: block;
	color: var(--ud-fg);
	scroll-snap-align: start;
	transition: width 0.6s var(--ud-ease), flex-basis 0.6s var(--ud-ease);
	will-change: width;
}
.ud-pcard:hover { opacity: 1; }
/* Hover-expand: when hovered, this card grows; siblings get pulled tighter visually via scale on image */
.ud-projects-scroll__track:hover .ud-pcard { width: clamp(240px, 26vw, 380px); }
.ud-projects-scroll__track:hover .ud-pcard:hover { width: clamp(360px, 44vw, 640px); }

.ud-pcard__media {
	position: relative;
	overflow: hidden;
	height: clamp(260px, 30vw, 420px); /* fixed height — width grows on hover, height stays */
	background: var(--ud-bg-2);
	border-radius: 8px;
	border: 1px solid var(--ud-line);
	margin-bottom: 20px;
}
.ud-pcard__img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ud-ease);
	will-change: transform;
}
.ud-pcard__img--placeholder {
	width: 100%; height: 100%;
	background: linear-gradient(135deg, var(--ud-bg-2), var(--ud-bg-3));
}

/* Year badge */
.ud-pcard__badge {
	position: absolute;
	top: 16px; left: 16px;
	z-index: 2;
	background: rgba(10, 10, 10, 0.85);
	color: #ffffff;
	font-family: var(--ud-font-display);
	font-size: calc((9.75px) * var(--ud-fs-global, 1));
	font-weight: 500;
	letter-spacing: 0.04em;
	padding: 8px 14px;
	border-radius: 6px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transform: translateY(0);
	transition: transform 0.4s var(--ud-ease), background 0.4s var(--ud-ease);
}
.ud-pcard:hover .ud-pcard__badge {
	background: var(--ud-accent);
	transform: translateY(-2px);
}

.ud-pcard__info { padding: 0 4px; }
.ud-pcard__title {
	font-size: calc((clamp(15px, 1.8vw, 21px)) * var(--ud-fs-global, 1));
	font-weight: 500;
	letter-spacing: -0.02em;
	margin: 0 0 8px;
}
.ud-pcard__meta {
	font-family: var(--ud-font-display);
	font-size: calc((9.75px) * var(--ud-fs-global, 1));
	letter-spacing: 0.02em;
	color: var(--ud-fg-mid);
	text-transform: uppercase;
	margin: 0;
}
.ud-pcard__sep { color: var(--ud-line-strong); margin: 0 4px; }

.ud-projects-scroll__more {
	text-align: center;
	margin-top: 60px;
}

@media (max-width: 800px) {
	.ud-projects-scroll__head { flex-direction: column; align-items: flex-start; }
	.ud-projects-scroll__controls { align-self: flex-end; }
	.ud-pcard { width: clamp(260px, 75vw, 380px) !important; }
}

/* ==========================================================================
   SINGLE PROJECT (NEW)
   ========================================================================== */
.ud-sp { background: var(--ud-bg); }

/* Full-screen hero */
.ud-sp__hero {
	position: relative;
	min-height: 100vh;
	overflow: hidden;
	color: #ffffff;
	display: flex;
	align-items: flex-end;
	background: #0a0a0a;
}
.ud-sp__hero-media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 0;
	will-change: transform;
}
.ud-sp__hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10,10,10,0.20) 0%, rgba(10,10,10,0.0) 35%, rgba(10,10,10,0.0) 60%, rgba(10,10,10,0.75) 100%);
	z-index: 1;
}
.ud-sp__hero-content {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 0 0 90px;
}
.ud-sp__crumbs {
	font-family: var(--ud-font-display);
	font-size: calc((9.75px) * var(--ud-fs-global, 1) * var(--ud-fs-crumb, 1));
	letter-spacing: 0.05em;
	color: rgba(255, 255, 255, 0.8);
	margin: 0 0 32px;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.ud-sp__crumbs a { color: rgba(255, 255, 255, 0.85); }
.ud-sp__crumbs a:hover { color: #ffffff; opacity: 1; }
.ud-sp__crumbs span[aria-hidden] { opacity: 0.5; }
.ud-sp__title {
	font-family: var(--ud-font-display);
	font-size: calc((clamp(36px, 9vw, 120px)) * var(--ud-fs-global, 1) * var(--ud-fs-heading, 1));
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 0.95;
	max-width: 16ch;
	color: #ffffff;
	margin: 0 0 28px;
}
.ud-sp__tagline {
	font-size: calc((clamp(13.5px, 1.6vw, 19.5px)) * var(--ud-fs-global, 1));
	color: rgba(255, 255, 255, 0.92);
	max-width: 60ch;
	margin: 0;
	line-height: 1.4;
}
.ud-sp__hero-scroll {
	position: absolute;
	bottom: 24px; right: var(--ud-gutter);
	display: flex; flex-direction: column; align-items: center; gap: 10px;
	font-family: var(--ud-font-display);
	font-size: calc((8.25px) * var(--ud-fs-global, 1));
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
	z-index: 3;
}
.ud-sp__hero-scroll-line {
	display: block;
	width: 1px; height: 60px;
	background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
}

/* Meta bar */
.ud-sp__meta {
	padding: 50px 0;
	border-bottom: 1px solid var(--ud-line);
}
.ud-sp__meta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 36px 40px;
}
.ud-sp__meta-item { display: flex; flex-direction: column; gap: 10px; }
.ud-sp__meta-label {
	font-family: var(--ud-font-display);
	font-size: calc((9px) * var(--ud-fs-global, 1));
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ud-fg-dim);
}
.ud-sp__meta-value { font-size: calc((13.5px) * var(--ud-fs-global, 1)); color: var(--ud-fg); }
.ud-sp__meta-link { font-size: calc((13.5px) * var(--ud-fs-global, 1)); color: var(--ud-accent); font-weight: 500; }
.ud-sp__meta-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* Story */
.ud-sp__story { padding: 55px 0; }
.ud-sp__story .container { max-width: 1100px; }
.ud-sp__story-block {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 60px;
	padding: 50px 0;
	border-bottom: 1px solid var(--ud-line);
}
.ud-sp__story-block:last-child { border-bottom: 0; }
.ud-sp__story-label {
	font-family: var(--ud-font-display);
	font-size: calc((10.5px) * var(--ud-fs-global, 1));
	color: var(--ud-fg-dim);
	letter-spacing: 0.05em;
	margin: 0;
}
.ud-sp__story-text {
	font-size: calc((clamp(13.5px, 1.5vw, 16.5px)) * var(--ud-fs-global, 1));
	color: var(--ud-fg-mid);
	line-height: 1.65;
	max-width: 60ch;
}
.ud-sp__story-text p + p { margin-top: 1em; }
.ud-sp__story-text h2 { color: var(--ud-fg); font-size: calc((27px) * var(--ud-fs-global, 1) * var(--ud-fs-heading, 1)); margin: 60px 0 20px; }
@media (max-width: 800px) {
	.ud-sp__story-block { grid-template-columns: 1fr; gap: 16px; padding: 36px 0; }
}

/* Gallery */
.ud-sp__gallery-section { padding: 40px 0 120px; }
.ud-sp__gallery-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}
.ud-sp__gallery-label {
	font-family: var(--ud-font-display);
	font-size: calc((10.5px) * var(--ud-fs-global, 1));
	color: var(--ud-fg-dim);
	letter-spacing: 0.05em;
	margin: 0;
}
.ud-sp__gallery-hint {
	font-size: calc((10.5px) * var(--ud-fs-global, 1));
	color: var(--ud-fg-dim);
	margin: 0;
	font-style: italic;
}
.ud-sp__gallery {
	column-count: 2;
	column-gap: 28px;
}
.ud-sp__gallery-item {
	margin: 0 0 28px;
	overflow: hidden;
	border-radius: 8px;
	background: transparent;
	border: 1px solid var(--ud-line);
	position: relative;
	break-inside: avoid;
	page-break-inside: avoid;
	-webkit-column-break-inside: avoid;
	display: block;
}
/* "wide" images break to single column for impact */
.ud-sp__gallery-item--wide { column-span: all; }
.ud-sp__gallery-item--wide + * { /* let the next item start a new column flow */ }

.ud-sp__gallery-trigger {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	line-height: 0; /* prevent inline-image gap */
}
.ud-sp__gallery-img {
	width: 100%;
	height: auto;        /* natural height = sharp, undistorted, no crop */
	display: block;
	transition: transform 0.6s var(--ud-ease);
	will-change: transform;
}
.ud-sp__gallery-trigger:hover .ud-sp__gallery-img {
	transform: scale(1.03);
	/* no brightness/blur filter — image stays crisp */
}
.ud-sp__gallery-zoom {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%) scale(0.7);
	width: 64px; height: 64px;
	border-radius: 50%;
	background: #ffffff;
	color: var(--ud-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
	transition: opacity 0.4s var(--ud-ease), transform 0.5s var(--ud-ease);
	pointer-events: none;
}
.ud-sp__gallery-trigger:hover .ud-sp__gallery-zoom {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}
@media (max-width: 800px) {
	.ud-sp__gallery { column-count: 1; column-gap: 0; }
	.ud-sp__gallery-item { margin-bottom: 18px; }
}

/* Next project — blue gradient background, white text */
.ud-sp__next {
	position: relative;
	background: var(--ud-hero-gradient);
	overflow: hidden;
	isolation: isolate;
}
.ud-sp__next::before,
.ud-sp__next::after {
	content: '';
	position: absolute;
	width: 600px; height: 600px;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.4;
	z-index: 0;
	pointer-events: none;
}
.ud-sp__next::before {
	background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, transparent 70%);
	top: -200px; left: -150px;
	animation: udCtaFloat1 14s ease-in-out infinite;
}
.ud-sp__next::after {
	background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, transparent 70%);
	bottom: -250px; right: -100px;
	animation: udCtaFloat2 18s ease-in-out infinite;
}
.ud-sp__next-link {
	display: block;
	padding: 140px var(--ud-gutter);
	text-align: center;
	position: relative;
	z-index: 2;
	color: #ffffff;
	min-height: 320px;
}
.ud-sp__next-link:hover { opacity: 1; }
.ud-sp__next-content { position: relative; z-index: 2; }
.ud-sp__next-label {
	font-family: var(--ud-font-display);
	font-size: calc((10.5px) * var(--ud-fs-global, 1));
	color: rgba(255, 255, 255, 0.85);
	letter-spacing: 0.05em;
	margin: 0 0 20px;
}
.ud-sp__next-title {
	font-size: calc(24px * var(--ud-fs-global, 1));
	font-weight: 700;
	letter-spacing: -0.04em;
	color: #ffffff;
	margin: 0;
	transition: opacity 0.4s var(--ud-ease), transform 0.4s var(--ud-ease);
}
.ud-sp__next-link:hover .ud-sp__next-title {
	transform: translateX(8px);
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.ud-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9997;
	background: rgba(10, 10, 10, 0.95);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s var(--ud-ease), visibility 0.4s var(--ud-ease);
}
.ud-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}
.ud-lightbox__stage {
	position: relative;
	width: 90vw; height: 85vh;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ud-lightbox__img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 4px;
	transform: scale(0.96);
	opacity: 0;
	transition: opacity 0.4s var(--ud-ease), transform 0.5s var(--ud-ease);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.ud-lightbox.is-open .ud-lightbox__img {
	transform: scale(1);
	opacity: 1;
}
.ud-lightbox__close,
.ud-lightbox__nav {
	position: absolute;
	width: 56px; height: 56px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s var(--ud-ease), border-color 0.3s var(--ud-ease), transform 0.3s var(--ud-ease);
	z-index: 2;
}
.ud-lightbox__close:hover,
.ud-lightbox__nav:hover {
	background: var(--ud-accent);
	border-color: var(--ud-accent);
	transform: scale(1.08);
}
.ud-lightbox__close { top: 30px; right: 30px; }
.ud-lightbox__nav--prev { left: 30px; top: 50%; transform: translateY(-50%); }
.ud-lightbox__nav--next { right: 30px; top: 50%; transform: translateY(-50%); }
.ud-lightbox__nav--prev:hover { transform: translateY(-50%) scale(1.08); }
.ud-lightbox__nav--next:hover { transform: translateY(-50%) scale(1.08); }
.ud-lightbox__count {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.7);
	font-family: var(--ud-font-display);
	font-size: calc((10.5px) * var(--ud-fs-global, 1));
	letter-spacing: 0.08em;
}
body.has-lightbox-open { overflow: hidden; }
@media (max-width: 700px) {
	.ud-lightbox__close { top: 16px; right: 16px; width: 44px; height: 44px; }
	.ud-lightbox__nav { width: 44px; height: 44px; }
	.ud-lightbox__nav--prev { left: 10px; }
	.ud-lightbox__nav--next { right: 10px; }
}

/* ==========================================================================
   ARCHIVE FILTER / PAGE / BLOG / 404 (restored, simpler — inside-hero handles the heading)
   ========================================================================== */
.ud-archive-filter-section {
	background: var(--ud-bg);
	padding: 40px 0 20px;
	border-bottom: 1px solid var(--ud-line);
}
.ud-archive-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}
.ud-archive-filter__link {
	display: inline-block;
	padding: 10px 22px;
	border: 1px solid var(--ud-line-strong);
	border-radius: 999px;
	font-family: var(--ud-font-display);
	font-size: calc((9.75px) * var(--ud-fs-global, 1));
	letter-spacing: 0.03em;
	transition: background 0.3s var(--ud-ease), color 0.3s var(--ud-ease), border-color 0.3s var(--ud-ease);
	color: var(--ud-fg);
	cursor: pointer;
}
.ud-archive-filter__link:hover {
	background: rgba(87, 63, 153, 0.1);
	border-color: var(--ud-accent);
	color: var(--ud-accent);
	opacity: 1;
}
.ud-archive-filter__link.is-active {
	background: var(--ud-accent);
	color: #ffffff;
	border-color: var(--ud-accent);
	opacity: 1;
}
.ud-archive-filter__link.is-active:hover {
	background: var(--ud-accent);
	color: #ffffff;
}

.ud-page { padding: 50px 0 120px; }
.ud-page__media { aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 40px; border-radius: 6px; }
.ud-page__media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.ud-page__content {
	max-width: 800px;
	margin: 0 auto;
	font-size: calc(14px * var(--ud-fs-global, 1) * var(--ud-fs-body, 1));
	line-height: 1.7;
	color: var(--ud-fg-mid);
}
.ud-page__content h2 { color: var(--ud-fg); font-size: calc((clamp(21px, 3.5vw, 33px)) * var(--ud-fs-global, 1) * var(--ud-fs-heading, 1)); margin: 60px 0 20px; }
.ud-page__content h3 { color: var(--ud-fg); font-size: calc((clamp(16.5px, 2.5vw, 22.5px)) * var(--ud-fs-global, 1) * var(--ud-fs-heading, 1)); margin: 40px 0 16px; }
.ud-page__content p { margin-bottom: 1.2em; }
.ud-page__content a { color: var(--ud-accent); text-decoration: underline; text-underline-offset: 4px; }
.ud-page__content ul, .ud-page__content ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.ud-page__content li { margin-bottom: 0.5em; }
.ud-page__content img { border-radius: 6px; margin: 1.5em 0; }
.ud-page__content blockquote {
	border-left: 3px solid var(--ud-accent);
	padding-left: 24px;
	margin: 32px 0;
	font-style: italic;
	font-size: calc((16.5px) * var(--ud-fs-global, 1));
	color: var(--ud-fg);
}

.ud-single-post { padding: 50px 0 120px; }
.ud-single-post__media {
	margin: 0 0 60px;
	border-radius: 6px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}
.ud-single-post__media img { width: 100%; height: 100%; object-fit: cover; }
.ud-single-post__content {
	font-size: calc(14px * var(--ud-fs-global, 1) * var(--ud-fs-body, 1));
	line-height: 1.75;
	color: var(--ud-fg-mid);
}
.ud-single-post__content p { margin-bottom: 1.2em; }
.ud-single-post__content h2 { color: var(--ud-fg); font-size: calc((clamp(21px, 3.5vw, 33px)) * var(--ud-fs-global, 1) * var(--ud-fs-heading, 1)); margin: 50px 0 16px; }

.ud-blog { padding: 50px 0 120px; }
.ud-blog__list { display: grid; gap: 0; }
.ud-blog__item { border-top: 1px solid var(--ud-line); padding: 36px 0; }
.ud-blog__item:last-child { border-bottom: 1px solid var(--ud-line); }
.ud-blog__link { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; color: inherit; }
.ud-blog__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--ud-bg-2); }
.ud-blog__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ud-ease); }
.ud-blog__item:hover .ud-blog__media img { transform: scale(1.05); }
.ud-blog__meta { font-family: var(--ud-font-display); font-size: calc((9.75px) * var(--ud-fs-global, 1)); color: var(--ud-fg-dim); margin-bottom: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.ud-blog__heading { font-size: calc((clamp(16.5px, 2.5vw, 25.5px)) * var(--ud-fs-global, 1) * var(--ud-fs-heading, 1)); font-weight: 500; margin-bottom: 14px; letter-spacing: -0.02em; }
.ud-blog__excerpt { color: var(--ud-fg-mid); font-size: calc((14px) * var(--ud-fs-global, 1) * var(--ud-fs-body, 1)); line-height: 1.55; }
@media (max-width: 700px) {
	.ud-blog__link { grid-template-columns: 1fr; gap: 20px; }
}

.ud-404-cta {
	padding: 40px 0 60px;
	text-align: center;
	background: var(--ud-bg);
}

/* ==========================================================================
   WORK PAGE — filterable project grid
   ========================================================================== */
.ud-work-page { padding: 40px 0 55px; background: var(--ud-bg); }
.ud-work-page__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}
.ud-work-card {
	display: block;
	color: var(--ud-fg);
	transition: opacity 0.4s var(--ud-ease), transform 0.4s var(--ud-ease);
}
.ud-work-card.is-hidden {
	display: none;
}
.ud-work-card:hover { opacity: 1; }
.ud-work-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: var(--ud-bg-2);
	border: 1px solid var(--ud-line);
	border-radius: 8px;
	margin-bottom: 18px;
}
.ud-work-card__img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 1s var(--ud-ease);
}
.ud-work-card__img--placeholder {
	width: 100%; height: 100%;
	background: linear-gradient(135deg, var(--ud-bg-2), var(--ud-bg-3));
}
.ud-work-card:hover .ud-work-card__img { transform: scale(1.05); }
.ud-work-card__info { padding: 0 4px; }
.ud-work-card__title {
	font-size: calc((clamp(15px, 1.8vw, 19.5px)) * var(--ud-fs-global, 1) * var(--ud-fs-work, 1));
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 6px;
}
.ud-work-card__meta {
	font-size: calc((9.75px) * var(--ud-fs-global, 1) * var(--ud-fs-work, 1));
	color: var(--ud-fg-mid);
	margin: 0;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
@media (max-width: 1000px) {
	.ud-work-page__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.ud-work-page__grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   FOUNDERS PAGE — 2-column grid (image + name + role + bio)
   ========================================================================== */
.ud-founders {
	padding: 50px 0 70px;
	background: var(--ud-bg);
}
.ud-founders__intro {
	max-width: 720px;
	margin: 0 auto 40px;
	text-align: center;
	font-size: calc((12.75px) * var(--ud-fs-global, 1));
	line-height: 1.65;
	color: var(--ud-fg-mid);
}
.ud-founders__intro p { margin: 0 0 1em; }

.ud-founders__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 100px;
}
.ud-founder-card {
	display: flex;
	flex-direction: column;
}
.ud-founder-card__media {
	overflow: hidden;
	border-radius: 8px;
	border: 1px solid var(--ud-line);
	width: 220px;
	max-width: 100%;
	background: var(--ud-bg-2);
	margin-bottom: 22px;
	display: block;
	line-height: 0; /* prevent inline-image gap */
}
.ud-founder-card__img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.7s var(--ud-ease);
}
.ud-founder-card__img--placeholder {
	width: 100%;
	aspect-ratio: 1 / 1;
	background: linear-gradient(135deg, var(--ud-bg-2), var(--ud-bg-3));
}
.ud-founder-card:hover .ud-founder-card__img { transform: scale(1.03); }

.ud-founder-card__body { display: flex; flex-direction: column; }
.ud-founder-card__name {
	font-family: var(--ud-font-display);
	font-size: calc((clamp(16.5px, 2.3vw, 24px)) * var(--ud-fs-global, 1));
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #000000;
	margin: 0 0 6px;
}
.ud-founder-card__role {
	font-family: var(--ud-font-display);
	font-size: calc((9.75px) * var(--ud-fs-global, 1));
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ud-accent);
	margin: 0 0 16px;
}
.ud-founder-card__bio {
	font-size: calc((14px) * var(--ud-fs-global, 1));
	line-height: 1.7;
	color: #000000;
}
.ud-founder-card__bio p { margin: 0 0 1em; }
.ud-founder-card__bio p:last-child { margin-bottom: 0; }
.ud-founder-card__bio a {
	color: var(--ud-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ud-founder-card__links {
	display: flex;
	gap: 10px;
	margin-top: 18px;
}
.ud-founder-card__links a {
	width: 38px; height: 38px;
	border-radius: 50%;
	border: 1px solid var(--ud-line-strong);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #000000;
	transition: background 0.3s var(--ud-ease), color 0.3s var(--ud-ease), border-color 0.3s var(--ud-ease);
}
.ud-founder-card__links a:hover {
	background: var(--ud-accent);
	color: #ffffff;
	border-color: var(--ud-accent);
	opacity: 1;
}

@media (max-width: 1100px) {
	.ud-founders__grid { gap: 60px; }
}
@media (max-width: 800px) {
	.ud-founders__grid { grid-template-columns: 1fr; gap: 50px; }
}


	padding: 40px 0 60px;
	background: var(--ud-bg);
}
.ud-team__intro {
	max-width: 720px;
	margin: 0 auto 70px;
	text-align: center;
	font-size: calc((13.5px) * var(--ud-fs-global, 1));
	color: var(--ud-fg-mid);
	line-height: 1.65;
}
.ud-team__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 50px 32px;
}
.ud-team__card {
	display: flex;
	flex-direction: column;
}
.ud-team__portrait {
	overflow: hidden;
	border-radius: 8px;
	border: 1px solid var(--ud-line);
	aspect-ratio: 4 / 5;
	background: var(--ud-bg-2);
	margin-bottom: 22px;
}
.ud-team__img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--ud-ease);
}
.ud-team__img--placeholder {
	background: linear-gradient(135deg, var(--ud-bg-2), var(--ud-bg-3));
}
.ud-team__card:hover .ud-team__img { transform: scale(1.04); }
.ud-team__name {
	font-size: calc((clamp(15px, 1.8vw, 19.5px)) * var(--ud-fs-global, 1));
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 4px;
}
.ud-team__role {
	font-size: calc((10.5px) * var(--ud-fs-global, 1));
	color: var(--ud-accent);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin: 0 0 14px;
}
.ud-team__bio {
	font-size: calc((11.25px) * var(--ud-fs-global, 1));
	line-height: 1.55;
	color: var(--ud-fg-mid);
	margin: 0 0 18px;
}
.ud-team__links {
	display: flex;
	gap: 10px;
	margin-top: auto;
}
.ud-team__links a {
	width: 38px; height: 38px;
	border-radius: 50%;
	border: 1px solid var(--ud-line-strong);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ud-fg);
	transition: background 0.3s var(--ud-ease), color 0.3s var(--ud-ease), border-color 0.3s var(--ud-ease);
}
.ud-team__links a:hover {
	background: var(--ud-accent);
	color: #ffffff;
	border-color: var(--ud-accent);
	opacity: 1;
}
@media (max-width: 900px) {
	.ud-team__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
}
@media (max-width: 600px) {
	.ud-team__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.ud-contact {
	padding: 50px 0 140px;
	background: var(--ud-bg);
}
.ud-contact__grid {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 80px;
	align-items: start;
}
.ud-contact__info {
	display: flex;
	flex-direction: column;
	gap: 36px;
}
.ud-contact__block {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ud-contact__label {
	font-size: calc((9px) * var(--ud-fs-global, 1));
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ud-fg-dim);
	margin: 0;
}
.ud-contact__value {
	font-size: calc((13.5px) * var(--ud-fs-global, 1));
	color: var(--ud-fg);
	font-style: normal;
	line-height: 1.5;
	margin: 0;
}
.ud-contact__value--link {
	color: var(--ud-accent);
	font-weight: 700;
	transition: opacity 0.3s ease;
}
.ud-contact__value--link:hover { opacity: 0.75; }
.ud-contact__address { font-style: normal; }

.ud-contact__form-col { width: 100%; }
.ud-contact__custom-form { /* page-injected form rendering */ }
.ud-contact__custom-form input[type="text"],
.ud-contact__custom-form input[type="email"],
.ud-contact__custom-form input[type="tel"],
.ud-contact__custom-form textarea,
.ud-contact-form input,
.ud-contact-form textarea {
	width: 100%;
	font-family: var(--ud-font-body);
	font-size: calc((14px) * var(--ud-fs-global, 1));
	color: var(--ud-fg);
	padding: 14px 16px;
	background: var(--ud-bg);
	border: 1px solid var(--ud-line-strong);
	border-radius: 8px;
	outline: 0;
	transition: border-color 0.3s var(--ud-ease), box-shadow 0.3s var(--ud-ease);
}
.ud-contact__custom-form input:focus,
.ud-contact__custom-form textarea:focus,
.ud-contact-form input:focus,
.ud-contact-form textarea:focus {
	border-color: var(--ud-accent);
	box-shadow: 0 0 0 4px rgba(87, 63, 153, 0.12);
}
.ud-contact-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.ud-contact-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}
.ud-contact-form__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ud-contact-form__label {
	font-size: calc((9.75px) * var(--ud-fs-global, 1));
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ud-fg-mid);
}
.ud-contact-form button[type="submit"] {
	align-self: flex-start;
	margin-top: 10px;
}
.ud-contact-form__hint {
	font-size: calc((9.75px) * var(--ud-fs-global, 1));
	color: var(--ud-fg-dim);
	margin: 6px 0 0;
}
.ud-contact-form__hint a {
	color: var(--ud-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}
@media (max-width: 900px) {
	.ud-contact__grid { grid-template-columns: 1fr; gap: 50px; }
	.ud-contact-form__row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CONTACT — Google Map embed
   ========================================================================== */
.ud-contact-map {
	padding: 0 var(--ud-gutter) 70px;
	background: var(--ud-bg);
}
.ud-contact-map__frame {
	width: 100%;
	max-width: var(--ud-max);
	margin: 0 auto;
	height: clamp(320px, 50vh, 520px);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--ud-line);
	background: var(--ud-bg-2);
}
.ud-contact-map__frame iframe {
	width: 100%;
	height: 100%;
	display: block;
	border: 0;
}
