/* ==========================================================================
   Arif Premium Portfolio — main stylesheet
   Dark + light editorial design. All colours are CSS variables (set in
   Dashboard → Arif Portfolio → Website Settings); never hard-code colours here.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
	--apm-bg: #F4F6FA;
	--apm-surface: #FFFFFF;
	--apm-text: #0B1220;
	--apm-muted: #566178;
	--apm-accent: #1F5BFF;
	--apm-on-accent: #FFFFFF;
	--apm-line: color-mix(in srgb, var(--apm-text) 13%, transparent);
	--apm-soft: color-mix(in srgb, var(--apm-text) 5%, transparent);
	--apm-accent-soft: color-mix(in srgb, var(--apm-accent) 14%, transparent);
	--apm-ok: #19b36b;
	--apm-danger: #e5484d;
	--apm-radius: 4px;
	--apm-radius-lg: 10px;
	--apm-font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
	--apm-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--apm-font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
	--apm-container: 1240px;
	--apm-gutter: clamp(20px, 4vw, 48px);
	--apm-section-y: clamp(72px, 11vw, 148px);
	--apm-header-h: 72px;
	--apm-ease: cubic-bezier(.22, .8, .2, 1);
	color-scheme: light;
}
:root[data-theme="dark"] {
	--apm-bg: #070B14;
	--apm-surface: #0F1626;
	--apm-text: #EAEFF9;
	--apm-muted: #8E9AB4;
	--apm-accent: #4C8DFF;
	--apm-on-accent: #04101f;
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		--apm-bg: #070B14; --apm-surface: #0F1626; --apm-text: #EAEFF9; --apm-muted: #8E9AB4; --apm-accent: #4C8DFF; --apm-on-accent: #04101f;
		color-scheme: dark;
	}
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--apm-header-h) + 12px); }
html.apm-theming *, html.apm-theming *::before, html.apm-theming *::after {
	transition: background-color .5s var(--apm-ease), color .5s var(--apm-ease), border-color .5s var(--apm-ease), fill .5s, stroke .5s !important;
}
body {
	margin: 0;
	background: var(--apm-bg);
	color: var(--apm-text);
	font-family: var(--apm-font-body);
	font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video, picture { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--apm-accent); }
:focus-visible { outline: 2px solid var(--apm-accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--apm-accent); color: var(--apm-on-accent); }
h1, h2, h3, h4, h5, h6 { font-family: var(--apm-font-display); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 .5em; color: var(--apm-text); text-wrap: balance; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.skip-link:focus { position: fixed !important; left: 16px; top: 16px; width: auto; height: auto; clip-path: none; margin: 0; padding: 12px 18px; background: var(--apm-accent); color: var(--apm-on-accent); z-index: 1000; border-radius: var(--apm-radius); }
.apm-main { display: block; outline: none; }
.apm-container { width: min(100% - 2 * var(--apm-gutter), var(--apm-container)); margin-inline: auto; }
.apm-narrow { max-width: 820px; }
.apm-center { text-align: center; margin-top: clamp(32px, 5vw, 56px); }
.apm-icon { flex: none; }
.apm-icon.is-flip { transform: scaleX(-1); }

/* ---------- 3. Type helpers ---------- */
.apm-eyebrow { display: flex; align-items: center; gap: .9em; font-family: var(--apm-font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--apm-muted); margin: 0 0 1.4rem; }
.apm-eyebrow__num { color: var(--apm-accent); }
.apm-eyebrow__num::before { content: "("; } .apm-eyebrow__num::after { content: ")"; }
.apm-eyebrow--center { justify-content: center; }
.apm-title { font-size: clamp(2.2rem, 1.2rem + 4.6vw, 4.6rem); line-height: 1.03; letter-spacing: -.035em; margin: 0 0 .4em; }
.apm-title em, .apm-cta__title em, .apm-pagehero__title em { font-style: italic; color: var(--apm-accent); font-weight: 400; }
.apm-h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); letter-spacing: -.015em; margin-bottom: .6em; }
.apm-intro { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--apm-muted); max-width: 56ch; line-height: 1.6; }
.apm-section { padding-block: var(--apm-section-y); position: relative; }
.apm-head { max-width: 860px; margin-bottom: clamp(36px, 6vw, 72px); }
.apm-prose { color: color-mix(in srgb, var(--apm-text) 86%, var(--apm-muted)); }
.apm-prose > :last-child { margin-bottom: 0; }
.apm-prose h2, .apm-prose h3, .apm-prose h4 { margin-top: 1.6em; }
.apm-prose a { color: var(--apm-accent); }
.apm-prose img { border-radius: var(--apm-radius-lg); }
.apm-prose blockquote { margin: 1.6em 0; padding: .2em 0 .2em 1.4em; border-left: 2px solid var(--apm-accent); font-family: var(--apm-font-display); font-size: 1.25em; }
.apm-prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1.1em; } .apm-prose ol { list-style: decimal; padding-left: 1.3em; margin-bottom: 1.1em; }
.apm-prose pre, .apm-prose code { font-family: var(--apm-font-mono); font-size: .9em; background: var(--apm-soft); border-radius: var(--apm-radius); }
.apm-prose code { padding: .1em .35em; } .apm-prose pre { padding: 1em; overflow: auto; }
.apm-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; } .apm-prose td, .apm-prose th { border: 1px solid var(--apm-line); padding: .6em .8em; }
.alignwide { width: min(100vw - 2 * var(--apm-gutter), 1100px); margin-inline: calc(50% - min(50vw - var(--apm-gutter), 550px)); }
.alignleft { float: left; margin: 0 1.5em 1em 0; } .alignright { float: right; margin: 0 0 1em 1.5em; } .aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--apm-muted); }

/* ---------- 4. Buttons & small UI ---------- */
.apm-btn { position: relative; display: inline-flex; align-items: center; gap: .7em; padding: .95em 1.5em; border: 1px solid transparent; border-radius: var(--apm-radius); font-weight: 600; font-size: .95rem; letter-spacing: .01em; text-decoration: none; line-height: 1; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform .4s var(--apm-ease), box-shadow .4s var(--apm-ease), color .3s, border-color .3s; }
.apm-btn .apm-icon { transition: transform .4s var(--apm-ease); }
.apm-btn:hover .apm-icon { transform: translateX(4px); }
.apm-btn--primary { background: var(--apm-accent); color: var(--apm-on-accent); }
.apm-btn--primary::before { content: ""; position: absolute; inset: 0; background: var(--apm-text); transform: translateY(101%); transition: transform .5s var(--apm-ease); z-index: -1; }
.apm-btn--primary:hover { color: var(--apm-bg); } .apm-btn--primary:hover::before { transform: none; }
.apm-btn--ghost { border-color: var(--apm-line); color: var(--apm-text); background: transparent; }
.apm-btn--ghost:hover { border-color: var(--apm-accent); color: var(--apm-accent); }
.apm-btn--text { padding: .4em 0; border-radius: 0; color: var(--apm-accent); border-bottom: 1px solid currentColor; }
.apm-btn--sm { padding: .75em 1.1em; font-size: .85rem; }
.apm-btn--lg { padding: 1.15em 1.9em; font-size: 1.02rem; }
.apm-iconbtn { width: 48px; height: 48px; display: inline-grid; place-items: center; border: 1px solid var(--apm-line); background: transparent; border-radius: 50%; transition: background .3s, color .3s, border-color .3s; }
.apm-iconbtn:hover { background: var(--apm-accent); border-color: var(--apm-accent); color: var(--apm-on-accent); }
.apm-glass { background: color-mix(in srgb, var(--apm-surface) 66%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--apm-line); }
.apm-badge { display: inline-block; font-family: var(--apm-font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; background: var(--apm-accent); color: var(--apm-on-accent); padding: .45em .8em; border-radius: 2px; }
.apm-status { display: inline-flex; align-items: center; gap: .6em; margin: 0 0 1.6rem; padding: .5em 1em; border: 1px solid var(--apm-line); border-radius: 999px; font-size: .82rem; color: var(--apm-muted); background: var(--apm-soft); }
.apm-status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--apm-ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--apm-ok) 60%, transparent); animation: apm-pulse 2.2s infinite; }
@keyframes apm-pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.apm-checks li { display: flex; gap: .7em; align-items: flex-start; padding: .35em 0; }
.apm-checks .apm-icon { margin-top: .32em; color: var(--apm-accent); }
.apm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 1em; }
.apm-tags li { font-family: var(--apm-font-mono); font-size: .7rem; letter-spacing: .04em; padding: .35em .7em; border: 1px solid var(--apm-line); border-radius: 999px; color: var(--apm-muted); }
.apm-tags--lg li { font-size: .82rem; padding: .5em 1em; }
.apm-mono { display: inline-grid; place-items: center; width: 100%; height: 100%; font-family: var(--apm-font-mono); font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--apm-accent); }
.apm-empty-hint { margin: 16px auto; width: min(100% - 40px, 800px); padding: 12px 16px; border: 1px dashed var(--apm-accent); color: var(--apm-muted); font-size: .85rem; border-radius: var(--apm-radius); }
.apm-no-plugin .apm-main::before { content: "Activate the Arif Portfolio Manager plugin."; display: block; padding: 2rem; text-align: center; }

/* ---------- 5. Header ---------- */
.apm-header { position: sticky; top: 0; z-index: 90; height: var(--apm-header-h); transition: transform .5s var(--apm-ease), background-color .4s, border-color .4s; border-bottom: 1px solid transparent; background: color-mix(in srgb, var(--apm-bg) 55%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); }
.apm-header.is-scrolled { border-bottom-color: var(--apm-line); background: color-mix(in srgb, var(--apm-bg) 82%, transparent); }
.apm-header.is-hidden { transform: translateY(-101%); }
.apm-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.apm-header__brand { display: inline-flex; align-items: center; text-decoration: none; }
.apm-header__text { font-family: var(--apm-font-display); font-size: 1.3rem; }
.apm-logo { display: inline-flex; }
.apm-logo__img { height: 36px; width: auto; max-width: 180px; object-fit: contain; }
.apm-logo--footer .apm-logo__img { height: 46px; max-width: 240px; }
.apm-logo--badge .apm-logo__img { height: 34px; }
.apm-logo--pair .apm-logo__img--dark { display: none; }
:root[data-theme="dark"] .apm-logo--pair .apm-logo__img--dark { display: block; }
:root[data-theme="dark"] .apm-logo--pair .apm-logo__img--light { display: none; }
:root[data-theme="dark"] .apm-logo--invert-dark .apm-logo__img { filter: invert(1) hue-rotate(180deg); }
:root[data-theme="light"] .apm-logo--invert-light .apm-logo__img { filter: invert(1) hue-rotate(180deg); }
.apm-nav { display: flex; align-items: center; }
.apm-nav__list { display: flex; gap: clamp(14px, 2.2vw, 34px); align-items: center; }
.apm-nav__list a { position: relative; display: inline-block; padding: .4em 0; font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--apm-text); }
.apm-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--apm-accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--apm-ease); }
.apm-nav__list a:hover::after, .apm-nav__list .current-menu-item > a::after, .apm-nav__list .current_page_item > a::after { transform: scaleX(1); transform-origin: left; }
.apm-nav__list .current-menu-item > a, .apm-nav__list .current_page_item > a { color: var(--apm-accent); }
.apm-nav__list .sub-menu { display: none; }
.apm-nav__cta { display: none; }
.apm-header__tools { display: flex; align-items: center; gap: 10px; }
.apm-theme-toggle { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--apm-line); background: transparent; border-radius: 50%; position: relative; overflow: hidden; transition: border-color .3s, color .3s; }
.apm-theme-toggle:hover { border-color: var(--apm-accent); color: var(--apm-accent); }
.apm-theme-toggle span { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .6s var(--apm-ease), opacity .4s; }
.apm-theme-toggle__moon { transform: translateY(120%) rotate(40deg); opacity: 0; }
:root[data-theme="dark"] .apm-theme-toggle__sun { transform: translateY(-120%) rotate(-40deg); opacity: 0; }
:root[data-theme="dark"] .apm-theme-toggle__moon { transform: none; opacity: 1; }
.apm-burger { display: none; width: 42px; height: 42px; border: 1px solid var(--apm-line); background: transparent; border-radius: 50%; position: relative; }
.apm-burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .45s var(--apm-ease); }
.apm-burger span:nth-child(1) { top: 17px; } .apm-burger span:nth-child(2) { top: 24px; }
body.apm-nav-open .apm-burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
body.apm-nav-open .apm-burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.apm-hero, .apm-pagehero { position: relative; overflow: hidden; isolation: isolate; }
.apm-hero { min-height: calc(100svh - var(--apm-header-h)); display: flex; flex-direction: column; justify-content: space-between; padding-top: clamp(32px, 6vw, 72px); }
.apm-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.apm-hero__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--apm-line) 1px, transparent 1px), linear-gradient(90deg, var(--apm-line) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%); opacity: .6; }
.apm-hero__orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; background: radial-gradient(circle, var(--apm-accent), transparent 70%); animation: apm-float 14s ease-in-out infinite alternate; }
.apm-hero__orb--1 { width: min(560px, 70vw); aspect-ratio: 1; right: -8%; top: -10%; }
.apm-hero__orb--2 { width: min(380px, 50vw); aspect-ratio: 1; left: -6%; bottom: 8%; opacity: .28; animation-duration: 18s; animation-direction: alternate-reverse; }
@keyframes apm-float { to { translate: 3% 6%; scale: 1.12; } }
.apm-hero__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(24px, 4vw, 56px); }
.apm-hero__greeting { font-family: var(--apm-font-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--apm-muted); margin: 0 0 .6rem; }
.apm-hero__title { font-size: clamp(3.1rem, 1rem + 9.6vw, 9.2rem); line-height: .9; letter-spacing: -.05em; margin: 0 0 .22em; font-weight: 400; }
.apm-hero__line { display: block; }
.apm-hero__line--accent { font-style: italic; color: var(--apm-accent); padding-left: .6em; }
.apm-hero__role { font-size: clamp(1.15rem, 1rem + 1vw, 1.8rem); font-family: var(--apm-font-display); margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4em; align-items: baseline; }
.apm-rotator { font-style: italic; color: var(--apm-accent); position: relative; display: inline-block; }
.apm-rotator.is-out { opacity: 0; transform: translateY(-.4em); } .apm-rotator { transition: opacity .35s, transform .35s var(--apm-ease); }
.apm-hero__intro { max-width: 52ch; color: var(--apm-muted); font-size: clamp(1rem, .95rem + .3vw, 1.18rem); }
.apm-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 2rem 0 1.8rem; }
.apm-social { display: flex; flex-wrap: wrap; gap: 8px; }
.apm-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--apm-line); border-radius: 50%; color: var(--apm-muted); transition: color .3s, border-color .3s, background .3s, transform .4s var(--apm-ease); }
.apm-social a:hover { color: var(--apm-on-accent); background: var(--apm-accent); border-color: var(--apm-accent); transform: translateY(-3px); }
.apm-hero__media { position: relative; justify-self: end; width: min(100%, 460px); }
.apm-hero__frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--apm-radius); background: var(--apm-surface); }
.apm-hero__frame::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--apm-accent); translate: 18px 18px; border-radius: var(--apm-radius); z-index: -1; }
.apm-hero__photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: var(--apm-radius); }
.apm-hero__frame picture { height: 100%; overflow: hidden; border-radius: var(--apm-radius); }
.apm-hero__badge { position: absolute; left: -22px; bottom: 36px; padding: 12px 16px; border-radius: var(--apm-radius); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35); }
.apm-hero__chip { position: absolute; padding: .55em 1em; font-size: .78rem; font-weight: 500; border-radius: 999px; display: inline-flex; gap: .5em; align-items: center; white-space: nowrap; max-width: 90%; }
.apm-hero__chip--a { top: 26px; right: -20px; } .apm-hero__chip--b { bottom: 26px; right: -8px; }
.apm-marquee { border-block: 1px solid var(--apm-line); overflow: hidden; padding: 1em 0; background: color-mix(in srgb, var(--apm-surface) 40%, transparent); }
.apm-marquee__track { display: flex; width: max-content; animation: apm-marquee 46s linear infinite; }
.apm-marquee:hover .apm-marquee__track { animation-play-state: paused; }
.apm-marquee ul { display: flex; flex: none; }
.apm-marquee li { font-family: var(--apm-font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--apm-muted); padding-inline: 1.6em; white-space: nowrap; }
.apm-marquee li::after { content: "/"; margin-left: 3.2em; color: var(--apm-accent); }
@keyframes apm-marquee { to { transform: translateX(-50%); } }

/* ---------- 7. About ---------- */
.apm-about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.apm-about__media { position: sticky; top: calc(var(--apm-header-h) + 24px); }
.apm-about__frame { aspect-ratio: 4 / 5; border-radius: var(--apm-radius); overflow: hidden; background: var(--apm-surface); }
.apm-about__frame picture, .apm-about__photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.apm-about__cap { font-family: var(--apm-font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--apm-muted); margin: 14px 0 0; }
.apm-about__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); margin: 2.4rem 0; padding-top: 2rem; border-top: 1px solid var(--apm-line); }
.apm-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 2rem; border-top: 1px solid var(--apm-line); }
.apm-facts > div { padding: 14px 0; border-bottom: 1px solid var(--apm-line); }
.apm-facts dt { font-family: var(--apm-font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--apm-muted); }
.apm-facts dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.apm-facts a { text-decoration: none; }

/* ---------- 8. Counters ---------- */
.apm-section--achievements { padding-block: clamp(48px, 8vw, 100px); border-block: 1px solid var(--apm-line); background: color-mix(in srgb, var(--apm-surface) 45%, transparent); }
.apm-counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.apm-counter { padding: 8px clamp(16px, 3vw, 40px); border-left: 1px solid var(--apm-line); display: flex; flex-direction: column; gap: .4em; }
.apm-counter:first-child { border-left: 0; padding-left: 0; }
.apm-counter__num { font-family: var(--apm-font-display); font-size: clamp(3rem, 1.5rem + 5vw, 6rem); line-height: 1; letter-spacing: -.04em; }
.apm-counter__suffix { color: var(--apm-accent); }
.apm-counter__label { font-family: var(--apm-font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--apm-muted); }

/* ---------- 9. Services (premium card grid) ---------- */
.apm-services { display: grid; grid-template-columns: repeat(var(--apm-svc-cols, 3), minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.apm-service-card {
	position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; isolation: isolate; overflow: hidden;
	padding: clamp(22px, 2.4vw, 32px);
	border: 1px solid var(--apm-line); border-radius: var(--apm-radius-lg);
	background: color-mix(in srgb, var(--apm-surface) 88%, transparent);
	transition: transform .55s var(--apm-ease), border-color .35s, box-shadow .55s var(--apm-ease);
}
.apm-service-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), var(--apm-accent-soft), transparent 62%); }
.apm-service-card::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--apm-accent); transition: width .6s var(--apm-ease); }
.apm-service-card:hover, .apm-service-card:focus-within { transform: translateY(-6px); border-color: color-mix(in srgb, var(--apm-accent) 55%, var(--apm-line)); box-shadow: 0 30px 46px -30px color-mix(in srgb, var(--apm-accent) 55%, transparent); }
.apm-service-card:hover::before, .apm-service-card:focus-within::before { opacity: 1; }
.apm-service-card:hover::after, .apm-service-card:focus-within::after { width: 100%; }
.apm-service-card__media { margin: calc(-1 * clamp(22px, 2.4vw, 32px)) calc(-1 * clamp(22px, 2.4vw, 32px)) 4px; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--apm-line); }
.apm-service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--apm-ease); }
.apm-service-card:hover .apm-service-card__media img { transform: scale(1.06); }
.apm-service-card__top { display: flex; align-items: flex-start; justify-content: space-between; }
.apm-service-card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; color: var(--apm-accent); background: var(--apm-accent-soft); border: 1px solid color-mix(in srgb, var(--apm-accent) 28%, transparent); transition: background .4s, color .4s, transform .6s var(--apm-ease); }
.apm-service-card:hover .apm-service-card__icon, .apm-service-card:focus-within .apm-service-card__icon { background: var(--apm-accent); color: var(--apm-on-accent); transform: rotate(-6deg) scale(1.06); }
.apm-service-card__num { font-family: var(--apm-font-mono); font-size: .75rem; letter-spacing: .1em; color: var(--apm-muted); }
.apm-service-card__title { margin: 4px 0 0; font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); line-height: 1.2; letter-spacing: -.02em; }
.apm-service-card__link { text-decoration: none; }
.apm-service-card__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.apm-service-card__desc { margin: 0; color: var(--apm-muted); font-size: .93rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.apm-service-card__list { display: grid; gap: 7px; margin: 2px 0 0; font-size: .85rem; color: color-mix(in srgb, var(--apm-text) 80%, var(--apm-muted)); }
.apm-service-card__list li { display: flex; gap: .6em; align-items: flex-start; } .apm-service-card__list .apm-icon { margin-top: .28em; color: var(--apm-accent); }
.apm-service-card__more { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--apm-line); font-size: .85rem; font-weight: 600; transition: color .3s; }
.apm-service-card:hover .apm-service-card__more { color: var(--apm-accent); }
.apm-service-card__more .apm-icon { transition: transform .45s var(--apm-ease); } .apm-service-card:hover .apm-service-card__more .apm-icon { transform: translateX(6px); }

/* ---------- 10. Projects ---------- */
.apm-section--projects .apm-head { margin-bottom: clamp(24px, 3.5vw, 44px); }
.apm-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(20px, 3vw, 32px); }
.apm-filter { padding: .5em 1.05em; border: 1px solid var(--apm-line); background: transparent; border-radius: 999px; font-size: .82rem; font-weight: 500; transition: background .3s, color .3s, border-color .3s; }
.apm-filter:hover { border-color: var(--apm-accent); color: var(--apm-accent); }
.apm-filter.is-active { background: var(--apm-text); color: var(--apm-bg); border-color: var(--apm-text); }

/* Equal-column responsive grid. Column counts, ratio, radius, gap and height arrive as CSS variables
   (inline on .apm-projects) from Dashboard → Website Settings → Portfolio grid or the Elementor widget. */
.apm-projects {
	display: grid;
	grid-template-columns: repeat(var(--apm-pcols-xs, 1), minmax(0, 1fr));
	gap: var(--apm-pgap, 24px);
	align-items: stretch;
}
@media (min-width: 768px)  { .apm-projects { grid-template-columns: repeat(var(--apm-pcols-sm, 2), minmax(0, 1fr)); grid-auto-rows: 1fr; } }
@media (min-width: 1024px) { .apm-projects { grid-template-columns: repeat(var(--apm-pcols-md, 3), minmax(0, 1fr)); } }
@media (min-width: 1200px) { .apm-projects { grid-template-columns: repeat(var(--apm-pcols-lg, 3), minmax(0, 1fr)); } }
@media (min-width: 1600px) {
	.apm-projects { grid-template-columns: repeat(var(--apm-pcols-xl, 4), minmax(0, 1fr)); }
	.apm-section--projects > .apm-container { width: min(100% - 2 * var(--apm-gutter), 1480px); }
}
.apm-project {
	position: relative; display: flex; flex-direction: column; min-width: 0; padding: 8px;
	background: color-mix(in srgb, var(--apm-surface) 90%, transparent);
	border: 1px solid var(--apm-line);
	border-radius: calc(var(--apm-pradius, 8px) + 8px);
	box-shadow: 0 1px 2px color-mix(in srgb, #000 8%, transparent), 0 14px 28px -20px color-mix(in srgb, #000 55%, transparent);
	transition: opacity .45s var(--apm-ease), transform .5s var(--apm-ease), border-color .35s, box-shadow .5s var(--apm-ease);
}
.apm-project:hover, .apm-project:focus-within { transform: translateY(-4px); border-color: color-mix(in srgb, var(--apm-accent) 60%, var(--apm-line)); box-shadow: 0 1px 2px color-mix(in srgb, #000 8%, transparent), 0 26px 40px -22px color-mix(in srgb, var(--apm-accent) 45%, transparent); }
.apm-project.is-hiding, .apm-project.is-showing { opacity: 0; transform: scale(.96) translateY(10px); }
.apm-project[hidden] { display: none; }
.apm-project__media {
	position: relative; flex: none; margin: 0; overflow: hidden;
	aspect-ratio: var(--apm-pratio, 4 / 3);
	height: var(--apm-pimg-h, auto);
	border-radius: var(--apm-pradius, 8px);
	border: 1px solid var(--apm-line);
	background: var(--apm-surface);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 4%, transparent);
}
.apm-project__media > .apm-project__img, .apm-project__media > .apm-ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.apm-project__img { object-fit: cover; object-position: top center; transition: transform .9s var(--apm-ease); }
.apm-project:hover .apm-project__img, .apm-project:focus-within .apm-project__img { transform: scale(1.07); }
.apm-project__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, color-mix(in srgb, var(--apm-bg) 55%, transparent), transparent 45%); opacity: 0; transition: opacity .5s; }
.apm-project:hover .apm-project__media::after { opacity: 1; }
.apm-project .apm-badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: .62rem; padding: .4em .7em; }
.apm-project__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 14px 8px 8px; min-width: 0; }
.apm-project__cat { margin: 0; font-family: var(--apm-font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--apm-accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apm-project__title { margin: 0; font-size: clamp(1.1rem, .95rem + .45vw, 1.35rem); line-height: 1.2; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.apm-project__link { text-decoration: none; }
.apm-project__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.apm-project__desc { margin: 0; color: var(--apm-muted); font-size: .88rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.apm-project .apm-tags { margin: 2px 0 0; gap: 5px; }
.apm-project .apm-tags li { font-size: .66rem; padding: .3em .65em; }
.apm-project .apm-tags .apm-tags__more { color: var(--apm-accent); border-color: var(--apm-accent-soft); }
.apm-project__actions { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--apm-line); }
.apm-project__live, .apm-project__details { position: relative; z-index: 3; display: inline-flex; align-items: center; gap: .4em; font-size: .8rem; font-weight: 600; text-decoration: none; transition: color .3s, gap .4s var(--apm-ease); }
.apm-project__live { color: var(--apm-muted); }
.apm-project__live:hover { color: var(--apm-accent); }
.apm-project__details { color: var(--apm-text); margin-left: auto; }
.apm-project__details:hover { color: var(--apm-accent); gap: .7em; }
.apm-projects__empty { text-align: center; color: var(--apm-muted); padding: 48px 0; }
.apm-ph { width: 100%; height: 100%; display: grid; place-content: center; text-align: center; gap: 6px; background: radial-gradient(circle at 20% 15%, var(--apm-accent-soft), transparent 55%), linear-gradient(135deg, var(--apm-surface), var(--apm-bg)); background-size: auto; position: relative; }
.apm-ph::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--apm-line) 1px, transparent 1px), linear-gradient(90deg, var(--apm-line) 1px, transparent 1px); background-size: 36px 36px; opacity: .55; }
.apm-ph__mark { position: relative; font-family: var(--apm-font-display); font-style: italic; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; color: var(--apm-accent); }
.apm-ph__host { position: relative; font-family: var(--apm-font-mono); font-size: .75rem; letter-spacing: .1em; color: var(--apm-muted); }

/* ---------- 11. Split layout, skills, why ---------- */
.apm-split-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.apm-split-layout--sticky .apm-split-layout__head, .apm-split-layout:has(.apm-faq) .apm-split-layout__head { position: sticky; top: calc(var(--apm-header-h) + 32px); }
.apm-split-layout__head .apm-head { margin-bottom: 0; }
.apm-skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.apm-skill { display: grid; grid-template-columns: 40px 1fr auto; grid-template-areas: "i n p" "b b b"; gap: 4px 12px; align-items: center; padding: 14px; border: 1px solid var(--apm-line); border-radius: var(--apm-radius); background: color-mix(in srgb, var(--apm-surface) 70%, transparent); transition: border-color .3s, transform .4s var(--apm-ease); }
.apm-skill:hover { border-color: var(--apm-accent); transform: translateY(-3px); }
.apm-skill__icon { grid-area: i; width: 40px; height: 40px; border-radius: var(--apm-radius); background: var(--apm-accent-soft); overflow: hidden; display: grid; place-items: center; } .apm-skill__icon img { width: 24px; height: 24px; object-fit: contain; }
.apm-skill__name { grid-area: n; font-weight: 600; font-size: .95rem; line-height: 1.25; }
.apm-skill__pct { grid-area: p; font-family: var(--apm-font-mono); font-size: .72rem; color: var(--apm-muted); }
.apm-skill__bar { grid-area: b; height: 3px; background: var(--apm-line); margin-top: 8px; overflow: hidden; border-radius: 2px; }
.apm-skill__bar i { display: block; height: 100%; width: var(--lv); background: var(--apm-accent); transform-origin: left; }
.js .apm-skill__bar i { transform: scaleX(0); transition: transform 1.3s var(--apm-ease) .2s; } .js .apm-skill.is-in .apm-skill__bar i { transform: scaleX(1); }
.apm-why { counter-reset: why; }
.apm-why__item { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: clamp(20px, 2.6vw, 32px) 0; border-top: 1px solid var(--apm-line); }
.apm-why__item:last-child { border-bottom: 1px solid var(--apm-line); }
.apm-why__num { font-family: var(--apm-font-mono); font-size: .78rem; color: var(--apm-accent); padding-top: .6em; }
.apm-why__item h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem); margin-bottom: .25em; letter-spacing: -.02em; }
.apm-why__item p { color: var(--apm-muted); margin: 0; max-width: 52ch; }

/* ---------- 12. Timeline & process ---------- */
/* Journey / experience timeline: centre rail with alternating cards on desktop, single rail on mobile */
.apm-timeline { position: relative; max-width: 1080px; margin-inline: auto; --p: 0%; }
.apm-timeline__rail { position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--apm-line); }
.apm-timeline__progress { position: absolute; left: 0; top: 0; width: 100%; height: var(--p); border-radius: 2px; background: linear-gradient(to bottom, var(--apm-accent), color-mix(in srgb, var(--apm-accent) 35%, transparent)); box-shadow: 0 0 16px color-mix(in srgb, var(--apm-accent) 70%, transparent); transition: height .15s linear; }
.apm-timeline__list { display: grid; gap: clamp(20px, 3vw, 38px); }
.apm-timeline__item { position: relative; padding-left: 54px; }
.apm-timeline__node { position: absolute; left: 2px; top: 30px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--apm-bg); border: 2px solid var(--apm-line); transition: border-color .4s, box-shadow .5s; }
.apm-timeline__node::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--apm-muted); transition: background .4s, transform .4s var(--apm-ease); }
.apm-timeline__item.is-active .apm-timeline__node { border-color: var(--apm-accent); box-shadow: 0 0 0 7px var(--apm-accent-soft); }
.apm-timeline__item.is-active .apm-timeline__node::after { background: var(--apm-accent); transform: scale(1.35); }
.apm-timeline__card { position: relative; padding: clamp(20px, 2.4vw, 30px); border: 1px solid var(--apm-line); border-radius: var(--apm-radius-lg); background: color-mix(in srgb, var(--apm-surface) 86%, transparent); transition: transform .5s var(--apm-ease), border-color .35s, box-shadow .5s var(--apm-ease); }
.apm-timeline__item:hover .apm-timeline__card, .apm-timeline__item.is-active .apm-timeline__card { border-color: color-mix(in srgb, var(--apm-accent) 45%, var(--apm-line)); }
.apm-timeline__item:hover .apm-timeline__card { transform: translateY(-4px); box-shadow: 0 26px 40px -30px color-mix(in srgb, var(--apm-accent) 50%, transparent); }
.apm-timeline__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.apm-pill { display: inline-flex; align-items: center; gap: .55em; padding: .45em .95em; border-radius: 999px; font-family: var(--apm-font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--apm-accent); background: var(--apm-accent-soft); border: 1px solid color-mix(in srgb, var(--apm-accent) 28%, transparent); }
.apm-pill--live { color: var(--apm-ok); background: color-mix(in srgb, var(--apm-ok) 12%, transparent); border-color: color-mix(in srgb, var(--apm-ok) 32%, transparent); }
.apm-pill--live i { width: 7px; height: 7px; border-radius: 50%; background: var(--apm-ok); animation: apm-pulse 2.2s infinite; }
.apm-timeline__idx { margin-left: auto; font-family: var(--apm-font-display); font-style: italic; font-size: 1.9rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--apm-accent) 55%, transparent); }
.apm-timeline__title { margin: 0 0 .3em; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -.02em; }
.apm-timeline__org { display: flex; align-items: center; gap: .55em; margin: 0 0 .9em; color: var(--apm-muted); font-size: .92rem; } .apm-timeline__org .apm-icon { color: var(--apm-accent); }
.apm-timeline__card .apm-prose { font-size: .95rem; color: var(--apm-muted); }
@media (min-width: 900px) {
	.apm-timeline__rail { left: 50%; margin-left: -1px; }
	.apm-timeline__item { width: calc(50% - 46px); padding-left: 0; }
	.apm-timeline__item:nth-child(odd) { margin-right: auto; }
	.apm-timeline__item:nth-child(even) { margin-left: auto; }
	.apm-timeline__node { top: 34px; }
	.apm-timeline__item:nth-child(odd) .apm-timeline__node { left: auto; right: -56px; }
	.apm-timeline__item:nth-child(even) .apm-timeline__node { left: -56px; }
	.apm-timeline__item::before { content: ""; position: absolute; top: 43px; width: 36px; height: 2px; background: var(--apm-line); transition: background .4s; }
	.apm-timeline__item:nth-child(odd)::before { right: -36px; } .apm-timeline__item:nth-child(even)::before { left: -36px; }
	.apm-timeline__item.is-active::before { background: var(--apm-accent); }
}
.apm-process { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; counter-reset: step; }
.apm-step { position: relative; padding: 28px clamp(14px, 2vw, 28px) 12px 0; }
.apm-step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--apm-line); }
.apm-step::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--apm-accent); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--apm-ease) .2s; }
.apm-step.is-in::after { transform: scaleX(1); } .apm-step:not(.js-reveal)::after { transform: scaleX(1); }
.apm-step__num { display: block; font-family: var(--apm-font-display); font-style: italic; font-size: clamp(3rem, 2rem + 3vw, 4.8rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--apm-accent); margin-bottom: .25em; }
.apm-step h3 { font-size: 1.45rem; margin-bottom: .3em; } .apm-step p { color: var(--apm-muted); font-size: .95rem; margin: 0; }

/* ---------- 13. Industries & tools ---------- */
.apm-industries { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--apm-line); border-left: 1px solid var(--apm-line); }
.apm-industry { padding: clamp(22px, 2.6vw, 34px); border-right: 1px solid var(--apm-line); border-bottom: 1px solid var(--apm-line); transition: background .4s, transform .4s var(--apm-ease); position: relative; }
.apm-industry:hover { background: color-mix(in srgb, var(--apm-surface) 80%, transparent); }
.apm-industry__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: var(--apm-radius); background: var(--apm-accent-soft); color: var(--apm-accent); transition: background .4s, color .4s; }
.apm-industry:hover .apm-industry__icon { background: var(--apm-accent); color: var(--apm-on-accent); }
.apm-industry h3 { font-size: 1.35rem; margin-bottom: .3em; } .apm-industry p { color: var(--apm-muted); font-size: .92rem; margin: 0; }
.apm-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.apm-tool { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border: 1px solid var(--apm-line); border-radius: 999px; background: color-mix(in srgb, var(--apm-surface) 70%, transparent); transition: border-color .3s, transform .4s var(--apm-ease); }
.apm-tool:hover { border-color: var(--apm-accent); transform: translateY(-3px); }
.apm-tool__icon { width: 36px; height: 36px; border-radius: 50%; background: var(--apm-accent-soft); display: grid; place-items: center; overflow: hidden; } .apm-tool__icon img { width: 22px; height: 22px; object-fit: contain; }
.apm-tool__name { font-weight: 600; font-size: .92rem; }

/* ---------- 14. Testimonials (infinite auto slider) ---------- */
.apm-tslider { --per: 1; --apm-tgap: 20px; position: relative; }
@media (min-width: 768px) { .apm-tslider { --per: 2; } }
@media (min-width: 1024px) { .apm-tslider { --per: 3; --apm-tgap: 24px; } }
.apm-tslider__viewport { overflow: hidden; padding: 14px 4px 18px; margin-inline: -4px; touch-action: pan-y; cursor: grab; outline-offset: -2px; }
.apm-tslider__viewport:active { cursor: grabbing; }
.apm-tslider__track { display: flex; gap: var(--apm-tgap); will-change: transform; }
.apm-tslider.is-ready .apm-tslider__track { transition: transform .85s var(--apm-ease); }
.apm-tslider.is-static .apm-tslider__track { justify-content: center; }
.apm-quote {
	position: relative; display: flex; flex-direction: column; gap: 18px; margin: 0; overflow: hidden; user-select: none;
	flex: 0 0 calc((100% - (var(--per) - 1) * var(--apm-tgap)) / var(--per));
	padding: clamp(24px, 2.6vw, 34px);
	border: 1px solid var(--apm-line); border-radius: var(--apm-radius-lg);
	background: color-mix(in srgb, var(--apm-surface) 86%, transparent);
	transition: transform .5s var(--apm-ease), border-color .35s, box-shadow .5s var(--apm-ease);
}
.apm-quote::before { content: "\201C"; position: absolute; top: -.12em; right: .3em; font-family: var(--apm-font-display); font-size: 8rem; line-height: 1; color: var(--apm-accent); opacity: .13; pointer-events: none; }
.apm-quote::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 56px; background: var(--apm-accent); transition: width .6s var(--apm-ease); }
.apm-quote:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--apm-accent) 50%, var(--apm-line)); box-shadow: 0 28px 44px -32px color-mix(in srgb, var(--apm-accent) 55%, transparent); }
.apm-quote:hover::after { width: 100%; }
.apm-stars { display: flex; gap: 3px; color: var(--apm-line); } .apm-stars .is-on { color: var(--apm-accent); } .apm-stars .is-on svg { fill: currentColor; }
.apm-quote__text { margin: 0; flex: 1; font-family: var(--apm-font-display); font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); line-height: 1.5; letter-spacing: -.01em; color: color-mix(in srgb, var(--apm-text) 92%, var(--apm-muted)); }
.apm-quote__text p { margin: 0 0 .6em; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; } .apm-quote__text p:last-child { margin: 0; }
.apm-quote__who { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--apm-line); }
.apm-quote__photo { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--apm-accent-soft); }
.apm-quote .apm-mono { width: 50px; height: 50px; flex: none; border-radius: 50%; background: var(--apm-accent-soft); border: 1px solid color-mix(in srgb, var(--apm-accent) 28%, transparent); }
.apm-quote__meta { display: grid; min-width: 0; } .apm-quote__meta strong { font-size: .98rem; } .apm-quote__meta small { color: var(--apm-muted); font-size: .8rem; }
.apm-slider-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; }
.apm-tslider.is-static .apm-slider-nav { display: none; }
.apm-pausebars { position: relative; width: 12px; height: 14px; }
.apm-pausebars::before, .apm-pausebars::after { content: ""; position: absolute; top: 0; width: 4px; height: 14px; background: currentColor; border-radius: 1px; }
.apm-pausebars::before { left: 0; } .apm-pausebars::after { right: 0; }
.apm-tslider__pause[aria-pressed="true"] .apm-pausebars::before { left: 1px; width: 11px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.apm-tslider__pause[aria-pressed="true"] .apm-pausebars::after { display: none; }

/* ---------- 15. Pricing ---------- */
.apm-packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; align-items: stretch; }
.apm-package { position: relative; display: flex; flex-direction: column; gap: 8px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--apm-line); border-radius: var(--apm-radius-lg); background: color-mix(in srgb, var(--apm-surface) 78%, transparent); transition: transform .5s var(--apm-ease), border-color .3s; }
.apm-package:hover { transform: translateY(-6px); border-color: var(--apm-accent); }
.apm-package .apm-badge { position: absolute; top: 18px; right: 18px; }
.apm-package__name { font-size: 1.7rem; margin: 0; } .apm-package__desc { color: var(--apm-muted); font-size: .95rem; margin: 0; }
.apm-package__price { margin: 14px 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--apm-line); }
.apm-package__price strong { font-family: var(--apm-font-display); font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); font-weight: 400; letter-spacing: -.03em; line-height: 1; } .apm-package__price small { color: var(--apm-muted); }
.apm-package .apm-checks { flex: 1; margin-bottom: 22px; font-size: .95rem; }
.apm-package.is-featured { background: var(--apm-text); color: var(--apm-bg); border-color: var(--apm-text); }
.apm-package.is-featured .apm-package__name, .apm-package.is-featured .apm-package__price strong { color: var(--apm-bg); }
.apm-package.is-featured .apm-package__desc, .apm-package.is-featured .apm-package__price small { color: color-mix(in srgb, var(--apm-bg) 70%, transparent); }
.apm-package.is-featured .apm-package__price { border-color: color-mix(in srgb, var(--apm-bg) 22%, transparent); }
.apm-package.is-featured .apm-checks .apm-icon { color: var(--apm-accent); }

/* ---------- 16. FAQ ---------- */
.apm-faq__item { border-top: 1px solid var(--apm-line); } .apm-faq__item:last-child { border-bottom: 1px solid var(--apm-line); }
.apm-faq__q { margin: 0; font-family: inherit; }
.apm-faq__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left; padding: 24px 0; background: transparent; border: 0; font-family: var(--apm-font-display); font-size: clamp(1.15rem, 1rem + .7vw, 1.55rem); letter-spacing: -.015em; line-height: 1.25; transition: color .3s; }
.apm-faq__btn:hover, .apm-faq__btn[aria-expanded="true"] { color: var(--apm-accent); }
.apm-faq__btn .apm-icon { transition: transform .5s var(--apm-ease); } .apm-faq__btn[aria-expanded="true"] .apm-icon { transform: rotate(135deg); }
.js .apm-faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--apm-ease); }
.js .apm-faq__btn[aria-expanded="true"] + .apm-faq__a, .js .apm-faq__q:has(> [aria-expanded="true"]) + .apm-faq__a { grid-template-rows: 1fr; }
.apm-faq__a-inner { min-height: 0; overflow: hidden; color: var(--apm-muted); max-width: 62ch; }
.apm-faq__item .apm-faq__a-inner > :last-child { margin-bottom: 24px; }

/* ---------- 17. Blog ---------- */
.apm-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(18px, 2vw, 28px); }
.apm-post__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--apm-radius); background: var(--apm-surface); border: 1px solid var(--apm-line); }
.apm-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--apm-ease); } .apm-post:hover .apm-post__media img { transform: scale(1.05); }
.apm-post__ph { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 25% 20%, var(--apm-accent-soft), transparent 60%), var(--apm-surface); }
.apm-post__body { padding-top: 16px; } .apm-post__meta { font-family: var(--apm-font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--apm-muted); margin-bottom: .5em; }
.apm-post__title { font-size: 1.5rem; letter-spacing: -.02em; } .apm-post__title a { text-decoration: none; } .apm-post__body p:last-child { color: var(--apm-muted); font-size: .95rem; margin: 0; }
.apm-tags-line a { margin-right: .5em; font-size: .85rem; color: var(--apm-muted); }
.apm-single__thumb { margin: 0 0 2rem; border-radius: var(--apm-radius-lg); overflow: hidden; } .apm-single__body { padding-block: clamp(32px, 5vw, 64px) var(--apm-section-y); }
.apm-postnav { display: flex; justify-content: space-between; gap: 20px; margin: 3rem 0; padding-top: 1.5rem; border-top: 1px solid var(--apm-line); font-size: .9rem; }
.navigation.pagination { margin-top: 3rem; } .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.page-numbers { padding: .55em 1em; border: 1px solid var(--apm-line); border-radius: var(--apm-radius); text-decoration: none; } .page-numbers.current { background: var(--apm-text); color: var(--apm-bg); }
.apm-comments { margin-top: 3rem; } .apm-comments__list { margin-bottom: 2rem; } .apm-comments__list li { padding: 1em 0; border-top: 1px solid var(--apm-line); }
.apm-comments input[type=text], .apm-comments input[type=email], .apm-comments input[type=url], .apm-comments textarea { width: 100%; }

/* ---------- 18. Contact & forms ---------- */
.apm-contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.apm-contact__list { display: grid; gap: 18px; margin: 0 0 2rem; }
.apm-contact__list li { display: flex; gap: 16px; align-items: center; }
.apm-contact__list .apm-icon { padding: 12px; width: 48px; height: 48px; border: 1px solid var(--apm-line); border-radius: var(--apm-radius); color: var(--apm-accent); box-sizing: border-box; }
.apm-contact__list span { display: grid; min-width: 0; overflow-wrap: anywhere; } .apm-contact__list small { font-family: var(--apm-font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--apm-muted); }
.apm-contact__list a { text-decoration: none; font-weight: 500; }
.apm-contact__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 2rem; }
.apm-contact__form { padding: clamp(22px, 3.4vw, 44px); border: 1px solid var(--apm-line); border-radius: var(--apm-radius-lg); background: color-mix(in srgb, var(--apm-surface) 80%, transparent); }
.apm-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; position: relative; }
.apm-field { display: grid; gap: 6px; align-content: start; min-width: 0; } .apm-field--wide { grid-column: 1 / -1; }
.apm-field label { font-size: .82rem; font-weight: 600; } .apm-field label span { color: var(--apm-accent); }
.apm-field input, .apm-field select, .apm-field textarea, .apm-comments input, .apm-comments textarea, .search-field { width: 100%; font: inherit; color: var(--apm-text); background: var(--apm-bg); border: 1px solid var(--apm-line); border-radius: var(--apm-radius); padding: .85em 1em; transition: border-color .3s, box-shadow .3s; }
.apm-field textarea { resize: vertical; min-height: 140px; }
.apm-field input:focus, .apm-field select:focus, .apm-field textarea:focus { outline: none; border-color: var(--apm-accent); box-shadow: 0 0 0 4px var(--apm-accent-soft); }
.apm-field.is-invalid input, .apm-field.is-invalid select, .apm-field.is-invalid textarea { border-color: var(--apm-danger); }
.apm-field__error { color: var(--apm-danger); font-size: .8rem; margin: 0; min-height: 0; }
.apm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.apm-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.apm-form__status { margin: 0; font-size: .92rem; } .apm-form__status.is-error { color: var(--apm-danger); } .apm-form__status.is-success { color: var(--apm-ok); font-weight: 600; }
.apm-form.is-busy .apm-btn { opacity: .6; pointer-events: none; }

/* ---------- 19. CTA & footer ---------- */
.apm-cta { padding-block: clamp(88px, 14vw, 190px); text-align: center; overflow: hidden; isolation: isolate; border-top: 1px solid var(--apm-line); }
.apm-cta__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 50% 110%, var(--apm-accent-soft), transparent 70%), radial-gradient(ellipse 40% 40% at 85% 10%, var(--apm-accent-soft), transparent 70%); }
.apm-cta__bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--apm-line) 1px, transparent 1px), linear-gradient(90deg, var(--apm-line) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 70%); mask-image: radial-gradient(ellipse at center, #000, transparent 70%); opacity: .5; }
.apm-cta__title { font-size: clamp(2.6rem, 1rem + 7.4vw, 7.4rem); letter-spacing: -.045em; line-height: .96; max-width: 14ch; margin: 0 auto .35em; }
.apm-cta__text { max-width: 52ch; margin: 0 auto 2.2rem; color: var(--apm-muted); font-size: clamp(1.02rem, 1rem + .3vw, 1.2rem); }
.apm-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.apm-footer { border-top: 1px solid var(--apm-line); padding-top: clamp(48px, 7vw, 96px); background: color-mix(in srgb, var(--apm-surface) 55%, transparent); }
.apm-footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.apm-footer__brand p { color: var(--apm-muted); max-width: 38ch; margin: 18px 0 20px; font-size: .95rem; }
.apm-footer__h { font-family: var(--apm-font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--apm-muted); margin-bottom: 1.2rem; }
.apm-footer__list { display: grid; gap: .6em; font-size: .95rem; overflow-wrap: anywhere; } .apm-footer__list a { text-decoration: none; transition: color .3s, padding .4s var(--apm-ease); } .apm-footer__list a:hover { padding-left: 6px; }
.apm-footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: clamp(40px, 6vw, 80px); padding-block: 24px; border-top: 1px solid var(--apm-line); font-size: .85rem; color: var(--apm-muted); }
.apm-footer__bottom p { margin: 0; }
.apm-totop { display: inline-flex; align-items: center; gap: .6em; background: transparent; border: 1px solid var(--apm-line); border-radius: 999px; padding: .6em 1.1em; font-size: .82rem; transition: border-color .3s, color .3s; } .apm-totop:hover { border-color: var(--apm-accent); color: var(--apm-accent); }

/* ---------- 20. Inner pages & case study ---------- */
.apm-pagehero { padding-block: clamp(48px, 8vw, 110px) clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--apm-line); }
.apm-pagehero__title { font-size: clamp(2.8rem, 1rem + 7.2vw, 7rem); letter-spacing: -.045em; line-height: .96; margin: 0 0 .3em; max-width: 16ch; }
.apm-crumbs { display: flex; flex-wrap: wrap; gap: .6em; font-family: var(--apm-font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--apm-muted); margin-bottom: 2rem; } .apm-crumbs a { text-decoration: none; }
.apm-case__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6rem; }
.apm-case__cover { margin: clamp(28px, 5vw, 64px) 0 0; border-radius: var(--apm-radius-lg); overflow: hidden; border: 1px solid var(--apm-line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .45); background: var(--apm-surface); aspect-ratio: 16 / 9; }
.apm-case__cover picture, .apm-case__cover img, .apm-case__cover .apm-ph { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.apm-case__facts { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 2rem; column-gap: 24px; }
.apm-case__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); padding-block: clamp(40px, 6vw, 80px); }
.apm-case__block:first-child { grid-column: 1 / -1; max-width: 780px; }
.apm-case__gallery { padding-bottom: clamp(48px, 7vw, 100px); }
.apm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.apm-gallery__item { display: block; overflow: hidden; border-radius: var(--apm-radius); border: 1px solid var(--apm-line); aspect-ratio: 4 / 3; } .apm-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--apm-ease); } .apm-gallery__item:hover img { transform: scale(1.06); }
.apm-case__related { border-top: 1px solid var(--apm-line); }
.apm-lightbox { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: color-mix(in srgb, var(--apm-bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s; }
.apm-lightbox.is-open { opacity: 1; } .apm-lightbox img { max-width: min(92vw, 1400px); max-height: 86vh; border-radius: var(--apm-radius); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
.apm-lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--apm-line); background: var(--apm-surface); font-size: 1.4rem; line-height: 1; } .apm-lightbox__close { top: 20px; right: 20px; } .apm-lightbox__prev { left: 20px; } .apm-lightbox__next { right: 20px; }

/* ---------- 21. Motion ---------- */
/* Reveal uses the independent `translate` property so it never fights hover `transform` effects on the same element. */
.js .js-reveal { opacity: 0; translate: 0 30px; transition: opacity 1s var(--apm-ease) var(--d, 0s), translate 1s var(--apm-ease) var(--d, 0s), transform .5s var(--apm-ease), border-color .35s, box-shadow .5s var(--apm-ease), background-color .3s; }
.js .js-reveal.is-in { opacity: 1; translate: none; }
.js .js-split:not(.is-split) { opacity: 0; }
.js-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.js-split .wi { display: inline-block; transform: translateY(112%); transition: transform 1s var(--apm-ease) calc(var(--i, 0) * 45ms); }
.js-split.is-in .wi { transform: none; }
.apm-fail .js-reveal, .apm-fail .js-split { opacity: 1 !important; transform: none !important; translate: none !important; }
.apm-fail .js-split .wi { transform: none !important; }
.elementor-editor-active .js-reveal, .elementor-editor-active .js-split, .elementor-editor-active .js-split .wi, [class*="apm-noanim-yes"] .js-reveal, [class*="apm-noanim-yes"] .js-split, [class*="apm-noanim-yes"] .js-split .wi { opacity: 1 !important; transform: none !important; translate: none !important; transition: none !important; }
.apm-magnetic { will-change: transform; }
.apm-transition { position: fixed; inset: 0; z-index: 400; background: var(--apm-bg); opacity: 0; pointer-events: none; transition: opacity .38s var(--apm-ease); }
body.is-leaving .apm-transition { opacity: 1; pointer-events: all; }
.apm-main { animation: apm-in .7s var(--apm-ease) both; } @keyframes apm-in { from { opacity: 0; } }
.apm-cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
	html.apm-cursor-on .apm-cursor { display: block; position: fixed; left: 0; top: 0; z-index: 600; pointer-events: none; }
	.apm-cursor__dot, .apm-cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; pointer-events: none; will-change: transform; }
	.apm-cursor:not(.is-ready) { opacity: 0; }
	.apm-cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--apm-accent); }
	.apm-cursor__ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid color-mix(in srgb, var(--apm-accent) 70%, transparent); transition: width .35s var(--apm-ease), height .35s var(--apm-ease), margin .35s var(--apm-ease), background .3s; }
	.apm-cursor.is-hover .apm-cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: var(--apm-accent-soft); }
}

/* ---------- 22. Responsive ---------- */
@media (max-width: 1180px) {
	.apm-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.apm-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 1023px) {
	.apm-services { grid-template-columns: repeat(var(--apm-svc-cols-md, 2), minmax(0, 1fr)); }
	.apm-header__inner { gap: 12px; }
	.apm-burger { display: block; }
	.apm-nav { position: fixed; inset: var(--apm-header-h) 0 0 0; flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px; padding: 32px var(--apm-gutter) 48px; background: var(--apm-bg); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .4s var(--apm-ease), transform .5s var(--apm-ease), visibility 0s .5s; overflow-y: auto; z-index: 80; }
	body.apm-nav-open .apm-nav { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
	body.apm-nav-open { overflow: hidden; }
	.apm-nav__list { flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; }
	.apm-nav__list a { font-family: var(--apm-font-display); font-size: clamp(2rem, 8vw, 3.2rem); letter-spacing: -.03em; padding: .1em 0; }
	.apm-nav__cta { display: inline-flex; }
	.apm-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--apm-bg); }
	.apm-hero__inner { grid-template-columns: 1fr; }
	.apm-hero__media { justify-self: start; width: min(100%, 420px); margin-inline: 8px 0; }
	.apm-about, .apm-split-layout, .apm-contact { grid-template-columns: 1fr; }
	.apm-about__media, .apm-split-layout--sticky .apm-split-layout__head, .apm-split-layout:has(.apm-faq) .apm-split-layout__head { position: static; }
	.apm-about__frame { max-width: 440px; }
}
@media (max-width: 767px) {
	.apm-services { grid-template-columns: 1fr; }
	.apm-header__cta { display: none; }
	.apm-project__desc { -webkit-line-clamp: 2; }
	.apm-project__body { padding-top: 12px; }
	.apm-hero__title { font-size: clamp(2.9rem, 15vw, 5rem); }
	.apm-hero__line--accent { padding-left: .3em; }
	.apm-hero__badge { left: 6px; bottom: 18px; } .apm-hero__chip--a { right: 6px; top: 14px; } .apm-hero__chip--b { right: 6px; bottom: 14px; display: none; }
	.apm-hero__frame::before { translate: 10px 10px; }
	.apm-about__cols, .apm-facts, .apm-form, .apm-case__grid { grid-template-columns: 1fr; }
	.apm-counter { border-left: 0; border-top: 1px solid var(--apm-line); padding: 18px 0; } .apm-counter:first-child { border-top: 0; }
	.apm-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .apm-counter:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--apm-line); } .apm-counter:nth-child(2) { border-top: 0; }
	.apm-why__item { grid-template-columns: 44px 1fr; }
	.apm-footer__top { grid-template-columns: 1fr; }
	.apm-lightbox__prev { left: 8px; } .apm-lightbox__next { right: 8px; }
}
@media (max-width: 400px) {
	:root { --apm-gutter: 18px; }
	.apm-btn { padding: .9em 1.15em; } .apm-hero__cta .apm-btn { flex: 1 1 100%; justify-content: center; }
	.apm-counters { grid-template-columns: 1fr; } .apm-counter:nth-child(even) { padding-left: 0; border-left: 0; } .apm-counter:nth-child(2) { border-top: 1px solid var(--apm-line); }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.js .js-reveal, .js .js-split:not(.is-split) { opacity: 1 !important; transform: none !important; translate: none !important; }
	.js-split .wi { transform: none !important; }
	.apm-marquee__track { animation: none; }
}
@media print { .apm-header, .apm-cursor, .apm-transition, .apm-marquee { display: none !important; } }
