/* ==========================================================================
   Arman Pooshesh Persian — site styles
   ========================================================================== */

@font-face {
	font-family: "Vazirmatn";
	src: url("../fonts/Vazirmatn-wght.woff2") format("woff2-variations"), url("../fonts/Vazirmatn-wght.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--ap-ink: #101418;
	--ap-ink-2: #181d22;
	--ap-ink-3: #232a31;
	--ap-paper: #f7f5f1;
	--ap-white: #ffffff;
	--ap-green: #0b8a3e;
	--ap-green-2: #12a94e;
	--ap-red: #d2302c;
	--ap-wood: #8b4a22;
	--ap-wood-2: #c07a43;
	--ap-muted: #6b7178;
	--ap-muted-2: #9aa1a8;
	--ap-line: rgba(16, 20, 24, .1);
	--ap-line-dark: rgba(255, 255, 255, .12);
	--ap-radius: 20px;
	--ap-radius-sm: 12px;
	--ap-shadow: 0 20px 50px -20px rgba(16, 20, 24, .25);
	--ap-wrap: 1240px;
	--ap-gutter: clamp(16px, 4vw, 40px);
	--ap-header-h: 84px;
	--ap-ease: cubic-bezier(.2, .7, .2, 1);
	--ap-font: "Vazirmatn", Tahoma, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--ap-font);
	font-feature-settings: "ss01";
	color: var(--ap-ink);
	background: var(--ap-white);
	line-height: 1.85;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body,
body .elementor-widget-heading .elementor-heading-title,
body .elementor-widget-text-editor,
body .elementor-button,
body input, body textarea, body select, body button {
	font-family: var(--ap-font);
}

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

a { color: inherit; text-decoration: none; transition: color .2s; }

.ap-wrap {
	width: 100%;
	max-width: calc(var(--ap-wrap) + var(--ap-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--ap-gutter);
	box-sizing: border-box;
}

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

/* Elementor containers that only hold our components: no default padding. */
.e-con.ap-section,
.e-con.ap-flush {
	--padding-top: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--padding-right: 0px;
	--gap: 0px;
	--row-gap: 0px;
	--column-gap: 0px;
}
.e-con.ap-flush > .e-con-inner,
.e-con.ap-section > .e-con-inner { max-width: none; padding: 0; }
.ap-flush .elementor-widget:not(:last-child) { margin-bottom: 0; }

/* Undo Hello's default (pink) button styles on our own buttons. */
.ap-burger, .ap-burger:hover, .ap-burger:focus { background: var(--ap-ink); color: #fff; border: 0; }
.ap-pattern, .ap-pattern:hover, .ap-pattern:focus { background: none; color: inherit; border: 0; border-radius: 0; padding: 0; }
.ap-gallery button:hover, .ap-gallery button:focus { background: var(--ap-ink-2); }
.ap-hero__card:focus { background: rgba(255, 255, 255, .1); color: #fff; }
.ap-sound:hover, .ap-sound:focus { background: rgba(0, 0, 0, .4); color: #fff; }
.ap-play:hover, .ap-play:focus { background: #fff; color: var(--ap-green); }
.ap-filter button:focus { color: var(--ap-ink); }
.ap-filter button.is-active:focus { color: #fff; }
.ap-modal button { border: 0; padding: 0; }
.ap-modal button:focus { background: rgba(255, 255, 255, .25); color: #fff; }
:focus-visible { outline: 2px solid var(--ap-green-2); outline-offset: 3px; }

/* ---------- Buttons ---------- */

.ap-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: transform .25s var(--ap-ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
	white-space: nowrap;
}
.ap-btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ap-ease); }
.ap-btn:hover { transform: translateY(-2px); }
.ap-btn:hover svg { transform: translateX(-4px); }
.ap-btn--primary { background: var(--ap-green); color: #fff; box-shadow: 0 10px 24px -10px rgba(11, 138, 62, .7); }
.ap-btn--primary:hover { background: var(--ap-green-2); color: #fff; }
.ap-btn--light { background: #fff; color: var(--ap-ink); }
.ap-btn--light:hover { color: var(--ap-green); }
.ap-btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; backdrop-filter: blur(6px); background: rgba(255, 255, 255, .06); }
.ap-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .14); color: #fff; }
.ap-btn--outline { border-color: var(--ap-line); color: var(--ap-ink); background: #fff; }
.ap-btn--outline:hover { border-color: var(--ap-green); color: var(--ap-green); }
.ap-btn--sm { padding: 11px 20px; font-size: 14px; }

.ap-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: var(--ap-green);
}
.ap-link svg { width: 18px; height: 18px; transition: transform .25s var(--ap-ease); }
.ap-link:hover svg { transform: translateX(-5px); }

/* ---------- Section heads ---------- */

.ap-sec { padding-block: clamp(72px, 9vw, 128px); position: relative; }
.ap-sec--paper { background: var(--ap-paper); }
.ap-sec--dark { background: var(--ap-ink); color: #fff; }
.ap-sec--tight { padding-block: clamp(48px, 6vw, 80px); }

.ap-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.ap-head--center { margin-inline: auto; text-align: center; }
.ap-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ap-head--row > div { max-width: 640px; }

.ap-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 700;
	color: var(--ap-green);
	margin-bottom: 14px;
	letter-spacing: 0;
}
.ap-eyebrow::before {
	content: "";
	width: 28px;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--ap-red) 0 45%, transparent 45% 55%, var(--ap-green) 55%);
}
.ap-sec--dark .ap-eyebrow { color: var(--ap-green-2); }

.ap-title {
	font-size: clamp(28px, 3.6vw, 44px);
	line-height: 1.35;
	font-weight: 800;
	margin: 0 0 16px;
	color: inherit;
	letter-spacing: -.01em;
}
.ap-lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--ap-muted); margin: 0; }
.ap-sec--dark .ap-lead { color: var(--ap-muted-2); }

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

.ap-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	padding-top: 14px;
	transition: padding .35s var(--ap-ease);
}
.admin-bar .ap-header { top: 32px; }
.ap-header__bar {
	display: flex;
	align-items: center;
	gap: 28px;
	height: var(--ap-header-h);
	padding-inline: 22px 14px;
	border-radius: 22px;
	background: rgba(255, 255, 255, .78);
	backdrop-filter: saturate(160%) blur(16px);
	-webkit-backdrop-filter: saturate(160%) blur(16px);
	border: 1px solid rgba(255, 255, 255, .6);
	box-shadow: 0 10px 40px -18px rgba(16, 20, 24, .35);
	transition: height .35s var(--ap-ease), border-radius .35s, background .35s;
}
.ap-header.is-scrolled { padding-top: 8px; }
.ap-header.is-scrolled .ap-header__bar { height: 70px; background: rgba(255, 255, 255, .92); }
.ap-logo { display: flex; align-items: center; flex: none; }
.ap-logo img { height: 60px; width: auto; display: block; transition: height .35s var(--ap-ease); }
.ap-header.is-scrolled .ap-logo img { height: 50px; }

.ap-nav { flex: 1; }
.ap-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; justify-content: center; }
.ap-nav a {
	display: block;
	padding: 10px 16px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	color: var(--ap-ink);
	transition: background .2s, color .2s;
}
.ap-nav a:hover { background: rgba(11, 138, 62, .08); color: var(--ap-green); }
.ap-nav .current-menu-item > a,
.ap-nav .current_page_item > a { background: var(--ap-ink); color: #fff; }

.ap-header__actions { display: flex; align-items: center; gap: 10px; }
.ap-phone { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--ap-ink); padding-inline: 8px; }
.ap-phone span.ap-phone__icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(11, 138, 62, .1); color: var(--ap-green); }
.ap-phone svg { width: 18px; height: 18px; }
.ap-phone small { display: block; font-size: 11px; font-weight: 500; color: var(--ap-muted); line-height: 1.3; }
.ap-phone b { display: block; line-height: 1.3; direction: ltr; text-align: right; }

.ap-burger {
	display: none;
	width: 46px; height: 46px;
	border-radius: 14px;
	border: 0;
	background: var(--ap-ink);
	color: #fff;
	cursor: pointer;
	place-items: center;
	padding: 0;
}
.ap-burger span, .ap-burger span::before, .ap-burger span::after {
	display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; position: relative; transition: transform .3s var(--ap-ease), opacity .2s;
}
.ap-burger span::before, .ap-burger span::after { content: ""; position: absolute; inset-inline: 0; }
.ap-burger span::before { top: -6px; }
.ap-burger span::after { top: 6px; }
.ap-menu-open .ap-burger span { background: transparent; }
.ap-menu-open .ap-burger span::before { transform: translateY(6px) rotate(45deg); }
.ap-menu-open .ap-burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* Pages without a hero video start below the fixed header. */
.ap-page-offset { height: 0; }

/* ---------- Hero (video) ---------- */

.ap-hero {
	position: relative;
	min-height: 100svh;
	min-height: 100vh;
	display: flex;
	align-items: flex-end;
	color: #fff;
	overflow: hidden;
	background: var(--ap-ink);
	isolation: isolate;
}
@supports (min-height: 100svh) { .ap-hero { min-height: 100svh; } }
.ap-hero__media { position: absolute; inset: 0; z-index: -2; }
.ap-hero__media video,
.ap-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(0deg, rgba(10, 12, 14, .92) 0%, rgba(10, 12, 14, .55) 32%, rgba(10, 12, 14, 0) 62%),
		linear-gradient(270deg, rgba(10, 12, 14, .45) 0%, rgba(10, 12, 14, 0) 55%);
}
.ap-hero__inner { width: 100%; padding-bottom: clamp(40px, 7vh, 80px); }
.ap-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
.ap-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px 8px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .2);
	backdrop-filter: blur(8px);
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 22px;
}
.ap-hero__badge i {
	font-style: normal;
	font-size: 12px;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: 999px;
	background: linear-gradient(90deg, #0b8a3e 0 33%, #fff 33% 66%, #d2302c 66%);
	color: transparent;
	width: 26px; height: 6px; padding: 0;
}
.ap-hero__title {
	font-size: clamp(34px, 5.6vw, 76px);
	line-height: 1.2;
	font-weight: 850;
	margin: 0 0 20px;
	max-width: 14ch;
	letter-spacing: -.02em;
}
.ap-hero__title em { font-style: normal; background: linear-gradient(90deg, #4be08a, #12a94e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ap-hero__text { font-size: clamp(16px, 1.5vw, 19px); color: rgba(255, 255, 255, .78); max-width: 560px; margin: 0 0 32px; }
.ap-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.ap-hero__side { display: flex; flex-direction: column; gap: 12px; align-items: stretch; min-width: 260px; }
.ap-hero__card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px;
	border-radius: 18px;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .16);
	backdrop-filter: blur(12px);
	color: #fff;
	cursor: pointer;
	transition: background .25s, transform .25s var(--ap-ease);
	text-align: right;
	font: inherit;
}
.ap-hero__card:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }
.ap-hero__thumb { position: relative; width: 84px; height: 56px; border-radius: 12px; overflow: hidden; flex: none; }
.ap-hero__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-hero__thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.ap-hero__card b { display: block; font-size: 14px; }
.ap-hero__card small { display: block; font-size: 12px; color: rgba(255, 255, 255, .65); }

.ap-sound {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	align-self: flex-start;
	padding: 10px 16px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .25);
	background: rgba(0, 0, 0, .25);
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	backdrop-filter: blur(8px);
}
.ap-sound svg { width: 18px; height: 18px; }
.ap-sound .ap-sound__on { display: none; }
.ap-sound.is-on .ap-sound__on { display: block; }
.ap-sound.is-on .ap-sound__off { display: none; }
.ap-sound__bars { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.ap-sound__bars i { width: 3px; background: currentColor; border-radius: 2px; height: 30%; }
.ap-sound.is-on .ap-sound__bars i { animation: ap-bars 1s ease-in-out infinite; }
.ap-sound.is-on .ap-sound__bars i:nth-child(2) { animation-delay: -.3s; }
.ap-sound.is-on .ap-sound__bars i:nth-child(3) { animation-delay: -.6s; }
@keyframes ap-bars { 0%, 100% { height: 30%; } 50% { height: 100%; } }

.ap-hero__progress { position: absolute; inset: auto 0 0 0; height: 3px; background: rgba(255, 255, 255, .12); }
.ap-hero__progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ap-red), var(--ap-green-2)); }

.ap-scroll {
	position: absolute;
	inset-inline-start: 50%;
	bottom: 26px;
	transform: translateX(50%);
	width: 26px; height: 42px;
	border: 2px solid rgba(255, 255, 255, .5);
	border-radius: 20px;
}
.ap-scroll::after { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: ap-scroll 1.8s infinite; }
@keyframes ap-scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Page hero (inner pages) ---------- */

.ap-phero {
	position: relative;
	color: #fff;
	background: var(--ap-ink);
	padding: calc(var(--ap-header-h) + 110px) 0 clamp(56px, 8vw, 96px);
	overflow: hidden;
	isolation: isolate;
}
.ap-phero__bg { position: absolute; inset: 0; z-index: -2; }
.ap-phero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.ap-phero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(16, 20, 24, .95) 5%, rgba(16, 20, 24, .4) 70%, rgba(16, 20, 24, .6)); }
.ap-crumbs { display: flex; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .6); margin-bottom: 18px; }
.ap-crumbs a:hover { color: #fff; }
.ap-phero h1 { font-size: clamp(32px, 4.6vw, 58px); font-weight: 850; line-height: 1.25; margin: 0 0 14px; letter-spacing: -.02em; }
.ap-phero p { font-size: clamp(16px, 1.4vw, 19px); color: rgba(255, 255, 255, .75); max-width: 640px; margin: 0; }

/* ---------- Brands ---------- */

.ap-brands { padding-block: 34px; border-bottom: 1px solid var(--ap-line); background: #fff; }
.ap-brands__row { display: flex; align-items: center; gap: clamp(24px, 5vw, 72px); flex-wrap: wrap; justify-content: space-between; }
.ap-brands__label { font-size: 14px; color: var(--ap-muted); font-weight: 600; max-width: 180px; line-height: 1.6; }
.ap-brands__logos { display: flex; align-items: center; gap: clamp(28px, 6vw, 80px); flex-wrap: wrap; flex: 1; justify-content: flex-end; }
.ap-brand { display: flex; align-items: center; height: 54px; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.ap-brand:hover { filter: none; opacity: 1; }
.ap-brand img { max-height: 100%; width: auto; }
.ap-brand--oemme {
	font-weight: 900;
	font-style: italic;
	font-size: 34px;
	letter-spacing: .02em;
	color: #1d1d1d;
	direction: ltr;
	font-family: Arial, sans-serif;
}
.ap-brand--oemme span { color: var(--ap-green); margin-inline-end: 2px; }

/* ---------- About split ---------- */

.ap-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.ap-collage { position: relative; aspect-ratio: 1 / .95; }
.ap-collage figure { margin: 0; position: absolute; border-radius: var(--ap-radius); overflow: hidden; box-shadow: var(--ap-shadow); }
.ap-collage figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-collage__a { inset: 0 0 22% 22%; }
.ap-collage__b { width: 52%; aspect-ratio: 4 / 3; inset-inline-start: 0; bottom: 0; border: 6px solid #fff; }
.ap-collage__tag {
	position: absolute;
	inset-inline-end: -14px;
	bottom: 12%;
	background: var(--ap-ink);
	color: #fff;
	border-radius: 18px;
	padding: 18px 22px;
	box-shadow: var(--ap-shadow);
	display: flex;
	align-items: center;
	gap: 14px;
}
.ap-collage__tag b { font-size: 30px; font-weight: 850; line-height: 1; }
.ap-collage__tag small { display: block; font-size: 13px; color: var(--ap-muted-2); line-height: 1.5; }
.ap-flag { width: 34px; height: 24px; border-radius: 4px; background: linear-gradient(90deg, #009246 0 33.3%, #fff 33.3% 66.6%, #ce2b37 66.6%); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); flex: none; }

.ap-checks { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.ap-checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; line-height: 1.6; }
.ap-checks li::before {
	content: "";
	flex: none;
	width: 22px; height: 22px;
	margin-top: 2px;
	border-radius: 50%;
	background: var(--ap-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- Services (dark) ---------- */

.ap-services { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ap-service {
	position: relative;
	border-radius: 28px;
	overflow: hidden;
	min-height: 560px;
	display: flex;
	align-items: flex-end;
	color: #fff;
	isolation: isolate;
	background: var(--ap-ink-2);
}
.ap-service__bg { position: absolute; inset: 0; z-index: -2; }
.ap-service__bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ap-ease); }
.ap-service:hover .ap-service__bg img { transform: scale(1.06); }
.ap-service::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 12, 14, .95) 10%, rgba(10, 12, 14, .2) 70%); }
.ap-service__body { padding: clamp(26px, 3.5vw, 44px); width: 100%; box-sizing: border-box; }
.ap-service__num { font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .55); margin-bottom: 10px; }
.ap-service h3 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 850; margin: 0 0 10px; line-height: 1.35; }
.ap-service p { color: rgba(255, 255, 255, .72); margin: 0 0 22px; max-width: 46ch; }
.ap-service__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.ap-service__tags span { font-size: 13px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); }
.ap-swatch-strip { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; background: #1a120c; }
.ap-swatch-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ap-ease); }
.ap-service:hover .ap-swatch-strip img { transform: scale(1.08); }

/* ---------- Machines ---------- */

.ap-machines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ap-machine {
	background: #fff;
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .35s var(--ap-ease), box-shadow .35s, border-color .35s;
}
.ap-machine:hover { transform: translateY(-6px); box-shadow: var(--ap-shadow); border-color: transparent; }
.ap-machine__img { position: relative; aspect-ratio: 1 / .82; background: radial-gradient(circle at 50% 60%, #fff 0, #f1f1ef 70%); overflow: hidden; }
.ap-machine__img img { width: 100%; height: 100%; object-fit: contain; padding: 18px; box-sizing: border-box; mix-blend-mode: multiply; transition: transform .6s var(--ap-ease); }
.ap-machine:hover .ap-machine__img img { transform: scale(1.05); }
.ap-machine__type { position: absolute; top: 16px; inset-inline-start: 16px; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--ap-ink); color: #fff; }
.ap-machine__made { position: absolute; top: 16px; inset-inline-end: 16px; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ap-muted); }
.ap-machine__made .ap-flag { width: 20px; height: 14px; border-radius: 2px; }
.ap-machine__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ap-machine__model { font-family: Arial, sans-serif; direction: ltr; text-align: right; font-size: 13px; font-weight: 700; color: var(--ap-green); letter-spacing: .04em; }
.ap-machine h3 { margin: 0; font-size: 21px; font-weight: 800; line-height: 1.45; }
.ap-machine p { margin: 0; color: var(--ap-muted); font-size: 15px; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ap-machine__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--ap-line); display: flex; justify-content: space-between; align-items: center; }

/* Machine detail rows (machines page) */
.ap-mrow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--ap-line); }
.ap-mrow:first-child { padding-top: 0; }
.ap-mrow:last-child { border-bottom: 0; padding-bottom: 0; }
.ap-mrow:nth-child(even) .ap-mrow__media { order: 2; }
.ap-mrow__media { position: relative; border-radius: 28px; background: radial-gradient(circle at 50% 55%, #fff 0, #eeeeea 75%); aspect-ratio: 1 / .9; display: grid; place-items: center; overflow: hidden; }
.ap-mrow__media img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.ap-mrow__index { position: absolute; top: 22px; inset-inline-start: 26px; font-size: 64px; font-weight: 900; color: rgba(16, 20, 24, .06); line-height: 1; font-family: Arial, sans-serif; }
.ap-mrow h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 850; margin: 6px 0 14px; line-height: 1.35; }
.ap-mrow p { color: var(--ap-muted); font-size: 17px; margin: 0 0 26px; }
.ap-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 30px; }
.ap-specs div { padding: 14px 16px; border-radius: 14px; background: var(--ap-paper); }
.ap-specs dt { font-size: 13px; color: var(--ap-muted); margin-bottom: 2px; }
.ap-specs dd { margin: 0; font-weight: 700; font-size: 15px; }

/* ---------- Patterns ---------- */

.ap-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.ap-filter button {
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	padding: 10px 20px;
	border-radius: 999px;
	border: 1px solid var(--ap-line);
	background: #fff;
	color: var(--ap-ink);
	cursor: pointer;
	transition: all .25s;
}
.ap-filter button span { font-size: 12px; color: var(--ap-muted); margin-inline-start: 6px; }
.ap-filter button:hover { border-color: var(--ap-ink); }
.ap-filter button.is-active { background: var(--ap-ink); border-color: var(--ap-ink); color: #fff; }
.ap-filter button.is-active span { color: rgba(255, 255, 255, .6); }

.ap-patterns { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; }
.ap-pattern {
	display: block;
	border: 0;
	padding: 0;
	background: none;
	font: inherit;
	text-align: right;
	cursor: pointer;
	color: inherit;
}
.ap-pattern.is-hidden { display: none; }
.ap-pattern__swatch {
	display: block;
	position: relative;
	aspect-ratio: 3 / 4.4;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 0 rgba(255, 255, 255, .3) inset, 0 18px 30px -18px rgba(60, 30, 10, .55);
	transition: transform .45s var(--ap-ease), box-shadow .45s;
}
.ap-pattern__swatch img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ap-ease); }
.ap-pattern__swatch::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(105deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .18));
	pointer-events: none;
}
.ap-pattern__swatch::after {
	content: "";
	position: absolute;
	top: 0; bottom: 0;
	width: 34%;
	inset-inline-start: -40%;
	z-index: 2;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
	transform: skewX(-12deg);
	transition: inset-inline-start .8s var(--ap-ease);
}
.ap-pattern:hover .ap-pattern__swatch { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 30px 40px -22px rgba(60, 30, 10, .7); }
.ap-pattern:hover .ap-pattern__swatch::after { inset-inline-start: 110%; }
.ap-pattern:hover .ap-pattern__swatch img { transform: scale(1.06); }
.ap-pattern__cat {
	position: absolute;
	top: 12px;
	inset-inline-start: 12px;
	z-index: 3;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .88);
	color: var(--ap-ink);
}
.ap-pattern__meta { display: block; padding: 14px 4px 0; }
.ap-pattern__code { display: block; font-family: Arial, sans-serif; font-size: 13px; font-weight: 700; color: var(--ap-wood); letter-spacing: .06em; }
.ap-pattern__name { display: block; font-weight: 800; font-size: 16px; line-height: 1.5; }
.ap-pattern__latin { display: block; font-family: Arial, sans-serif; font-size: 12px; color: var(--ap-muted); direction: ltr; text-align: right; }

/* Patterns teaser (home) */
.ap-wood { background: #1a120c; color: #fff; overflow: hidden; }
.ap-wood .ap-lead { color: rgba(255, 255, 255, .65); }
.ap-wood .ap-eyebrow { color: var(--ap-wood-2); }
.ap-rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.ap-rail .ap-pattern { flex: 0 0 clamp(150px, 16vw, 200px); scroll-snap-align: start; }
.ap-rail .ap-pattern__latin { color: rgba(255, 255, 255, .5); }
.ap-rail .ap-pattern__code { color: var(--ap-wood-2); }

/* ---------- Features ---------- */

.ap-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ap-feature { padding: 28px 24px; border-radius: var(--ap-radius); background: #fff; border: 1px solid var(--ap-line); transition: transform .3s var(--ap-ease), box-shadow .3s; }
.ap-feature:hover { transform: translateY(-4px); box-shadow: var(--ap-shadow); }
.ap-feature__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(11, 138, 62, .1); color: var(--ap-green); margin-bottom: 18px; }
.ap-feature__icon svg { width: 26px; height: 26px; }
.ap-feature:nth-child(2) .ap-feature__icon { background: rgba(210, 48, 44, .1); color: var(--ap-red); }
.ap-feature:nth-child(3) .ap-feature__icon { background: rgba(139, 74, 34, .12); color: var(--ap-wood); }
.ap-feature:nth-child(4) .ap-feature__icon { background: rgba(16, 20, 24, .08); color: var(--ap-ink); }
.ap-feature h3 { font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.ap-feature p { margin: 0; color: var(--ap-muted); font-size: 15px; line-height: 1.8; }

/* ---------- Video CTA ---------- */

.ap-vcta {
	position: relative;
	border-radius: 32px;
	overflow: hidden;
	min-height: clamp(380px, 46vw, 560px);
	display: grid;
	place-items: center;
	text-align: center;
	color: #fff;
	isolation: isolate;
}
.ap-vcta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ap-ease); }
.ap-vcta:hover > img { transform: scale(1.04); }
.ap-vcta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at center, rgba(10, 12, 14, .35), rgba(10, 12, 14, .82)); }
.ap-vcta__body { padding: 40px 24px; }
.ap-vcta h2 { font-size: clamp(26px, 3.4vw, 44px); font-weight: 850; margin: 26px 0 10px; line-height: 1.35; }
.ap-vcta p { color: rgba(255, 255, 255, .75); margin: 0 auto; max-width: 560px; }
.ap-play {
	position: relative;
	width: 96px; height: 96px;
	border-radius: 50%;
	border: 0;
	background: #fff;
	color: var(--ap-green);
	display: grid;
	place-items: center;
	margin-inline: auto;
	cursor: pointer;
	transition: transform .3s var(--ap-ease);
}
.ap-play svg { width: 34px; height: 34px; margin-left: 6px; }
.ap-play::before, .ap-play::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); animation: ap-pulse 2.4s infinite; }
.ap-play::after { animation-delay: 1.2s; }
.ap-play:hover { transform: scale(1.08); }
@keyframes ap-pulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Gallery ---------- */

.ap-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 14px; }
.ap-gallery button { border: 0; padding: 0; border-radius: 18px; overflow: hidden; cursor: zoom-in; position: relative; background: var(--ap-ink-2); }
.ap-gallery button img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ap-ease), opacity .3s; }
.ap-gallery button:hover img { transform: scale(1.07); opacity: .85; }
.ap-gallery button:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.ap-gallery button:nth-child(6n + 4) { grid-row: span 2; }

/* ---------- CTA band ---------- */

.ap-band {
	position: relative;
	border-radius: 32px;
	padding: clamp(36px, 5vw, 64px);
	background: linear-gradient(120deg, #0b8a3e, #0a6d33 60%, #08552a);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	flex-wrap: wrap;
	overflow: hidden;
	isolation: isolate;
}
.ap-band::before {
	content: "";
	position: absolute;
	width: 520px; height: 520px;
	inset-inline-start: -160px; top: -260px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 70%);
	z-index: -1;
}
.ap-band::after {
	content: "";
	position: absolute;
	inset-inline-end: -40px; bottom: -80px;
	width: 300px; height: 300px;
	background: url("../img/ap-logo-white.png") center / contain no-repeat;
	opacity: .08;
	z-index: -1;
}
.ap-band h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 36px); font-weight: 850; line-height: 1.4; }
.ap-band p { margin: 0; color: rgba(255, 255, 255, .8); }
.ap-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Contact ---------- */

.ap-contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.ap-cards { display: grid; gap: 14px; }
.ap-ccard { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--ap-radius); background: var(--ap-paper); }
.ap-ccard__icon { width: 48px; height: 48px; border-radius: 14px; background: #fff; display: grid; place-items: center; color: var(--ap-green); flex: none; box-shadow: 0 6px 18px -10px rgba(16, 20, 24, .3); }
.ap-ccard__icon svg { width: 22px; height: 22px; }
.ap-ccard small { display: block; color: var(--ap-muted); font-size: 13px; }
.ap-ccard b { display: block; font-size: 16px; line-height: 1.7; }
.ap-placeholder { color: var(--ap-red); font-weight: 600; font-size: 14px; }
.ap-formbox { padding: clamp(24px, 3.5vw, 44px); border-radius: 28px; background: #fff; border: 1px solid var(--ap-line); box-shadow: var(--ap-shadow); }
.ap-formbox h3 { margin: 0 0 6px; font-size: 24px; font-weight: 850; }
.ap-formbox .elementor-shortcode p { margin: 0 0 24px; color: var(--ap-muted); }
.e-con.ap-contact { display: grid; }
.e-con.ap-formbox { --padding-top: clamp(24px, 3.5vw, 44px); --padding-bottom: clamp(24px, 3.5vw, 44px); --padding-left: clamp(24px, 3.5vw, 44px); --padding-right: clamp(24px, 3.5vw, 44px); display: block; }
.e-con.ap-wrap { margin-inline: auto; padding-inline: var(--ap-gutter); max-width: calc(var(--ap-wrap) + var(--ap-gutter) * 2); }
.e-con.ap-contact { grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
@media (max-width: 960px) { .e-con.ap-contact { grid-template-columns: 1fr; } }
.ap-formbox .elementor-field-group .elementor-field-textual {
	border-radius: 12px;
	border: 1px solid var(--ap-line);
	background: var(--ap-paper);
	padding: 14px 16px;
	font-size: 15px;
	min-height: 50px;
	transition: border-color .2s, background .2s;
}
.ap-formbox .elementor-field-group .elementor-field-textual:focus { border-color: var(--ap-green); background: #fff; outline: none; box-shadow: 0 0 0 4px rgba(11, 138, 62, .1); }
.ap-formbox .elementor-field-group > label { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.ap-formbox .elementor-button[type="submit"] { background: var(--ap-green); border-radius: 999px; padding: 16px 30px; font-weight: 700; font-size: 15px; }
.ap-formbox .elementor-button[type="submit"]:hover { background: var(--ap-green-2); }
.ap-map {
	margin-top: 14px;
	border-radius: var(--ap-radius);
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background:
		linear-gradient(rgba(16, 20, 24, .04) 1px, transparent 1px) 0 0 / 28px 28px,
		linear-gradient(90deg, rgba(16, 20, 24, .04) 1px, transparent 1px) 0 0 / 28px 28px,
		var(--ap-paper);
	display: grid;
	place-items: center;
	color: var(--ap-muted);
	font-size: 14px;
	text-align: center;
}
.ap-map svg { width: 40px; height: 40px; color: var(--ap-red); display: block; margin: 0 auto 6px; }

/* ---------- Footer ---------- */

.ap-footer { background: var(--ap-ink); color: rgba(255, 255, 255, .72); padding-top: clamp(64px, 8vw, 100px); font-size: 15px; }
.ap-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--ap-line-dark); }
.ap-footer__logo img { height: 64px; width: auto; }
.ap-footer__about { margin: 18px 0 0; max-width: 36ch; line-height: 1.95; }
.ap-footer h4 { color: #fff; font-size: 16px; font-weight: 800; margin: 6px 0 18px; }
.ap-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ap-footer a:hover { color: #fff; }
.ap-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.ap-footer__contact svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--ap-green-2); }
.ap-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; font-size: 13px; color: rgba(255, 255, 255, .45); }
.ap-social { display: flex; gap: 10px; margin-top: 22px; }
.ap-social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: #fff; transition: background .25s; }
.ap-social a:hover { background: var(--ap-green); }
.ap-social svg { width: 18px; height: 18px; }

/* ---------- Modal ---------- */

.ap-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(8, 10, 12, .88);
	backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s, visibility .3s;
}
.ap-modal.is-open { opacity: 1; visibility: visible; }
.ap-modal__box { position: relative; width: min(1100px, 100%); max-height: calc(100vh - 48px); display: grid; place-items: center; transform: scale(.96); transition: transform .35s var(--ap-ease); }
.ap-modal.is-open .ap-modal__box { transform: none; }
.ap-modal__box video { width: 100%; max-height: calc(100vh - 120px); border-radius: 18px; background: #000; display: block; }
.ap-modal__box img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 14px; display: block; }
.ap-modal__cap { color: #fff; text-align: center; margin-top: 14px; font-weight: 600; }
.ap-modal__cap span { color: rgba(255, 255, 255, .6); font-family: Arial, sans-serif; margin-inline-start: 8px; }
.ap-modal__close, .ap-modal__nav {
	position: fixed;
	width: 48px; height: 48px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background .2s;
}
.ap-modal__close:hover, .ap-modal__nav:hover { background: rgba(255, 255, 255, .25); }
.ap-modal__close { top: 20px; inset-inline-start: 20px; }
.ap-modal__nav { top: 50%; margin-top: -24px; }
.ap-modal__nav--prev { inset-inline-start: 20px; }
.ap-modal__nav--next { inset-inline-end: 20px; }
.ap-modal__close svg, .ap-modal__nav svg { width: 22px; height: 22px; }
.ap-modal:not(.has-nav) .ap-modal__nav { display: none; }

/* ---------- Reveal animations ---------- */

.ap-js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ap-ease), transform .9s var(--ap-ease); transition-delay: var(--d, 0s); }
.ap-js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.ap-js [data-reveal] { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
}

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

@media (max-width: 1100px) {
	.ap-phone { display: none; }
	.ap-features { grid-template-columns: repeat(2, 1fr); }
	.ap-footer__grid { grid-template-columns: 1fr 1fr; }
	.ap-hero__grid { grid-template-columns: 1fr; }
	.ap-hero__side { flex-direction: row; flex-wrap: wrap; align-items: center; }
}

@media (max-width: 960px) {
	:root { --ap-header-h: 68px; }
	.ap-burger { display: grid; }
	.ap-header__bar { gap: 12px; padding-inline: 14px 10px; border-radius: 18px; }
	.ap-logo img, .ap-header.is-scrolled .ap-logo img { height: 40px; }
	.ap-header.is-scrolled .ap-header__bar { height: 62px; }
	.ap-header__actions { margin-inline-start: auto; }
	.ap-header__actions .ap-btn { display: none; }
	.ap-nav {
		position: fixed;
		inset: calc(var(--ap-header-h) + 26px) var(--ap-gutter) auto;
		background: #fff;
		border-radius: 20px;
		box-shadow: var(--ap-shadow);
		padding: 12px;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		transition: opacity .3s, transform .3s var(--ap-ease), visibility .3s;
	}
	.ap-menu-open .ap-nav { opacity: 1; visibility: visible; transform: none; }
	.ap-nav ul { flex-direction: column; }
	.ap-nav a { padding: 14px 16px; font-size: 16px; border-radius: 12px; }
	.ap-split, .ap-services, .ap-contact, .ap-mrow { grid-template-columns: 1fr; }
	.ap-mrow:nth-child(even) .ap-mrow__media { order: 0; }
	.ap-machines { grid-template-columns: 1fr 1fr; }
	.ap-service { min-height: 460px; }
	.ap-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
	.ap-collage { max-width: 560px; }
}

@media (max-width: 640px) {
	.ap-machines, .ap-features { grid-template-columns: 1fr; }
	.ap-checks { grid-template-columns: 1fr; }
	.ap-patterns { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.ap-specs { grid-template-columns: 1fr; }
	.ap-footer__grid { grid-template-columns: 1fr; }
	.ap-hero__side { display: none; }
	.ap-hero__cta .ap-btn { flex: 1; justify-content: center; }
	.ap-band { border-radius: 24px; }
	.ap-band__actions, .ap-band__actions .ap-btn { width: 100%; justify-content: center; }
	.ap-collage__tag { inset-inline-end: 8px; padding: 12px 16px; }
	.ap-collage__tag b { font-size: 22px; }
	.ap-brands__row { justify-content: center; text-align: center; }
	.ap-brands__label { max-width: none; }
	.ap-brands__logos { justify-content: center; gap: 28px; }
	.ap-brand { height: 40px; }
	.ap-brand--oemme { font-size: 26px; }
	.ap-scroll { display: none; }
	.ap-hero::after { background: linear-gradient(0deg, rgba(10, 12, 14, .96) 0%, rgba(10, 12, 14, .82) 45%, rgba(10, 12, 14, .35) 80%, rgba(10, 12, 14, .2) 100%); }
	.ap-hero__inner { padding-bottom: 36px; }
}

@media (max-width: 782px) {
	.admin-bar .ap-header { top: 46px; }
}

/* ==========================================================================
   Blog
   ========================================================================== */

/* Filter chips as links (same look as the pattern filter buttons). */
.ap-blog-filter a {
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	padding: 9px 18px;
	border-radius: 999px;
	border: 1.5px solid var(--ap-line);
	background: #fff;
	color: var(--ap-ink);
	cursor: pointer;
	transition: all .2s;
}
.ap-blog-filter a:hover { border-color: var(--ap-ink); color: var(--ap-ink); }
.ap-blog-filter a.is-active { background: var(--ap-ink); border-color: var(--ap-ink); color: #fff; }

/* Post grid */
.ap-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ap-post {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
	overflow: hidden;
	transition: transform .35s var(--ap-ease), box-shadow .35s, border-color .35s;
}
.ap-post:hover { transform: translateY(-6px); box-shadow: var(--ap-shadow); border-color: transparent; }
.ap-post__img { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--ap-ink-2); overflow: hidden; }
.ap-post__img > img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ap-ease); }
.ap-post:hover .ap-post__img > img { transform: scale(1.06); }
.ap-post__ph {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: radial-gradient(circle at 70% 20%, rgba(18, 169, 78, .35), transparent 55%), linear-gradient(135deg, var(--ap-ink-2), var(--ap-ink-3));
}
.ap-post__ph img { width: 46%; height: auto; opacity: .22; object-fit: contain; }
.ap-post__cat {
	position: absolute;
	top: 16px;
	inset-inline-start: 16px;
	font-size: 12px;
	font-weight: 700;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--ap-ink);
	color: #fff;
}
.ap-post__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ap-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ap-muted); }
.ap-post__title { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.55; }
.ap-post__title a:hover { color: var(--ap-green); }
.ap-post__excerpt { margin: 0; color: var(--ap-muted); font-size: 15px; line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ap-post .ap-link { margin-top: auto; padding-top: 12px; }

/* Featured (first) post on the first page */
.ap-post--featured { grid-column: 1 / -1; flex-direction: row; }
.ap-post--featured .ap-post__img { flex: 1.15; aspect-ratio: auto; min-height: 340px; }
.ap-post--featured .ap-post__body { flex: 1; justify-content: center; padding: clamp(28px, 4vw, 52px); gap: 14px; }
.ap-post--featured .ap-post__title { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.45; }
.ap-post--featured .ap-post__excerpt { -webkit-line-clamp: 4; font-size: 16px; }
.ap-post--featured .ap-post__cat { background: var(--ap-green); }

/* Pagination */
.ap-pager { margin-top: 52px; }
.ap-pager .nav-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; }
.ap-pager .page-numbers {
	min-width: 46px;
	height: 46px;
	padding-inline: 14px;
	display: inline-grid;
	place-items: center;
	border-radius: 14px;
	border: 1.5px solid var(--ap-line);
	background: #fff;
	font-weight: 700;
	color: var(--ap-ink);
	transition: all .2s;
}
.ap-pager a.page-numbers:hover { border-color: var(--ap-green); color: var(--ap-green); }
.ap-pager .page-numbers.current { background: var(--ap-ink); border-color: var(--ap-ink); color: #fff; }
.ap-pager .page-numbers.dots { border: 0; background: none; }
.ap-pager .page-numbers svg { width: 20px; height: 20px; }

/* Empty state */
.ap-empty { max-width: 560px; margin: 0 auto; text-align: center; padding-block: 40px; }
.ap-empty h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin: 0 0 12px; }
.ap-empty p { color: var(--ap-muted); margin: 0 0 28px; }

/* Single post */
.ap-phero--post { padding-bottom: clamp(48px, 6vw, 80px); }
.ap-phero--post h1 { max-width: 880px; font-size: clamp(28px, 4vw, 48px); }
.ap-post__meta--hero { color: rgba(255, 255, 255, .7); font-size: 15px; }
.ap-article { max-width: 780px; margin-inline: auto; }

.ap-prose { font-size: 18px; line-height: 2.1; color: #2a3036; overflow-wrap: anywhere; }
.ap-prose > *:first-child { margin-top: 0; }
.ap-prose p { margin: 0 0 1.4em; }
.ap-prose h2, .ap-prose h3, .ap-prose h4 { color: var(--ap-ink); font-weight: 800; line-height: 1.5; margin: 2em 0 .7em; }
.ap-prose h2 { font-size: clamp(24px, 2.6vw, 30px); position: relative; padding-inline-start: 18px; }
.ap-prose h2::before { content: ""; position: absolute; inset-inline-start: 0; top: .35em; bottom: .35em; width: 5px; border-radius: 4px; background: linear-gradient(180deg, var(--ap-red) 0 45%, transparent 45% 55%, var(--ap-green) 55%); }
.ap-prose h3 { font-size: clamp(20px, 2.1vw, 24px); }
.ap-prose h4 { font-size: 19px; }
.ap-prose a { color: var(--ap-green); font-weight: 600; border-bottom: 1px solid rgba(11, 138, 62, .3); }
.ap-prose a:hover { color: var(--ap-green-2); border-bottom-color: currentColor; }
.ap-prose ul, .ap-prose ol { margin: 0 0 1.4em; padding-inline-start: 1.6em; }
.ap-prose li { margin-bottom: .5em; }
.ap-prose li::marker { color: var(--ap-green); font-weight: 700; }
.ap-prose img, .ap-prose figure img { border-radius: 16px; height: auto; }
.ap-prose figure { margin: 2em 0; }
.ap-prose figcaption { margin-top: 10px; font-size: 14px; color: var(--ap-muted); text-align: center; }
.ap-prose blockquote {
	margin: 2em 0;
	padding: 24px 28px;
	border-radius: 0 var(--ap-radius-sm) var(--ap-radius-sm) 0;
	border-inline-start: 4px solid var(--ap-green);
	background: var(--ap-paper);
	font-size: 19px;
	font-weight: 600;
	color: var(--ap-ink);
}
.ap-prose blockquote p:last-child { margin-bottom: 0; }
.ap-prose table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: 16px; display: block; overflow-x: auto; }
.ap-prose th, .ap-prose td { padding: 12px 16px; border: 1px solid var(--ap-line); text-align: start; }
.ap-prose th { background: var(--ap-paper); font-weight: 700; }
.ap-prose hr { border: 0; height: 1px; background: var(--ap-line); margin: 3em 0; }
.ap-prose iframe, .ap-prose video { max-width: 100%; border-radius: 16px; }
.ap-prose code { direction: ltr; unicode-bidi: embed; background: var(--ap-paper); padding: 2px 8px; border-radius: 6px; font-size: .9em; }
.ap-prose .alignwide, .ap-prose .alignfull { max-width: 100%; }

.ap-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--ap-line); }
.ap-tags a { font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--ap-paper); color: var(--ap-muted); transition: all .2s; }
.ap-tags a:hover { background: var(--ap-green); color: #fff; }

.ap-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.ap-postnav__item { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; border-radius: var(--ap-radius-sm); border: 1px solid var(--ap-line); background: #fff; transition: border-color .2s, box-shadow .2s, transform .25s var(--ap-ease); }
.ap-postnav__item:hover { border-color: var(--ap-green); box-shadow: var(--ap-shadow); transform: translateY(-3px); }
.ap-postnav__item small { color: var(--ap-green); font-weight: 700; font-size: 13px; }
.ap-postnav__item b { font-size: 16px; line-height: 1.6; }
.ap-postnav__item--prev { grid-column: 2; }
.ap-postnav__item:only-child { grid-column: 1 / -1; }

@media (max-width: 960px) {
	.ap-posts { grid-template-columns: 1fr 1fr; }
	.ap-post--featured { flex-direction: column; }
	.ap-post--featured .ap-post__img { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
	.ap-posts { grid-template-columns: 1fr; gap: 20px; }
	.ap-prose { font-size: 17px; line-height: 2; }
	.ap-postnav { grid-template-columns: 1fr; }
	.ap-postnav__item--prev { grid-column: 1; }
}
