/* Emondsoft theme: charcoal, white, signal orange. */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }

:root {
	--bg: #FFFFFF;
	--surface: #F4F5F7;
	--ink: #1C1F26;
	--ink-soft: #4A4F5A;
	--muted: #6B7080;
	--line: #E2E4E9;
	--dark: #1C1F26;
	--dark-raised: #262A33;
	--dark-line: #343944;
	--dark-text: #C9CCD3;
	--accent: #FF6B1A;
	--accent-ink: #B8460A;
	--font-display: "Montserrat", ui-sans-serif, system-ui, sans-serif;
	--font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
	--r-sm: 6px;
	--r-md: 12px;
	--r-lg: 20px;
	--container: 1200px;
	--gutter: clamp(20px, 4vw, 32px);
	--section: clamp(72px, 9vw, 112px);
}

/* Reset (zero specificity so components win) */
:where(*, *::before, *::after) { box-sizing: border-box; }
:where(body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl) { margin: 0; }
:where(ul, ol)[class] { list-style: none; padding: 0; }
:where(img, svg, video) { display: block; max-width: 100%; height: auto; }
:where(button, input, textarea, select) { font: inherit; color: inherit; }
:where(a) { color: inherit; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
:where(h1, h2, h3, h4) { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--ink); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { left: 8px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Accent words */
.hl { color: var(--accent); }
.hl-ink { color: var(--accent-ink); }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 44px; padding: 10px 20px;
	font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
	text-decoration: none; white-space: nowrap;
	border: 1.5px solid transparent; border-radius: var(--r-sm);
	cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: #FF7F38; }
.btn--ghost-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn .icon { width: 18px; height: 18px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand, .custom-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.custom-logo { height: 44px; width: auto; }
.brand { gap: 10px; color: var(--ink); }
.brand--light { color: #F5F6F8; }
.brand__mark { width: auto; height: 46px; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 25px; letter-spacing: -0.03em; }
.brand__sub { margin-top: 5px; font-family: var(--font-display); font-weight: 700; font-size: 9.5px; letter-spacing: .53em; text-transform: uppercase; }

/* Image placeholders (on-palette, shown until photos are added) */
.ph { width: 100%; height: 100%; min-height: 220px; display: grid; place-items: center; background: var(--dark-raised); background-image: radial-gradient(circle at 1px 1px, var(--dark-line) 1px, transparent 0); background-size: 22px 22px; color: #F5F6F8; }
.ph--hero { aspect-ratio: 5 / 4; border-radius: var(--r-lg) 0 0 var(--r-lg); border: 1px solid var(--dark-line); }
.ph__mark { width: 30%; max-width: 160px; height: auto; opacity: .9; }
.logos__name { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--muted); text-align: center; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__list a { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink-soft); text-decoration: none; padding: 8px 0; transition: color .2s; }
.nav__list a:hover, .nav__list .current-menu-item:not(.menu-item-type-custom) > a { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }

@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.nav {
		position: absolute; inset: 100% 0 auto 0;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 20px var(--gutter) 28px; background: #fff; border-bottom: 1px solid var(--line);
		display: none;
	}
	.nav.is-open { display: flex; }
	.nav__list { flex-direction: column; gap: 4px; }
	.nav__list a { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
	.nav__cta { width: 100%; }
	.custom-logo { height: 38px; }
	.brand__mark { height: 40px; }
	.brand__name { font-size: 22px; }
}

/* Hero */
.hero { background: var(--dark); color: #fff; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 80px); align-items: center; padding-block: clamp(64px, 9vw, 120px); }
.hero__title { font-size: clamp(40px, 5.6vw, 68px); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; max-width: 13ch; }
.hero__lead { margin-top: 24px; font-size: clamp(17px, 1.5vw, 20px); color: var(--dark-text); max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__media { position: relative; margin-right: calc(var(--gutter) * -1 - 40px); }
.hero__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-lg) 0 0 var(--r-lg); }
.hero__media::before { content: ""; position: absolute; left: -18px; bottom: 28px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 8px var(--dark); z-index: 1; }
@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__media { margin-right: 0; }
	.hero__media img, .ph--hero { border-radius: var(--r-lg); aspect-ratio: 16 / 10; }
	.hero__media::before { left: 20px; bottom: -18px; }
}

/* Tech stack strip */
.stack { background: var(--surface); border-bottom: 1px solid var(--line); }
.stack__inner { display: flex; align-items: center; gap: 32px; padding-block: 26px; }
.stack__label { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.stack__list { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.stack__list li { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink-soft); }
@media (max-width: 700px) { .stack__inner { flex-direction: column; align-items: flex-start; gap: 12px; } }

/* Sections */
.section { padding-block: var(--section); }
.section--tint { background: var(--surface); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark .section__lead { color: var(--dark-text); }
.section--page { padding-block: clamp(48px, 6vw, 80px); }
.section__head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__title { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.03em; }
.section__lead { margin-top: 16px; font-size: 18px; color: var(--ink-soft); max-width: 58ch; }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.service { padding: 36px 40px 36px 0; border-bottom: 1px solid var(--line); }
.service:nth-child(even) { padding: 36px 0 36px 40px; border-left: 1px solid var(--line); }
.service__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--ink); color: var(--accent); margin-bottom: 22px; }
.service__icon .icon { width: 26px; height: 26px; }
.service__title { font-size: 22px; font-weight: 700; }
.service__desc { margin-top: 10px; color: var(--ink-soft); max-width: 46ch; }
.service__more { margin-top: 18px; }
.service__more summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); }
.service__more summary::-webkit-details-marker { display: none; }
.service__more summary .icon { width: 18px; height: 18px; color: var(--accent-ink); transition: transform .2s; }
.service__more[open] summary .icon { transform: rotate(45deg); }
.service__uses { margin-top: 14px; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 800px) {
	.services { grid-template-columns: 1fr; }
	.service, .service:nth-child(even) { padding: 32px 0; border-left: 0; }
}

/* Node list marker (logo motif) */
.nodes { display: grid; gap: 8px; margin-top: 4px; }
.nodes li { position: relative; padding-left: 22px; font-size: 15px; color: var(--ink-soft); }
.nodes li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Case studies bento */
.cases { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 24px; }
.case { background: var(--dark-raised); border: 1px solid var(--dark-line); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: 200px 1fr; }
.case--lead { grid-row: span 2; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.case__media { overflow: hidden; }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.case--lead .case__media img { aspect-ratio: 16 / 9; height: auto; }
.case:hover .case__media img { transform: scale(1.04); }
.case__body { padding: 28px; display: flex; flex-direction: column; }
.case__tag { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.case__title { margin-top: 8px; font-size: 22px; font-weight: 700; }
.case--lead .case__title { font-size: 30px; }
.case__desc { margin-top: 10px; color: var(--dark-text); }
.case__stat { margin-top: auto; padding-top: 20px; color: var(--dark-text); font-size: 15px; }
.case__stat span { display: block; font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -0.03em; color: #fff; }
.case--lead .case__stat span { font-size: 64px; }
@media (max-width: 900px) {
	.cases { grid-template-columns: 1fr; }
	.case--lead { grid-row: auto; }
	.case { grid-template-columns: 1fr; }
	.case__media img { aspect-ratio: 16 / 9; height: auto; }
}

/* Process */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; position: relative; counter-reset: step; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line); }
.process__step { position: relative; padding-top: 44px; }
.process__node { position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.process__step:last-child .process__node { background: var(--accent); border-color: var(--accent); }
.process__step:not(:last-child) .process__node::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--ink); }
.process__title { font-size: 22px; font-weight: 700; }
.process__step p { margin-top: 10px; color: var(--ink-soft); }
@media (max-width: 900px) {
	.process { grid-template-columns: 1fr; gap: 28px; }
	.process::before { left: 11px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
	.process__step { padding-top: 0; padding-left: 48px; }
}

/* Portfolio */
.portfolio { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.portfolio__head { position: sticky; top: 120px; }
.portfolio__head .link-arrow { margin-top: 28px; }
.projects { border-top: 1px solid var(--line); }
.project { padding: 28px 0; border-bottom: 1px solid var(--line); }
.project__title { font-size: 21px; font-weight: 700; }
.project__title a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.project__title a .icon { width: 18px; height: 18px; color: var(--accent-ink); transform: rotate(-45deg); transition: transform .2s; }
.project__title a:hover { color: var(--accent-ink); }
.project__title a:hover .icon { transform: rotate(-45deg) translateX(3px); }
.project__desc { margin-top: 8px; color: var(--ink-soft); max-width: 60ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags li { font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); }
@media (max-width: 900px) { .portfolio { grid-template-columns: 1fr; } .portfolio__head { position: static; } }

/* Clients */
.logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; align-items: center; padding-bottom: clamp(48px, 6vw, 72px); margin-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.logos img { width: 100%; max-width: 140px; height: 72px; object-fit: contain; margin-inline: auto; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.logos img:hover { filter: none; opacity: 1; }
@media (max-width: 800px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.voices { display: grid; grid-template-columns: .8fr 1.6fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.voices__main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.testimonial { background: var(--surface); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.testimonial blockquote { margin: 0; padding: 0; border: 0; }
.testimonial blockquote p { font-size: 19px; line-height: 1.5; color: var(--ink); }
.testimonial blockquote p::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--accent); margin-bottom: 18px; }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--ink-soft); }
.testimonial figcaption strong { color: var(--ink); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 800; }
.quotes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.quote { padding: 24px 24px 0 0; }
.quote + .quote { padding-left: 24px; border-left: 1px solid var(--line); }
.quote__text { font-size: 16px; color: var(--ink); }
.quote__who { margin-top: 10px; font-size: 14px; color: var(--muted); }
.quote__who strong { color: var(--ink-soft); }
@media (max-width: 1000px) {
	.voices { grid-template-columns: 1fr; }
	.quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.quote:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
	.voices__main, .quotes { grid-template-columns: 1fr; }
	.quote, .quote + .quote { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* CTA */
.section--cta { padding-top: 0; }
.cta { background: var(--dark); color: #fff; border-radius: var(--r-lg); padding: clamp(48px, 7vw, 96px) clamp(28px, 6vw, 88px); position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; border-radius: 50%; border: 2px solid var(--dark-line); box-shadow: 0 0 0 40px var(--dark), 0 0 0 42px var(--dark-line); }
.cta__title { position: relative; z-index: 1; font-size: clamp(32px, 4.4vw, 56px); font-weight: 800; letter-spacing: -0.035em; max-width: 16ch; }
.cta__lead { position: relative; z-index: 1; margin-top: 18px; font-size: 18px; color: var(--dark-text); max-width: 52ch; }
.cta .btn { position: relative; z-index: 1; margin-top: 32px; }

/* Footer */
.site-footer { background: #15171D; color: var(--dark-text); padding-top: clamp(56px, 7vw, 88px); font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1.2fr .8fr; gap: 48px; }
.site-footer__brand .brand { color: #F5F6F8; }
.site-footer__brand .brand:hover { color: #fff; }
.site-footer__brand p { margin-top: 18px; max-width: 34ch; }
.site-footer__title { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.site-footer a { color: var(--dark-text); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--accent); }
.footer-links { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.contact-list { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.site-footer__bottom { margin-top: 56px; padding-block: 24px; border-top: 1px solid var(--dark-line); font-size: 14px; color: #9096A2; }
@media (max-width: 800px) { .site-footer__grid { grid-template-columns: 1fr; gap: 36px; } }

/* Inner pages */
.page-hero { background: var(--dark); color: #fff; padding-block: clamp(56px, 7vw, 96px); }
.page-hero__title { font-size: clamp(36px, 5vw, 60px); font-weight: 800; letter-spacing: -0.035em; max-width: 20ch; }
.page-hero__lead { margin-top: 16px; font-size: 19px; color: var(--dark-text); max-width: 56ch; }
.page-hero__meta { margin-bottom: 12px; font-size: 14px; color: var(--accent); font-weight: 500; }

.prose { max-width: 720px; color: var(--ink-soft); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 28px; font-weight: 800; color: var(--ink); margin-top: 1.8em; }
.prose h3 { font-size: 21px; font-weight: 700; color: var(--ink); margin-top: 1.5em; }
.prose a { color: var(--accent-ink); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li + li { margin-top: .4em; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.prose strong { color: var(--ink); }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--ink); }
.prose img { border-radius: var(--r-md); }
.prose .wp-block-columns { gap: 24px; }
.prose .is-style-panel, .prose .wp-block-group.has-background { border-radius: var(--r-md); padding: 24px; }
.single__media { margin-bottom: 40px; }
.single__media img { border-radius: var(--r-lg); width: 100%; }

/* Contact page */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact__aside { background: var(--surface); border-radius: var(--r-lg); padding: 32px; display: grid; gap: 24px; }
.contact-list--dark { color: var(--ink-soft); }
.contact-list--dark a { color: var(--ink); }
.contact-list--dark .icon { color: var(--accent-ink); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* Form */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form__field { display: grid; gap: 8px; }
.form__field label { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); }
.form input[type="text"], .form input[type="email"], .form textarea {
	width: 100%; padding: 14px 16px; min-height: 48px;
	background: #fff; color: var(--ink);
	border: 1.5px solid #C9CDD5; border-radius: var(--r-sm);
	transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 160px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,107,26,.35); }
.form .btn { justify-self: start; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__notice { padding: 14px 16px; border-radius: var(--r-sm); font-weight: 500; }
.form__notice--ok { background: #E8F5EE; color: #1D5B3A; }
.form__notice--err { background: #FDECEC; color: #8A1F1F; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 32px; }
.post-card__media img { border-radius: var(--r-md); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; margin-bottom: 18px; }
.post-card__meta { font-size: 14px; color: var(--muted); }
.post-card__title { margin-top: 6px; font-size: 22px; font-weight: 700; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { color: var(--accent-ink); }
.post-card__excerpt { margin-top: 8px; color: var(--ink-soft); }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Reveal (only hidden when JS is present; reduced motion stays visible) */
@media (prefers-reduced-motion: no-preference) {
	.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
	.js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* WordPress core helpers */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alignwide { max-width: 1000px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-button__link { background: var(--accent); color: var(--ink); border-radius: var(--r-sm); font-family: var(--font-display); font-weight: 700; }

/* Partner credit on services */
.service__partner { margin-top: 14px; font-size: 14px; color: var(--muted); }
.service__partner a { color: var(--accent-ink); font-weight: 700; text-underline-offset: 3px; }

/* Real clients list */
.clients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.clients li { display: flex; align-items: center; min-height: 112px; padding: 24px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 800; font-size: clamp(18px, 1.8vw, 22px); letter-spacing: -0.02em; color: var(--ink); }
.clients li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-right: 14px; }
@media (max-width: 800px) { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .clients { grid-template-columns: 1fr; } .clients li { min-height: 72px; } }
.case__link { margin-top: auto; padding-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff; text-decoration: none; }
.case__link .icon { width: 18px; height: 18px; color: var(--accent); transform: rotate(-45deg); transition: transform .2s; }
.case__link:hover { color: var(--accent); }

/* Case cards: stack image over text */
.case { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.case:not(.case--lead) .case__media img { aspect-ratio: 21 / 9; height: auto; }
.case--lead .case__media img { aspect-ratio: 4 / 3; }

/* Floating chat dock */
.chat-dock { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
.chat-dock__toggle { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--accent); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 8px 24px rgba(28,31,38,.18); transition: transform .15s; }
.chat-dock__toggle::-webkit-details-marker { display: none; }
.chat-dock__toggle:hover { transform: translateY(-1px); }
.chat-dock__toggle .icon { width: 22px; height: 22px; }
.chat-dock__menu { position: absolute; right: 0; bottom: calc(100% + 10px); min-width: 230px; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 12px 32px rgba(28,31,38,.14); }
.chat-dock__menu a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.chat-dock__menu a:hover { background: var(--surface); }
.chat-dock__menu strong { font-family: var(--font-display); font-size: 15px; }
.chat-dock__menu span { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .chat-dock { right: 14px; bottom: 14px; } .chat-dock__toggle span { display: none; } .chat-dock__toggle { padding: 0 15px; } }
/* AI chat panel */
.chat-dock[hidden] { display: none; }
.chat-dock__ai { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 0; border-radius: var(--r-sm); background: var(--ink); color: #fff; cursor: pointer; text-align: left; margin-bottom: 4px; }
.chat-dock__ai:hover { background: #2B2F38; }
.chat-dock__ai strong { font-family: var(--font-display); font-size: 15px; }
.chat-dock__ai span { font-size: 13px; color: var(--dark-text) !important; }
.ai-chat { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: min(380px, calc(100vw - 28px)); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 20px 48px rgba(28,31,38,.22); overflow: hidden; }
.ai-chat[hidden] { display: none; }
.ai-chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--ink); color: #F5F6F8; }
.ai-chat__mark { width: auto; height: 34px; flex: none; }
.ai-chat__title { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: #fff; }
.ai-chat__sub { font-size: 13px; color: var(--dark-text); }
.ai-chat__close { margin-left: auto; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: var(--r-sm); background: transparent; color: #fff; cursor: pointer; }
.ai-chat__close:hover { background: rgba(255,255,255,.08); }
.ai-chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.ai-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.5; white-space: pre-line; }
.ai-msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.ai-msg--user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.ai-msg--typing { color: var(--muted); font-style: italic; }
.ai-chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.ai-chat__form input { flex: 1; min-height: 44px; padding: 10px 14px; border: 1.5px solid #C9CDD5; border-radius: var(--r-sm); background: #fff; color: var(--ink); }
.ai-chat__form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,107,26,.35); }
.ai-chat__form .btn { min-width: 44px; padding: 0 14px; }
.ai-chat__form .btn:disabled { opacity: .6; cursor: wait; }
@media (max-width: 640px) { .ai-chat { right: 14px; bottom: 14px; } }
.ai-msg a { color: var(--accent-ink); font-weight: 700; text-underline-offset: 3px; word-break: break-word; }
.ai-msg--user a { color: #fff; }

/* Insights */
.insights__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.post-card { display: flex; flex-direction: column; }
.post-card__media { display: block; border-radius: var(--r-md); overflow: hidden; margin-bottom: 18px; aspect-ratio: 16 / 10; background: var(--dark-raised); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; transition: transform .5s ease; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__ph { min-height: 0; height: 100%; }
.post-card__meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.post-card__cat { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.section--tint .post-card__title a, .post-card__title a { color: var(--ink); }
.page-hero__back { display: inline-flex; margin-bottom: 18px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--accent); text-decoration: none; }
.page-hero__back::before { content: "\2190"; margin-right: 8px; }
.page-hero--post .page-hero__title { max-width: 26ch; font-size: clamp(32px, 4.4vw, 52px); }
.page-hero--post .page-hero__meta { margin: 18px 0 0; color: var(--dark-text); }
.page-hero--post .page-hero__meta a { color: var(--accent); text-decoration: none; font-weight: 700; }
.single__media { max-width: 900px; }
.prose h2 { scroll-margin-top: 100px; }
.prose ol { padding-left: 1.3em; }
.prose ol li + li { margin-top: .5em; }
.prose ol li::marker { color: var(--accent-ink); font-family: var(--font-display); font-weight: 800; }
.post-cta { max-width: 720px; margin-top: 56px; padding: 32px; border-radius: var(--r-lg); background: var(--dark); color: var(--dark-text); }
.post-cta__title { font-size: 24px; font-weight: 800; color: #fff; }
.post-cta p { margin: 10px 0 22px; }
/* Affiliates */
.aff-banner { max-width: 970px; margin-top: 56px; }
.aff-banner--box { max-width: 300px; }
.aff-banner__label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.aff-banner a { display: block; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.aff-banner img { width: 100%; height: auto; }
.aff-disclosure { padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--surface); font-size: 14px; color: var(--ink-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.tool { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.tool--featured { grid-column: 1 / -1; background: var(--dark); border-color: var(--dark); color: var(--dark-text); }
.tool__logo { height: 28px; width: auto; }
.tool__name { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--ink); }
.tool--featured .tool__name { color: #fff; }
.tool p { margin: 0; }
.tool__tag { align-self: flex-start; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.tool--featured .tool__tag { color: var(--accent); }
.tool .btn { align-self: flex-start; margin-top: 8px; }
.tool__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.prose .tools a.btn { color: var(--ink); text-decoration: none; }
.prose .tool--featured a.btn--ghost-light { color: #fff; }
@media (max-width: 800px) { .tools { grid-template-columns: 1fr; } }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.prose .tools a.btn--ghost:hover { color: #fff; }

.prose:has(.tools) { max-width: 1000px; }
.tool .tool__logo { width: 150px; height: auto; align-self: flex-start; border-radius: 0; margin: 0 0 4px; }

.prose figure.wp-block-image { margin: 1.6em 0; }
.prose figure.wp-block-image img { border: 1px solid var(--line); }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }


/* Case studies: 2x2 grid when 4 cases */
.cases--grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
.cases--grid .case--lead { grid-row: auto; }
.cases--grid .case .case__media img { aspect-ratio: 16 / 9; height: auto; }
.cases--grid .case--lead .case__title { font-size: 22px; }
@media (max-width: 860px) { .cases--grid { grid-template-columns: 1fr; } }
