/* ─── FONTI ──────────────────────────────────────────────────────────────── */

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url('Inter-Light.woff2') format('woff2');
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('Inter-Regular.woff2') format('woff2');
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('Inter-Medium.woff2') format('woff2');
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('Inter-Bold.woff2') format('woff2');
}

/* ─── RESET ──────────────────────────────────────────────────────────────── */

hr {
	display: block;
	height: 1px;
	border: 0;
	border-top: 1px solid #ccc;
	margin: 1em 0;
	padding: 0;
}

fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

textarea {
	resize: vertical;
}

.hidden,
[hidden] {
	display: none !important;
}

.sr-only {
	border: 0;
	clip: rect(0, 0, 0, 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.sr-only.focusable:active,
.sr-only.focusable:focus {
	clip: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	position: static;
	white-space: inherit;
	width: auto;
}

.invisible {
	visibility: hidden;
}

/* ─── CSS MAINĪGIE ───────────────────────────────────────────────────────── */

:root {
	/* Krāsas */
	--c-white:     rgba(255, 255, 255, 1);
	--c-awhite:    rgba(255, 255, 255, 0.2);
	--c-black:     rgba(0, 0, 0, 1);
	--c-ablack:    rgba(0, 0, 0, 0.4);
	--c-gold:      rgba(140, 125, 94, 1);
	--c-agold:     rgba(140, 125, 94, 0.2);
	--c-gold-1:    rgba(168, 131, 65, 1);
	--c-gold-1-a:  rgba(168, 131, 65, 0.8);
	--c-gold-1-a2: rgba(168, 131, 65, 0.2);
	--c-gold-2:    rgba(183, 165, 128, 1);
	--c-gold-2-a:  rgba(183, 165, 128, 0.8);
	--c-brown:     rgba(24, 4, 4, 1);
	--c-brown-s:   rgba(27, 17, 12, 1);
	--c-brown-s1:  rgba(47, 20, 12, 1);
	--c-brown-s2:  rgba(57, 20, 10, 1);

	/* ── Fluid tipografija ────────────────────────────────────────────────
	 *
	 * Bāze platums:  2560px (27" monitors)
	 * Bāze augstums: 1440px (27" monitors)
	 *
	 * Formula: min(Xvw, Yvh)
	 *   - vw bāzēts: skalas pēc loga platuma  → telefoni
	 *   - vh bāzēts: skalas pēc loga augstuma → desktop (saspiestu logu)
	 *   - min() izvēlas mazāko — fonts nesāk augt ja logs ir ļoti plats
	 *     bet zems, vai ļoti augsts bet šaurs
	 *
	 * Rezultāts: fonti proporcionāli uz jebkura ekrāna un loga izmēra.
	 *
	 * ──────────────────────────────────────────────────────────────────── */

	 --fs-h3:          clamp(1.125rem,  min(3.478vh, 4.2vw),  2.8125rem);
	 --fs-value-title: clamp(1.25rem, min(2.318vh, 2.8vw),  1.875rem);
	 /* --fs-stat:        clamp(2rem,      min(9.274vh, 11.1vw), 7.5rem); */
	 /* --fs-proj-title:  clamp(2rem,      min(9.274vh, 11.1vw), 7.5rem); */
	 --fs-stat:       7.5rem;
	 --fs-proj-title: 7.5rem;
	 /* --fs-vision-tab:  clamp(1.125rem,  min(3.478vh, 4.2vw),  2.8125rem); */
	 --fs-vision-tab: clamp(1.125rem, 2.636vw, 2.8125rem);
	 /* --fs-vision-tab: clamp(1.125rem, 2.636vh, 2.8125rem); */
	 --fs-body:        clamp(1rem,  min(1.391vh, 1.67vw), 1.125rem);
	 --fs-body-lg:     clamp(0.9375rem, min(1.546vh, 1.85vw), 1.25rem);
	 /* --fs-nav:         clamp(0.75rem,   min(1.236vh, 1.48vw), 1rem); */
	 --fs-nav:         1rem;
	 --fs-small-res:       clamp(0.6875rem, min(1.005vh, 1.2vw),  0.8125rem);
	 --fs-small:       0.8125rem;



	/* ── Fluid atstarpes ──────────────────────────────────────────────────
	 * Tāda pati min(vw, vh) loģika
	 * ──────────────────────────────────────────────────────────────────── */
	 --sp-wrap:        clamp(1rem,    min(4.328vh, 5.2vw),  3.5rem);
	 --sp-section:     clamp(1.5rem,  min(7.419vh, 8.9vw),  6rem);
	 --sp-section-lg:  clamp(2.5rem,  min(12.365vh, 14.8vw),10rem);
	 --sp-element:     clamp(1.25rem, min(4.946vh, 5.9vw),  4rem);
	 /* --sp-nav-h:       clamp(3.5rem,  min(9.274vh, 11.1vw), 7.5rem); */
	 --sp-nav-h:       7.5rem;

	 /* 400px bāze → clamp versija */
	 --sp-gap-lg: clamp(6rem, min(28vh, 24vw), 25rem);

	 /* 300px bāze → clamp versija */
	 --sp-gap-md: clamp(4.5rem, min(21vh, 18vw), 19rem);
	}

	@media (max-width: 768px) {
		:root {
			--fs-stat:       clamp(2rem, 11.1vw, 4rem);
			--fs-proj-title: clamp(2rem, 11.1vw, 4rem);
			--fs-vision-tab: clamp(1.125rem, 2.636vh, 2.8125rem);
			
		}
	}

/* ─── GSAP PIN ───────────────────────────────────────────────────────────── */

.pin-spacer,
.pin-spacer > * {
	will-change: transform;
	backface-visibility: hidden;
}

.pin-spacer > * {
	transform: translateY(0.001px);
}

/* ─── HTML / BODY ────────────────────────────────────────────────────────── */

html,
html:focus-within {
	scroll-behavior: smooth;
}

html {
	overflow-x: hidden;
	backface-visibility: hidden;
	scrollbar-width: none;
}

html::-webkit-scrollbar {
	display: none;
}

* {
	-webkit-tap-highlight-color: transparent;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: Inter, sans-serif;
	font-weight: 300;
	font-style: normal;
	font-size: 1em;
	line-height: 1.35em;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	color: var(--c-gold-1-a);
	background-color: var(--c-brown);
	width: 100vw;
	position: initial !important;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

::selection     { background: var(--c-brown); color: var(--c-gold-1); }
::-moz-selection{ background: var(--c-brown); color: var(--c-gold-1); }

/* ─── TIPOGRĀFIJA ────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6, blockquote {
	margin: 0;
	font-family: Inter, sans-serif;
	font-weight: 400;
	font-style: normal;
}

/* h2 ir tikai konteiners fit-text elementiem — GSAP pārraksta izmēru */
h2 {
	margin: 0;
	overflow: hidden; /* scrollWidth pārbaude JS pusē */
}

h3 {
	font-size: var(--fs-h3);
	line-height: 1.15;
	margin-top: 1rem;
}

/* ─── BĀZES ELEMENTI ─────────────────────────────────────────────────────── */

a {
	text-decoration: none;
	color: var(--c-gold-1);
	-webkit-tap-highlight-color: var(--c-gold-1);
	transition: all 0.3s ease-in-out;
}

a:focus,
a:hover {
	transition: all 0.3s ease-in-out;
}

a:focus,
button:focus {
	outline: 0;
}

button {
	border: 0;
	padding: 0;
	background: none;
	cursor: pointer;
	font-family: Inter, sans-serif;
}

ul, ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

blockquote {
	margin: 0;
	padding: 0;
}

sup {
	vertical-align: text-top;
	line-height: 1.1;
}

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

section {
	position: relative;
}

svg {
	max-width: 100% !important;
	shape-rendering: geometricPrecision;
	text-rendering: geometricPrecision;
	image-rendering: optimizeQuality;
}

canvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
	z-index: 0;
}

/* ─── LAYOUT ─────────────────────────────────────────────────────────────── */

.section-values,
.section-expertise {
	margin-bottom: var(--sp-gap-lg);
}

.section-investments {
	padding-bottom: var(--sp-gap-md);
}

.section-team {
	margin-top: var(--sp-gap-md);
}

@media only screen and (max-width: 40em) {
	.section-team {
		/* margin-top: 30vh; */
	}
}

.wrap {
	max-width: 100%;
	margin: 0 auto;
	padding: 0 var(--sp-wrap);
	position: relative;
}

.wrap:not(.wrap-sm) + .wrap {
	margin-top: -4rem;
}

.wrap-sm {
	width: 870px;
}

.full {
	max-width: 100%;
	margin: 0 auto 4rem auto;
	padding: 0 2rem;
	width: auto;
}

.line {
	overflow: hidden;
}

/* ─── SCROLLBAR ──────────────────────────────────────────────────────────── */

#scrollbar-thumb {
	position: fixed;
	right: 4px;
	top: 0;
	width: 1px;
	background: linear-gradient(to top, var(--c-gold-1), transparent);
	border-radius: 2px;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 9998;
}

/* ─── NAVIGĀCIJA ─────────────────────────────────────────────────────────── */

/* ── Drawer container — pozicionē visu navigācijas bloku ──────────────────── */
.drawer__container {
	position: fixed;
	z-index: 10;
	right: clamp(1rem, 3vw, 3rem);
	top:   clamp(1rem, 2.5vw, 2.5rem);
}

.burger-wrap {
	position: relative;
	z-index: 2;
	opacity: 0;
	padding: 1rem;
	color: var(--c-gold-2);
	border-radius: 0.5rem;
	display: flex;
	align-items: center;
	background: transparent;
	/* Nav sava border — drawer__wrapper border pārklāj šo pozīciju */
}

/* Atvērtā stāvoklī z-index saglabāts, lai poga ir klikšķināma */
.drawer__container.open .burger-wrap {
	z-index: 2;
}

.drawer-border-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: visible;
}

.drawer-border-base,
.drawer-border-shine {
	fill: none;
	stroke-width: 1;
}


.burger-wrap:after {
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
}

.burger-title {
	font-size: var(--fs-small-res);
	text-transform: uppercase;
}

.burger-title {
	overflow: visible;
	clip-path: inset(-0.12em 0 0 0); /* tikai garumzīmēm; apakšā apgriež slēptā spana diacritikus */
	height: 1em;
	line-height: 1;
	position: relative;
	display: grid;
}

.burger-title span {
	grid-area: 1/1;
	display: block;
	transition: transform 0.5s cubic-bezier(0.215,0.61,0.355,1);
}

.burger-title span:last-child {
	transform: translateY(120%);
}

.drawer__container.open .burger-title span:first-child { transform: translateY(-120%); }
.drawer__container.open .burger-title span:last-child  { transform: translateY(0%); }


.burger-icon {
	/* height: 1px; */
	position: relative;
	width: 14px;
	margin-left: 1.25rem;
	/* width: 100%; */
	/* transition: transform .2s ease; */
}

.burger-icon-line {
	background: var(--c-gold-2);
	display: block;
	width: 14px;
	height: 1px;
	position: absolute;
	top: 0;
	overflow: hidden;
	transform: translate3d(0, 0, 0);
	transition: transform .2s ease .2s, background 0.2s ease 0.2s, width 0.4s ease 0.4s;
}

.burger-icon-line:first-child {
	transform: translate3d(0, -4px, 0)
}

.burger-icon-line:nth-child(2) {
	width: 6px;
}

.burger-icon-line:nth-child(3) {
	left:  8px;
	width: 6px;
}

.burger-icon-line:last-child {
	transform: translate3d(0, 4px, 0)
}

/* Burger X stāvokli kontrolē GSAP */

.burger-icon-line:before {
	content: "";
	left: -130%;
	position: absolute;
	width: 10px;
	height: 1px;
	background: var(--c-gold-1);
	transition: all 0.8s ease 0.2s;
}

.burger-icon-line:first-child:before {
	left: -100%;
	width: 14px;
}

.burger-icon-line:nth-child(2):before {
	left: -250%;
	width: 9px;
}

.burger-icon-line:nth-child(3):before {
	left: -250%;
	width: 6px;
}

.burger-icon-line:last-child:before {
	width: 14px;
	left: -150%;
}

.burger-wrap:hover .burger-icon-line:first-child:before {
	left: 130%;
}

.burger-wrap:hover .burger-icon-line:nth-child(2):before {
	left: 110%;
}

.burger-wrap:hover .burger-icon-line:nth-child(3):before {
	left: 140%;
}

.burger-wrap:hover .burger-icon-line:nth-child(4):before {
	left: 130%;
}

.burger-wrap:hover .burger-icon-line {
	width: 14px;
	transition: all 0.4s ease;
}

.burger-wrap:hover .burger-icon-line:nth-child(3) {
	width: 5px;
	left: 9px;
}

/* .main-tool-bar {
	height: var(--sp-nav-h);
	position: fixed;
	width: 100%;
	left: 0;
	top: 0;
	z-index: 10;
	transition: ease 0.4s;
	display: flex;
	align-items: center;
	opacity: 0;
	mask: linear-gradient(to bottom,
		black 0%,
		black 60%,
		transparent 100%);
	-webkit-mask: linear-gradient(to bottom,
		black 0%,
		black 60%,
		transparent 100%);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	overflow: hidden;
	isolation: isolate;
}

.main-tool-bar::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
}

.main-tool-bar .wrap {
	width: 100%;
}

.main-tool-bar--scrolled {
	height: 40px;
}

.main-nav {
	display: flex;
	width: 100%;
	justify-content: flex-end;
	color: var(--c-gold-2);
}

.main-nav li + li {
	margin-left: 3.25rem;
}

.main-nav li {
	display: inline-block;
	font-size: var(--fs-nav);
	font-weight: 500;
	cursor: pointer;
} */

.main-nav li + li {
	/* margin-top: 1rem; */
}

.main-nav li:hover {
	/* color: var(--c-gold-1); */
}

.main-nav {
	display: inline-flex;
	flex-direction: column;
}

.main-nav li {
	font-size:   clamp(1rem, min(5.8dvh, 6vw), 2.8125rem);
	line-height: clamp(1.25rem,  min(7dvh,  7.2vw), 3.375rem);
	font-weight: 500;
	padding:  0.5rem 1rem 0.5rem 1rem;
	color: var(--c-gold-2);
	cursor: pointer;
}

.logo-wrap {
	text-align: left;
	left: clamp(2rem, 3vw, 3rem);
	top: clamp(2rem, 2.5vw, 2.5rem);
	position: absolute;
	z-index: 2;
	opacity: 0;
}

.logo-wrap svg {
	height: 20px;
	width: auto;
}

.lang-nav {
	position: absolute;
	top: 0.85rem;
	left: calc(clamp(1.5rem, 4vw, 3rem) + 1rem);
	letter-spacing: 0.11em;
	font-size: 0.625rem;
	text-transform: uppercase;
	cursor: pointer;
	user-select: none;
	z-index: 2;
	color: var(--c-gold-2);
}

.lang-nav li + li {
	margin-top: 0.35rem;
}

/* Arrow uz aktīvo li caur CSS ::after */
.lang-nav li.active::after {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	background: url('../img/icon-arrow-down.svg') center / contain no-repeat;
	margin-left: 4px;
	vertical-align: middle;
	transition: transform 0.35s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.lang-nav.open li.active::after {
	/* transform: rotate(180deg); */
}

.soc-nav {
	padding: 2rem 1rem 0.5rem 1rem;
	font-size: 0.9375rem;
}

.soc-nav li + li {
	margin-left: 2.5rem;
}

.soc-nav li a {
	color: var(--c-gold-2);
}

.soc-nav li {
	display: inline-block;
}

@media only screen and (max-width: 64em) {
	.soc-nav {
		padding-top: 1rem;
		font-size: 0.75rem;
	}
}

@media only screen and (max-width: 40em) {
	.soc-nav {
		display: flex;
		justify-content: space-between;
	}
	.soc-nav li + li {
		margin-left: initial;
	}
}

/* ─── NAVIGĀCIJAS DRAWER ─────────────────────────────────────────────────── */

.drawer__wrapper {
	position: absolute;
	top: 0;
	right: 0;
	width: var(--btn-w, 130px);
	height: var(--btn-h, 49px);
	max-width:  calc(100dvw - 6rem);
	overflow: hidden;
	z-index: 1;
	opacity: 0;
	background: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-radius: 0.5rem;
	pointer-events: none;
}

.drawer__container.open .drawer__wrapper {
	pointer-events: auto;
}

.drawer__frame__wrapper {
	position: absolute;
	top: 0;
	right: 0;
	width: 520px;
	border-radius: 0.5rem;
	padding: clamp(2rem, 13.5dvh, 6.5rem) clamp(1.5rem, 4vw, 3rem);
	/* Neredzams pirms drawer atvēršanas — novērš satura redzamību */
	opacity: 0;
	transition: opacity 0.2s ease;
}

/* Mazs ekrāns — satura augstums pārsniedz viewport, drawer scrollojas */
.drawer-constrained .drawer__frame__wrapper {
	height: 100%;
	overflow-y: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.drawer-constrained .drawer__frame__wrapper::-webkit-scrollbar {
	display: none;
}

.drawer__container.open .drawer__frame__wrapper {
	opacity: 1;
	transition: opacity 0.4s ease 0.1s;
}

/* Drawer nav hover — GSAP kontrolē krāsu, CSS hover tiek anulēts */
.drawer__wrapper .main-nav li:hover {
	color: inherit;
}

/* Stabilizē teksta rendering krāsas animācijas laikā */
.drawer__wrapper .main-nav li * {
	-webkit-font-smoothing: antialiased;
	backface-visibility: hidden;
}


/* Footer */
.drawer__footer {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--c-gold-1-a2);
	font-size: var(--fs-small);
	color: var(--c-gold-1-a);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.4s ease, transform 0.4s ease;
	transition-delay: 0s;
}

.drawer__container.open .drawer__footer {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.5s;
}

/* Overlay — aizvērt noklikšķinot ārpusē */
.nav-overlay {
	position: fixed;
	inset: 0;
	z-index: 9;
	pointer-events: none;
}

.nav-overlay.open { pointer-events: auto; }

/* ─── PRELOADER ──────────────────────────────────────────────────────────── */

#preloader {
	position: fixed;
	inset: 0;
	z-index: 9999;
	--x1: 85%; --y1: 15%;
	--x2: 10%; --y2: 10%;
	--x3: 52%; --y3: 46%;
	background:
	radial-gradient(95% 80% at var(--x1) var(--y1),
		rgba(0,0,0,.6) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,0) 75%),
	radial-gradient(90% 75% at var(--x2) var(--y2),
		rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 80%),
	radial-gradient(ellipse at var(--x3) var(--y3),
		#5a140e 0%, #3e0d08 35%, #2a0806 60%, #1a0505 80%, #180404 100%),
	linear-gradient(to bottom,
		rgba(24,4,4,0) 60%, rgba(24,4,4,.85) 85%, rgba(24,4,4,1) 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.preloader-content {
	position: relative;

}

.stage {
	position: relative;
	width: 220px;
	height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.halo {
	position: absolute;
	inset: -30px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(168,131,65,.08) 0%, transparent 70%);
	animation: halopulse 3s ease-in-out infinite;
}

@keyframes halopulse {
	0%, 100% { transform: scale(1);    opacity: 0.6; }
	50%       { transform: scale(1.12); opacity: 1;   }
}

.ellipse-ring {
	position: absolute;
	inset: 0;
	transform: scale(0);
	opacity: 0;
	transition:
	transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1),
	opacity   0.6s ease;
}

.ellipse-ring.visible {
	transform: scale(1);
	opacity: 1;
}

.ellipse-ring svg {
	width: 100%;
	height: 100%;
	filter: drop-shadow(0 0 8px var(--c-gold-1-a));
}

.ellipse-ring-inner {
	position: absolute;
	inset: 16px;
	opacity: 0;
	transition: opacity 0.6s 0.3s ease;
}

.ellipse-ring-inner.visible { opacity: 0.35; }
.ellipse-ring-inner svg     { width: 100%; height: 100%; }

.loading-logo-wrap {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	opacity: 0;
	transform: scale(0.7);
	transition:
	opacity   0.6s cubic-bezier(0.4, 0, 0.2, 1),
	transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.loading-logo-wrap.visible {
	opacity: 1;
	transform: scale(1);
}

.loading-logo-wrap svg {
	width: 36px;
	height: auto;
}

.progress-block {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 48px;
	opacity: 0;
	transition: opacity 0.5s 0.5s ease;
}

.progress-block.visible { opacity: 1; }

.bar-num {
	font-size: 11px;
	text-align: center;
}

/* ─── HERO VIDEO ─────────────────────────────────────────────────────────── */

.video-bg {
	width: 100%;
	height: calc(100dvh + 150px);
	position: absolute;
	left: 0;
	top: 0;
	--x1: 85%; --y1: 15%;
	--x2: 10%; --y2: 10%;
	--x3: 52%; --y3: 46%;
	background:
	radial-gradient(95% 80% at var(--x1) var(--y1),
		rgba(0,0,0,.6) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,0) 75%),
	radial-gradient(90% 75% at var(--x2) var(--y2),
		rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 80%),
	radial-gradient(ellipse at var(--x3) var(--y3),
		#5a140e 0%, #3e0d08 35%, #2a0806 60%, #1a0505 80%, #180404 100%),
	linear-gradient(to bottom,
		rgba(24,4,4,0) 60%, rgba(24,4,4,.85) 85%, rgba(24,4,4,1) 100%);
}

.video-bg::before {
	content: "";
	height: 350px;
	backdrop-filter: blur(66px);
	-webkit-backdrop-filter: blur(66px);
	mask: linear-gradient(to bottom,
		rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%,
		rgba(0,0,0,1) 55%, rgba(0,0,0,0) 100%);
	width: 100%;
	position: absolute;
	bottom: -200px;
	left: 0;
}

#video-pin {
	width: 100%;
	height: calc(100dvh + 150px);
	overflow: hidden;
	position: relative;
}

#hero-video {
	width: 100%;
	max-width: 100%;
	height: 100dvh;
	object-fit: cover;
	display: block;
}

.revival-txt {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: var(--fs-h3);
	width: 700px;
	max-width: 75vw;
	font-weight: 400;
	line-height: 1.15;
	text-align: center;
	visibility: hidden;
}

.revival-txt * {
	opacity: 0;
}

.scroll-down {
	position: absolute;
	bottom: 170px;
	left: 50%;
	text-transform: uppercase;
	transform: translateX(-50%);
	font-size: var(--fs-small-res);
	color: var(--c-gold-1-a);
	text-align: center;
	--line-height: 0rem;
	opacity: 0;
	z-index: 4;
}

.scroll-down::before {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	width: 1px;
	height: var(--line-height);	transform-origin: bottom;
	margin-bottom: 0.5rem;
	background: linear-gradient(
		to top,
		transparent 0%,
		var(--c-gold-1) 50%,
		transparent 100%
	);
	background-size: 100% 600%;
	background-position: 0% 100%;
	animation: lineShimmer 5s ease-in-out infinite; /* 1s animācija + 2s pauze = 3s cikls */

}

@keyframes lineShimmer {
	0%   { background-position: 0% 100%; } /* tumšs */
	33%  { background-position: 0% 0%;   } /* gaišs — 1s laikā */
	100% { background-position: 0% 100%; } /* atpakaļ tumšs — 2s pauze */
}

/* ─── INTRO SEKCIJA ──────────────────────────────────────────────────────── */

.section-intro {
	position: relative;
}

.section-intro::before {
	content: "";
	height: 150px;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	mask: linear-gradient(to bottom,
		rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%,
		rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
	width: 100%;
	position: absolute;
	bottom: 80%;
	left: 0;
}

.intro-txt {
	font-size: var(--fs-h3);
	text-align: center;
	line-height: 1.15;
	max-width: 75vw;
	margin: 0 auto;
}

/* ─── FIT-TEXT (GSAP kontrolē — CSS ir fallback) ─────────────────────────── */

.fit-text {
	display: block;
	width: 100%;
	font-size: 17.5rem;  /* GSAP pārraksta ar fitFontSize() */
	font-weight: bold;
	color: var(--c-gold-1-a2);
}

.fit-text text {
	font-size: 17.5rem;
	font-weight: bold;
	fill: var(--c-gold-1-a2);
}

h2 .fit-text + .fit-text {
	/* margin-top: -5vh; */
	margin-top: -3vw;
}

.fit-text--mobile { display: none !important; }

@keyframes gradientAnimation {
	0%   { background-position: 0%   50%; }
	50%  { background-position: 100% 50%; }
	100% { background-position: 0%   50%; }
}

/* ─── MARQUEE ────────────────────────────────────────────────────────────── */

.reveal-center {
	margin: 0 auto;
	max-width: 75vw;
}
.section-marquee {
	height: 100dvh;
	margin-top: 2rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.scrolling-text {
	overflow: hidden;
	width: 100%;
	display: flex;
	align-items: center;
}

.scrolling-text .rail {
	display: flex;
}

.scrolling-text .rail h4 {
	white-space: nowrap;
	font-size: 17.5rem;  /* GSAP kontrolē */
	font-size: clamp(3.5rem, 18vw, 17.5rem);
	font-weight: 900;
	line-height: 1em;
	margin: 0 30px 0 0;
	color: var(--c-gold-2);
}

/* ─── OUR VALUES ─────────────────────────────────────────────────────────── */

.section-values {
	max-height: 90dvh;
	justify-content: center;
	display: flex;
	width: 100%;
	flex-direction: column;
}

.section-values h2 {
	/* margin-top: 2rem; */
	margin-right: 2rem;
	overflow: visible;
}

@media only screen and (min-width: 64em) {
	.section-values h2 {
		margin-top: 2rem;
	}
}

.ov-1,
.ov-2 {
	position: relative;
}

.ov-1 {
	--after-height: 0;
	--before-width: 0;
}

.ov-2 {
	--before-width: 0;
}

.ov-1::after {
	content: "";
	position: absolute;
	bottom: 0;
	right: 0;
	width: 1px;
	height: var(--after-height);
	background: linear-gradient(to top, transparent, var(--c-gold-1));
	transform-origin: bottom;
}

.ov-1::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	height: 1px;
	width: var(--before-width);
	background: var(--c-gold-1);
	transform-origin: right;
}

.ov-2::before {
	content: "";
	position: absolute;
	top: 0;
	left: -2rem;
	/* left: -4rem; */
	height: 1px;
	width: var(--before-width);
	background: var(--c-gold-1);
	transform-origin: left;
}

.values-wrap {
	padding: var(--sp-section) 0;
	position: relative;
	height: 100%;
	display: grid;
}

.values-wrap li {
	grid-area: 1 / 1;
	list-style: none;
	align-self: start;
}

.value-title {
	font-size: var(--fs-value-title);
	line-height: 1.17;
	font-weight: 500;
	color: var(--c-gold-2-a);
}

.values-wrap p {
	font-size: var(--fs-body);
	margin-top: 2rem;
	line-height: 1.4;
}

@media only screen and (max-width: 40em) {
	.ov-1::after {
		display: none;
	}

	.ov-1::before {
		display: none;
	}

	.ov-2::before {
		left: -3.5rem;
	}

	.section-values h2 {
		margin-right: 0;
		margin-bottom: 1rem;
	}

	.section-values {
		max-height: none;
	}

	.values-wrap {
		display: flex;
		flex-direction: column;
		gap: 3rem;
		height: auto;
	}

	.values-wrap li {
		grid-area: auto;
	}

	.fit-text--desktop { display: none !important; }
	.fit-text--mobile { display: inline-block !important; margin-top: 0; }
}

/* ─── EXPERTISE ──────────────────────────────────────────────────────────── */

.section-expertise {
	min-height: 100dvh;
	display: flex;
	align-items: center;
}

.expertise-top {
	/* margin-bottom: calc(var(--sp-element) + 15vh); */
}

.title-expertise {
	margin: var(--sp-element) 0;
}

.vision-wrap {
	padding: var(--sp-section) 0;
}

.tabs-wrap {
	max-height: 100dvh;
}

.vision-tabs-outer {
	padding: var(--sp-element) 0;
	flex-shrink: 0;
}

.vision-tabs-rail {
	display: flex;
	align-items: baseline;
	white-space: nowrap;
}

.vision-tab {
	font-size: var(--fs-vision-tab);
	line-height: 1.15;
	color: var(--c-gold-2);

	width: calc(
		(6 / 12) * (100% - 11 * 2rem) +
		6 * 2rem
	);

	font-weight: 500;
	flex-shrink: 0;
	cursor: default;
	user-select: none;
}

@media only screen and (max-width: 40em) {
	.vision-tab {
		width: 100dvw;
	}
}

.vision-tab.is-active {
	color: var(--c-gold-2);
}

.vision-divider {
	margin: 0 calc(-1 * var(--sp-wrap));
	height: 1px;
	flex-shrink: 0;
	position: relative;
}

.vision-divider::after {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	height: 1px;
	background: var(--c-gold-1-a);
}

.vision-underline {
	position: absolute;
	top: 0;
	left: 0;
	height: 1px;
	background: var(--c-gold-1);
	width: 0;
	z-index: 2;
}

.vision-main {
	flex: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding: var(--sp-element) 2rem;
	min-height: 0;
}

.vision-svg-wrap {
	display: grid;
}

.svg-panel {
	grid-area: 1 / 1;
	list-style: none;
	align-self: start;
	opacity: 0;
}

.svg-panel svg {
	width: 100%;
	height: 100%;
	max-height: 300px;
}

.svg-panel path,
.svg-panel line,
.svg-panel polyline,
.svg-panel rect,
.svg-panel circle {
	fill: none;
	stroke-width: .8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.vision-text-wrap {
	display: grid;
	height: 100%;
}

.vision-mobile-label {
	display: none;
}

@media only screen and (max-width: 40em) {
	.vision-text-wrap {
		/* margin-top: 3rem; */
	}

	.tabs-wrap {
		max-height: none;
	}

	.vision-tabs-outer {
		display: none;
	}

	.vision-svg-wrap {
		display: none;
	}

	.vision-text-wrap {
		display: flex;
		flex-direction: column;
		gap: 3rem;
		height: auto;
	}

	.vision-content {
		grid-area: auto;
		visibility: visible;
	}

	.vision-mobile-label {
		display: block;
		font-size: var(--fs-vision-tab);
		line-height: 1.15;
		color: var(--c-gold-2);
		font-weight: 500;
		margin-bottom: 2rem;
	}
}

.vision-content {
	grid-area: 1 / 1;
	list-style: none;
	align-self: start;
	opacity: 0;
	visibility: hidden;
}

.vision-content.is-active {
	pointer-events: auto;
}

.vision-body {
	font-size: var(--fs-body);
	line-height: 1.4;
	margin: 0;
}

/* ─── INVESTMENTS ────────────────────────────────────────────────────────── */

.section-investments {
	min-height: 100dvh;
	display: flex;
	align-items: center;
}

.title-investments {
	margin: var(--sp-element) 0;
}

.stats-wrap {
	position: relative;
	--after-height: 0;
	margin-top: var(--sp-element);
	min-height: 1100px;
	height: 90vh;

	overflow: hidden;
}

@media only screen and (max-width: 40em) {
	.stats-wrap {
		min-height: 600px;
	}
}

.stats-wrap r-cell:first-child {
	text-align: right;
	padding-right: 1rem;
}

.stats-wrap r-cell:last-child {
	text-align: left;
	padding-left: 1rem;
}

.stats-wrap::after {
	position: absolute;
	content: "";
	top: 0;
	left: 50%;
	width: 1px;
	height: var(--after-height);
	background: linear-gradient(to top, transparent, var(--c-gold-1));
	transform-origin: bottom;
}

.stats-left {
	position: absolute;
	right: 50%;
	top: 50%;
	margin-top: -75px; /* puse no elementa augstuma aptuveni */
	padding-right: 2rem;
	text-align: right;
}

.stats-right {
	position: absolute;
	left: 50%;
	top: 50%;
	margin-top: -75px;
	padding-left: 2rem;
}

.stats-left-2 {
	position: absolute;
	right: 50%;
	top: 50%;
	margin-top: -75px;
	padding-right: 2rem;
	text-align: right;
}
.stats-right-2 {
	position: absolute;
	left: 50%;
	top: 50%;
	margin-top: -75px;
	padding-left: 2rem;
}

/* .stats-right {
	display: flex;
	height: 100%;
	justify-content: center;
	flex-direction: column;
} */

.stats-number {
	font-size: var(--fs-stat);
	color: var(--c-gold-2);
	line-height: 1;
	font-weight: 500;
}

.stats-title {
	color: var(--c-gold-1-a);
	font-size: var(--fs-body);
	line-height: 1.4;
	margin-top: 1rem;
}

/* ─── PROJEKTI — HORIZONTĀLAIS SCROLL ───────────────────────────────────── */

.section_projects-scroll {
	position: relative;
}

.projects-scroll_compnent {
	display: flex;
	flex-direction: row;
	align-items: center;
	height: 100%;
	position: relative;
	will-change: transform;
}

.projects-scroll_content {
	display: flex;
	column-gap: .75rem;
	flex: none;
	width: 100%;
	align-items: stretch;
}

.project-card-title-wrap {
	display: flex;
	justify-content: flex-start;
	flex-direction: column;
	position: relative;
	z-index: 2;
	perspective: 800px;
	mix-blend-mode: difference;
}

.project-number {
	font-size: var(--fs-body);
	font-weight: 500;
	text-transform: uppercase;
	color: var(--c-gold-2-a);
}

.project-title {
	font-size: var(--fs-proj-title);
	line-height: 1;
	font-weight: 500;
	margin-top: 2rem;
	white-space: nowrap;
	color: var(--c-gold-2-a);
}

.projects-card-info {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
}

.projects-subtitle {
	font-size: var(--fs-value-title);
	line-height: 1.17;
	font-weight: 500;
	color: var(--c-gold-2-a);
}

.projects-card-info p {
	font-size: var(--fs-body);
	margin: 2rem 0 0 0;
	line-height: 1.4;
}

.img-card-wrap {
	display: flex;
	justify-content: center;
	overflow: hidden;
}

.projects-scroll_link-wrap {
	height: 70vh;
	width: auto;
	max-width: 80%;
	aspect-ratio: 4 / 5;
	position: relative;
	overflow: hidden;
	margin: 0 auto;
	will-change: transform;
}

.projects-scroll_link-wrap img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	will-change: transform;
}

.projects-scroll_tag-wrap {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	align-items: flex-start;
}

.projects-scroll_progress-grid {
	position: absolute;
	bottom: -6rem;
	left: 0;
	right: 0;
}

.projects-scroll_progress-track {
	background: var(--c-gold-1-a);
	height: 1px;
	width: 100%;
}

.projects-scroll_progress-bar {
	background: var(--c-gold-1);
	height: 1px;
	width: 0%;
	transition: none;
}

.projects-scroll_progress-pagination {
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.pagaination-count {
	font-weight: 400;
	font-size: var(--fs-nav);
}

.button.is-link.is-icon {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-size: var(--fs-nav);
	text-transform: uppercase;
	font-weight: 400;
	color: var(--c-white);
}

.icon-embed-xxsmall {
	width: 1rem;
	height: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media only screen and (max-width: 64em) {
	.project-title {
		margin: 1rem 0 2rem 0;
	}
}

@media only screen and (max-width: 40em) {
	.projects-scroll_link-wrap {
		max-width: 100%;
	}
}

/* ─── KOMANDA ────────────────────────────────────────────────────────────── */

.team-content-wrap {
	margin-top: var(--sp-section);
	position: relative;
}

.team-img-wrap {
	padding: var(--sp-section) 0;
	width: 100%;
	justify-content: center;
	align-items: center;
	display: flex;
}

.image-reveal-clip {
	overflow: hidden;
	width: min(100%, calc(85vh * 2 / 3));
	aspect-ratio: 2 / 3;
}

.image-reveal {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.image-reveal-inner {
	height: 100%;
}

.image-reveal img {
	position: relative;
	object-fit: cover;
	height: 105%;
}

.team-text {
	padding: var(--sp-section) 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	color: #EFE2B3;
}

.team-text p {
	font-size: var(--fs-body-lg);
	line-height: 1.4;
}

.mark {
	margin-top: 0.5rem;
}

.team-11,
.team-1,
.team-2 {
	position: relative;
}

.team-1 {
	--after-height: 0;
	--before-width: 0;
}

.team-2 {
	--before-width: 0;
	--after-width: 0;
}

.team-11::after {
	content: "";
	position: absolute;
	bottom: 0;
	right: 50%;
	width: 1px;
	height: var(--after-height);
	background: linear-gradient(to top, transparent, var(--c-gold-1));
	transform-origin: bottom;
}

.team-11::before {
	content: "";
	position: absolute;
	top: 0;
	right: 50%;
	height: 1px;
	width: var(--before-width);
	background: var(--c-gold-1);
	transform-origin: right;
}

.team-2::before {
	content: "";
	position: absolute;
	left: calc(7 / 12 * 100%);
	height: 1px;
	background: var(--c-gold-1);
	transform-origin: left;
}

.team-2::before { top: 0;    width: var(--before-width); }


.team-author {
	font-size: var(--fs-small);
	line-height: 1.4;
}

.team-author span {
	color: var(--c-gold-1-a);
	display: block;
}

@media only screen and (max-width: 40em) {
	.team-text {
		height: 50dvh;
	}

	.team-2::after {
		content: "";
		position: absolute;
		left: calc(7 / 12 * 100%);
		height: 1px;
		background: var(--c-gold-1);
		transform-origin: left;
	}

	.team-2::after  { bottom: 0; width: var(--after-width);  }

	.team-2::before,
	.team-2::after {
		left: -3.5rem;
	}

	.team-11::before,
	.team-11::after {
		display: none;
	}
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */

.section-footer {
	margin-top: var(--sp-section-lg);
}

.contact-info-wrap {
	font-size: var(--fs-body-lg);
	line-height: 1.4;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;

	margin-top: 1rem;
}

footer svg {
	width: 100%;
	height: 100%;
	margin-top: var(--sp-section-lg);
}

.footer-info {
	font-size: var(--fs-small);
	padding: 1.25rem 0 2rem 0;
	text-align: right;
}

@media only screen and (max-width: 40em) {
	.footer-info {
		font-size: 0.625rem;
		padding: 1rem 0 1.5rem 0;
	}
}

}

.footer-info span + span {
	margin-left: 2rem;
}

/* ─── REVEAL UTILITI ─────────────────────────────────────────────────────── */

.reveal {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	display: flex;
	justify-content: center;
}

.reveal img,
.reveal video {
	object-fit: cover;
	min-height: 100%;
}

.reveal-small {
	position: relative;
	overflow: hidden;
}

.img-wrap {
	position: relative;
	max-height: 0;
	overflow: hidden;
	display: inline-block;
	transition: max-height 2s ease 0.3s;
}

.img-wrap img {
	transform: scale(1.1) rotate(10deg);
	opacity: 0;
	transition: all 1s ease;
}

.img-fs {
	display: flex;
	align-items: center;
	justify-content: center;
	max-height: 90vh;
	min-height: 900px;
	overflow: hidden;
	width: 100%;
	object-fit: cover;
}

.img-fs img {
	width: 100%;
	min-height: 100%;
	max-width: initial;
}

.is-inview.img-wrap {
	max-height: 1000px;
}

.is-inview.img-wrap img {
	transform: scale(1) rotate(0);
	opacity: 1;
}

.img-wrap-full {
	display: flex;
	height: 100%;
	position: relative;
}

/* ─── MEDIA QUERIES (tikai layout, ne fonti) ─────────────────────────────── */

@media only screen and (max-width: 40em) {
	figure { margin: 0 1rem; }

	r-cell[span-s="0"] { display: none; }
	r-cell[span="0"]   { display: initial; }

	.full { padding: 0 1rem; }

	.wrap:not(.wrap-sm) + .wrap { margin-top: -3rem; }

	.section-text { margin-bottom: 0; }

	.projects-scroll_compnent {
		padding: 0;
	}
}

@media only screen and (max-width: 64em) {
	.img-wrap-full img { vertical-align: bottom; }
}

@media (max-width: 991px) {
	body { cursor: auto; }

	/* Burger — tikai ikona, kvadrātā */
	.burger-title          { display: none; }
	.burger-icon           { margin-left: 0; }
	.burger-wrap           { justify-content: center; aspect-ratio: 1; }

	.projects-scroll_compnent {
		flex-direction: column;
		height: auto;
		padding-top: 4rem;
		padding-bottom: 4rem;
	}

	.projects-scroll_content {
		flex-direction: column;
		gap: 1.8rem;
		margin-left: 0 !important;
		padding-bottom: 3rem;
		width: 100%;
	}

	.projects-scroll_progress-grid { display: none; }
	/* .projects-scroll_link-wrap     { max-height: none; height: 60vw; max-width: 100%; } */

	/* Projektu kartes — r-grid cells bez span-s, jāpiespiež pilnam platumam */
	.projects-scroll_content r-cell {
		grid-column: 1 / -1 !important;
	}

	/* Attēls — centrēts, saprātīgs augstums */
	.img-card-wrap {
		width: 100%;
	}

	/* Kartes info teksts — pilna platuma */
	.projects-card-info {
		height: auto;
		padding-top: 0.5rem;
	}

	/* Projekta nosaukums — mazāks uz maziem ekrāniem */
	.project-title {
		white-space: normal;
	}
}

/*  */

.projects-card-info {
	padding-top: 2rem;
}

/* ── Drawer landscape — samazina padding lai saturs ietilpst mazā ekrānā ──────── */
@media (max-height: 500px) {
	.drawer__frame__wrapper {
		padding-top:    clamp(0.75rem, 3dvh, 1.5rem);
		padding-bottom: clamp(0.75rem, 3dvh, 1.5rem);
		flex-direction: column;
		display: flex;
		justify-content: space-around;
		height: 100%;
	}

	.lang-nav {
		left:  initial;
		right: calc(clamp(1.5rem, 4vw, 3rem) + 1rem);
	}
}

/* ── Scroll restore — novērš video zibsni starp preloader un scroll atjaunošanu ── */
/* Klasi pievieno index.php inline script tikai reload gadījumā.                    */
/* Klasi noņem restoreScrollAfterRefresh() pēc pozīcijas iestatīšanas.             */
html.is-restoring #smooth-wrapper,
html.is-restoring #c {
	opacity: 0;
	pointer-events: none;
}
