/*
Theme Name: PaidMedia 2026
Version: 1.0.0
*/

/* ------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------ */

:root {
	--ink: #10231C;
	--ink-elevated: #16281F;
	--paper: #ECEEEA;
	--ink-soft: #8FA398;
	--signal: #34B37A;
	--line: #223228;

	--font-heading: "Space Grotesk", system-ui, sans-serif;
	--font-body: "IBM Plex Sans", system-ui, sans-serif;

	--max-width: 1200px;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	/* Horizontal padding that keeps content within --max-width, left aligned. */
	--inline-pad: max(var(--gutter), (100% - var(--max-width)) / 2);
	--section-space: clamp(4rem, 9vw, 7.5rem);
}

/* Icon masks (same paths as inc/icons.php) */
:root {
	--icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	--icon-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E");
	--icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
	--icon-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
	--icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------
   Base
   ------------------------------------------------------------------ */

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

p {
	margin: 0;
}

a {
	color: inherit;
	text-underline-offset: 0.2em;
}

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

:focus-visible {
	outline: 2px solid var(--paper);
	outline-offset: 3px;
}

.icon {
	display: block;
	flex-shrink: 0;
	width: 1.5rem;
	height: 1.5rem;
}

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

.skip-link:focus {
	position: fixed !important;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--paper);
	color: var(--ink);
	font-weight: 600;
}

/* ------------------------------------------------------------------
   Buttons — the only place --signal appears outside of result data.
   ------------------------------------------------------------------ */

.button,
.contact-form button {
	display: inline-block;
	padding: 0.9rem 1.5rem;
	border: 0;
	border-radius: 2px;
	background: var(--signal);
	color: var(--ink);
	font-family: var(--font-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.15s ease;
}

.button:hover,
.contact-form button:hover {
	filter: brightness(1.1);
}

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 2rem;
	padding: 1rem var(--inline-pad);
	background: rgb(16 35 28 / 0.92); /* --ink at 92% */
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
	background: rgb(16 35 28 / 0.98); /* --ink at 98% */
	border-bottom-color: var(--line);
}

/* Anchors (#kontaktai, table of contents) land below the sticky header. */
html {
	scroll-padding-top: calc(var(--header-h, 80px) + 1rem);
}

.site-logo {
	font-family: var(--font-heading);
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	text-decoration: none;
}

.site-email {
	color: var(--ink-soft);
	font-size: 0.9375rem;
	text-decoration: none;
}

.site-email:hover {
	color: var(--paper);
}

.site-nav {
	margin-left: auto;
}

.site-header__cta {
	padding: 0.65rem 1.1rem;
}

.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.75rem;
}

.site-nav a:not(.button) {
	font-size: 0.9375rem;
	text-decoration: none;
}

.site-nav a:not(.button):hover {
	text-decoration: underline;
}

/* ------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------ */

.site-main > section {
	padding: var(--section-space) var(--inline-pad);
}

.site-main h2 {
	margin-bottom: clamp(2rem, 4vw, 3rem);
	font-size: clamp(1.875rem, 4vw, 2.75rem);
}

/* Hero */

.hero {
	padding-top: clamp(4rem, 12vw, 9rem);
}

.hero h1 {
	max-width: 20ch;
	font-size: clamp(2.125rem, 6vw, 4.5rem);
	font-weight: 700;
	line-height: 1.02;
}

.hero__subtitle {
	max-width: 40ch;
	margin: 1.5rem 0 2.5rem;
	color: var(--ink-soft);
	font-size: clamp(1.125rem, 2vw, 1.375rem);
}

/* Hero dashboard card (desktop only, decorative) */

.hero-card {
	display: none;
}

@media (min-width: 1100px) {
	.hero.has-card {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
		column-gap: clamp(2.5rem, 5vw, 5rem);
		align-items: start;
	}

	.hero.has-card > :not(.hero-trend):not(.hero-card) {
		grid-column: 1;
	}

	.hero.has-card > .button {
		justify-self: start;
	}

	.hero-card {
		display: block;
		grid-column: 2;
		grid-row: 1 / span 4;
		align-self: center;
		padding: 0.5rem;
		border: 1px solid var(--line);
		border-radius: 4px;
		background: var(--ink-elevated);
	}

	.hero-card svg {
		display: block;
		width: 100%;
		height: auto;
	}
}

.hc-label {
	fill: var(--ink-soft);
	opacity: 0.35;
}

.hc-label--strong {
	opacity: 0.6;
}

.hc-grid {
	fill: none;
	stroke: var(--line);
	stroke-width: 1;
}

.hc-area {
	fill: var(--signal);
	opacity: 0.08;
}

.hc-line {
	fill: none;
	stroke: var(--signal);
	stroke-width: 2.5;
	stroke-linecap: round;
}

.hc-dot {
	fill: var(--signal);
}

.hc-bars rect {
	fill: var(--ink-soft);
	opacity: 0.35;
}

.hc-bars .hc-bar--last {
	fill: var(--signal);
	opacity: 0.8;
}

/* Stats */

.site-main > .stats {
	padding-block: clamp(3rem, 6vw, 4.5rem);
	background: var(--ink-elevated);
	border-block: 1px solid var(--line);
}

.stats__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin: 0;
}

.stats__item {
	padding: 0 2rem;
	border-left: 1px solid var(--line);
}

.stats__item:first-child {
	padding-left: 0;
	border-left: 0;
}

.stats dt {
	color: var(--ink-soft);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.04em;
}

.stats dd {
	margin: 0.5rem 0 0;
}

.stats__value {
	display: block;
	color: var(--signal);
	font-family: var(--font-heading);
	font-size: clamp(2.25rem, 4.6vw, 4rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* Services */

.services__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}

.card {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--ink);
}

.card h3 {
	margin-bottom: 0.875rem;
	font-size: 1.375rem;
}

.card h3 a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.card h3 a:hover {
	color: var(--ink-soft);
}

.card p {
	color: var(--ink-soft);
	font-size: 1rem;
}

/* Why work with me */

.why__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}

.why__grid li {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	background: var(--ink);
}

.why__grid .icon {
	margin-top: 0.1rem;
	color: var(--paper);
}

.why__grid p {
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.35;
}

/* Process */

.site-main > .process {
	background: var(--ink-elevated);
}

.process__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 3rem 2.5rem;
	counter-reset: step;
}

.process__list li {
	position: relative;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
	counter-increment: step;
}

.process__list li::before {
	content: counter(step);
	display: block;
	margin-bottom: 1rem;
	color: var(--ink-soft);
	font-family: var(--font-heading);
	font-size: 2.5rem;
	font-weight: 500;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

/* Arrow towards the next step (not after the last one). */
.process__list li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 1.9rem;
	right: 0;
	width: 1.25rem;
	height: 1.25rem;
	background: var(--ink-soft);
	-webkit-mask: var(--icon-arrow) center / contain no-repeat;
	mask: var(--icon-arrow) center / contain no-repeat;
}

.process__list h3 {
	margin-bottom: 0.625rem;
	font-size: 1.25rem;
}

.process__list p {
	color: var(--ink-soft);
	font-size: 1rem;
}

/* FAQ */

.faq__list {
	max-width: 52rem;
	border-top: 1px solid var(--line);
}

.faq__list details {
	border-bottom: 1px solid var(--line);
}

.faq__list summary {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1.5rem;
	padding: 1.375rem 0;
	font-family: var(--font-heading);
	font-size: clamp(1.0625rem, 2vw, 1.25rem);
	font-weight: 500;
	list-style: none;
	cursor: pointer;
}

.faq__list summary::-webkit-details-marker {
	display: none;
}

.faq__list summary::after {
	content: "";
	flex-shrink: 0;
	align-self: center;
	width: 1.25rem;
	height: 1.25rem;
	background: var(--ink-soft);
	-webkit-mask: var(--icon-plus) center / contain no-repeat;
	mask: var(--icon-plus) center / contain no-repeat;
}

.faq__list details[open] summary::after {
	-webkit-mask-image: var(--icon-minus);
	mask-image: var(--icon-minus);
}

.faq__list summary:hover::after {
	background: var(--paper);
}

.faq__list details p {
	max-width: 44rem;
	padding-bottom: 1.5rem;
	color: var(--ink-soft);
}

/* Contact */

.site-main > .contact {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	grid-template-rows: auto 1fr;
	column-gap: clamp(2rem, 6vw, 5rem);
	background: var(--ink-elevated);
	border-top: 1px solid var(--line);
}

.contact__heading {
	grid-column: 1;
	margin-bottom: clamp(1.5rem, 3vw, 2rem);
	font-size: clamp(1.875rem, 4vw, 2.75rem);
}

.contact__intro {
	grid-column: 1;
	display: grid;
	align-content: start;
	gap: 1rem;
	max-width: 32rem;
	color: var(--ink-soft);
}

.contact__intro strong {
	color: var(--paper);
	font-weight: 600;
}

.contact-form {
	grid-column: 2;
	grid-row: 1 / span 2;
	display: grid;
	gap: 1.25rem;
}

.contact-form label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.9375rem;
	font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
	display: block;
	width: 100%;
	padding: 0.8rem 0.9rem;
	border: 1px solid var(--line);
	border-bottom-color: var(--ink-soft);
	border-radius: 0;
	background: var(--ink);
	color: var(--paper);
	font: inherit;
	font-size: 1rem;
}

.contact-form select {
	appearance: none;
	padding-right: 2.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%278%27 viewBox=%270 0 12 8%27%3E%3Cpath d=%27M1 1l5 5 5-5%27 fill=%27none%27 stroke=%27%238FA398%27 stroke-width=%271.5%27/%3E%3C/svg%3E");
	background-position: right 0.9rem center;
	background-size: 12px 8px;
	background-repeat: no-repeat;
}

.contact-form textarea {
	resize: vertical;
	min-height: 8rem;
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
	outline: 2px solid var(--paper);
	outline-offset: 0;
	border-color: var(--paper);
}

.contact-form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-notice {
	padding: 1rem 1.25rem;
	border: 1px solid var(--line);
	border-left: 3px solid var(--paper);
	background: var(--ink);
}

.form-notice--sent {
	border-left-color: var(--signal);
}

.contact-form p:last-child {
	margin-top: 0.5rem;
}

/* ------------------------------------------------------------------
   Inner pages
   ------------------------------------------------------------------ */

.site-nav a[aria-current="page"] {
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

.page-hero h1 {
	max-width: 22ch;
	font-size: clamp(2rem, 5vw, 3.75rem);
	font-weight: 700;
	line-height: 1.05;
}

.page-hero__lead {
	max-width: 46ch;
	margin: 1.25rem 0 2rem;
	color: var(--ink-soft);
	font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
}

.page-hero .button {
	margin-top: 0.5rem;
}

.site-main > .page-hero {
	padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.tag {
	display: inline-block;
	margin-bottom: 1.25rem;
	padding: 0.3rem 0.65rem;
	border: 1px solid var(--line);
	border-radius: 2px;
	color: var(--ink-soft);
	font-size: 0.875rem;
	font-weight: 500;
}

.text-link {
	color: var(--paper);
	font-weight: 500;
}

.text-link:hover {
	color: var(--ink-soft);
}

.contact-email {
	font-family: var(--font-heading);
	font-size: clamp(1.25rem, 2.4vw, 1.625rem);
	font-weight: 500;
}

.contact-email a {
	text-underline-offset: 0.18em;
}

/* Case study hero meta */

.case__period {
	color: var(--ink-soft);
}

.case__period strong {
	color: var(--paper);
	font-weight: 500;
}

.case-timeline__goal {
	max-width: 46rem;
	margin: -1rem 0 3rem;
	color: var(--ink-soft);
}

.case-timeline__goal strong {
	color: var(--paper);
	font-weight: 600;
}

/* Case study result stats — right under the hero, visible without scrolling */

.site-main > .case-stats {
	padding-block: clamp(2rem, 4vw, 3rem);
	background: var(--ink-elevated);
	border-block: 1px solid var(--line);
}

.case-stats__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.case-stats__item {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	padding: 0 2rem;
	border-left: 1px solid var(--line);
}

.case-stats__item:first-child {
	padding-left: 0;
	border-left: 0;
}

.case-stats__value {
	color: var(--signal);
	font-family: var(--font-heading);
	font-size: clamp(2rem, 4vw, 3.5rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.case-stats__text {
	color: var(--ink-soft);
	font-size: 0.9375rem;
}

.case-stats__item--text .case-stats__text {
	color: var(--paper);
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.35;
}

/* Timeline: Prieš → Auditas → Pakeitimai → Rezultatas */

.timeline {
	position: relative;
	max-width: 60rem;
}

.timeline__step {
	position: relative;
	display: grid;
	grid-template-columns: 11rem minmax(0, 1fr);
	gap: 1rem 2rem;
	padding: 0 0 2.75rem 2.25rem;
}

.timeline__step:last-child {
	padding-bottom: 0;
}

/*
 * One continuous line from the first marker to the last: a --line track (::before)
 * and the drawn part (::after). JS sets --line-top / --line-length from the real
 * marker positions; the fallbacks keep the line sensible without JS.
 */
.timeline::before,
.timeline::after {
	content: "";
	position: absolute;
	top: var(--line-top, 0.75rem);
	left: calc(0.4375rem - 0.5px);
	width: 1px;
	height: var(--line-length, calc(100% - 1.5rem));
	background: var(--line);
}

.timeline::after {
	background: var(--ink-soft);
	transform-origin: top;
}

/* Markers: filled once the line has reached them (the default without JS). */
.timeline__step::after {
	content: "";
	position: absolute;
	z-index: 1;
	top: 0.3rem;
	left: 0;
	width: 0.875rem;
	height: 0.875rem;
	border: 2px solid var(--paper);
	background: var(--paper);
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

.timeline__step--result::after {
	border-color: var(--signal);
	background: var(--signal);
}

/* JS "armed" state: line undrawn, markers hollow and grey until reached. */
.timeline--armed::after {
	transform: scaleY(0);
	transition: transform 1.4s linear;
}

.timeline--armed .timeline__step::after {
	border-color: var(--ink-soft);
	background: var(--ink);
	transition-delay: var(--reach-delay, 0ms);
}

.timeline--armed.is-drawn::after {
	transform: scaleY(1);
}

.timeline--armed.is-drawn .timeline__step::after {
	border-color: var(--paper);
	background: var(--paper);
}

.timeline--armed.is-drawn .timeline__step--result::after {
	border-color: var(--signal);
	background: var(--signal);
}

.timeline__label {
	font-size: 1.25rem;
	line-height: 1.2;
}

.timeline__step--result .timeline__label {
	color: var(--signal);
}

.timeline__body {
	display: grid;
	gap: 0.75rem;
	color: var(--ink-soft);
}

.timeline__body ul {
	display: grid;
	gap: 0.5rem;
}

.timeline__body li {
	position: relative;
	padding-left: 1.25rem;
}

.timeline__body li::before {
	content: "";
	position: absolute;
	top: 0.72em;
	left: 0;
	width: 0.5rem;
	height: 1px;
	background: var(--ink-soft);
}

.timeline__summary {
	color: var(--paper);
	font-weight: 500;
}

.timeline__note {
	padding-top: 0.75rem;
	border-top: 1px solid var(--line);
	font-size: 0.9375rem;
}

/* Closing CTA */

.site-main > .cta-block {
	background: var(--ink-elevated);
	border-top: 1px solid var(--line);
}

.site-main .cta-block h2 {
	margin-bottom: 1rem;
}

.cta-block > p {
	max-width: 40rem;
	color: var(--ink-soft);
}

.cta-block__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 2rem;
	margin-top: 2rem;
}

/* Case study grid */

.site-main > .case-grid-section {
	padding-top: 0;
}

.case-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}

.case-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	background: var(--ink);
	transition: background-color 0.15s ease;
}

.case-card:hover {
	background: var(--ink-elevated);
}

.case-card .tag {
	align-self: flex-start;
}

.site-main .case-card__title {
	margin-bottom: 1rem;
	font-size: clamp(1.5rem, 3vw, 2.125rem);
	line-height: 1.1;
}

.case-card__title a {
	text-decoration: none;
}

/* Whole card is clickable */
.case-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.case-card__title a:focus-visible {
	outline: none;
}

.case-card:focus-within {
	outline: 2px solid var(--paper);
	outline-offset: -2px;
}

.case-card__period {
	color: var(--ink-soft);
	font-size: 0.9375rem;
}

.case-card__more {
	margin-top: auto;
	padding-top: 1.5rem;
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* Case study: before/after comparison bars */

.compare {
	display: grid;
	gap: 1.25rem;
	max-width: 46rem;
	margin: 0 0 clamp(2rem, 4vw, 2.75rem);
	padding-bottom: clamp(2rem, 4vw, 2.75rem);
	border-bottom: 1px solid var(--line);
}

.compare__head {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	margin-bottom: 0.5rem;
}

.compare__label {
	min-width: 3.5rem;
	color: var(--ink-soft);
	font-size: 0.9375rem;
}

.compare__value {
	font-family: var(--font-heading);
	font-size: clamp(1.375rem, 2.6vw, 1.875rem);
	font-weight: 600;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.compare__track {
	height: 0.75rem;
	background: var(--ink);
}

.compare__bar {
	display: block;
	width: var(--w);
	height: 100%;
}

.compare__bar--before {
	background: var(--ink-soft);
}

.compare__bar--after {
	background: var(--signal);
}

.compare__row:last-child .compare__value {
	color: var(--signal);
}

/* Case study: dashboard screenshots in the timeline */

.timeline__shot {
	margin: 0.5rem 0 0;
}

.timeline__shot img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--line);
}

.timeline__shot figcaption {
	margin-top: 0.5rem;
	color: var(--ink-soft);
	font-size: 0.8125rem;
}

/* Service pages */

.service > section + section {
	border-top: 1px solid var(--line);
}

.site-main > .case-proof {
	padding-block: clamp(2.5rem, 5vw, 3.5rem);
	background: var(--ink-elevated);
}

.site-main .case-proof h2 {
	margin-bottom: 1.5rem;
	font-size: 1.25rem;
	color: var(--ink-soft);
	font-weight: 500;
	letter-spacing: 0;
}

.case-proof__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin-bottom: 1.5rem;
}

.case-proof__list li {
	border-left: 1px solid var(--line);
}

.case-proof__list li:first-child {
	border-left: 0;
}

.case-proof__list a {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	height: 100%;
	padding: 0.25rem 1.5rem;
	text-decoration: none;
}

.case-proof__list li:first-child a {
	padding-left: 0;
}

.case-proof__result {
	color: var(--signal);
	font-family: var(--font-heading);
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	font-weight: 600;
	line-height: 1.15;
}

.case-proof__niche {
	color: var(--ink-soft);
	font-size: 0.875rem;
}

.case-proof__list a:hover .case-proof__niche {
	color: var(--paper);
	text-decoration: underline;
}

.fit-columns {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 2.5rem clamp(2rem, 5vw, 4rem);
}

.fit-columns h3 {
	margin-bottom: 1.25rem;
	font-size: 1.25rem;
}

.check-list {
	display: grid;
}

.check-list li {
	position: relative;
	padding: 0.75rem 0.75rem 0.75rem 2.25rem;
	border-bottom: 1px solid var(--line);
	border-left: 2px solid transparent;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.check-list li::before {
	content: "";
	position: absolute;
	left: 0.625rem;
	top: 0.9rem;
	width: 1.125rem;
	height: 1.125rem;
	background: var(--signal);
	-webkit-mask: var(--icon-check) center / contain no-repeat;
	mask: var(--icon-check) center / contain no-repeat;
}

/* Service pages: a thin signal line and lifted background on hover. */
@media (hover: hover) {
	.service-fit .check-list li:hover {
		border-left-color: var(--signal);
		background: var(--ink-elevated);
	}
}

.check-list--muted li {
	color: var(--ink-soft);
}

.check-list--muted li::before {
	background: var(--ink-soft);
	-webkit-mask-image: var(--icon-x);
	mask-image: var(--icon-x);
}

.service-fit__more,
.scope-note {
	margin-top: 2.5rem;
	color: var(--ink-soft);
}

.service-fit__more a {
	color: var(--paper);
}

.scope-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}

.scope-list li {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--ink);
}

.scope-list h3 {
	margin-bottom: 0.75rem;
	font-size: 1.25rem;
}

.scope-list p {
	color: var(--ink-soft);
	font-size: 1rem;
}

.issue-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.5rem;
	counter-reset: issue;
}

.issue-list li {
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
	counter-increment: issue;
}

.issue-list li::before {
	content: counter(issue);
	display: block;
	margin-bottom: 0.75rem;
	color: var(--ink-soft);
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1;
}

.issue-list h3 {
	margin-bottom: 0.5rem;
	font-size: 1.25rem;
}

.issue-list p,
.service-issues__text {
	color: var(--ink-soft);
}

.service-issues__text {
	max-width: 46rem;
	margin-bottom: 1.5rem;
	font-size: 1.125rem;
}

.related-reading ul {
	display: grid;
	max-width: 46rem;
	border-top: 1px solid var(--line);
}

.related-reading li {
	border-bottom: 1px solid var(--line);
}

.related-reading a {
	display: block;
	padding: 1rem 0;
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 500;
	text-decoration: none;
}

.related-reading a:hover {
	text-decoration: underline;
}

/* Articles */

.article {
	padding: clamp(3rem, 7vw, 5rem) var(--inline-pad) var(--section-space);
}

.article__header {
	max-width: 52rem;
	margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.article__header h1 {
	font-size: clamp(2rem, 4.6vw, 3.25rem);
	font-weight: 700;
	line-height: 1.08;
}

.article__byline {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	margin-top: 1.25rem;
	color: var(--ink-soft);
	font-size: 0.9375rem;
}

.article__byline span:first-child {
	color: var(--paper);
	font-weight: 500;
}

.article__layout {
	display: grid;
	grid-template-columns: 15rem minmax(0, 44rem);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
}

.article__aside {
	position: sticky;
	top: calc(var(--header-h, 80px) + 1.5rem);
	display: grid;
	gap: 1.5rem;
}

.toc__title {
	margin-bottom: 0.75rem;
	color: var(--ink-soft);
	font-size: 0.875rem;
	font-weight: 500;
}

.toc ol {
	display: grid;
	gap: 0.125rem;
	border-left: 1px solid var(--line);
}

.toc a {
	display: block;
	padding: 0.3rem 0 0.3rem 0.875rem;
	color: var(--ink-soft);
	font-size: 0.875rem;
	line-height: 1.4;
	text-decoration: none;
}

.toc a:hover {
	color: var(--paper);
}

.aside-cta {
	display: grid;
	gap: 1rem;
	padding: 1.25rem;
	border: 1px solid var(--line);
	background: var(--ink-elevated);
	font-size: 0.9375rem;
}

.aside-cta .button {
	justify-self: start;
}

/* Article body typography */

.article__content > * + * {
	margin-top: 1.25rem;
}

.site-main .article__content h2 {
	margin-bottom: 0;
}

.article__content h2 {
	margin-top: 3.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--line);
	font-size: clamp(1.5rem, 3vw, 2rem);
	scroll-margin-top: 1.5rem;
}

.article__content h3 {
	margin-top: 2.25rem;
	font-size: 1.25rem;
	line-height: 1.25;
}

.article__content h2 + *,
.article__content h3 + * {
	margin-top: 1rem;
}

.article__content p,
.article__content li,
.article__content td {
	color: var(--paper);
}

.article__content a {
	color: var(--paper);
	text-decoration-thickness: 1px;
}

.article__content strong {
	font-weight: 600;
}

.article__content .definition {
	padding-left: 1.25rem;
	border-left: 2px solid var(--paper);
	font-size: 1.125rem;
}

.article__content .h-meta,
.article__content .step-note {
	color: var(--ink-soft);
	font-size: 0.9375rem;
}

.article__content .h-meta {
	margin-top: 0.375rem;
}

.article__content .step-note {
	padding-left: 1rem;
	border-left: 1px solid var(--line);
}

.article__content .syntax {
	color: var(--ink-soft);
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 400;
}

.article-list,
.steps,
.article__content ul:not([class]),
.article__content .formula ul {
	display: grid;
	gap: 0.625rem;
}

.article-list li,
.article__content ul:not([class]) li,
.article__content .formula li {
	position: relative;
	padding-left: 1.25rem;
}

.article-list li::before,
.article__content ul:not([class]) li::before,
.article__content .formula li::before {
	content: "";
	position: absolute;
	top: 0.8em;
	left: 0;
	width: 0.5rem;
	height: 1px;
	background: var(--ink-soft);
}

.steps {
	counter-reset: step;
}

.steps li {
	position: relative;
	padding-left: 2.25rem;
	counter-increment: step;
}

.steps li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: 0;
	color: var(--ink-soft);
	font-family: var(--font-heading);
	font-weight: 600;
}

.article__content .article-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	margin-block: 2rem;
	background: var(--line);
	border: 1px solid var(--line);
}

.article-stats li {
	display: grid;
	gap: 0.375rem;
	padding: 1.25rem;
	background: var(--ink);
}

.article-stats strong {
	font-family: var(--font-heading);
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.1;
}

.article__content .article-stats span {
	color: var(--ink-soft);
	font-size: 0.9375rem;
}

.callout,
.formula {
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--line);
	border-left: 2px solid var(--ink-soft);
	background: var(--ink-elevated);
}

.callout > * + *,
.formula > * + * {
	margin-top: 0.625rem;
}

.callout__title {
	font-family: var(--font-heading);
	font-weight: 600;
}

.article__content .formula h3 {
	margin-top: 0;
	font-size: 1.0625rem;
}

.formula__line {
	font-family: var(--font-heading);
}

.article__content blockquote {
	margin: 2rem 0;
	padding: 0 0 0 1.5rem;
	border-left: 2px solid var(--paper);
}

.article__content blockquote p {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	line-height: 1.4;
}

.article__content cite {
	display: block;
	margin-top: 0.75rem;
	color: var(--ink-soft);
	font-size: 0.875rem;
	font-style: normal;
}

.related-article {
	padding: 1.25rem 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.related-article > * + * {
	margin-top: 0.375rem;
}

.article__content .related-article__label,
.article__content .related-article p:last-child {
	color: var(--ink-soft);
	font-size: 0.875rem;
}

.related-article__title {
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 600;
}

.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--line);
}

.article__content table {
	width: 100%;
	min-width: 32rem;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.article__content caption {
	padding: 0.75rem 1rem;
	color: var(--ink-soft);
	text-align: left;
}

.article__content th,
.article__content td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.article__content thead th {
	background: var(--ink-elevated);
	font-family: var(--font-heading);
	font-weight: 600;
}

.article__content tbody th {
	font-weight: 600;
}

.article__content tr:last-child > * {
	border-bottom: 0;
}

.article__content .fit-columns {
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

.article__content .fit-columns h3 {
	margin-top: 0;
}

.article__content .faq__list {
	max-width: none;
}

.article__content .faq__list details p {
	padding-bottom: 1.25rem;
	color: var(--ink-soft);
}

.article__content .sources {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
	font-size: 0.875rem;
}

.article__content .sources__title {
	margin: 0 0 0.75rem;
	padding: 0;
	border: 0;
	font-size: 1rem;
}

.article__content .sources li {
	color: var(--ink-soft);
}

.article__content .article__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 3rem;
}

.article__tags li {
	padding: 0.25rem 0.625rem;
	border: 1px solid var(--line);
	border-radius: 2px;
	font-size: 0.8125rem;
}

.article__content .article__tags li {
	color: var(--ink-soft);
}

/* Article highlights: existing text, emphasised */

.article__content .pull-quote {
	margin-block: 2rem;
	padding: 0.25rem 0 0.25rem 1.5rem;
	border-left: 3px solid var(--signal);
	font-family: var(--font-heading);
	font-size: clamp(1.1875rem, 2.2vw, 1.4375rem);
	font-weight: 500;
	line-height: 1.45;
}

.article__content .stat-callout {
	display: grid;
	grid-template-columns: minmax(7rem, auto) minmax(0, 1fr);
	align-items: center;
	gap: 0.5rem 1.75rem;
	margin-block: 2rem;
	padding: 1.5rem 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.article__content .stat-callout > * + * {
	margin-top: 0;
}

.article__content .stat-callout__value {
	font-family: var(--font-heading);
	font-size: clamp(2.5rem, 5vw, 3.5rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.03em;
	white-space: nowrap;
}

@media (max-width: 720px) {
	.article__content .stat-callout {
		grid-template-columns: 1fr;
	}
}

/* Blog index */

.site-main > .post-list-section {
	padding-top: 0;
}

.post-list {
	max-width: 52rem;
	border-top: 1px solid var(--line);
}

.post-list__item {
	position: relative;
	display: grid;
	gap: 0.625rem;
	padding: 1.75rem 3.5rem 1.75rem 0;
	border-bottom: 1px solid var(--line);
}

/* Small topic icon in the card corner */
.post-list__icon {
	position: absolute;
	top: 1.9rem;
	right: 0;
	width: 1.75rem;
	height: 1.75rem;
	color: var(--ink-soft);
	transition: color 0.15s ease;
}

.post-list__item:hover .post-list__icon {
	color: var(--paper);
}

.site-main .post-list__item h2 {
	margin: 0;
	font-size: clamp(1.25rem, 2.4vw, 1.625rem);
}

.post-list__item h2 a {
	text-decoration: none;
}

.post-list__item h2 a:hover {
	text-decoration: underline;
}

.post-list__item p {
	color: var(--ink-soft);
}

.post-list__meta {
	font-size: 0.875rem;
}

/* Plain text pages (legal) */

.text-page {
	padding: clamp(3rem, 7vw, 5rem) var(--inline-pad) var(--section-space);
}

.text-page__header {
	margin-bottom: 2.5rem;
}

.text-page__header h1 {
	font-size: clamp(2rem, 4.6vw, 3.25rem);
	font-weight: 700;
}

.prose {
	max-width: 44rem;
}

.prose h2:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

/* Breadcrumbs */

.breadcrumbs {
	padding: 1.25rem var(--inline-pad) 0;
	font-size: 0.8125rem;
	line-height: 1.5;
}

.breadcrumbs ol {
	display: flex;
}

.breadcrumbs li {
	flex-shrink: 0;
	color: var(--ink-soft);
}

.breadcrumbs li + li::before {
	content: "/";
	margin: 0 0.5rem;
	opacity: 0.6;
}

.breadcrumbs a {
	color: var(--ink-soft);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--paper);
	text-decoration: underline;
}

/* Long article titles: keep the trail to one line. */
.breadcrumbs li:last-child {
	flex-shrink: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* The breadcrumb already separates the header from the content: tighten the first section. */
.breadcrumbs ~ .site-main > section:first-child,
.breadcrumbs ~ .site-main > .article,
.breadcrumbs ~ .site-main > .text-page {
	padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

/* On small screens the current page (3rd crumb) repeats the H1 right below: drop it. */
@media (max-width: 720px) {
	.breadcrumbs li:nth-child(3) {
		display: none;
	}
}

/* Decorative trend line behind hero text */

.has-trend {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.hero-trend {
	position: absolute;
	z-index: -1;
	right: var(--inline-pad);
	bottom: 8%;
	width: min(52%, 640px);
	height: auto;
	color: var(--signal);
	opacity: 0.1;
	pointer-events: none;
}

@media (max-width: 720px) {
	.hero-trend {
		right: -10%;
		bottom: 4%;
		width: 90%;
	}
}

/* Count-up numbers keep their width while animating. */
.countable,
[data-count-to] {
	font-variant-numeric: tabular-nums;
}

/* Scroll-to-top */

.to-top {
	position: fixed;
	right: clamp(1rem, 3vw, 2rem);
	bottom: clamp(1rem, 3vw, 2rem);
	z-index: 40;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--signal);
	color: var(--ink);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(0.5rem);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s, filter 0.15s ease;
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s, filter 0.15s ease;
}

.to-top:hover {
	filter: brightness(1.1);
}

.to-top:focus-visible {
	outline: 2px solid var(--paper);
	outline-offset: 3px;
}

/* Mobile bottom CTA bar (phones only) */

.mobile-cta {
	display: none;
}

@media (max-width: 720px) {
	.mobile-cta {
		position: fixed;
		right: 0;
		bottom: var(--consent-h, 0px);
		left: 0;
		z-index: 45;
		display: block;
		padding: 0.5rem var(--gutter);
		background: rgb(22 40 31 / 0.96); /* --ink-elevated at 96% */
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
		border-top: 1px solid var(--line);
		transform: translateY(100%);
		visibility: hidden;
		transition: transform 0.25s ease, visibility 0s linear 0.25s;
	}

	.mobile-cta.is-visible {
		transform: none;
		visibility: visible;
		transition: transform 0.25s ease, visibility 0s;
	}

	.mobile-cta .button {
		display: block;
		padding: 0.7rem 1rem;
		text-align: center;
	}

	/* Keep the page end clear of the bar. */
	body {
		padding-bottom: var(--mobile-cta-h, 0px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mobile-cta,
	.mobile-cta.is-visible {
		transition: none;
	}
}

/* Consent banner */

.consent {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 60;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding: 1rem var(--inline-pad);
	background: var(--ink-elevated);
	border-top: 1px solid var(--line);
	font-size: 0.9375rem;
}

.consent[hidden] {
	display: none;
}

.consent__text {
	max-width: 46rem;
	color: var(--ink-soft);
}

.consent__text a {
	color: var(--paper);
}

.consent__actions {
	display: flex;
	gap: 0.75rem;
}

/* Both choices carry equal weight — no nudging towards "Sutinku". */
.consent__button {
	min-width: 7.5rem;
	padding: 0.65rem 1.1rem;
	border: 1px solid var(--paper);
	border-radius: 2px;
	background: transparent;
	color: var(--paper);
	font-family: var(--font-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.consent__button:hover {
	background: var(--paper);
	color: var(--ink);
}

/* Keep the scroll-to-top button above the consent banner and the mobile CTA bar. */
.to-top {
	margin-bottom: calc(var(--consent-h, 0px) + var(--mobile-cta-h, 0px));
}

@media (max-width: 720px) {
	.consent__actions {
		width: 100%;
	}

	.consent__button {
		flex: 1;
	}
}

/* About page */

.hero__about {
	margin: -1.25rem 0 2rem;
}

.about-hero {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 2rem clamp(2rem, 5vw, 4rem);
}

.about-hero__photo {
	display: grid;
	place-items: center;
	width: clamp(9rem, 18vw, 14rem);
	aspect-ratio: 1;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--ink-elevated);
}

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

.about-hero__photo--empty .placeholder {
	border: 0;
	text-align: center;
}

.about-hero--no-photo {
	grid-template-columns: minmax(0, 1fr);
}

.about-why__text {
	max-width: 46rem;
	font-family: var(--font-heading);
	font-size: clamp(1.25rem, 2.4vw, 1.625rem);
	font-weight: 500;
	line-height: 1.45;
}

.about .stats {
	border-top: 1px solid var(--line);
}

.about-qualifications .check-list {
	max-width: 46rem;
}

/* Editor-only [ĮRAŠYK: …] placeholders */
.placeholder {
	max-width: 46rem;
	padding: 0.75rem 1rem;
	border: 1px dashed var(--ink-soft);
	color: var(--ink-soft);
	font-size: 0.9375rem;
}

@media (max-width: 720px) {
	.about-hero {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Two-step form */

.form-step {
	display: grid;
	gap: 1.25rem;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.form-step[hidden] {
	display: none;
}

.form-progress,
.contact-form:not(.is-stepped) [data-step-next],
.contact-form:not(.is-stepped) [data-step-back] {
	display: none;
}

.is-stepped .form-progress {
	display: block;
	color: var(--ink-soft);
	font-family: var(--font-heading);
	font-size: 0.875rem;
	font-weight: 500;
}

.form-progress__current {
	color: var(--paper);
}

.form-step__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	margin-top: 0.5rem;
}

.contact-form .form-step__back {
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink-soft);
	font: inherit;
	font-size: 0.9375rem;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}

.contact-form .form-step__back:hover {
	color: var(--paper);
	filter: none;
}

.contact-form label .optional {
	color: var(--ink-soft);
	font-weight: 400;
}

/* One real result beside the form */

.contact-proof {
	display: grid;
	gap: 0.5rem;
	margin-top: 1rem;
	padding: 1rem 0 0 1rem;
	border-top: 1px solid var(--line);
	border-left: 2px solid var(--signal);
}

.contact-proof__result {
	color: var(--signal);
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.2;
}

.contact-proof .text-link {
	justify-self: start;
	font-size: 0.9375rem;
}

/* Trust notes under the form buttons */

.form-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem 1.25rem;
	color: var(--ink-soft);
	font-size: 0.8125rem;
}

.form-trust li {
	position: relative;
	padding-left: 1.125rem;
}

.form-trust li::before {
	content: "";
	position: absolute;
	top: 0.2em;
	left: 0;
	width: 0.875rem;
	height: 0.875rem;
	background: var(--ink-soft);
	-webkit-mask: var(--icon-check) center / contain no-repeat;
	mask: var(--icon-check) center / contain no-repeat;
}

/* Footer */

.site-footer {
	display: grid;
	gap: 1.5rem;
	padding: 2rem var(--inline-pad);
	border-top: 1px solid var(--line);
	color: var(--ink-soft);
	font-size: 0.875rem;
}

.footer-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--line);
}

.footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

.footer-nav a {
	color: var(--paper);
	font-size: 0.9375rem;
}

.footer-nav__legal a {
	color: var(--ink-soft);
}

.site-footer a {
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--paper);
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */

@media (max-width: 960px) {
	.why__grid {
		grid-template-columns: repeat(2, 1fr);
	}

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

	.article__aside {
		position: static;
		max-width: 44rem;
	}

	.toc {
		padding: 1.25rem;
		border: 1px solid var(--line);
	}

	.case-proof__list {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 1.5rem;
	}

	.case-proof__list li:nth-child(odd) {
		border-left: 0;
	}

	.case-proof__list li:nth-child(odd) a {
		padding-left: 0;
	}

	.issue-list {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.services__list {
		grid-template-columns: repeat(2, 1fr);
	}

	.process__list {
		grid-template-columns: repeat(2, 1fr);
	}

	.site-main > .contact {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}

	.contact-form {
		grid-column: 1;
		grid-row: auto;
		margin-top: 2.5rem;
	}
}

@media (max-width: 720px) {
	.why__grid {
		grid-template-columns: 1fr;
	}

	.article__content .article-stats,
	.article__content .fit-columns {
		grid-template-columns: 1fr;
	}

	.fit-columns {
		grid-template-columns: 1fr;
	}

	.case-stats__list,
	.case-grid {
		grid-template-columns: 1fr;
	}

	.case-stats__item,
	.case-stats__item:first-child {
		padding: 1.25rem 0;
		border-left: 0;
		border-top: 1px solid var(--line);
	}

	.case-stats__item:first-child {
		padding-top: 0;
		border-top: 0;
	}

	.case-stats__item:last-child {
		padding-bottom: 0;
	}

	.timeline__step {
		grid-template-columns: 1fr;
		gap: 0.75rem;
		padding-left: 2rem;
	}

	/* Compact two-row header: logo + CTA, then the menu. */
	.site-header {
		gap: 0.625rem 1rem;
		padding-block: 0.75rem;
	}

	.site-email {
		display: none;
	}

	.site-header__cta {
		order: 2;
		margin-left: auto;
		padding: 0.55rem 0.9rem;
		font-size: 0.875rem;
	}

	.site-nav {
		order: 3;
		width: 100%;
		margin-left: 0;
	}

	.site-nav ul {
		gap: 0.5rem 1.25rem;
	}

	.stats__list {
		grid-template-columns: 1fr;
	}

	.stats__item,
	.stats__item:first-child {
		padding: 1.5rem 0;
		border-left: 0;
		border-top: 1px solid var(--line);
	}

	.stats__item:first-child {
		padding-top: 0;
		border-top: 0;
	}

	.stats__item:last-child {
		padding-bottom: 0;
	}

	.services__list,
	.process__list {
		grid-template-columns: 1fr;
	}

	.process__list li:not(:last-child)::after {
		transform: rotate(90deg);
	}
}
