/* ==========================================================================
   Vesy – main stylesheet
   1. Fonts & tokens   2. Base   3. Layout & type   4. Buttons & UI
   5. Header           6. Hero   7. Tiles           8. Marquee
   9. Materials       10. Process 11. Mission       12. Area
  13. CTA             14. Footer 15. Pages          16. Blog
  17. Forms           18. Motion states             19. Reduced motion
   ========================================================================== */

/* 1. Fonts & tokens ------------------------------------------------------- */
@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "JetBrains Mono";
	src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
	font-weight: 100 800;
	font-display: swap;
	unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212;
}
@font-face {
	font-family: "JetBrains Mono";
	src: url("../fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2-variations");
	font-weight: 100 800;
	font-display: swap;
	unicode-range: U+0100-02AF, U+1E00-1EFF;
}

:root {
	--bg: #0b0a09;
	--bg-2: #12100f;
	--bg-3: #1a1715;
	--card: rgba(255, 244, 232, .035);
	--card-2: rgba(255, 244, 232, .06);
	--line: rgba(255, 236, 220, .1);
	--line-2: rgba(255, 236, 220, .18);
	--ink: #f5f0e9;
	--muted: #a79e94;
	--dim: #6f675f;
	--accent: #e2b650;
	--accent-2: #f5d98f;
	--accent-3: #a37b22;
	--ok: #8fd19e;
	--err: #ff8f7a;

	--f-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--gutter: clamp(16px, 4vw, 48px);
	--maxw: 1360px;
	--radius: 18px;
	--radius-lg: 28px;
	--header-h: 76px;
	--ease: cubic-bezier(.22, 1, .36, 1);
	--ease-io: cubic-bezier(.65, 0, .35, 1);

	color-scheme: dark;
}

/* 2. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--f-sans);
	font-size: clamp(16px, 1.05vw, 18px);
	line-height: 1.6;
	font-stretch: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
	text-rendering: optimizeLegibility;
}
body::before { /* film grain */
	content: "";
	position: fixed;
	inset: 0;
	z-index: 90;
	pointer-events: none;
	opacity: .05;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
::selection { background: var(--accent); color: #1a1404; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.sr-only, .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
	position: fixed; left: 16px; top: -60px; z-index: 200;
	background: var(--accent); color: #1a1404; padding: 10px 16px; border-radius: 10px; font-weight: 700;
	transition: top .2s;
}
.skip:focus { top: 16px; }

/* 3. Layout & type ------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.section { padding-block: clamp(80px, 12vw, 180px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }

.h2, .mats__heading {
	font-size: clamp(40px, 6.4vw, 104px);
	line-height: .92;
	font-weight: 800;
	font-stretch: 72%;
	text-transform: uppercase;
	letter-spacing: -.01em;
}
.txt-accent { color: var(--accent); }
.txt-dim { color: var(--dim); }

.eyebrow {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
	color: var(--muted);
	margin-bottom: clamp(18px, 2.4vw, 32px);
}
.eyebrow__num { color: var(--accent); }
.eyebrow__num::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--line-2); vertical-align: middle; margin-left: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(226, 182, 80, .18); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(226, 182, 80, 0); } }

.line { display: block; overflow: hidden; padding-block: .14em .06em; margin-block: -.14em -.06em; }
.line__in { display: inline-block; }

.ico { width: 1.2em; height: 1.2em; flex: none; }

/* 4. Buttons & UI -------------------------------------------------------- */
.btn {
	--h: 52px;
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	height: var(--h); padding: 0 22px;
	border-radius: 999px;
	font-weight: 600; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
	transition: transform .4s var(--ease), background-color .3s, border-color .3s, box-shadow .4s var(--ease), color .3s;
	isolation: isolate; overflow: hidden;
}
.btn .ico { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover .ico-arrow { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--sm { --h: 44px; padding: 0 18px; font-size: 14px; }
.btn--lg { --h: 60px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--call, .btn--primary {
	background: linear-gradient(180deg, var(--accent-2), var(--accent) 55%, var(--accent-3));
	color: #1a1404;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 30px -10px rgba(226, 182, 80, .6);
}
.btn--call::after, .btn--primary::after { /* sheen sweep */
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 66%);
	transform: translateX(-110%);
	transition: transform .8s var(--ease);
}
.btn--call:hover::after, .btn--primary:hover::after { transform: translateX(110%); }
.btn--call:hover, .btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 16px 40px -10px rgba(226, 182, 80, .8); }
.btn--call strong { font-weight: 800; }

.btn--ghost {
	background: var(--card); border: 1px solid var(--line-2); color: var(--ink);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn--ghost:hover { background: var(--card-2); border-color: rgba(255, 236, 220, .32); }

.link-arrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 600; color: var(--accent-2);
	border-bottom: 1px solid rgba(245, 217, 143, .3); padding-bottom: 3px;
	transition: border-color .3s, gap .4s var(--ease);
}
.link-arrow .ico { width: 16px; height: 16px; }
.link-arrow:hover { border-color: var(--accent-2); gap: 12px; }

/* 5. Header ------------------------------------------------------------- */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	padding: 14px var(--gutter) 0;
	transition: transform .5s var(--ease);
	pointer-events: none;
}
.site-header.is-hidden { transform: translateY(-120%); }
.site-header__bar {
	pointer-events: auto;
	max-width: calc(var(--maxw) - 2 * var(--gutter) + 24px);
	margin-inline: auto;
	height: 62px;
	display: flex; align-items: center; gap: 16px;
	padding: 0 8px 0 18px;
	border-radius: 999px;
	position: relative;
	isolation: isolate;
}
/* Glass lives on a pseudo-element: backdrop-filter on the bar itself would
   become the containing block for the fixed mobile menu overlay. */
.site-header__bar::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	border-radius: inherit;
	border: 1px solid transparent;
	transition: background-color .4s, border-color .4s, opacity .4s;
}
.site-header.is-scrolled .site-header__bar::before {
	background: rgba(18, 16, 15, .72);
	border-color: var(--line);
	backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.menu-open .site-header__bar::before { opacity: 0; }

.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__tile {
	width: 38px; height: 38px; border-radius: 9px;
	display: grid; place-items: center;
	background: linear-gradient(135deg, #fbe9ad, var(--accent) 35%, var(--accent-3) 62%, #f0cf74 82%, #6b4f12);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 6px rgba(0, 0, 0, .25);
	color: #1a1404; font-weight: 800; font-size: 15px; letter-spacing: -.02em;
}
.brand__word { display: flex; flex-direction: column; line-height: 1; font-weight: 800; font-stretch: 80%; font-size: 21px; letter-spacing: .02em; }
.brand__word small { font-family: var(--f-mono); font-weight: 400; font-stretch: 100%; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.custom-logo-link { margin-right: auto; }
.custom-logo { max-height: 40px; width: auto; }

.nav .menu { display: flex; gap: 4px; }
.nav .menu a {
	display: block; padding: 9px 16px; border-radius: 999px;
	font-size: 15px; color: var(--muted);
	transition: color .3s, background-color .3s;
}
.nav .menu a:hover { color: var(--ink); }
.nav .current-menu-item > a, .nav .current_page_item > a { color: var(--ink); background: var(--card-2); }
.nav__mobile-foot { display: none; }
.site-header__call { --h: 46px; padding: 0 18px; font-size: 14px; }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--card-2); border: 1px solid var(--line); place-items: center; }
.burger__lines { display: grid; gap: 6px; width: 18px; }
.burger__lines span { height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease); }
.menu-open .burger__lines span:first-child { transform: translateY(3.8px) rotate(45deg); }
.menu-open .burger__lines span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

@media (max-width: 960px) {
	.site-header__call { display: none; }
	.burger { display: grid; }
	.nav {
		position: fixed; inset: 0; z-index: -1;
		padding: calc(var(--header-h) + 40px) var(--gutter) 32px;
		background: var(--bg);
		display: flex; flex-direction: column; justify-content: space-between;
		opacity: 0; visibility: hidden;
		transition: opacity .45s var(--ease), visibility .45s;
		pointer-events: auto;
	}
	.menu-open .nav { opacity: 1; visibility: visible; }
	.nav .menu { flex-direction: column; gap: 0; }
	.nav .menu a {
		font-size: clamp(40px, 12vw, 64px); font-weight: 800; font-stretch: 72%; text-transform: uppercase;
		line-height: 1.05; padding: 10px 0; border-radius: 0; background: none !important; color: var(--ink);
		border-bottom: 1px solid var(--line);
		transform: translateY(20px); opacity: 0;
		transition: transform .6s var(--ease), opacity .6s var(--ease), color .3s;
	}
	.nav .current-menu-item > a { color: var(--accent); }
	.menu-open .nav .menu a { transform: none; opacity: 1; }
	.menu-open .nav .menu li:nth-child(2) a { transition-delay: .05s; }
	.menu-open .nav .menu li:nth-child(3) a { transition-delay: .1s; }
	.menu-open .nav .menu li:nth-child(4) a { transition-delay: .15s; }
	.menu-open .nav .menu li:nth-child(5) a { transition-delay: .2s; }
	.nav__mobile-foot { display: grid; gap: 14px; }
	.nav__hours { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
	.menu-open { overflow: hidden; }
}

/* 6. Hero --------------------------------------------------------------- */
.hero {
	position: relative;
	min-height: 100vh; min-height: 100svh;
	display: flex; flex-direction: column; justify-content: flex-end;
	padding-top: calc(var(--header-h) + 24px);
	padding-bottom: 24px;
	overflow: clip;
}
.hero__glow, .cta__glow {
	position: absolute; pointer-events: none;
	width: 90vmax; height: 90vmax; right: -30vmax; top: -40vmax;
	background: radial-gradient(closest-side, rgba(226, 182, 80, .22), rgba(226, 182, 80, .06) 45%, transparent 70%);
	filter: blur(10px);
}
.hero__grid-bg {
	position: absolute; inset: 0; pointer-events: none;
	background-image:
		linear-gradient(var(--line) 1px, transparent 1px),
		linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 88px 88px;
	mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 10%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 10%, transparent 75%);
	opacity: .55;
}
.hero__inner {
	position: relative; flex: 1;
	display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	align-items: center; gap: clamp(24px, 4vw, 64px);
}
.hero__title {
	font-size: clamp(46px, min(7.4vw, 13.5vh), 136px);
	line-height: .88; font-weight: 800; font-stretch: 70%;
	text-transform: uppercase; letter-spacing: -.012em;
	margin-bottom: clamp(18px, 3vh, 32px);
}
.hero__title .line:last-child { font-size: .52em; line-height: 1; margin-top: .18em; font-stretch: 78%; }
.hero__lead { max-width: 560px; font-size: clamp(17px, 1.25vw, 20px); color: var(--muted); margin-bottom: clamp(22px, 3.4vh, 40px); }
.hero__lead::first-line { color: var(--ink); }
.hero__lead strong { color: var(--accent-2); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { position: relative; width: 100%; max-width: 560px; justify-self: center; }
.hero__stack { position: relative; aspect-ratio: 1; width: 100%; perspective: 1400px; }
.hero__card {
	--tx: 0px; --ty: 0px; --r: 0deg;
	position: absolute; left: 50%; top: 50%;
	width: 52%;
	transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) rotate(var(--r));
	transform-style: preserve-3d;
}
.hero__card:nth-child(1) { --tx: -18%; --ty: -16%; --r: -9deg; z-index: 5; }
.hero__card:nth-child(2) { --tx: 34%;  --ty: -26%; --r: 8deg;  z-index: 3; width: 40%; }
.hero__card:nth-child(3) { --tx: 42%;  --ty: 38%;  --r: -5deg; z-index: 4; width: 44%; }
.hero__card:nth-child(4) { --tx: -50%; --ty: 52%;  --r: 7deg;  z-index: 2; width: 36%; }
.hero__card:nth-child(5) { --tx: -70%; --ty: -54%; --r: -14deg; z-index: 1; width: 30%; }

.hero__foot {
	position: relative;
	display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
	margin-top: clamp(20px, 4vh, 48px);
	padding-top: 18px;
	background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 14px; color: var(--muted); }
.hero__facts span { font-family: var(--f-mono); font-size: 11px; color: var(--accent); margin-right: 10px; }
.hero__facts .is-cash { color: var(--accent-2); font-weight: 600; }
.scroll-hint { display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.scroll-hint__bar { position: relative; width: 1px; height: 44px; background: var(--line-2); overflow: hidden; }
.scroll-hint__bar::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--accent); animation: drip 2s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }

@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__visual { order: -1; max-width: 340px; width: 78%; margin-bottom: -10px; }
	.hero__foot { flex-direction: column; align-items: flex-start; }
	.scroll-hint { display: none; }
	.hero__title { font-size: clamp(42px, 9.6vw, 92px); }
	.hero__lead { max-width: 640px; }
}
@media (max-width: 560px) {
	.hero__actions .btn { flex: 1 1 100%; }
}

/* Cash badge (hero) */
.cash-badge {
	position: absolute; left: -6%; bottom: 0; z-index: 6;
	width: 40%; aspect-ratio: 1; border-radius: 50%;
	display: grid; place-items: center;
	background: radial-gradient(circle at 35% 30%, #2a2214, #120f0a 70%);
	border: 1px solid rgba(226, 182, 80, .45);
	box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .8), 0 0 0 6px rgba(226, 182, 80, .07);
	container-type: inline-size;
}
.cash-badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.cash-badge__ring text { font-family: var(--f-mono); font-size: 15px; font-weight: 600; letter-spacing: .08em; fill: var(--accent-2); }
.cash-badge__core { display: grid; place-items: center; line-height: 1; }
.cash-badge__eur { font-size: 26cqi; font-weight: 800; color: var(--accent); }
.cash-badge__txt { font-size: 6.4cqi; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: 3cqi; }
@media (max-width: 900px) { .cash-badge { width: 44%; left: -10%; bottom: -6%; } }

.cash-pill {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 10px 18px 10px 14px; border-radius: 999px;
	background: rgba(226, 182, 80, .1); border: 1px solid rgba(226, 182, 80, .35);
	color: var(--ink); font-size: 15px;
}
.cash-pill .ico { color: var(--accent); width: 22px; height: 22px; }
.cash-pill strong { color: var(--accent-2); }
.cta .cash-pill { margin-top: 22px; }
.cash-pill--block { display: flex; border-radius: var(--radius); padding: 18px 24px; font-size: 16px; }
.site-footer__cash { color: var(--accent-2); }

/* 7. Tiles (metallic periodic-table squares) ------------------------------ */
.tile {
	--a: #f6c39a; --b: #d27a45; --c: #8c4520; --d: #e39a66; --e: #6e3415; --tile-ink: #1b0c04;
	position: relative;
	aspect-ratio: 1;
	width: 100%;
	border-radius: 9%;
	padding: 9%;
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-rows: auto 1fr auto;
	color: var(--tile-ink);
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px),
		linear-gradient(135deg, var(--a) 0%, var(--b) 26%, var(--c) 52%, var(--d) 74%, var(--e) 100%);
	box-shadow:
		inset 0 2px 0 rgba(255, 255, 255, .5),
		inset 0 -3px 10px rgba(0, 0, 0, .3),
		inset 0 0 0 1px rgba(255, 255, 255, .12),
		0 40px 80px -30px rgba(0, 0, 0, .9),
		0 20px 50px -20px var(--glow, rgba(227, 139, 82, .35));
	overflow: hidden;
	container-type: inline-size;
	user-select: none;
}
.tile__sheen {
	position: absolute; inset: -20%;
	background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%);
	transform: translateX(var(--sheen, -70%));
	mix-blend-mode: overlay;
	pointer-events: none;
	animation: sheen 6s var(--ease-io) infinite;
	animation-delay: calc(var(--i, 0) * .7s);
}
@keyframes sheen { 0%, 55% { transform: translateX(-70%); } 100% { transform: translateX(70%); } }
.tile__num, .tile__note { font-family: var(--f-mono); font-size: 7.5cqi; font-weight: 600; line-height: 1; }
.tile__note { justify-self: end; opacity: .7; font-weight: 400; }
.tile__sym {
	grid-column: 1 / -1; align-self: center;
	font-size: 46cqi; font-weight: 800; font-stretch: 85%; line-height: .8; letter-spacing: -.04em;
	text-shadow: 0 1px 0 rgba(255, 255, 255, .35), 0 -1px 0 rgba(0, 0, 0, .25);
}
.tile--zn .tile__sym, .tile--em .tile__sym { font-size: 34cqi; font-stretch: 72%; }
.tile__name { grid-column: 1 / -1; font-size: 8.5cqi; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

.tile--al { --a: #f6f7f8; --b: #c3c8ce; --c: #7f878f; --d: #e6e9ec; --e: #5b6168; --tile-ink: #15181b; --glow: rgba(200, 210, 220, .25); }
.tile--zn { --a: #fff0b8; --b: #d9b04f; --c: #8b6a1d; --d: #f0cf74; --e: #5a430f; --tile-ink: #1c1404; --glow: rgba(217, 176, 79, .35); }
.tile--kb { --a: #ffb08a; --b: #cf5a36; --c: #6f2312; --d: #ec7b55; --e: #43140a; --tile-ink: #fff1e8; --glow: rgba(207, 90, 54, .4); }
.tile--em { --a: #b7c6d1; --b: #687d8e; --c: #2a3641; --d: #8fa4b4; --e: #1a222a; --tile-ink: #f1f5f8; --glow: rgba(120, 150, 175, .3); }
.tile--kb .tile__sym, .tile--em .tile__sym { text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }

.mat-photo { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .7)); }

/* 8. Marquee ------------------------------------------------------------ */
.marquee {
	position: relative; overflow: hidden;
	border-block: 1px solid var(--line);
	padding-block: clamp(14px, 2vw, 26px);
	background: var(--bg-2);
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__item { font-size: clamp(28px, 4.2vw, 64px); font-weight: 800; font-stretch: 70%; text-transform: uppercase; line-height: 1; padding-inline: clamp(16px, 2vw, 32px); }
.marquee__item:nth-child(4n+1) { color: transparent; -webkit-text-stroke: 1px var(--muted); }
.marquee__sep { color: var(--accent); align-self: center; font-size: clamp(14px, 1.4vw, 22px); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 9. Materials ---------------------------------------------------------- */
.mats { position: relative; background: var(--bg); overflow-x: clip; }
.mats__pin { position: relative; padding-block: clamp(80px, 10vw, 140px); }
.mats__head { display: flex; flex-direction: column; margin-bottom: clamp(32px, 4vw, 56px); }
.mats__heading { font-size: clamp(40px, 5.2vw, 88px); }

.mats__stage { position: relative; display: grid; gap: clamp(56px, 8vw, 96px); }
.mats__lines { display: none; }

.mat { display: grid; gap: 24px; }
.mat__visual { position: relative; max-width: 360px; width: 72%; }
.mat__kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.mat__copy { container-type: inline-size; min-width: 0; }
/* Long names (ELEKTROMOTORY) scale down to fit the column; --len = character count */
.mat__name { font-size: min(clamp(48px, 7vw, 120px), calc(100cqi / (var(--len, 6) * .6))); line-height: .88; font-weight: 800; font-stretch: 70%; text-transform: uppercase; margin-bottom: 18px; overflow-wrap: anywhere; }
.mat__lead { color: var(--muted); max-width: 440px; margin-bottom: 22px; font-size: clamp(16px, 1.2vw, 19px); }

.mat__callouts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; order: 3; }
.callout {
	padding: 14px 16px; border-radius: 14px;
	background: linear-gradient(180deg, var(--card-2), var(--card));
	border: 1px solid var(--line);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.callout__meta { display: flex; justify-content: space-between; gap: 8px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.callout__meta span:last-child { color: var(--dim); }
.callout__title { display: block; font-size: 17px; font-weight: 600; }

.mats__foot { display: none; }

@media (min-width: 1000px) {
	html.js .mats__pin {
		height: 100vh; height: 100svh;
		display: flex; flex-direction: column;
		padding-top: calc(var(--header-h) + 28px); padding-bottom: 28px;
	}
	html.js .mats__head { margin-bottom: 0; flex-direction: row; align-items: baseline; justify-content: space-between; }
	html.js .mats__head .eyebrow { margin: 0; }
	html.js .mats__heading { font-size: clamp(28px, 2.6vw, 44px); text-align: right; }
	html.js .mats__heading br { display: none; }
	html.js .mats__heading .txt-dim { margin-left: .3em; }

	html.js .mats__stage { flex: 1; min-height: 0; display: block; }
	html.js .mats__lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
	.mats__lines path { fill: none; stroke: rgba(226, 182, 80, .55); stroke-width: 1; }
	.mats__lines circle.dot-o { fill: var(--bg); stroke: var(--accent); stroke-width: 1.5; }
	.mats__lines circle.dot-i { fill: var(--accent); }

	html.js .mat {
		position: absolute; inset: 0 var(--gutter);
		grid-template-columns: minmax(220px, 290px) minmax(0, 1fr) minmax(300px, 400px);
		align-items: center; gap: clamp(24px, 3vw, 48px);
		pointer-events: none;
	}
	html.js .mat.is-active { pointer-events: auto; }
	html.js .mat__callouts { order: 0; grid-template-columns: 1fr; gap: 12px; position: relative; z-index: 3; }
	html.js .mat__visual { justify-self: center; width: min(100%, 52vh, 460px); max-width: none; perspective: 1200px; }
	html.js .mat__visual > * { transform-style: preserve-3d; }

	/* inactive → active transitions */
	html.js .callout { opacity: 0; transform: translateX(-30px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
	html.js .mat.is-active .callout { opacity: 1; transform: none; }
	html.js .mat.is-active .callout:nth-child(2) { transition-delay: .06s; }
	html.js .mat.is-active .callout:nth-child(3) { transition-delay: .12s; }
	html.js .mat.is-active .callout:nth-child(4) { transition-delay: .18s; }

	html.js .mat__visual { opacity: 0; transform: scale(.82) rotate(-6deg) translateY(30px); filter: blur(8px); transition: opacity .6s var(--ease), transform .9s var(--ease), filter .6s var(--ease); }
	html.js .mat.is-active .mat__visual { opacity: 1; transform: none; filter: none; }
	html.js .mat.is-leaving .mat__visual { transform: scale(1.06) rotate(5deg) translateY(-30px); }

	html.js .mat__copy > * { opacity: 0; transform: translateY(28px); transition: opacity .5s var(--ease), transform .8s var(--ease); }
	html.js .mat.is-active .mat__copy > * { opacity: 1; transform: none; }
	html.js .mat.is-active .mat__copy > :nth-child(2) { transition-delay: .05s; }
	html.js .mat.is-active .mat__copy > :nth-child(3) { transition-delay: .1s; }
	html.js .mat.is-active .mat__copy > :nth-child(4) { transition-delay: .15s; }

	html.js .mats__foot { display: flex; align-items: flex-end; justify-content: space-between; }
	.mats__counter { display: flex; align-items: baseline; gap: 10px; line-height: .8; }
	.mats__num { font-size: clamp(72px, 9vw, 140px); font-weight: 200; font-stretch: 100%; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
	.mats__of { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
	.mats__index {
		display: grid; gap: 4px; min-width: 300px;
		padding: 14px 16px; border-radius: 16px;
		background: rgba(18, 16, 15, .7); border: 1px solid var(--line);
		backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
		font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
	}
	.mats__index li { display: grid; grid-template-columns: 28px 1fr 64px; align-items: center; gap: 8px; color: var(--dim); transition: color .3s; }
	.mats__index li.is-active, .mats__index li.is-done { color: var(--ink); }
	.mats__index i { height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
	.mats__index b { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
	.mats__index li.is-done b { transform: scaleX(1); }
}

@media (min-width: 640px) and (max-width: 999px) {
	/* Tablet portrait: tile beside the text, item cards underneath */
	.mat { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: center; column-gap: clamp(24px, 4vw, 48px); }
	.mat .mat__visual { width: 100%; max-width: 320px; }
	.mat__callouts { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mat__lead { margin-bottom: 18px; }
}
@media (max-width: 999px) {
	.mat { padding-top: clamp(40px, 6vw, 56px); border-top: 1px solid var(--line); }
	.mat__visual { width: 62%; max-width: 300px; }
	.callout__meta span:last-child { display: none; }
}

/* 10. Process ------------------------------------------------------------ */
.process { position: relative; background: var(--bg-2); border-block: 1px solid var(--line); }
.process__pin { padding-block: clamp(80px, 10vw, 140px); overflow: hidden; }
.process__head { position: relative; margin-bottom: clamp(40px, 5vw, 72px); }
.process__rail { display: none; }

.process__track { display: grid; gap: 14px; padding-inline: var(--gutter); max-width: var(--maxw); margin-inline: auto; counter-reset: s; }
.step {
	position: relative;
	padding: clamp(24px, 3vw, 40px);
	border-radius: var(--radius-lg);
	background: linear-gradient(160deg, var(--card-2), var(--card) 60%);
	border: 1px solid var(--line);
	display: flex; flex-direction: column;
	min-height: 300px;
	overflow: hidden;
}
.step::before { /* faint copper corner glow */
	content: ""; position: absolute; right: -30%; top: -40%; width: 80%; aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(226, 182, 80, .16), transparent);
	pointer-events: none;
}
.step__num {
	font-size: clamp(80px, 9vw, 150px); line-height: .8; font-weight: 800; font-stretch: 70%;
	color: rgba(226, 182, 80, .06); -webkit-text-stroke: 1.5px var(--accent);
	margin-bottom: auto; padding-bottom: 32px;
}
.step__key { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.step__title { font-size: clamp(24px, 2.2vw, 34px); line-height: 1.05; font-weight: 700; font-stretch: 85%; margin-bottom: 12px; }
.step__text { color: var(--muted); max-width: 380px; }
.step__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.step--end { background: none; border-style: dashed; justify-content: center; }
.step__end { font-size: clamp(32px, 3.6vw, 56px); line-height: .95; font-weight: 800; font-stretch: 72%; text-transform: uppercase; }

@media (min-width: 1000px) {
	html.js .process__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + 10px) 40px; }
	html.js .process__head { display: grid; grid-template-columns: 1fr auto; align-items: end; margin-bottom: clamp(28px, 4vh, 56px); }
	html.js .process__head .eyebrow { grid-column: 1 / -1; }
	html.js .process__rail { display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: -20px; height: 1px; background: var(--line); }
	html.js .process__rail span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent-3), var(--accent), var(--accent-2)); transform-origin: left; transform: scaleX(0); }
	html.js .process__track {
		display: flex; gap: 20px; max-width: none; margin: 0;
		padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
		padding-right: var(--gutter);
		width: max-content;
		will-change: transform;
	}
	html.js .step { width: clamp(340px, 30vw, 460px); min-height: min(50vh, 460px); flex: none; }
	html.js .step--end { width: clamp(340px, 34vw, 520px); }
}
@media (min-width: 640px) and (max-width: 999px) {
	.process__track { grid-template-columns: 1fr 1fr; }
	.step { min-height: 0; }
	.step__num { padding-bottom: 28px; }
	.step--end { grid-column: 1 / -1; min-height: 0; text-align: center; }
}

/* 11. Mission ------------------------------------------------------------ */
.mission__text {
	font-size: clamp(32px, 5vw, 80px);
	line-height: 1.02; font-weight: 700; font-stretch: 80%; letter-spacing: -.015em;
	max-width: 18ch;
	max-width: min(100%, 1200px);
	margin-bottom: clamp(48px, 7vw, 100px);
}
.mission__text .w { display: inline-block; }
html.js .mission__text .w { opacity: .14; }

.mission__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fact { padding: clamp(24px, 2.6vw, 36px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 10px; }
.fact__ico { color: var(--accent); }
.fact__big { font-size: clamp(56px, 6vw, 96px); line-height: .9; font-weight: 800; font-stretch: 72%; color: var(--accent-2); }
.fact__txt { color: var(--muted); }
.fact--cta { background: linear-gradient(160deg, rgba(226, 182, 80, .14), rgba(226, 182, 80, .03)); border-color: rgba(226, 182, 80, .25); justify-content: space-between; gap: 24px; }
.fact--cta .fact__txt { color: var(--ink); font-size: 1.05em; }
@media (max-width: 900px) { .mission__facts { grid-template-columns: 1fr; } }

/* 12. Area -------------------------------------------------------------- */
.area { border-top: 1px solid var(--line); overflow: clip; }
.area__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.area__lead { color: var(--muted); max-width: 520px; margin-block: 24px 32px; font-size: clamp(17px, 1.3vw, 20px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 16px 10px 12px; border-radius: 999px;
	background: var(--card); border: 1px solid var(--line);
	font-size: 15px;
	transition: border-color .3s, background-color .3s;
}
.chips li:hover { border-color: rgba(226, 182, 80, .5); background: var(--card-2); }
.chips .ico { width: 16px; height: 16px; color: var(--accent); }

.radar { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; border-radius: 50%; }
.radar__ring { position: absolute; inset: calc(var(--k, 0) * 12.5%); border-radius: 50%; border: 1px solid var(--line-2); }
.radar__ring:nth-child(2) { --k: 1; }
.radar__ring:nth-child(3) { --k: 2; border-style: dashed; }
.radar__ring:nth-child(4) { --k: 3; }
.radar__sweep {
	position: absolute; inset: 0; border-radius: 50%;
	background: conic-gradient(from 0deg, rgba(226, 182, 80, .35), rgba(226, 182, 80, 0) 70deg, transparent 360deg);
	animation: spin 6s linear infinite;
	mask-image: radial-gradient(circle, #000 0, #000 70%, transparent 71%);
	-webkit-mask-image: radial-gradient(circle, #000 0, #000 70%, transparent 71%);
}
@keyframes spin { to { transform: rotate(360deg); } }
.radar__ping { position: absolute; left: var(--x); top: var(--y); width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--accent-2); }
.radar__ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent); animation: ping 3.3s var(--ease) infinite; animation-delay: var(--d, 0s); }
@keyframes ping { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(7); opacity: 0; } }
.radar__center {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	display: grid; place-items: center; gap: 2px;
	width: 22%; aspect-ratio: 1; border-radius: 50%;
	background: linear-gradient(135deg, var(--accent-2), var(--accent) 50%, var(--accent-3));
	color: #1a1404; font-weight: 800; text-transform: uppercase; font-stretch: 80%;
	box-shadow: 0 0 0 10px rgba(226, 182, 80, .1), 0 20px 60px -10px rgba(226, 182, 80, .6);
	align-content: center;
}
@media (max-width: 900px) {
	.area__grid { grid-template-columns: 1fr; }
	.radar { max-width: 360px; }
}

/* 13. CTA --------------------------------------------------------------- */
.cta { position: relative; overflow: clip; padding-block: clamp(100px, 14vw, 200px); border-top: 1px solid var(--line); text-align: center; }
.cta__glow { left: 50%; top: 50%; right: auto; transform: translate(-50%, -50%); width: 120vmax; height: 120vmax; }
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta__title { font-size: clamp(44px, 8vw, 140px); line-height: .88; font-weight: 800; font-stretch: 70%; text-transform: uppercase; margin-bottom: clamp(32px, 4vw, 56px); }
.cta__title .line:last-child { color: var(--accent); }
.cta__phone {
	display: inline-flex; align-items: center; gap: clamp(12px, 2vw, 24px);
	font-size: clamp(36px, 7vw, 120px); font-weight: 300; font-stretch: 100%; letter-spacing: -.03em; line-height: 1;
	font-variant-numeric: tabular-nums;
	padding: .18em .4em .18em .2em; border-radius: 999px;
	border: 1px solid var(--line-2); background: rgba(18, 16, 15, .6);
	transition: border-color .4s, background-color .4s;
}
.cta__phone:hover { border-color: var(--accent); background: rgba(226, 182, 80, .08); }
.cta__phone-ico { display: grid; place-items: center; width: 1.1em; aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: #1a1404; }
.cta__phone-ico .ico { width: 45%; height: 45%; }
.cta__hours { margin-top: 18px; color: var(--muted); font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.cta__alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }

/* 14. Footer ------------------------------------------------------------ */
.site-footer { position: relative; background: var(--bg-2); border-top: 1px solid var(--line); padding-top: clamp(64px, 8vw, 120px); overflow: clip; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(40px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 80px); }
.site-footer__big { font-size: clamp(40px, 5vw, 76px); line-height: .9; font-weight: 800; font-stretch: 72%; text-transform: uppercase; margin-bottom: 20px; }
.site-footer__phone { font-size: clamp(28px, 3vw, 44px); font-weight: 300; letter-spacing: -.02em; display: inline-block; border-bottom: 1px solid var(--line-2); transition: border-color .3s, color .3s; }
.site-footer__phone:hover { color: var(--accent-2); border-color: var(--accent); }
.site-footer__hours { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-top: 14px; }
.site-footer__hours .ico { width: 16px; height: 16px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.site-footer .menu { display: grid; gap: 8px; }
.site-footer .menu a { color: var(--muted); transition: color .3s; }
.site-footer .menu a:hover { color: var(--ink); }
.details { display: grid; gap: 10px; font-size: 15px; }
.details dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.details dd { color: var(--muted); }
.details a:hover { color: var(--ink); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.site-footer__bottom { align-items: center; }
.site-footer__bottom a:hover { color: var(--ink); }
.powered { display: block; opacity: .6; transition: opacity .3s; }
.powered:hover { opacity: 1; }
.powered img { width: 170px; height: auto; }
.site-footer__wordmark {
	font-size: 34vw; line-height: .72; font-weight: 900; font-stretch: 62%; text-align: center;
	letter-spacing: -.02em; margin-bottom: -.06em;
	color: rgba(226, 182, 80, .14);
	mask-image: linear-gradient(180deg, #000 20%, transparent 85%);
	-webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 85%);
	user-select: none; pointer-events: none;
}
@media (max-width: 900px) {
	.site-footer__top { grid-template-columns: 1fr; }
	.site-footer__cols { grid-template-columns: 1fr 1fr; }
	.site-footer__cols > :last-child { grid-column: 1 / -1; }
	.site-footer { padding-bottom: 80px; }
}

/* Sticky call bar (mobile) */
.callbar {
	position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 95;
	display: none; align-items: center; justify-content: center; gap: 10px;
	height: 56px; border-radius: 999px;
	background: linear-gradient(180deg, var(--accent-2), var(--accent) 55%, var(--accent-3));
	color: #1a1404; font-weight: 600;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 16px 40px -8px rgba(0, 0, 0, .7);
	transform: translateY(150%);
	transition: transform .5s var(--ease);
}
.callbar strong { font-weight: 800; }
.callbar.is-visible { transform: none; }
@media (max-width: 960px) { .callbar { display: flex; } }

/* 15. Pages ------------------------------------------------------------- */
.page-hero { position: relative; overflow: clip; padding-top: calc(var(--header-h) + clamp(60px, 10vw, 140px)); padding-bottom: clamp(48px, 6vw, 96px); }
.page-hero .hero__glow { top: -50vmax; }
.page-hero__title { position: relative; font-size: clamp(52px, 10vw, 168px); line-height: .86; font-weight: 800; font-stretch: 68%; text-transform: uppercase; letter-spacing: -.012em; }
.page-hero__title--sm { font-size: clamp(40px, 6vw, 96px); line-height: .92; }
.page-hero__lead { position: relative; max-width: 640px; margin-top: clamp(24px, 3vw, 40px); font-size: clamp(17px, 1.4vw, 21px); color: var(--muted); }

.about-visual__frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); aspect-ratio: 16 / 8; display: grid; place-items: center; }
.about-visual__img { width: 100%; height: 120%; object-fit: cover; }
.cycle { position: relative; width: min(70%, 420px); aspect-ratio: 1; display: grid; place-items: center; margin-block: 48px; container-type: inline-size; }
.cycle__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.cycle__ring circle { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 6; }
.cycle__ring .cycle__progress { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 1069; stroke-dashoffset: 1069; }
html:not(.js) .cycle__ring .cycle__progress { stroke-dashoffset: 0; }
.cycle__node { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateY(-42.5cqi); }
.cycle__node > span {
	position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) rotate(calc(-1 * var(--a)));
	white-space: nowrap; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
	padding: 8px 12px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line-2);
}
.cycle__center { width: 42%; }
@media (max-width: 700px) { .about-visual__frame { aspect-ratio: 1; } .cycle__node > span { font-size: 9.5px; padding: 6px 9px; } }

.about-story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.about-story__text { display: grid; gap: 20px; font-size: clamp(17px, 1.35vw, 21px); color: var(--muted); }
.about-story__text p:first-child { color: var(--ink); }
@media (max-width: 900px) { .about-story__grid { grid-template-columns: 1fr; } }

.values { padding-top: 0; }
.values__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.value { padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 28px) clamp(24px, 3vw, 40px) 0; border-right: 1px solid var(--line); }
.value + .value { padding-left: clamp(16px, 2vw, 28px); }
.value:last-child { border-right: 0; }
.value__num { font-family: var(--f-mono); font-size: 12px; color: var(--accent); }
.value__title { font-size: clamp(32px, 3.4vw, 54px); line-height: .95; font-weight: 800; font-stretch: 72%; text-transform: uppercase; margin: 40px 0 14px; }
.value__text { color: var(--muted); }
@media (max-width: 900px) {
	.values__list { grid-template-columns: 1fr 1fr; }
	.value { border-bottom: 1px solid var(--line); }
	.value:nth-child(2n) { border-right: 0; }
	.value:nth-child(2n+1) { padding-left: 0; }
}
@media (max-width: 560px) {
	.values__list { grid-template-columns: 1fr; }
	.value, .value + .value { padding-left: 0; border-right: 0; }
}

.about-mats { padding-top: 0; }
.tiles-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 24px); }
.tiles-row__item { display: block; transition: transform .6s var(--ease); }
.tiles-row__item:hover { transform: translateY(-10px) rotate(-3deg); }
@media (max-width: 700px) { .tiles-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.contact { padding-top: 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__side { display: grid; gap: 12px; }
.contact__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.contact__phone {
	display: grid; gap: 10px; padding: clamp(24px, 3vw, 36px);
	border-radius: var(--radius-lg);
	background: linear-gradient(160deg, rgba(226, 182, 80, .18), rgba(226, 182, 80, .04));
	border: 1px solid rgba(226, 182, 80, .3);
	transition: border-color .3s, transform .5s var(--ease);
}
.contact__phone:hover { border-color: var(--accent); transform: translateY(-3px); }
.contact__big { font-size: clamp(38px, 4.4vw, 68px); font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.contact__hint { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.contact__hint .ico { width: 16px; height: 16px; }
.contact__card {
	display: flex; gap: 16px; align-items: center; padding: 20px 24px;
	border-radius: var(--radius); border: 1px solid var(--line); background: var(--card);
	transition: border-color .3s, background-color .3s;
}
.contact__card:hover { border-color: var(--line-2); background: var(--card-2); }
.contact__card .ico { color: var(--accent); width: 26px; height: 26px; }
.contact__card span { display: grid; color: var(--muted); font-size: 15px; }
.contact__card strong { color: var(--ink); font-size: 17px; }
.contact__company { padding: 24px; border-radius: var(--radius); border: 1px dashed var(--line-2); display: grid; gap: 14px; }
.contact__form-wrap { padding: clamp(24px, 3.4vw, 48px); border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); }
.contact__form-title { font-size: clamp(30px, 3vw, 46px); line-height: .95; font-weight: 800; font-stretch: 72%; text-transform: uppercase; margin-bottom: 10px; }
.contact__form-lead { color: var(--muted); margin-bottom: 28px; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

.nf__code { position: relative; font-size: clamp(120px, 26vw, 400px); line-height: .8; font-weight: 900; font-stretch: 62%; margin-bottom: 24px; }

.prose { font-size: clamp(17px, 1.2vw, 19px); line-height: 1.75; color: #ddd5cb; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); line-height: 1.1; font-weight: 800; font-stretch: 80%; margin-top: 2em; }
.prose h2 { font-size: clamp(30px, 3vw, 44px); }
.prose h3 { font-size: clamp(24px, 2.2vw, 32px); }
.prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(245, 217, 143, .4); }
.prose a:hover { text-decoration-color: var(--accent-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--accent); }
.prose li + li { margin-top: .4em; }
.prose blockquote { position: relative; margin: 1.8em 0; padding: .9em 0 0; font-size: 1.25em; line-height: 1.5; font-weight: 600; font-stretch: 90%; color: var(--ink); }
.prose blockquote::before { content: "„"; position: absolute; left: -.04em; top: -.55em; font-size: 3em; line-height: 1; font-weight: 800; color: var(--accent); }
.prose img, .prose figure { border-radius: var(--radius); }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: 14px; color: var(--dim); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92em; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.prose th { color: var(--ink); font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.prose code { font-family: var(--f-mono); font-size: .88em; background: var(--card-2); padding: .1em .4em; border-radius: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.4em; }
.prose .wp-block-button__link { background: var(--accent); color: #1a1404; border-radius: 999px; text-decoration: none; padding: 14px 24px; font-weight: 600; }
.prose-section { padding-top: 0; }
.alignwide { max-width: 1100px; margin-inline: calc((820px - 1100px) / 2); }
.alignfull { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); }
@media (max-width: 1140px) { .alignwide { margin-inline: 0; max-width: 100%; } }

/* 16. Blog -------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.card__link { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--card); overflow: hidden; transition: border-color .4s, transform .6s var(--ease); }
.card__link:hover { border-color: var(--line-2); transform: translateY(-6px); }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-3); display: grid; place-items: center; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card__link:hover .card__media img { transform: scale(1.05); }
.card__placeholder { font-size: 96px; font-weight: 800; font-stretch: 80%; color: transparent; -webkit-text-stroke: 1px rgba(226, 182, 80, .5); }
.card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__meta { display: flex; gap: 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.card__meta span { color: var(--accent); }
.card__title { font-size: clamp(22px, 1.8vw, 28px); line-height: 1.1; font-weight: 700; font-stretch: 85%; }
.card__excerpt { color: var(--muted); font-size: 15px; flex: 1; }
.card .link-arrow { align-self: flex-start; }

.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 46px; height: 46px; display: grid; place-items: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-family: var(--f-mono); font-size: 13px; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { color: var(--ink); border-color: var(--accent); }

.empty { text-align: center; padding: 64px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius-lg); display: grid; justify-items: center; gap: 16px; color: var(--muted); }
.empty__big { font-size: clamp(28px, 3vw, 44px); font-weight: 800; font-stretch: 75%; color: var(--ink); text-transform: uppercase; }

.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; }
.read-progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.article__meta a { color: var(--accent); }
.article__cover { overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 16 / 8; padding: 0; max-width: calc(var(--maxw) - 2 * var(--gutter)); }
.article__cover img { width: 100%; height: 120%; object-fit: cover; }
.article__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px !important; border-block: 1px solid var(--line); font-size: 20px; font-weight: 700; font-stretch: 85%; }
.article__nav { display: flex; justify-content: space-between; gap: 24px; padding-block: 40px 96px; color: var(--muted); }
.article__nav a:hover { color: var(--ink); }
.article__next { margin-left: auto; text-align: right; }

/* 17. Forms ------------------------------------------------------------- */
.form { display: grid; gap: 20px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field__label em { color: var(--accent); font-style: normal; }
.field input, .field select, .field textarea {
	width: 100%; font: inherit; font-size: 16px; color: var(--ink);
	background: var(--bg); border: 1px solid var(--line-2); border-radius: 14px;
	padding: 14px 16px; min-height: 52px;
	transition: border-color .3s, box-shadow .3s;
	appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a79e94' stroke-width='1.6'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(226, 182, 80, .15); }
.file { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px dashed var(--line-2); border-radius: 14px; background: var(--bg); transition: border-color .3s; }
.file:hover, .file:focus-within { border-color: var(--accent); }
.file .ico { color: var(--accent); width: 28px; height: 28px; }
.file__txt { display: grid; font-weight: 600; }
.file__txt small { font-weight: 400; color: var(--dim); font-size: 13px; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg); margin: 0; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #1a1404; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.form .btn { justify-self: start; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__msg { display: flex; gap: 10px; align-items: center; padding: 16px 18px; border-radius: 14px; font-size: 15px; }
.form__msg--ok { background: rgba(143, 209, 158, .1); border: 1px solid rgba(143, 209, 158, .35); color: var(--ok); }
.form__msg--err { background: rgba(255, 143, 122, .08); border: 1px solid rgba(255, 143, 122, .35); color: var(--err); }
.form__msg a { text-decoration: underline; }
@media (max-width: 640px) { .form__grid { grid-template-columns: 1fr; } .form .btn { width: 100%; } }

.search-form { display: flex; gap: 8px; }
.search-form .search-field { flex: 1; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 999px; padding: 12px 18px; }
.search-form .search-submit { border-radius: 999px; padding: 0 18px; background: var(--accent); color: #1a1404; font-weight: 600; }

/* 18. Motion states (only when JS runs) ------------------------------------ */
html.js [data-reveal], html.js [data-fade] { opacity: 0; transform: translateY(32px); }
html.js [data-lines] .line__in { transform: translateY(105%); }
html.js .hero__card { opacity: 0; }
html.js.no-motion [data-reveal], html.js.no-motion [data-fade], html.js.no-motion .hero__card { opacity: 1; transform: none; }
html.js.no-motion [data-lines] .line__in { transform: none; }
html.js.no-motion .mission__text .w { opacity: 1; }

/* 19. Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.marquee__track { animation: none; }
}
