/* ==========================================================================
   Siska Solutions – main stylesheet
   1. Tokens  2. Base  3. Layout  4. Components  5. Sections  6. Pages  7. Motion  8. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--bg: #07080b;
	--bg-2: #0a0c10;
	--surface: #0e1117;
	--surface-2: #131722;
	--line: rgba(255, 255, 255, .07);
	--line-2: rgba(255, 255, 255, .12);
	--line-3: rgba(255, 255, 255, .22);
	--text: #eceef2;
	--text-2: #a9b0bc;
	--muted: #7a8292;
	--dim: #4c5361;
	--accent: #ffb224;
	--accent-2: #ffd27a;
	--accent-ink: #1b1204;
	--accent-soft: rgba(255, 178, 36, .1);
	--accent-line: rgba(255, 178, 36, .35);
	--ok: #3ddc97;
	--danger: #ff5f5f;

	--font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

	--container: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--radius: 16px;
	--radius-sm: 10px;
	--header-h: 72px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--ease-out: cubic-bezier(.16, 1, .3, 1);

	color-scheme: dark;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	font-feature-settings: 'ss01', 'cv11';
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
figure { margin: 0; }
blockquote { margin: 0; }
button { font: inherit; color: inherit; }

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

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: fixed;
	top: 12px; left: 12px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--accent);
	color: var(--accent-ink);
	border-radius: var(--radius-sm);
	font-weight: 600;
	transform: translateY(-160%);
	transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* Background grid – fixed, faded towards the bottom */
.bg-grid {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		linear-gradient(to right, var(--line) 1px, transparent 1px),
		linear-gradient(to bottom, var(--line) 1px, transparent 1px);
	background-size: 72px 72px;
	background-position: center top;
	mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 100%);
	-webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 100%);
	opacity: .55;
}

/* 3. Layout ---------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(780px + var(--gutter) * 2); }

.section { position: relative; padding-block: clamp(72px, 8.5vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px) clamp(88px, 11vw, 150px); }
.section--alt {
	background: linear-gradient(180deg, transparent, var(--bg-2) 14%, var(--bg-2) 86%, transparent);
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head-row .section-head { margin-bottom: 0; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
}
.eyebrow__index {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--accent);
}
.eyebrow__index::after {
	content: '';
	width: 28px;
	height: 1px;
	background: var(--accent-line);
}

.section-title {
	font-size: clamp(2rem, 4.2vw, 3.3rem);
	line-height: 1.06;
	letter-spacing: -.035em;
	text-wrap: balance;
}
.section-lead {
	margin-top: 20px;
	max-width: 62ch;
	font-size: clamp(1.02rem, 1.3vw, 1.15rem);
	color: var(--text-2);
	text-wrap: pretty;
}

/* 4. Components ------------------------------------------------------------ */

/* Logo – pine cone of chevron scales + SISKA / SOLUTIONS */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.logo__mark { width: 30px; height: 30px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.logo__mark path { transition: transform .4s var(--ease-out); }
.logo__mark .logo__scale--accent { stroke: var(--accent); }
a:hover .logo__mark path:nth-child(1) { transform: translateY(-2px); }
a:hover .logo__mark path:nth-child(4) { transform: translateY(2px); }
.logo__word { display: flex; flex-direction: column; gap: 3px; padding-left: 12px; border-left: 1px solid var(--line-3); line-height: 1; }
.logo__name { font-size: 17px; font-weight: 700; letter-spacing: .04em; }
.logo__sub { font-size: 8.5px; font-weight: 500; letter-spacing: .42em; color: var(--muted); }

/* Buttons */
.btn {
	--btn-pad: 12px 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: var(--btn-pad);
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: transform .25s var(--ease), background-color .25s, border-color .25s, color .25s, box-shadow .25s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--sm { --btn-pad: 9px 16px; font-size: 14px; }
.btn--lg { --btn-pad: 15px 26px; font-size: 16px; }

.btn--primary {
	background: var(--accent);
	color: var(--accent-ink);
	box-shadow: 0 0 0 0 rgba(255, 178, 36, 0), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--primary:hover {
	color: var(--accent-ink);
	background: var(--accent-2);
	transform: translateY(-1px);
	box-shadow: 0 10px 30px -10px rgba(255, 178, 36, .55), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.btn--ghost {
	border-color: var(--line-2);
	color: var(--text);
	background: rgba(255, 255, 255, .02);
}
.btn--ghost:hover { border-color: var(--line-3); background: rgba(255, 255, 255, .05); }

.btn__count {
	font-family: var(--mono);
	font-size: 12px;
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
}

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.link-arrow .icon { width: 16px; height: 16px; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
	display: inline-flex;
	align-items: center;
	padding: 4px 9px;
	border: 1px solid var(--line-2);
	border-radius: 6px;
	font-family: var(--mono);
	font-size: 11.5px;
	line-height: 1.3;
	color: var(--text-2);
	background: rgba(255, 255, 255, .015);
}
.tag--accent { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

.status-dot {
	position: relative;
	width: 8px; height: 8px;
	flex: none;
	border-radius: 50%;
	background: var(--ok);
	box-shadow: 0 0 0 0 rgba(61, 220, 151, .6);
	animation: status-ping 2.4s ease-out infinite;
}

/* Cards with cursor spotlight */
.card {
	position: relative;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background:
		radial-gradient(520px circle at var(--mx, 50%) var(--my, -20%), rgba(255, 178, 36, .07), transparent 42%),
		linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0) 60%),
		var(--surface);
	transition: border-color .35s var(--ease), transform .35s var(--ease), background-color .35s;
	isolation: isolate;
}
.card::after {
	content: '';
	position: absolute;
	inset: -1px;
	z-index: -1;
	border-radius: inherit;
	padding: 1px;
	background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -20%), var(--accent-line), transparent 60%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	opacity: 0;
	transition: opacity .35s var(--ease);
	pointer-events: none;
}
.card:hover { border-color: var(--line-2); }
.card:hover::after { opacity: 1; }

/* Header */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	height: var(--header-h);
	border-bottom: 1px solid transparent;
	transition: background-color .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
}
.site-header.is-scrolled,
.nav-open .site-header {
	background: rgba(7, 8, 11, .72);
	border-bottom-color: var(--line);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 100%;
}
.site-header__brand { flex: none; }
.site-header__actions { display: flex; align-items: center; gap: 14px; }

.site-nav__list { display: flex; gap: 4px; }
.site-nav__link {
	position: relative;
	display: block;
	padding: 8px 14px;
	font-size: 14.5px;
	color: var(--text-2);
	border-radius: 999px;
	transition: color .2s, background-color .2s;
}
.site-nav__link:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.site-nav__mobile-extra { display: none; }

.lang {
	display: inline-flex;
	padding: 3px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	font-family: var(--mono);
	font-size: 12px;
}
.lang a {
	padding: 4px 9px;
	border-radius: 999px;
	color: var(--muted);
	transition: color .2s, background-color .2s;
}
.lang a:hover { color: var(--text); }
.lang a.is-active { background: rgba(255, 255, 255, .08); color: var(--text); }

.nav-toggle {
	display: none;
	position: relative;
	width: 42px; height: 42px;
	border: 1px solid var(--line-2);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	position: absolute;
	left: 50%;
	width: 16px; height: 1.5px;
	margin-left: -8px;
	background: var(--text);
	transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle__bars { top: 50%; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; left: 0; margin: 0; }
.nav-toggle__bars::before { transform: translateY(-5px); }
.nav-toggle__bars::after { transform: translateY(5px); }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: rotate(-45deg); }

/* Marquee */
.marquee {
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; align-items: center; }
.client-mark {
	display: flex;
	align-items: center;
	gap: clamp(40px, 6vw, 80px);
	padding-right: clamp(40px, 6vw, 80px);
}
.client-mark::after {
	content: '';
	width: 7px; height: 7px;
	border: 1.5px solid var(--dim);
	border-radius: 50%;
}

/* Client logos – rendered as monochrome white on the dark theme */
.client-logo {
	width: auto;
	max-width: none;
	filter: brightness(0) invert(1);
	opacity: .5;
	transition: opacity .3s var(--ease);
}
.client-mark .client-logo { height: clamp(30px, 3.4vw, 42px); }
.client-mark:hover .client-logo { opacity: .95; }

/* Forms */
.form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 36px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend {
	padding: 0;
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: .04em;
	color: var(--muted);
}
.field legend { margin-bottom: 8px; }
.field input, .field textarea {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid var(--line-2);
	border-radius: var(--radius-sm);
	background: var(--bg-2);
	color: var(--text);
	font: inherit;
	font-size: 15px;
	transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus {
	outline: none;
	border-color: var(--accent-line);
	box-shadow: 0 0 0 4px var(--accent-soft);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: rgba(255, 95, 95, .6); }
.field--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.field--chips legend { width: 100%; }

.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	font-size: 14px;
	color: var(--text-2);
	transition: all .2s;
}
.chip:hover span { border-color: var(--line-3); color: var(--text); }
.chip input:checked + span { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.checkbox input {
	appearance: none;
	flex: none;
	width: 18px; height: 18px;
	margin: 2px 0 0;
	border: 1px solid var(--line-3);
	border-radius: 5px;
	background: var(--bg-2);
	display: grid;
	place-content: center;
	cursor: pointer;
}
.checkbox input::after {
	content: '';
	width: 9px; height: 5px;
	border: 2px solid var(--accent-ink);
	border-top: 0; border-right: 0;
	transform: rotate(-45deg) scale(0);
	margin-top: -2px;
	transition: transform .15s var(--ease);
}
.checkbox input:checked { background: var(--accent); border-color: var(--accent); }
.checkbox input:checked::after { transform: rotate(-45deg) scale(1); }
.checkbox.is-invalid input { border-color: var(--danger); }

.form__submit { justify-self: start; }
.form__status {
	padding: 14px 16px;
	border: 1px solid rgba(61, 220, 151, .3);
	border-radius: var(--radius-sm);
	background: rgba(61, 220, 151, .07);
	color: var(--ok);
	font-size: 14px;
}

/* Filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.chip-btn {
	padding: 8px 16px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: transparent;
	font-size: 14px;
	color: var(--text-2);
	cursor: pointer;
	transition: all .2s;
}
.chip-btn:hover { color: var(--text); border-color: var(--line-3); }
.chip-btn.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }

/* Cookie consent – banner, settings dialog, switch (inc/consent.php) */
.cookie-banner {
	position: fixed;
	z-index: 90;
	left: var(--gutter);
	bottom: var(--gutter);
	display: grid;
	gap: 16px;
	width: min(440px, calc(100vw - 2 * var(--gutter)));
	padding: 20px;
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	background: rgba(14, 17, 23, .94);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
	font-size: 14px;
	color: var(--text-2);
	animation: cookie-in .5s var(--ease-out) both;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__title { margin-bottom: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } }

.cookie-dialog {
	width: min(640px, calc(100vw - 2 * var(--gutter)));
	max-height: calc(100vh - 2 * var(--gutter));
	padding: 0;
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--text);
	box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9);
}
.cookie-dialog::backdrop { background: rgba(4, 5, 8, .7); backdrop-filter: blur(4px); }
.cookie-dialog__inner { display: grid; gap: 18px; padding: 28px; }
.cookie-dialog__title { font-size: 22px; letter-spacing: -.02em; }
.cookie-dialog__lead { font-size: 14.5px; color: var(--text-2); }
.cookie-dialog__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding-top: 4px; }
.cookie-cat { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); }
.cookie-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; cursor: pointer; }
.cookie-cat__head strong { display: block; font-size: 15px; }
.cookie-cat__desc { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.cookie-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.cookie-table th { padding: 8px 16px 4px; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); text-align: left; }
.cookie-table td { padding: 6px 16px 10px; vertical-align: top; }
.cookie-table code { font-family: var(--mono); color: var(--text); }
.cookie-table small { display: block; font-size: 11.5px; color: var(--muted); }

.switch { position: relative; flex: none; width: 40px; height: 22px; }
.switch input { position: absolute; inset: 0; z-index: 1; margin: 0; opacity: 0; cursor: pointer; }
.switch input:disabled { cursor: not-allowed; }
.switch__track { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background .2s; }
.switch__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text); transition: transform .25s var(--ease); }
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track::after { transform: translateX(18px); background: var(--accent-ink); }
.switch input:disabled + .switch__track { opacity: .55; }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 5. Sections -------------------------------------------------------------- */

/* Hero */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: min(100svh, 980px);
	padding: calc(var(--header-h) + 56px) 0 96px;
	overflow: hidden;
}
.hero__glow {
	position: absolute;
	inset: -20% -10% auto auto;
	width: 70vw; height: 70vw;
	max-width: 980px; max-height: 980px;
	background:
		radial-gradient(closest-side, rgba(255, 178, 36, .13), transparent 70%);
	filter: blur(20px);
	pointer-events: none;
	animation: glow-drift 18s ease-in-out infinite alternate;
}
.hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
}
.hero__eyebrow { gap: 10px; color: var(--text-2); }
.hero__title {
	font-size: clamp(2.6rem, 6vw, 5.1rem);
	line-height: 1.0;
	letter-spacing: -.045em;
	font-weight: 600;
	text-wrap: balance;
}
.hero__title em {
	font-style: normal;
	background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 60%, var(--accent) 100%);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: shimmer 8s ease-in-out infinite;
}
.hero__lead {
	margin-top: 28px;
	max-width: 58ch;
	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
	color: var(--text-2);
	text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero__facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	max-width: 620px;
	margin-top: 56px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}
.hero__facts dt {
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	font-weight: 600;
	letter-spacing: -.04em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.hero__facts dd { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

.hero__visual { position: relative; min-height: 640px; }

/* Hero animation: the old pine cone turns into the logo (assets/js/cone-anim.js). Centred over the terminal;
   the final lockup keeps the header logo proportions (mark 30 : SISKA 17 : SOLUTIONS 8.5, gaps 12). */
.hero-cone {
	--n: 40px;
	position: absolute;
	top: 20px;
	left: 0;
	width: min(410px, 100%);
	height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.hero-cone__lockup { display: flex; align-items: center; transition: transform 1.1s var(--ease-out); }
.hero-cone__stage { position: relative; width: 280px; aspect-ratio: 1; transition: width 1.1s var(--ease-out); }
.hero-cone__stage::before {
	content: '';
	position: absolute;
	inset: 15% 0 10%;
	z-index: -1;
	background: radial-gradient(closest-side, rgba(255, 178, 36, .14), transparent 75%);
	filter: blur(10px);
}
.hero-cone__stage canvas { display: block; width: 100%; height: 100%; }
.hero-cone__word {
	display: flex;
	flex-direction: column;
	gap: calc(var(--n) * .18);
	max-width: 0;
	overflow: hidden;
	opacity: 0;
	white-space: nowrap;
	border-left: 1px solid var(--line-3);
	transition: max-width 1.1s var(--ease-out), opacity .4s, padding .9s var(--ease-out);
}
.hero-cone__name { font-size: var(--n); font-weight: 700; letter-spacing: .04em; line-height: 1; color: var(--text); }
.hero-cone__sub { font-size: calc(var(--n) * .5); font-weight: 500; letter-spacing: .42em; line-height: 1; color: var(--muted); }
.hero-cone__name span, .hero-cone__sub span {
	display: inline-block;
	opacity: 0;
	transform: translateY(6px);
	filter: blur(4px);
	transition: opacity .35s, transform .45s var(--ease-out), filter .35s, color .6s;
}
.hero-cone__name span.is-on, .hero-cone__sub span.is-on { opacity: 1; transform: none; filter: none; }
.hero-cone__name span.is-hot { color: var(--accent); }
/* the mark fills 54 % of the canvas: 0.54 × 3.26 ≈ 30 / 17; the shift compensates the canvas' empty left margin */
.hero-cone.is-final .hero-cone__stage { width: calc(var(--n) * 3.26); }
.hero-cone.is-final .hero-cone__word { max-width: 320px; opacity: 1; padding-left: calc(var(--n) * .7); }
.hero-cone.is-final .hero-cone__lockup { transform: translateX(calc(var(--n) * -.37)); }

.terminal {
	position: absolute;
	left: 0;
	bottom: -24px;
	width: min(410px, 100%);
	border: 1px solid var(--line-2);
	border-radius: 12px;
	background: rgba(12, 14, 19, .82);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .4);
	font-family: var(--mono);
	font-size: 12.5px;
	overflow: hidden;
}
.terminal__bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--line);
	color: var(--dim);
	font-size: 11.5px;
}
.terminal__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.terminal__bar span { margin-left: 10px; }
.terminal__body { padding: 14px 16px 16px; display: grid; gap: 5px; }
.terminal__line {
	display: grid;
	grid-template-columns: auto 84px minmax(0, 1fr) auto;
	gap: 8px;
	align-items: baseline;
	color: var(--text-2);
	white-space: nowrap;
}
.terminal__line:first-child, .terminal__line:last-child, .terminal__line.t-comment { display: block; overflow: hidden; text-overflow: ellipsis; }
.t-prompt { color: var(--accent); }
.t-comment { color: var(--dim); }
.t-ok { color: var(--ok); font-size: 10px; }
.t-name { color: var(--text); }
.t-desc { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.t-state { color: var(--ok); opacity: .85; }
.t-cursor { display: inline-block; width: 8px; height: 15px; vertical-align: -3px; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
.js .terminal[data-terminal] .terminal__line { opacity: 0; transform: translateY(4px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.js .terminal[data-terminal] .terminal__line.is-on { opacity: 1; transform: none; }

.hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 28px;
	width: 22px; height: 36px;
	margin-left: -11px;
	border: 1px solid var(--line-3);
	border-radius: 12px;
}
.hero__scroll span {
	position: absolute;
	top: 7px; left: 50%;
	width: 2px; height: 7px;
	margin-left: -1px;
	border-radius: 2px;
	background: var(--accent);
	animation: scroll-hint 2s var(--ease) infinite;
}

/* Clients */
.clients { padding-block: 40px 56px; border-block: 1px solid var(--line); background: rgba(10, 12, 16, .6); }
.clients__label {
	margin-bottom: 28px;
	text-align: center;
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service { display: flex; flex-direction: column; gap: 14px; padding: 28px; min-height: 300px; }
.service__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.service__icon {
	display: grid;
	place-items: center;
	width: 48px; height: 48px;
	border: 1px solid var(--line-2);
	border-radius: 12px;
	background: linear-gradient(180deg, rgba(255, 255, 255, .04), transparent);
	color: var(--accent);
	transition: border-color .3s, transform .4s var(--ease);
}
.service:hover .service__icon { border-color: var(--accent-line); transform: translateY(-2px); }
.service__num { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.service__title { font-size: 1.28rem; letter-spacing: -.025em; }
.service__text { color: var(--text-2); font-size: 15px; flex: 1; }
.service .tags { margin-top: 6px; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project-card { display: flex; }
.project-card[hidden] { display: none; }
.project-card__link { display: flex; flex-direction: column; width: 100%; color: inherit; }
.project-card__link:hover { color: inherit; }
.project-card__visual {
	position: relative;
	aspect-ratio: 16 / 10;
	margin: 8px 8px 0;
	border: 1px solid var(--line);
	border-radius: calc(var(--radius) - 6px);
	background:
		radial-gradient(ellipse at 50% 120%, rgba(255, 178, 36, .08), transparent 60%),
		linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 24px 24px,
		linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 24px 24px,
		var(--bg-2);
	overflow: hidden;
}
.project-card__visual .visual {
	position: absolute;
	inset: 6% 8%;
	width: 84%; height: 88%;
	transition: transform .7s var(--ease-out);
}
.project-card:hover .project-card__visual .visual { transform: scale(1.035); }
.project-card__metric {
	position: absolute;
	top: 12px; left: 12px;
	padding: 4px 9px;
	border: 1px solid var(--line-2);
	border-radius: 6px;
	background: rgba(7, 8, 11, .75);
	backdrop-filter: blur(6px);
	font-family: var(--mono);
	font-size: 11px;
	color: var(--text-2);
}
.project-card__logos {
	position: absolute;
	left: 12px; bottom: 12px;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 8px 12px;
	border: 1px solid var(--line-2);
	border-radius: 8px;
	background: rgba(7, 8, 11, .78);
	backdrop-filter: blur(6px);
}
.project-card__logos .client-logo { height: 18px; opacity: .8; }
.project-card:hover .project-card__logos .client-logo { opacity: 1; }
.case__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 10px; }
.case__logos .client-logo { height: 26px; opacity: .85; }
.project-card__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 22px 22px 24px; }
.project-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.project-card__title { font-size: 1.3rem; letter-spacing: -.025em; }
.project-card__excerpt { color: var(--text-2); font-size: 15px; flex: 1; }
.project-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--text);
}
.project-card__cta .icon { width: 16px; height: 16px; color: var(--accent); transition: transform .3s var(--ease); }
.project-card:hover .project-card__cta .icon { transform: translate(2px, -2px); }

.project-card--wide { grid-column: span 2; }
.project-card--wide .project-card__link { display: grid; grid-template-columns: 1.15fr 1fr; }
.project-card--wide .project-card__visual { aspect-ratio: auto; min-height: 340px; margin: 8px 0 8px 8px; }
.project-card--wide .project-card__body { padding: 32px; justify-content: center; }
.project-card--wide .project-card__title { font-size: 1.75rem; }

/* Project visuals (line-art SVGs) */
.visual { overflow: visible; }
.visual .v-line { fill: none; stroke: var(--text-2); stroke-width: 1.3; opacity: .55; }
.visual .v-soft { fill: none; stroke: var(--text-2); stroke-width: 1.1; opacity: .18; }
.visual .v-dot { fill: var(--text-2); opacity: .55; }
.visual .v-accent { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.visual .v-accent-fill { fill: var(--accent); }
.visual .v-accent-soft { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.2; }
.visual .v-danger { fill: none; stroke: var(--danger); stroke-width: 1.6; stroke-linecap: round; }
.visual .v-danger-fill { fill: var(--danger); }
.visual .v-text { font-family: var(--mono); font-size: 11px; fill: var(--accent); letter-spacing: .04em; }
.visual .v-text.v-muted { fill: var(--muted); }
.visual .v-center { text-anchor: middle; }
.visual .v-dash { stroke-dasharray: 6 8; }
.visual .v-flow { stroke-dasharray: 5 7; }
.visual .v-pulse, .visual .v-track { transform-box: fill-box; transform-origin: center; }
.is-visible .visual .v-flow, .case__visual .visual .v-flow { animation: dash 2.8s linear infinite; }
.is-visible .visual .v-pulse, .case__visual .visual .v-pulse { animation: pulse 2.4s ease-in-out infinite; }
.is-visible .visual .v-blink, .case__visual .visual .v-blink { animation: soft-blink 2.4s ease-in-out infinite; }
.is-visible .visual .v-track, .case__visual .visual .v-track { animation: track 3.2s ease-in-out infinite; }
.is-visible .visual .v-wave, .case__visual .visual .v-wave { animation: soft-blink 1.6s ease-in-out infinite; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.about .section-head { margin-bottom: 48px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat { padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat dt {
	font-size: clamp(2.4rem, 4.4vw, 3.6rem);
	font-weight: 600;
	letter-spacing: -.05em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.stat dt::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--accent); vertical-align: top; }
.stat dd { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.45; }

.pillars { display: grid; border-top: 1px solid var(--line); margin-top: 8px; }
.pillar {
	position: relative;
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 16px;
	padding: 30px 0;
	border-bottom: 1px solid var(--line);
}
.pillar::before {
	content: '';
	position: absolute;
	left: 0; bottom: -1px;
	width: 0; height: 1px;
	background: var(--accent);
	transition: width .6s var(--ease-out);
}
.pillar:hover::before { width: 100%; }
.pillar__index { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 4px; }
.pillar__title { font-size: 1.35rem; letter-spacing: -.025em; margin-bottom: 8px; }
.pillar__text { color: var(--text-2); }

/* Stack */
.stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.stack__group { padding-top: 22px; border-top: 1px solid var(--line-2); }
.stack__title { margin-bottom: 18px; font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--text); }
.stack__title span { color: var(--accent); }
.stack__list { display: flex; flex-wrap: wrap; gap: 8px; }
.stack__list li {
	padding: 7px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface);
	font-size: 14px;
	color: var(--text-2);
	transition: color .2s, border-color .2s, transform .25s var(--ease);
}
.stack__list li:hover { color: var(--text); border-color: var(--accent-line); transform: translateY(-2px); }

/* Process – a git-like timeline */
.process { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.process::before, .process::after {
	content: '';
	position: absolute;
	top: 9px; left: 0;
	height: 1px;
	background: var(--line-2);
	width: 100%;
}
.process::after { background: linear-gradient(90deg, var(--accent), var(--accent-2)); width: 0; transition: width 2.2s var(--ease-out) .2s; }
.process.is-visible::after { width: 100%; }
.process__step { position: relative; padding-top: 40px; }
.process__node {
	position: absolute;
	top: 0; left: 0;
	z-index: 1;
	width: 19px; height: 19px;
	border: 1.5px solid var(--text-2);
	border-radius: 50%;
	background: var(--bg);
	transition: border-color .4s, background-color .4s, box-shadow .4s;
}
.process.is-visible .process__node { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.process.is-visible .process__step:nth-child(1) .process__node { transition-delay: .2s; }
.process.is-visible .process__step:nth-child(2) .process__node { transition-delay: .6s; }
.process.is-visible .process__step:nth-child(3) .process__node { transition-delay: 1s; }
.process.is-visible .process__step:nth-child(4) .process__node { transition-delay: 1.4s; }
.process.is-visible .process__step:nth-child(5) .process__node { transition-delay: 1.8s; background: var(--accent); }
.process__index { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.process__title { font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: 10px; }
.process__text { font-size: 15px; color: var(--text-2); }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.testimonial { display: flex; flex-direction: column; gap: 24px; padding: clamp(24px, 3vw, 36px); }
.testimonial__mark { width: 32px; height: 32px; color: var(--accent); }
.testimonial__quote { flex: 1; font-size: 1.04rem; line-height: 1.7; color: var(--text); }
.testimonial__quote p + p { margin-top: 1em; }
.testimonial__author { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.testimonial__author > span:last-child { display: grid; font-size: 14px; color: var(--muted); }
.testimonial__author strong { color: var(--text); font-weight: 600; font-size: 15px; }
.testimonial__avatar {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px; height: 44px;
	border: 1px solid var(--accent-line);
	border-radius: 50%;
	background: var(--accent-soft);
	font-family: var(--mono);
	font-size: 13px;
	color: var(--accent);
}
.testimonials__note { margin-top: 20px; font-size: 13px; color: var(--dim); }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__list { display: grid; gap: 16px; margin-bottom: 40px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-size: 1.05rem; }
.contact__list .icon { width: 20px; height: 20px; color: var(--accent); flex: none; }
.contact__list a { border-bottom: 1px solid var(--line-2); transition: border-color .2s; }
.contact__list a:hover { border-color: var(--accent); }
.contact__person { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-width: 420px; }
.contact__person > span:last-child { display: grid; gap: 2px; }
.contact__person small { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact__person strong { font-size: 1.05rem; }
.contact__response { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }

/* Footer */
.site-footer { position: relative; padding-top: 80px; border-top: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.site-footer__brand p { margin-top: 18px; max-width: 34ch; color: var(--muted); font-size: 14.5px; }
.site-footer__title { margin-bottom: 16px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.site-footer__col ul { display: grid; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.site-footer__col a { transition: color .2s; }
.site-footer__col a:hover { color: var(--accent); }
.mono-list { font-family: var(--mono); font-size: 13px !important; }
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	padding-block: 24px;
	border-top: 1px solid var(--line);
	font-size: 13px;
	color: var(--dim);
}
.site-footer__registry { flex: 1; }
.site-footer__cookies { padding: 0; border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; transition: color .2s; }
.site-footer__cookies:hover { color: var(--accent); }
.site-footer__top { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.site-footer__top .icon { width: 16px; height: 16px; }
.site-footer__top:hover { color: var(--accent); }
.site-footer__wordmark {
	margin-top: 8px;
	margin-bottom: -0.22em;
	font-size: clamp(3rem, 13.2vw, 13rem);
	font-weight: 700;
	letter-spacing: -.06em;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	color: transparent;
	user-select: none;
	background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 178, 36, .05) 45%, transparent 80%);
	-webkit-background-clip: text;
	background-clip: text;
}

/* 6. Pages ----------------------------------------------------------------- */
.page-hero { padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(32px, 5vw, 56px); }
.page-title {
	max-width: 18ch;
	font-size: clamp(2.4rem, 5.4vw, 4.4rem);
	line-height: 1.02;
	letter-spacing: -.045em;
	text-wrap: balance;
}
.page-lead { margin-top: 24px; max-width: 64ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text-2); }

.back-link {
	display: flex;
	width: max-content;
	align-items: center;
	gap: 8px;
	margin-bottom: 36px;
	font-family: var(--mono);
	font-size: 13px;
	color: var(--muted);
	transition: color .2s;
}
.back-link .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.back-link:hover { color: var(--text); }
.back-link:hover .icon { transform: translateX(-3px); }

.case__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; padding-bottom: 80px; }
.case__visual {
	position: relative;
	aspect-ratio: 16 / 9;
	margin-bottom: 48px;
	overflow: hidden;
	background:
		radial-gradient(ellipse at 50% 120%, rgba(255, 178, 36, .1), transparent 60%),
		linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 28px 28px,
		linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 28px 28px,
		var(--bg-2);
}
.case__visual .visual { position: absolute; inset: 8% 10%; width: 80%; height: 84%; }
.case__visual img { width: 100%; height: 100%; object-fit: cover; }
.case__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.case__facts { display: grid; padding: 8px 24px; }
.case__facts > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.case__facts > div:last-child { border-bottom: 0; }
.case__facts dt { margin-bottom: 6px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.case__facts dd { font-size: 15px; }
.case__cta { padding: 24px; }
.case__cta h2 { font-size: 1.2rem; margin-bottom: 8px; }
.case__cta p { color: var(--text-2); font-size: 14.5px; margin-bottom: 18px; }

.case__next a {
	display: grid;
	gap: 4px;
	padding: 48px 0 96px;
	border-top: 1px solid var(--line);
}
.case__next .eyebrow { margin: 0; }
.case__next-title {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	font-size: clamp(1.8rem, 4vw, 3rem);
	font-weight: 600;
	letter-spacing: -.04em;
	transition: color .25s;
}
.case__next-title .icon { width: 36px; height: 36px; color: var(--accent); transition: transform .3s var(--ease); }
.case__next a:hover .case__next-title { color: var(--accent); }
.case__next a:hover .icon { transform: translateX(6px); }

/* Long-form content */
.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--text-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: 1.6rem; color: var(--text); letter-spacing: -.03em; }
.prose h3 { margin-top: 1.8em; font-size: 1.25rem; color: var(--text); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); border-bottom: 1px solid var(--accent-line); }
.prose ul { display: grid; gap: .55em; }
.prose ul li { position: relative; padding-left: 28px; }
.prose ul li::before {
	content: '';
	position: absolute;
	left: 4px; top: .62em;
	width: 9px; height: 9px;
	border: 1.5px solid var(--accent);
	border-radius: 50%;
}
.prose ul li::after {
	content: '';
	position: absolute;
	left: 8px; top: calc(.62em + 11px);
	width: 1px; height: calc(100% - 4px);
	background: var(--line-2);
}
.prose ul li:last-child::after { display: none; }

.not-found { min-height: 70vh; display: flex; align-items: center; }
.not-found .btn { margin-top: 36px; font-family: var(--mono); font-size: 14px; }

/* 7. Motion ---------------------------------------------------------------- */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
	transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .card[data-reveal].is-visible { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), border-color .35s; transition-delay: calc(var(--d, 0) * 90ms), calc(var(--d, 0) * 90ms), 0s; }

@keyframes head-glow { 0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 178, 36, .7)); } 50% { filter: drop-shadow(0 0 12px rgba(255, 178, 36, 1)); } }
@keyframes status-ping { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes glow-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-6%, 8%, 0) scale(1.08); } }
@keyframes scroll-hint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes dash { to { stroke-dashoffset: -48; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .55; } }
@keyframes soft-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes track { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-3px, 2px) scale(1.04); } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
	.marquee__track { animation: none; }
	.js [data-reveal] { opacity: 1; transform: none; }
}

/* 8. Responsive ------------------------------------------------------------ */
@media (max-width: 1120px) {
	.site-nav__link { padding-inline: 10px; }
	.hero__grid { grid-template-columns: 1fr; }
	.hero__visual { display: grid; min-height: 0; margin-top: 24px; padding-bottom: 40px; grid-template-columns: auto auto; align-items: center; justify-content: center; gap: 48px; }
	.hero-cone { position: relative; top: auto; left: auto; width: 380px; height: 260px; }
	.hero-cone__stage { width: 240px; }
	.terminal { position: relative; left: auto; bottom: auto; }
	.services, .projects-grid, .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.projects-grid--home .project-card:nth-child(n+6) { display: none; }
	.process { grid-template-columns: 1fr; gap: 0; padding-left: 4px; }
	.process::before, .process::after { top: 0; left: 13px; width: 1px; height: 100%; }
	.process::after { height: 0; width: 1px; transition: height 2.2s var(--ease-out) .2s; background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
	.process.is-visible::after { width: 1px; height: 100%; }
	.process__step { padding: 0 0 36px 52px; }
	.process__node { top: 2px; left: 0; }
	.case__layout { grid-template-columns: 1fr; }
	.case__aside { position: static; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.site-header__cta, .site-header__actions > .lang { display: none; }
	.site-nav {
		position: fixed;
		inset: var(--header-h) 0 0;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		gap: 32px;
		padding: 32px var(--gutter) 40px;
		background: rgba(7, 8, 11, .97);
		backdrop-filter: blur(16px);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
	}
	.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open { overflow: hidden; }
	.site-nav__list { flex-direction: column; gap: 0; }
	.site-nav__link { padding: 16px 0; font-size: 1.75rem; font-weight: 600; letter-spacing: -.03em; color: var(--text); border-bottom: 1px solid var(--line); border-radius: 0; }
	.site-nav__link:hover { background: none; color: var(--accent); }
	.site-nav__mobile-extra { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
	.about, .contact__grid { grid-template-columns: 1fr; }
	.project-card--wide { grid-column: auto; }
	.project-card--wide .project-card__link { display: flex; }
	.project-card--wide .project-card__visual { aspect-ratio: 16 / 10; min-height: 0; margin: 8px 8px 0; }
	.project-card--wide .project-card__body { padding: 22px 22px 24px; }
	.project-card--wide .project-card__title { font-size: 1.3rem; }
	.projects-grid--home .project-card:nth-child(n+5) { display: none; }
	.section-head-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
	:root { --header-h: 64px; }
	.hero { min-height: 0; padding-bottom: 72px; }
	.hero__scroll { display: none; }
	.hero__facts { gap: 16px; }
	.hero__facts dd { font-size: 12.5px; }
	.hero__visual { grid-template-columns: 1fr; justify-items: stretch; gap: 0; }
	.hero-cone { display: none; }
	.terminal { width: 100%; }
	.terminal__line { grid-template-columns: auto 78px 1fr auto; font-size: 11.5px; }
	.services, .projects-grid, .stack, .testimonials { grid-template-columns: 1fr; }
	.projects-grid--home .project-card:nth-child(n+4) { display: none; }
	.service { min-height: 0; }
	.form__row { grid-template-columns: 1fr; }
	.stats .stat { padding: 20px 16px; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}
