/*
Theme Name: Metigital
Theme URI: https://www.metigital.com
Author: Metigital
Description: Lightweight lead-generation theme for Metigital. Enquiry forms, popup form, WhatsApp chat button and enquiry inbox built in. No page builder or required plugins.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: metigital
Update URI: false
*/

/* ---------- Fonts (self-hosted, no Google request) ---------- */
@font-face { font-family: "Bricolage"; src: url(assets/fonts/bricolage-grotesque-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url(assets/fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url(assets/fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(assets/fonts/figtree-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(assets/fonts/figtree-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(assets/fonts/figtree-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
	--red: #AE3625;
	--red-deep: #8E2A1B;
	--sun: #FDBE14;
	--barley: #FFF7CD;
	--paper: #FFFDF5;
	--ink: #2A1712;
	--muted: #6B574C;
	--line: #EBDFC6;
	--wa: #1FAF55;

	--display: "Bricolage", "Arial Narrow", system-ui, sans-serif;
	--body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1180px;
	--gut: clamp(1.1rem, 4vw, 2rem);
	--r-sm: 8px;
	--r-md: 14px;
	--r-lg: 22px;
	--pill: 999px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.hero :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible, .popup__head :focus-visible { outline-color: var(--sun); }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--sun); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 48px; padding: .7rem 1.4rem;
	border: 2px solid transparent; border-radius: var(--pill);
	font: 700 1rem/1.1 var(--body); text-decoration: none; cursor: pointer;
}
.btn--sm { min-height: 40px; padding: .5rem 1.05rem; font-size: .95rem; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: var(--barley); }
.btn--red:hover { background: var(--red-deep); color: var(--barley); }
.btn--yellow { background: var(--sun); color: var(--ink); }
.btn--yellow:hover { background: #ffcd45; color: var(--ink); }
.btn--line-light { border-color: rgba(255, 247, 205, .6); color: var(--barley); background: transparent; }
.btn--line-light:hover { border-color: var(--barley); color: var(--barley); background: rgba(255, 247, 205, .08); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Top bar and header ---------- */
.topbar { background: var(--ink); color: var(--barley); font-size: .88rem; }
.topbar__inner { display: flex; gap: 1.5rem; align-items: center; min-height: 38px; }
.topbar a { color: var(--barley); text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.topbar a:hover { color: var(--sun); }
.topbar__hours { margin-left: auto; opacity: .8; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 253, 245, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand img { width: 170px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.site-nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--red); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: .5rem; color: var(--ink); cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--red); color: var(--barley); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__kicker { font-weight: 600; color: var(--sun); margin-bottom: .8rem; }
.hero h1 { color: var(--barley); max-width: 14ch; }
.hero__lead { font-size: 1.2rem; max-width: 36rem; opacity: .95; }
.hero__points { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: .55rem; }
.hero__points li { display: flex; gap: .6rem; align-items: center; }
.hero__points .icon { color: var(--sun); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.wave { position: absolute; pointer-events: none; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wave path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.wave--hero { left: -4%; bottom: -8%; width: 108%; height: 58%; stroke: var(--sun); stroke-width: 26; opacity: .16; }
.wave--hero path { animation: draw 2.4s cubic-bezier(.6, .1, .25, 1) both; }
.wave--cta { left: 52%; top: 50%; width: 62%; height: 90%; transform: translateY(-50%); stroke: var(--red); stroke-width: 20; opacity: .45; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.card-form { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.3rem, 3vw, 2rem); box-shadow: 0 24px 60px -24px rgba(42, 23, 18, .55); }
.card-form > h2 { font-size: 1.6rem; margin-bottom: .2rem; }
.card-form > p { color: var(--muted); margin-bottom: 1.1rem; }
.card-form--light { box-shadow: none; border: 1px solid var(--line); background: #fff; }

/* ---------- Form ---------- */
.enquiry { display: grid; gap: .85rem; }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 600; font-size: .93rem; }
.optional { font-weight: 400; color: var(--muted); }
.enquiry input[type=text], .enquiry input[type=tel], .enquiry input[type=email], .enquiry select, .enquiry textarea {
	width: 100%; min-height: 46px; padding: .6rem .8rem;
	font: inherit; font-size: 1rem; color: var(--ink);
	background: #fff; border: 1.5px solid #d9ccb3; border-radius: var(--r-sm);
}
.enquiry textarea { resize: vertical; min-height: 84px; }
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(174, 54, 37, .18); }
.phone { display: grid; grid-template-columns: minmax(118px, 38%) 1fr; gap: .5rem; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .6rem; }
.field--check input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--red); }
.field--check label { font-weight: 400; font-size: .88rem; color: var(--muted); }
.field__err { margin: 0; color: #B3261E; font-size: .87rem; font-weight: 600; }
.field__err:empty { display: none; }
.is-invalid { border-color: #B3261E !important; }
.field--check input.is-invalid { outline: 2px solid #B3261E; outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry__status:empty { display: none; }
.enquiry__status { border-radius: var(--r-sm); padding: .75rem .9rem; font-weight: 600; font-size: .95rem; }
.enquiry__status.is-ok { background: #E6F4EA; color: #1E5E33; }
.enquiry__status.is-err { background: #FCE8E6; color: #8C1D18; }
.enquiry__status a { color: inherit; }
.enquiry.is-done .field, .enquiry.is-done [data-submit], .enquiry.is-done .field__err { display: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section--cream { background: var(--barley); }
.section__head { max-width: 44rem; margin-bottom: 2.4rem; }
.section__head p { color: var(--muted); font-size: 1.1rem; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.6rem; border-top: 5px solid var(--red); }
.service:nth-child(3n+2) { border-top-color: var(--sun); }
.service p { color: var(--muted); }
.service__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: .4rem; }
.link-wa { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: #178a43; text-decoration: none; font-size: .95rem; }
.link-wa:hover { color: #0f6a31; text-decoration: underline; }

.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.why__lead p { font-size: 1.15rem; color: var(--muted); }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; }
.why__list > div { padding: 1.3rem 1.3rem 1.3rem 0; border-top: 2px solid var(--ink); }
.why__list > div:nth-child(odd) { padding-right: 1.6rem; }
.why__list dt { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin-bottom: .35rem; }
.why__list dd { margin: 0; color: var(--muted); }

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-top: 4.2rem; }
.steps li::before {
	content: counter(step); position: absolute; top: 0; left: 0;
	width: 3rem; height: 3rem; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--red); color: var(--barley);
	font: 800 1.3rem/1 var(--display);
}
.steps li::after { content: ""; position: absolute; top: 1.5rem; left: 3.6rem; right: -.9rem; border-top: 2px dashed #d7c7a6; }
.steps li:last-child::after { display: none; }
.steps p { color: var(--muted); }

.faq__list { max-width: 50rem; display: grid; gap: .7rem; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
.faq summary { cursor: pointer; list-style: none; padding: 1.05rem 3rem 1.05rem 1.2rem; font-weight: 700; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font: 700 1.5rem/1 var(--display); color: var(--red); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 1.2rem 1.1rem; margin: 0; color: var(--muted); }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.post-card__img img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card__body { padding: 1.2rem; }
.post-card time { font-size: .85rem; color: var(--muted); }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--red); }
.pager { margin-top: 2rem; }
.empty { color: var(--muted); }

/* ---------- Inner pages ---------- */
.page-head { background: var(--barley); padding: clamp(2.5rem, 6vw, 4rem) 0; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0; }
.page-head p { margin: .6rem 0 0; color: var(--muted); }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.7rem; }
.prose img { border-radius: var(--r-md); }
.prose__hero { margin: 0 0 2rem; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; }
.contact__list li { display: flex; gap: .9rem; align-items: center; }
.contact__list .icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--barley); color: var(--red); }
.contact__list strong { display: block; font-size: .85rem; color: var(--muted); }
.contact__list a { font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.contact__hours { color: var(--muted); }

/* ---------- CTA band and footer ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: var(--barley); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band h2 { max-width: 22ch; color: var(--barley); }
.cta-band p { margin: 0; opacity: .8; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; flex: none; }

.site-footer { background: #1F100C; color: rgba(255, 247, 205, .82); padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer__about img { width: 170px; margin-bottom: 1rem; }
.site-footer h3 { color: var(--sun); font-size: 1.05rem; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: rgba(255, 247, 205, .88); text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }
.site-footer__contact li { display: flex; gap: .5rem; align-items: center; }
.site-footer__social { display: flex; gap: 1rem; }
.site-footer__base { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 247, 205, .15); font-size: .85rem; }

/* ---------- Popup ---------- */
.popup { width: min(100% - 1.5rem, 500px); max-height: calc(100dvh - 1.5rem); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); overflow: auto; }
.popup::backdrop { background: rgba(31, 16, 12, .6); }
.popup[open] { animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.popup__head { display: flex; gap: .9rem; align-items: center; background: var(--red); color: var(--barley); padding: 1.1rem 1.3rem; position: sticky; top: 0; z-index: 1; }
.popup__head img { width: 52px; }
.popup__head h2 { color: var(--barley); font-size: 1.4rem; margin: 0; }
.popup__head p { margin: 0; font-size: .88rem; opacity: .85; }
.popup__close { margin-left: auto; align-self: flex-start; background: none; border: 0; color: var(--barley); padding: .3rem; cursor: pointer; }
.popup__close .icon { width: 26px; height: 26px; }
.popup .enquiry { padding: 1.3rem; }

/* ---------- WhatsApp widget ---------- */
.wa { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; }
.wa__fab { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--wa); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .45); }
.wa__fab .icon { width: 32px; height: 32px; }
.wa__panel { width: min(340px, calc(100vw - 2.2rem)); background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .45); }
.wa__panel[hidden] { display: none; }
.wa__head { display: flex; gap: .7rem; align-items: center; background: #075E54; color: #fff; padding: .8rem 1rem; }
.wa__head img { width: 40px; border-radius: 50%; }
.wa__head strong { display: block; }
.wa__head span { font-size: .8rem; opacity: .85; }
.wa__x { margin-left: auto; background: none; border: 0; color: #fff; cursor: pointer; padding: .2rem; }
.wa__body { background: #ECE5DD; padding: 1rem; }
.wa__bubble { background: #fff; border-radius: 0 var(--r-md) var(--r-md) var(--r-md); padding: .7rem .85rem; margin: 0 0 .9rem; font-size: .95rem; max-width: 92%; }
.wa__chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.wa__chips button { border: 1.5px solid #128C7E; background: #fff; color: #075E54; border-radius: var(--pill); padding: .4rem .8rem; font: 600 .87rem var(--body); cursor: pointer; }
.wa__chips button:hover { background: #DCF8C6; }
.wa__compose { display: flex; gap: .4rem; padding: .6rem; background: #F0F0F0; }
.wa__compose input { flex: 1; min-width: 0; border: 0; border-radius: var(--pill); padding: .6rem .9rem; font: inherit; font-size: .95rem; }
.wa__compose button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #128C7E; color: #fff; display: grid; place-items: center; cursor: pointer; }

.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.wave--cta { left: 30%; width: 90%; opacity: .3; }
	.hero__grid, .why, .contact { grid-template-columns: 1fr; }
	.hero h1 { max-width: 18ch; }
	.services, .posts { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.2rem; }
	.steps li::after { display: none; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--paper); border-bottom: 1px solid var(--line);
		padding: .5rem var(--gut) 1.2rem;
		display: none;
	}
	.site-nav.is-open { display: flex; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.site-nav li a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); }
	.site-nav .btn { margin-top: 1rem; }
	.topbar__hours, .topbar__email { display: none; }
}

@media (max-width: 640px) {
	body { font-size: 1rem; padding-bottom: 64px; }
	.brand img { width: 140px; }
	.site-header__inner { min-height: 64px; }
	.services, .posts, .why__list, .steps, .site-footer__grid { grid-template-columns: 1fr; }
	.why__list > div { padding-right: 0; }
	.hero__actions .btn { flex: 1 1 100%; }
	.wave--hero { height: 36%; bottom: -3%; stroke-width: 20; }
	.site-footer__base { flex-direction: column; }
	.mobile-bar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
		display: grid; grid-template-columns: repeat(3, 1fr);
		background: var(--ink); border-top: 3px solid var(--sun);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.mobile-bar a, .mobile-bar button {
		display: flex; flex-direction: column; align-items: center; gap: .15rem;
		padding: .55rem 0; min-height: 60px; justify-content: center;
		color: var(--barley); background: none; border: 0; text-decoration: none;
		font: 600 .8rem var(--body); cursor: pointer;
	}
	.mobile-bar .icon { width: 22px; height: 22px; }
	.mobile-bar a:nth-child(2) { background: var(--wa); color: #fff; }
	.wa { bottom: calc(76px + env(safe-area-inset-bottom)); }
	.wa__fab { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.wave--hero path, .popup[open] { animation: none; }
}

@media print {
	.topbar, .site-header, .cta-band, .wa, .mobile-bar, .popup { display: none !important; }
}


/* ---------- v2 components ---------- */
.eyebrow { font-family: var(--display); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin: 0 0 .5rem; }
.eyebrow a { text-decoration: none; }
.section--ink .eyebrow, .section__head--light .eyebrow { color: var(--sun); }
.section--ink { background: var(--ink); color: var(--barley); }
.section--ink h2, .section--ink h3 { color: var(--barley); }
.section--ink .work-card h3 { color: var(--ink); }
.section--ink .work-card__meta { color: var(--muted); }
.section__head--light p { color: rgba(255, 247, 205, .75); }
.section__more { margin: 2.2rem 0 0; }

.strip { background: var(--barley); border-bottom: 1px solid var(--line); }
.strip__inner { display: flex; align-items: center; gap: 1.2rem; padding: .9rem 0; flex-wrap: wrap; }
.strip__label { font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.strip ul { display: flex; flex-wrap: wrap; gap: .5rem .55rem; list-style: none; margin: 0; padding: 0; }
.strip li { font-weight: 600; font-size: .92rem; background: #fff; border: 1px solid var(--line); border-radius: var(--pill); padding: .3rem .8rem; }

.services { grid-template-columns: repeat(4, 1fr); }
.service h3 a, .service h2 a { color: inherit; text-decoration: none; }
.service h3 a:hover, .service h2 a:hover { color: var(--red); }
.service h2 { font-size: 1.35rem; }
.service__points { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .45rem; align-content: start; flex: 1; }
.service__points li { display: flex; gap: .5rem; font-size: .92rem; color: var(--muted); }
.service__points .icon { color: var(--red); margin-top: .18rem; }
.service__actions { justify-content: space-between; }
.link-more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .95rem; color: var(--red); text-decoration: none; }
.link-more .icon { width: 1em; height: 1em; }
.work-card:hover .link-more, .link-more:hover { text-decoration: underline; }

.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.work-grid--three { grid-template-columns: repeat(3, 1fr); }
.work-card { display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border-radius: var(--r-md); overflow: hidden; text-decoration: none; border: 1px solid var(--line); }
.section--ink .work-card { border-color: rgba(255, 247, 205, .14); }
.work-card__body { padding: 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.work-card__meta { font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0; }
.work-card h3 { font-size: 1.2rem; margin: 0; }
.work-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.work-card .link-more { margin-top: auto; padding-top: .4rem; }

.cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover--gen { display: grid; place-items: center; background: var(--red); }
.cover--gen.cover--t1 { background: var(--ink); }
.cover--gen.cover--t2 { background: var(--sun); }
.cover--gen span { position: relative; font: 800 clamp(2.6rem, 6vw, 3.6rem)/1 var(--display); color: var(--barley); letter-spacing: -.02em; }
.cover--t2 span { color: var(--ink); }
.wave--cover { inset: 0; width: 100%; height: 100%; stroke: rgba(255, 247, 205, .28); stroke-width: 26; }
.cover--t2 .wave--cover { stroke: rgba(42, 23, 18, .22); }

.stack { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.stack__lead p { color: var(--muted); font-size: 1.1rem; }
.stack__note { font-size: .95rem !important; border-left: 3px solid var(--sun); padding-left: .9rem; }
.stack__cols { display: grid; gap: 1.6rem; }
.stack__cols h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.chips li { border: 1.5px solid var(--line); background: #fff; border-radius: var(--pill); padding: .35rem .85rem; font-weight: 600; font-size: .92rem; }
.chips--sm li { font-size: .82rem; padding: .22rem .65rem; background: transparent; }

.steps--five { grid-template-columns: repeat(5, 1fr); }
.why__list--wide { grid-template-columns: repeat(3, 1fr); }
.why__lead .btn { margin-top: 1rem; }

.page-head .eyebrow { margin-bottom: .6rem; }
.page-head h1 { max-width: 20ch; }
.page-head > .wrap > p { max-width: 58ch; font-size: 1.1rem; }
.page-head--split .page-head__grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.btn--line { border-color: var(--red); color: var(--red); background: transparent; }
.btn--line:hover { background: rgba(174, 54, 37, .08); color: var(--red); }

.factbox { display: grid; gap: .8rem; margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.2rem; }
.factbox > div { display: grid; gap: .15rem; }
.factbox dt { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.factbox dd { margin: 0; font-weight: 600; }

.detail { display: grid; grid-template-columns: 1fr 320px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.sidecard { background: var(--barley); border-radius: var(--r-md); padding: 1.4rem; }
.sidecard--sticky { position: sticky; top: 100px; }
.sidecard h2 { font-size: 1.15rem; }
.sidecard p { color: var(--muted); font-size: .95rem; }
.sidecard__list { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .55rem; }
.sidecard__list a { font-weight: 600; text-decoration: none; }
.sidecard__list a:hover { text-decoration: underline; }
.sidecard__facts { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .9rem; }
.sidecard__facts strong { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sidecard__facts span { font-size: .95rem; }
.sidecard__wa { margin-top: .9rem; }

.about { display: grid; grid-template-columns: 1fr 320px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.industries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 2.4rem; }
.industry { display: flex; gap: 1.1rem; padding-top: 1.2rem; border-top: 2px solid var(--ink); }
.industry__num { font: 800 1.5rem/1 var(--display); color: var(--sun); }
.industry h2 { font-size: 1.25rem; margin-bottom: .3rem; }
.industry p { color: var(--muted); margin: 0; }

@media (max-width: 1100px) {
	.services { grid-template-columns: repeat(2, 1fr); }
	.steps--five { grid-template-columns: repeat(3, 1fr); row-gap: 2.2rem; }
	.why__list--wide { grid-template-columns: repeat(2, 1fr); }
	.detail, .about { grid-template-columns: 1fr; }
	.sidecard--sticky { position: static; }
	.page-head--split .page-head__grid { grid-template-columns: 1fr; }
	.stack { grid-template-columns: 1fr; }
	.stack__cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
	.work-grid, .work-grid--three { grid-template-columns: repeat(2, 1fr); }
	.stack__cols { grid-template-columns: 1fr; }
	.industries { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.services, .work-grid, .work-grid--three, .steps--five, .why__list--wide { grid-template-columns: 1fr; }
	.page-head h1 { max-width: none; }
}
