/* ==========================================================================
   iDreamatrix — main stylesheet
   Modern, elegant, fast. No framework.
   ========================================================================== */

:root {
	--ink: #0d0e12;
	--ink-2: #17181e;
	--ink-3: #24262e;
	--paper: #f8f6f1;
	--paper-2: #f1eee7;
	--white: #ffffff;
	--muted: #62646f;
	--muted-2: #8b8d97;
	--line: rgba(13, 14, 18, .09);
	--line-2: rgba(13, 14, 18, .16);
	/* Brand colours sampled from the iDreamatrix logo */
	--accent: #6b3fa8;
	--accent-mid: #ca15b0;
	--accent-2: #f55c4d;
	--grad: linear-gradient(110deg, var(--accent) 0%, var(--accent-mid) 50%, var(--accent-2) 100%);
	--spectrum: linear-gradient(90deg, #63449c, #ca15b0, #f55c4d, #f2b14a, #add35f, #52bbaa, #2e8bbf);
	--serif: "Manrope", ui-sans-serif, system-ui, sans-serif; /* heading font, set from the Customizer */
	--head-weight: 700;
	--head-track: -.035em;
	--head-lh: 1.08;
	--sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--radius: 22px;
	--radius-sm: 14px;
	--shadow: 0 1px 2px rgba(13,14,18,.04), 0 12px 40px -12px rgba(13,14,18,.12);
	--shadow-lg: 0 2px 4px rgba(13,14,18,.04), 0 30px 80px -24px rgba(13,14,18,.22);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--container: 1240px;
	--header-h: 84px;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 16px; top: -60px; z-index: 1000;
	background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 16px; }

/* Layout ----------------------------------------------------------------- */
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 48px, 820px); }
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section--tight { padding: clamp(48px, 7vw, 90px) 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--ink); color: #eceae4; }
.section-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 80px); align-items: start; }

/* Type ------------------------------------------------------------------- */
.eyebrow {
	font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
	color: var(--muted); margin-bottom: 18px;
}
.section--dark .eyebrow { color: var(--muted-2); }
.eyebrow--pill {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 8px 16px 8px 12px; border: 1px solid var(--line-2); border-radius: 100px;
	background: rgba(255,255,255,.6); backdrop-filter: blur(8px); letter-spacing: .12em;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(107,63,168,.12); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title, .hero__title, .page-hero__title {
	font-family: var(--serif); font-weight: var(--head-weight); letter-spacing: var(--head-track); line-height: var(--head-lh);
}
.section-title { font-size: clamp(1.9rem, 3.5vw, 3rem); }
.section-title em, .hero__title em, .page-hero__title em { font-style: normal; }
.section-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); margin-top: 20px; max-width: 620px; }
.section--dark .section-lead { color: #a4a6b0; }
.grad, .section-title em, .page-hero__title em {
	background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
	padding: 0 .06em .1em 0; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}


/* Buttons ---------------------------------------------------------------- */
.btn {
	--bg: var(--ink); --fg: #fff;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px 26px; border-radius: 100px; border: 1px solid transparent;
	background: var(--bg); color: var(--fg);
	font-size: 15.5px; font-weight: 600; letter-spacing: -.005em; line-height: 1;
	cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s, border-color .25s;
	white-space: nowrap;
}
.btn__icon { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .btn__icon { transform: translateX(3px); }
.btn--primary { box-shadow: 0 10px 30px -10px rgba(13,14,18,.5); position: relative; isolation: isolate; overflow: hidden; }
.btn--primary::before {
	content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad);
	opacity: 0; transition: opacity .4s var(--ease);
}
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover { box-shadow: 0 16px 40px -12px rgba(107,63,168,.6); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); background: var(--white); }
.section--dark .btn--ghost { --fg: #fff; border-color: rgba(255,255,255,.2); }
.btn--sm { padding: 11px 20px; font-size: 14.5px; }
.btn--block { width: 100%; margin-top: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding-bottom: 4px; border-bottom: 1px solid var(--line-2); margin-bottom: clamp(40px, 5vw, 64px); transition: gap .3s var(--ease), border-color .3s; }
.link-arrow:hover { gap: 12px; border-color: var(--ink); }

.idm-icon { width: 24px; height: 24px; flex: none; }
.idm-icon--sm { width: 16px; height: 16px; }
.idm-icon--xs { width: 14px; height: 14px; }

/* Header ----------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 100; height: var(--header-h);
	transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
	border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
	background: rgba(248, 246, 241, .82); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
	border-bottom-color: var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand .custom-logo-link, .brand__link { display: block; line-height: 0; }
.brand img { height: 60px; width: auto; max-width: 240px; object-fit: contain; }
.brand--footer img { height: 68px; max-width: 260px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { list-style: none; display: flex; gap: 4px; align-items: center; }
.nav__list > li { position: relative; }
.nav__list a {
	display: block; padding: 9px 14px; border-radius: 100px; font-size: 15px; font-weight: 500; color: #33353d;
	transition: background .25s, color .25s;
}
.nav__list a:hover, .nav__list .current-menu-item > a, .nav__list .current_page_item > a { color: var(--ink); background: rgba(13,14,18,.05); }
.nav__list .sub-menu {
	list-style: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; padding: 8px;
	background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .25s var(--ease);
}
.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__list .sub-menu a { border-radius: 10px; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--white); cursor: pointer; position: relative; }
.nav-toggle__bar { position: absolute; left: 14px; right: 14px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-toggle__bar:nth-of-type(2) { top: 19px; }
.nav-toggle__bar:nth-of-type(3) { top: 26px; }
.nav-open .nav-toggle__bar:nth-of-type(2) { top: 22.5px; transform: rotate(45deg); }
.nav-open .nav-toggle__bar:nth-of-type(3) { top: 22.5px; transform: rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 110px) 0 0; margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + clamp(48px, 8vw, 110px)); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.orb--a { width: 520px; height: 520px; background: radial-gradient(circle, rgba(107,63,168,.55), transparent 65%); top: -120px; right: -80px; animation: float 18s ease-in-out infinite; }
.orb--b { width: 460px; height: 460px; background: radial-gradient(circle, rgba(245,92,77,.4), transparent 65%); bottom: 40px; left: -160px; animation: float 22s ease-in-out infinite reverse; }
.grid-lines {
	position: absolute; inset: 0;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 72px 72px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
	opacity: .55;
}
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, 40px); } }

.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.hero__title { font-size: clamp(2.4rem, 5vw, 4.3rem); margin: 6px 0 28px; }
.hero__title em { display: inline; }
.hero__lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 600px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__card {
	background: rgba(255,255,255,.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
	border: 1px solid rgba(255,255,255,.9); border-radius: 28px; padding: 22px; box-shadow: var(--shadow-lg);
}
.hero__card-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.hero__card-label { font-weight: 700; font-size: 14px; }
.hero__card-count { font-size: 12.5px; color: var(--muted); padding: 4px 10px; border-radius: 100px; background: var(--paper-2); }
.hero__list { list-style: none; }
.hero__list a { display: flex; align-items: center; gap: 14px; padding: 12px 8px; border-radius: 14px; transition: background .25s; }
.hero__list a:hover { background: var(--paper); }
.hero__list-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); flex: none; transition: background .3s, color .3s; }
.hero__list-icon .idm-icon { width: 20px; height: 20px; }
.hero__list a:hover .hero__list-icon { background: var(--ink); color: #fff; }
.hero__list-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.hero__list-text strong { font-size: 15px; font-weight: 600; }
.hero__list-text small { font-size: 13px; color: var(--muted); }
.hero__list-arrow { margin-left: auto; color: var(--muted-2); transition: transform .3s var(--ease), color .3s; }
.hero__list a:hover .hero__list-arrow { transform: translateX(3px); color: var(--ink); }

.marquee { position: relative; margin-top: clamp(64px, 9vw, 120px); border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: rgba(255,255,255,.4); }
.marquee__track { display: flex; gap: 36px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.4rem); color: #2a2c33; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.marquee__star { color: var(--accent); font-size: .7em; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Intro ------------------------------------------------------------------ */
.intro__statement { font-family: var(--serif); font-weight: 500; font-size: clamp(1.55rem, 2.7vw, 2.35rem); line-height: 1.35; letter-spacing: var(--head-track); max-width: 1040px; margin-bottom: clamp(56px, 7vw, 96px); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-2); }
.pillar { padding: 32px 32px 0 0; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line); }
.pillar__num { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .1em; }
.pillar h3 { font-size: 21px; margin: 14px 0 10px; }
.pillar p { color: var(--muted); font-size: 16px; }

/* Services --------------------------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service {
	position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 34px 32px 30px; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
	display: flex; flex-direction: column;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service__icon {
	width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 26px;
	background: linear-gradient(135deg, rgba(107,63,168,.1), rgba(245,92,77,.1)); color: var(--accent);
}
.service__title { font-size: 22px; margin-bottom: 12px; }
.service__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service__text { color: var(--muted); font-size: 15.5px; }
.service__list { list-style: none; display: grid; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.service__list li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: #3a3c44; }
.service__list .idm-icon { color: var(--accent); }
.service__more {
	position: absolute; top: 30px; right: 28px; width: 40px; height: 40px; border-radius: 50%;
	border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .4s var(--ease); z-index: 1;
}
.service:hover .service__more { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(-45deg); }

/* Ventures (dark) -------------------------------------------------------- */
.ventures { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.venture { grid-column: span 2; }
.ventures > .venture:nth-child(1), .ventures > .venture:nth-child(2) { grid-column: span 3; }
.venture {
	position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius);
	background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
	border: 1px solid rgba(255,255,255,.08); transition: transform .5s var(--ease), border-color .4s, background .4s;
	overflow: hidden; isolation: isolate; min-height: 340px;
}
.venture::before {
	content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px;
	background: var(--grad); opacity: 0; transition: opacity .5s var(--ease);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.venture::after {
	content: ""; position: absolute; width: 360px; height: 360px; right: -140px; top: -160px; z-index: -1;
	background: radial-gradient(circle, rgba(107,63,168,.28), transparent 65%); opacity: 0; transition: opacity .6s var(--ease);
}
.venture:hover { transform: translateY(-6px); border-color: transparent; }
.venture:hover::before, .venture:hover::after { opacity: 1; }
.venture__top { display: flex; justify-content: space-between; align-items: flex-start; min-height: 64px; margin-bottom: 36px; }
.venture__num { font-size: 13px; font-weight: 600; letter-spacing: .12em; color: #6f717c; }
.venture__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.08); }
.venture__logo { height: 64px; min-width: 64px; max-width: 170px; padding: 10px 14px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px -8px rgba(0,0,0,.35); }
.venture__logo img { max-height: 44px; max-width: 142px; width: auto; height: auto; object-fit: contain; }
.venture__sector { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: #8e909b; margin-bottom: 10px; font-weight: 600; }
.venture__title { font-family: var(--serif); font-weight: var(--head-weight); font-size: clamp(1.55rem, 2vw, 1.95rem); letter-spacing: var(--head-track); line-height: 1.2; margin-bottom: 8px; color: #fff; }
.venture__title a::after { content: ""; position: absolute; inset: 0; }
.venture__tagline { color: #d8d6d0; font-weight: 500; margin-bottom: 10px; }
.venture__text { color: #9b9da7; font-size: 15px; max-width: 520px; }
.venture__foot { margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.08); }
.venture__loc { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: #8e909b; }
.venture__link { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #fff; padding: 9px 16px; border-radius: 100px; background: rgba(255,255,255,.08); transition: background .3s, color .3s; }
.venture__link:hover { background: #fff; color: var(--ink); }

/* Light variant when ventures are used inside a normal page */
.prose .ventures, .section:not(.section--dark) .ventures { color: var(--ink); }
.section:not(.section--dark) .venture, .prose .venture { background: var(--white); border-color: var(--line); }
.section:not(.section--dark) .venture__title, .prose .venture__title { color: var(--ink); }
.section:not(.section--dark) .venture__tagline, .prose .venture__tagline { color: #33353d; }
.section:not(.section--dark) .venture__text, .prose .venture__text { color: var(--muted); }
.section:not(.section--dark) .venture__icon, .prose .venture__icon { background: var(--paper-2); color: var(--ink); border-color: var(--line); }
.section:not(.section--dark) .venture__logo, .prose .venture__logo { border: 1px solid var(--line); box-shadow: none; }
.section:not(.section--dark) .venture__foot, .prose .venture__foot { border-color: var(--line); }
.section:not(.section--dark) .venture__link, .prose .venture__link { background: var(--ink); color: #fff; }
.section:not(.section--dark) .venture:hover, .prose .venture:hover { box-shadow: var(--shadow-lg); }
.section:not(.section--dark) .venture::after, .prose .venture::after { background: radial-gradient(circle, rgba(107,63,168,.12), transparent 65%); }

/* Process ---------------------------------------------------------------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--line-2); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--spectrum); }
.step__n { font-family: var(--serif); font-size: 40px; line-height: 1; color: #d3d0c8; font-weight: 700; letter-spacing: -.04em; display: block; margin-bottom: 22px; }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* Projects --------------------------------------------------------------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.project__media { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--ink); margin-bottom: 22px; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project:hover .project__media img { transform: scale(1.04); }
/* Logo instead of a screenshot: show it whole, centred on a clean panel */
.project__media--logo { background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 10% 14%; }
.project__media--logo img { width: auto !important; height: auto !important; max-width: 100%; max-height: 100%; object-fit: contain; }
.project:hover .project__media--logo img { transform: scale(1.03); }
.project__placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, rgba(107,63,168,.45), transparent 55%), radial-gradient(circle at 80% 90%, rgba(245,92,77,.35), transparent 50%), var(--ink); }
.project__placeholder span { font-family: var(--serif); color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.3; padding: 24px; text-align: center; transition: transform .8s var(--ease); }
.project:hover .project__placeholder span { transform: scale(1.04); }
.project__tags { font-size: 13px; color: var(--muted); letter-spacing: .02em; margin-bottom: 6px; }
.project__title { font-size: 24px; margin-bottom: 8px; }
.project__text { color: var(--muted); }

/* Clients (logo carousel) ---------------------------------------------- */
.clients-carousel { position: relative; overflow: hidden; padding: 6px 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clients { list-style: none; display: flex; gap: 16px; width: max-content; margin: 0; padding: 0; }
.clients-carousel.is-moving .clients { animation: logos var(--dur, 40s) linear infinite; }
.clients-carousel.is-moving:hover .clients { animation-play-state: paused; }
.clients-carousel.is-static .clients { width: auto; flex-wrap: wrap; justify-content: center; }
@keyframes logos { to { transform: translateX(calc(-50% - 8px)); } }
.client { flex: none; width: 210px; height: 112px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); display: flex; align-items: center; justify-content: center; padding: 18px 26px; transition: border-color .3s, box-shadow .3s; list-style: none; }
.client a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.client img { display: block; width: auto !important; height: auto !important; max-width: 100% !important; max-height: 64px !important; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .35s, opacity .35s; }
.client:hover { border-color: transparent; box-shadow: var(--shadow); }
.client:hover img { filter: none; opacity: 1; }
.clients-band { border-top: 1px solid var(--line); }
.clients-after { margin-top: clamp(56px, 7vw, 96px); }
.prose .clients, .entry-content .clients { padding: 0 !important; }
@media (max-width: 720px) { .client { width: 160px; height: 92px; padding: 14px 18px; } .client img { max-height: 50px !important; } }

/* Quotes ----------------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.5; }
.quote blockquote p:last-child { margin: 0; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption span { display: flex; flex-direction: column; line-height: 1.35; }
.quote figcaption em { font-style: normal; color: var(--muted); font-size: 14px; }
.quote__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* Posts ------------------------------------------------------------------ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card__media { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 18px; background: var(--paper-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(107,63,168,.18), rgba(245,92,77,.16)); }
.post-meta { display: flex; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.post-card__title { font-size: 21px; margin-bottom: 8px; line-height: 1.3; }
.post-card__title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .5s var(--ease); }
.post-card:hover .post-card__title a { background-size: 100% 1px; }
.post-card__excerpt { color: var(--muted); font-size: 15.5px; }

/* Contact band ----------------------------------------------------------- */
.contact-band { background: var(--white); border-top: 1px solid var(--line); }
.contact-band__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-list { list-style: none; display: grid; gap: 4px; margin-top: 36px; }
.contact-list a, .contact-list__static { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.contact-list .idm-icon { color: var(--accent); width: 20px; height: 20px; }
.contact-list a:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* Form ------------------------------------------------------------------- */
.idm-form { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 4vw, 40px); }
.idm-form__title { font-size: 22px; margin-bottom: 20px; }
.idm-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.idm-field { display: flex; flex-direction: column; gap: 7px; }
.idm-field--full { grid-column: 1 / -1; }
.idm-field span { font-size: 13.5px; font-weight: 600; color: #3a3c44; }
.idm-field input, .idm-field select, .idm-field textarea {
	width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--white);
	transition: border-color .25s, box-shadow .25s; font-size: 16px; appearance: none;
}
.idm-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2362646f' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.idm-field textarea { resize: vertical; min-height: 130px; }
.idm-field input:focus, .idm-field select:focus, .idm-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(107,63,168,.12); }
.idm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.idm-form__notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 500; font-size: 15px; }
.idm-form__notice.is-ok { background: #e9f8ef; color: #0f6b38; }
.idm-form__notice.is-err { background: #fdecec; color: #9c1c1c; }

/* Inner pages ------------------------------------------------------------ */
.page-hero { padding: clamp(56px, 8vw, 110px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 60% 120% at 100% 0%, rgba(107,63,168,.08), transparent 60%), radial-gradient(ellipse 50% 100% at 0% 100%, rgba(245,92,77,.06), transparent 60%); }
.page-hero__title { font-size: clamp(2.2rem, 4.2vw, 3.6rem); max-width: 1000px; }
.page-hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 680px; margin-top: 20px; }
.page-hero .hero__actions { margin-top: 32px; }
.page-hero--article .page-hero__title { font-size: clamp(2.1rem, 4vw, 3.3rem); }
.page-hero--404 { min-height: 60vh; display: flex; align-items: center; }
.page-hero--404 .search-form { margin-top: 28px; }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 28px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--muted-2); }
.breadcrumbs a:hover { color: var(--ink); }

.venture-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: center; }
.venture-hero__badge { aspect-ratio: 1; border-radius: 32px; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 32px; position: relative; overflow: hidden; }
.venture-hero__badge::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 10%, rgba(107,63,168,.5), transparent 55%), radial-gradient(circle at 90% 100%, rgba(245,92,77,.35), transparent 50%); }
.venture-hero__badge > * { position: relative; }
.venture-hero__badge .idm-icon { width: 64px; height: 64px; stroke-width: 1.3; }
.venture-hero__logo { background: #fff; border-radius: 22px; padding: 22px 26px; display: flex; align-items: center; justify-content: center; max-width: 82%; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.venture-hero__logo img { max-height: 110px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.venture-hero__badge span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #b9bac2; text-align: center; }

.facts { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.facts--sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.facts dl { margin: 0 0 8px; display: grid; gap: 4px; }
.facts dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 12px; }
.facts dd { margin: 0; font-weight: 500; }
.facts dd a { text-decoration: underline; text-underline-offset: 3px; }
.facts__title { font-size: 18px; margin-bottom: 14px; }
.check-list { list-style: none; display: grid; gap: 10px; margin-bottom: 18px; }
.check-list li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.check-list .idm-icon { color: var(--accent); }

/* Prose ------------------------------------------------------------------ */
.prose { font-size: 18px; line-height: 1.75; color: #24262d; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--serif); font-weight: var(--head-weight); font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-top: 1.8em; letter-spacing: var(--head-track); line-height: 1.2; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose a:not(.btn):not(.venture__link) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul:not(.service__list):not(.check-list), .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--accent); font-family: var(--serif); font-size: 1.3em; line-height: 1.45; }
.prose img, .prose figure { border-radius: var(--radius-sm); }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.prose code { background: var(--paper-2); padding: .15em .4em; border-radius: 6px; font-size: .9em; }
.prose pre { background: var(--ink); color: #eee; padding: 20px; border-radius: var(--radius-sm); overflow: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose .services, .prose .ventures, .prose .projects { margin-top: 2em; }
.prose .idm-form { margin-top: 1.6em; }
.prose .project__media, .prose .project__title a, .prose .service__title a, .prose .service__more, .prose .venture__title a, .prose .client a { color: inherit !important; text-decoration: none !important; }
.prose .venture__link { text-decoration: none !important; }
.prose .project__title, .prose .service__title, .prose .venture__title { margin-top: 0; }
.alignwide { width: min(100vw - 48px, 1100px); margin-inline: calc(50% - min(50vw - 24px, 550px)); max-width: none; }
.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); max-width: none; }
.entry-content--full > * { margin: 0; }

.article__media { margin: clamp(32px, 5vw, 56px) auto 0; }
.article__media img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 8; object-fit: cover; }
.article__media--logo { display: flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(32px, 6vw, 72px); }
.article__media--logo img { width: auto; max-width: min(100%, 560px); max-height: 220px; aspect-ratio: auto; border-radius: 0; object-fit: contain; }
.article .entry-content { padding-top: clamp(32px, 5vw, 56px); }
.article__foot { margin: 48px 0; padding-top: 32px; border-top: 1px solid var(--line); }
.tags a { display: inline-block; font-size: 13.5px; padding: 6px 14px; border-radius: 100px; border: 1px solid var(--line-2); margin: 0 6px 6px 0; }
.author-box { display: flex; gap: 16px; align-items: center; margin-top: 24px; }
.author-box img { border-radius: 50%; }
.author-box p { margin: 0; color: var(--muted); font-size: 15px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 64px; }
.post-navigation a { display: block; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; background: var(--white); }
.post-navigation a span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.post-navigation .nav-next { text-align: right; }

.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: grid; place-items: center; border-radius: 100px; border: 1px solid var(--line-2); font-weight: 600; font-size: 15px; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

.search-form { display: flex; gap: 10px; max-width: 520px; }
.search-form__input { flex: 1; padding: 13px 18px; border-radius: 100px; border: 1px solid var(--line-2); background: var(--white); }
.empty { text-align: center; padding: 40px 0; }
.empty .search-form { margin: 16px auto 0; }

.comments { margin-bottom: 80px; }
.comment-list { list-style: none; }
.comment-list .comment { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--white); }
.comment-form .submit { background: var(--ink); color: #fff; border: 0; padding: 14px 24px; border-radius: 100px; font-weight: 600; cursor: pointer; }

/* Footer ----------------------------------------------------------------- */
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--spectrum); }
.site-footer { position: relative; background: var(--paper-2); border-top: 0; padding: clamp(64px, 8vw, 100px) 0 32px; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 48px; }
.footer-about { color: var(--muted); margin: 20px 0 24px; max-width: 360px; }
.footer-title { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: #2d2f36; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-contact li, .footer-contact a { display: flex; gap: 10px; align-items: center; }
.footer-contact .idm-icon { color: var(--muted); }
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.social a { display: inline-block; padding: 8px 14px; border-radius: 100px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; transition: all .25s; }
.social a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.footer-bottom p { margin: 0; }
.footer-menu { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; }
.footer-menu a:hover { color: var(--ink); }

/* Dark footer option (uses the white logo) */
.site-footer--dark { background: var(--ink); color: #c9c8c3; }
.site-footer--dark .footer-about, .site-footer--dark .footer-title, .site-footer--dark .footer-bottom, .site-footer--dark .footer-contact .idm-icon { color: #8e909b; }
.site-footer--dark .footer-col a, .site-footer--dark .footer-contact li { color: #e7e5df; }
.site-footer--dark .footer-bottom { border-color: rgba(255,255,255,.1); }
.site-footer--dark .social a { border-color: rgba(255,255,255,.18); color: #fff; }
.site-footer--dark .social a:hover { background: #fff; color: var(--ink); }
.site-footer--dark .footer-menu a:hover { color: #fff; }

.wa-float {
	position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
	background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 34px -10px rgba(37,211,102,.7);
	transition: transform .35s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }

/* Reveal ----------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* WooCommerce (basic harmony) ------------------------------------------- */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button { background: var(--ink) !important; color: #fff !important; border-radius: 100px !important; padding: 12px 22px !important; font-weight: 600 !important; }
.woocommerce-page .site-main > .woocommerce, .woocommerce-page .site-main > .entry-content { width: min(100% - 48px, var(--container)); margin: 60px auto; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
	.services, .quotes, .post-grid { grid-template-columns: repeat(2, 1fr); }
	.ventures { grid-template-columns: repeat(2, 1fr); }
	.venture, .ventures > .venture:nth-child(1), .ventures > .venture:nth-child(2) { grid-column: span 1; }
	.steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.hero__inner { grid-template-columns: 1fr; }
	.hero__card { max-width: 560px; }
}
@media (max-width: 960px) {
	.nav-toggle { display: block; z-index: 102; }
	.nav {
		position: fixed; inset: 0; z-index: 101; background: var(--paper); flex-direction: column; justify-content: center; align-items: stretch;
		padding: calc(var(--header-h) + 24px) 32px 40px; gap: 32px;
		opacity: 0; visibility: hidden; transform: translateY(-12px); transition: all .4s var(--ease);
	}
	.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open { overflow: hidden; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list a { font-family: var(--serif); font-weight: var(--head-weight); letter-spacing: var(--head-track); font-size: 26px; padding: 10px 0; border-radius: 0; background: none !important; border-bottom: 1px solid var(--line); }
	.nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 0 16px; }
	.nav__list .sub-menu a { font-size: 22px; }
	.nav__cta { align-self: flex-start; }
	.split, .contact-band__inner, .venture-hero { grid-template-columns: 1fr; }
	.venture-hero__badge { max-width: 260px; }
	.facts--sticky { position: static; }
}
@media (max-width: 720px) {
	body { font-size: 16px; }
	.brand img { height: 48px; max-width: 190px; }
	.container { width: min(100% - 32px, var(--container)); }
	.services, .quotes, .post-grid, .projects, .ventures, .steps, .pillars { grid-template-columns: 1fr; }
	.pillar, .pillar + .pillar { padding: 28px 0 0; border-left: 0; }
	.pillar + .pillar { border-top: 1px solid var(--line); margin-top: 28px; }
	.idm-form__grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 36px; }
	.hero__title { font-size: clamp(2.2rem, 9vw, 2.9rem); }
	.venture { padding: 26px; min-height: 0; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.search-form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}
