/*
Theme Name: Infinite Stair
Theme URI: https://infinitestair.com/
Author: Infinite Stair
Description: Theme for Infinite Stair — ecommerce, CRM, and digital marketing agency. Built from the Infinite Stair design system (DESIGN.md): Bebas Neue / Lato / Montserrat Alternates, light and dark surfaces, restrained purple accent, warm gradient reserved for the main conversion CTA. Includes Home, service landings, How We Work, Blog index, archives, article (guide, opinion, series, case study, resource), search, 404, contact, standard page, and Lab templates. EN/ES switcher compatible with Polylang, TranslatePress, and WPML.
Version: 1.4.2
Requires at least: 6.3
Tested up to: 6.6
Requires PHP: 7.4
License: Proprietary
Text Domain: infinite-stair
*/

/* ---------- Tokens ---------- */
:root {
  --canvas: #F8F8F8; --white: #FFFFFF; --dark: #0C0714; --dark-2: #151521;
  --divider: #DADADA; --divider-dark: #211F30;
  --ink: #333333; --ink-2: #54595F; --ink-3: #606060; --on-dark: #F8F8F8; --on-dark-2: #DADADA;
  --purple: #8A2BE2; --purple-tint: rgba(138,43,226,0.08); --link: #741DA9;
  --pink: #FF4094; --pink-ink: #B22D68; --warm: #CC4B00;
  --info: #2B6CB0; --info-tint: rgba(43,108,176,0.08);
  --error: #C0392B; --success: #1F8A4C; --surface-2: #E7E7E8; --disabled: #7A7A7A; --border-strong: #A8A8A8;
  --f-display: "Bebas Neue", sans-serif; --f-body: "Lato", sans-serif; --f-label: "Montserrat Alternates", sans-serif;
  --gutter: clamp(24px, 4.44vw, 64px); --section: 96px; --section-lg: clamp(96px, 8.89vw, 128px);
  --r-md: 10px; --r-lg: 20px; --r-pill: 999px;
  --shadow-floating: 0 4px 12px rgba(12,7,20,0.12);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.6; font-synthesis: none; -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; }
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: var(--purple); }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--on-dark); }
mark { background: var(--purple-tint); color: var(--ink); font-weight: 700; padding: 0 2px; border-radius: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 14px 24px; border-radius: var(--r-pill); background: var(--purple); color: var(--on-dark); text-decoration: none; }
.skip-link:focus { left: 16px; color: var(--on-dark); }
main:focus { outline: none; }

/* ---------- Type ---------- */
.eyebrow, .label { margin: 0; font-family: var(--f-label); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; }
.eyebrow { color: var(--pink-ink); }
.label { color: var(--purple); }
.on-dark .label, .on-dark .eyebrow { color: var(--pink); }
.micro { margin: 0; font-family: var(--f-label); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.5; color: var(--ink-3); }
.on-dark .micro { color: var(--on-dark-2); }
.display, .h1 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 5.5vw, 80px); line-height: clamp(36px, calc(10px + 4.47vw), 75px); letter-spacing: 0.01em; color: var(--ink); text-wrap: balance; }
.h1--s { font-size: clamp(32px, 4.44vw, 64px); line-height: clamp(36px, calc(9px + 3.75vw), 63px); }
.h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 4.44vw, 64px); line-height: clamp(32px, calc(8px + 3.82vw), 63px); color: var(--ink); text-wrap: balance; }
.h2--m { font-size: clamp(28px, 2.78vw, 40px); }
.h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2.22vw, 32px); line-height: 1.15; color: var(--ink); }
.h3--l { margin: 0; font-family: var(--f-body); font-size: 20px; font-weight: 700; line-height: 1.35; color: var(--ink); text-wrap: balance; }
.on-dark .display, .on-dark .h1, .on-dark .h2, .on-dark .h3, .on-dark .h3--l { color: var(--on-dark); }
.lead { margin: 0; font-size: clamp(18px, 1.53vw, 22px); line-height: clamp(28px, calc(14.5px + 1.15vw), 31px); color: var(--ink-2); text-wrap: pretty; }
.lead--ink { color: var(--ink); }
.body { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.on-dark .lead, .on-dark .body { color: var(--on-dark-2); }
.emphasis { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 2.78vw, 40px); line-height: clamp(32px, calc(6px + 2.55vw), 43px); color: var(--ink); text-wrap: balance; }
.on-dark .emphasis { color: var(--on-dark); }
.strong-line { margin: 0; font-weight: 700; color: var(--ink); }

/* ---------- Layout ---------- */
.wrap { max-width: 1440px; margin: 0 auto; padding: var(--section) var(--gutter); }
.wrap--lg { padding-top: var(--section-lg); padding-bottom: var(--section-lg); }
.wrap--tight-top { padding-top: 48px; }
.stack { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-40 { gap: 40px; } .gap-56 { gap: 56px; } .gap-64 { gap: 64px; }
.split { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.split--center { align-items: center; }
.split--end { align-items: flex-end; }
.split > .col-main { flex: 1 1 560px; min-width: 0; }
.split > .col-side { flex: 1 1 420px; min-width: 0; }
.split > .col-narrow { flex: 1 1 340px; min-width: 0; }
.grid { display: grid; gap: 24px; list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--340 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--420 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--260 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--wide-gap { gap: 56px 32px; }
.grid--rules { gap: 0 48px; }
.measure { max-width: 760px; }
.measure-l { max-width: 900px; }
.section { background: var(--canvas); }
.section--white { background: var(--white); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark-2 { background: var(--dark-2); color: var(--on-dark); }
.section--rule { border-top: 1px solid var(--divider); }
.sticky-lg { position: static; }
@media (min-width: 1024px) { .sticky-lg { position: sticky; top: 120px; } }
.list-reset { list-style: none; margin: 0; padding: 0; }
.rule-list > li { border-top: 1px solid var(--divider); }
.rule-list { border-bottom: 1px solid var(--divider); }
.rule-item { display: flex; flex-direction: column; gap: 8px; padding: 28px 0; }
.on-dark .rule-list > li, .on-dark .rule-list { border-color: var(--divider-dark); }

/* ---------- Media placeholders ---------- */
.media { width: 100%; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--4x3 { aspect-ratio: 4/3; } .media--5x4 { aspect-ratio: 5/4; } .media--4x5 { aspect-ratio: 4/5; } .media--16x9 { aspect-ratio: 16/9; } .media--16x10 { aspect-ratio: 16/10; } .media--1x1 { aspect-ratio: 1/1; } .media--21x9 { aspect-ratio: 21/9; }
@media (max-width: 767px) { .media--21x9 { aspect-ratio: 4/3; background: transparent; } .media--21x9 img { object-fit: contain; } .media--21x9.banner-img img { scale: none; translate: none; } }
.placeholder { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 16px; background-color: var(--surface-2); background-image: repeating-linear-gradient(135deg, rgba(12,7,20,0.05) 0 1px, transparent 1px 8px); font-family: ui-monospace, Menlo, monospace; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.placeholder b { color: var(--ink); }
.on-dark .placeholder, .placeholder--dark { background-color: var(--dark-2); background-image: repeating-linear-gradient(135deg, rgba(248,248,248,0.05) 0 1px, transparent 1px 8px); border: 1px solid var(--divider-dark); color: var(--on-dark-2); }
.on-dark .placeholder b { color: var(--on-dark); }
.icon-slot { width: 64px; height: 64px; border-radius: var(--r-md); overflow: hidden; }
.icon-slot img { width: 100%; height: 100%; object-fit: contain; }
.avatar { border-radius: var(--r-pill); overflow: hidden; flex: 0 0 auto; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 14px 28px; border-radius: var(--r-pill); border: 0; cursor: pointer; text-decoration: none; font-family: var(--f-label); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; white-space: nowrap; transition: background-color 160ms ease-out, transform 160ms ease-out; }
.btn:active { transform: scale(0.97); }
.btn--primary { background-color: var(--purple); background-image: linear-gradient(120deg, #CC4B00, #8A2BE2); color: var(--on-dark); }
.btn--secondary { background: var(--white); color: var(--ink); border: 1px solid var(--ink); }
.btn--secondary-dark { background: var(--on-dark); color: var(--dark); }
.btn--solid { background-color: var(--purple); color: var(--on-dark); }
.btn--gradient { background-color: var(--purple); background-image: linear-gradient(120deg, #CC4B00, #8A2BE2); color: var(--on-dark); }
.btn[disabled] { cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background-image: linear-gradient(120deg, #FF6A1A, #A64DFF); color: var(--on-dark); }
  .btn--secondary:hover { background: var(--surface-2); color: var(--ink); }
  .btn--solid:hover { background-color: var(--link); color: var(--on-dark); }
  .btn--secondary-dark:hover { background: var(--on-dark-2); color: var(--dark); }
  .btn--gradient:hover { background-image: linear-gradient(120deg, #FF6A1A, #A64DFF); color: var(--on-dark); }
}
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.tlink { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--link); font-family: var(--f-label); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; border-radius: 4px; }
.tlink:hover { color: var(--purple); text-decoration-thickness: 2px; }
.on-dark .tlink { color: var(--on-dark); }
.ilink { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.on-dark .ilink { color: var(--on-dark); }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--divider); color: var(--ink); font-family: var(--f-label); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.badge--purple { background: var(--purple-tint); color: var(--link); }
.badge--outline { background: transparent; border: 1px solid var(--purple); color: var(--link); }
.badge--solid { background: var(--purple); color: var(--on-dark); }
.badge--success { background: rgba(31,138,76,0.08); color: var(--success); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0 0 4px; }
@media (max-width: 767px) { .chips--scroll { flex-wrap: nowrap; overflow-x: auto; } .chips--scroll > * { flex: 0 0 auto; } }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--divider); background: var(--white); color: var(--ink); font-family: var(--f-label); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; white-space: nowrap; cursor: pointer; }
.chip:hover { border-color: var(--link); color: var(--link); background: var(--purple-tint); }
.chip[aria-current], .chip[aria-pressed="true"], .chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.chip .count { color: var(--ink-3); }
.chip[aria-pressed="true"] .count, .chip[aria-current] .count { color: var(--on-dark-2); }
.pill { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 16px; border-radius: var(--r-pill); border: 1px solid var(--divider); background: var(--canvas); color: var(--ink); font-family: var(--f-label); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--purple); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--canvas); border-bottom: 1px solid var(--divider); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__bar { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo { display: flex; align-items: center; border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.site-logo img, .site-logo svg { height: 40px; width: auto; max-width: clamp(124px, 12vw, 172px); }
.site-logo__text { font-family: var(--f-display); font-size: 28px; letter-spacing: 0.02em; line-height: 1; }
.site-nav { display: none; flex: 1 1 auto; justify-content: center; min-width: 0; }
.site-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: var(--r-pill); color: var(--ink); text-decoration: none; font-family: var(--f-label); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; transition: background-color 160ms ease-out; }
.site-nav a:hover { color: var(--link); background: var(--purple-tint); }
.site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a, .site-nav .current_page_parent > a, .site-nav a[aria-current] { color: var(--link); background: var(--purple-tint); }
.header-tools { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.header-cta { display: none; white-space: nowrap; }
.menu-toggle { width: 48px; height: 48px; margin-right: -12px; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: var(--r-pill); cursor: pointer; }
.menu-toggle:hover { background: var(--purple-tint); }
.menu-toggle__bars { position: relative; display: block; width: 22px; height: 16px; }
.menu-toggle__bars span { position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink); transition: transform 200ms var(--ease-out), opacity 120ms ease-out; }
.menu-toggle__bars span:nth-child(1) { top: 0; } .menu-toggle__bars span:nth-child(2) { top: 7px; } .menu-toggle__bars span:nth-child(3) { top: 14px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1400px) {
  html:not([lang^="es"]) .site-nav { display: flex; }
  html:not([lang^="es"]) .header-cta { display: inline-flex; }
  html:not([lang^="es"]) .menu-toggle, html:not([lang^="es"]) .drawer { display: none !important; }
  html:not([lang^="es"]) .header-tools { gap: 16px; }
}
@media (min-width: 1560px) {
  html[lang^="es"] .site-nav { display: flex; }
  html[lang^="es"] .header-cta { display: inline-flex; }
  html[lang^="es"] .menu-toggle, html[lang^="es"] .drawer { display: none !important; }
  html[lang^="es"] .header-tools { gap: 16px; }
}
.drawer { position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--header-h)); overflow: auto; background: var(--canvas); display: flex; flex-direction: column; gap: 32px; padding: 8px var(--gutter) 40px; }
.drawer[hidden] { display: none; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li { border-bottom: 1px solid var(--divider); }
.drawer nav a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; color: var(--ink); text-decoration: none; font-family: var(--f-label); font-size: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.drawer nav a::after { content: "→"; font-family: var(--f-body); color: var(--purple); }
.drawer nav .current-menu-item > a, .drawer nav a[aria-current] { color: var(--link); background: var(--purple-tint); margin: 0 -16px; padding: 0 16px; border-radius: var(--r-md); }
.drawer nav .current-menu-item > a::after, .drawer nav a[aria-current]::after { content: attr(data-current); font-family: var(--f-label); font-size: 12px; font-weight: 700; color: var(--link); }
.drawer .btn { width: 100%; min-height: 52px; }

/* Language switcher */
.lang-switch { display: flex; align-items: center; gap: 2px; height: 46px; padding: 2px; border-radius: var(--r-pill); border: 1px solid var(--divider); background: var(--white); list-style: none; margin: 0; }
.lang-switch a, .lang-switch span { display: flex; align-items: center; justify-content: center; min-width: 46px; height: 40px; padding: 0 10px; border-radius: var(--r-pill); color: var(--ink); text-decoration: none; font-family: var(--f-label); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; transition: background-color 160ms ease-out; }
.lang-switch a:hover { background: var(--purple-tint); color: var(--link); }
.lang-switch [aria-current] { background: var(--purple); color: var(--on-dark); }
.lang-switch--full { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; height: auto; padding: 3px; }
.lang-switch--full a, .lang-switch--full span { min-height: 48px; font-size: 14px; letter-spacing: 0.04em; text-transform: none; }
.lang-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-2); border-top: 1px solid var(--divider-dark); }
.site-footer__inner { max-width: 1440px; margin: 0 auto; padding: 80px var(--gutter) 48px; display: flex; flex-direction: column; gap: 64px; }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.site-footer__brand { flex: 1 1 320px; max-width: 420px; display: flex; flex-direction: column; gap: 20px; }
.site-footer__brand p { margin: 0; color: var(--on-dark-2); }
.site-footer__brand .site-logo { color: var(--on-dark); align-self: flex-start; }
.site-footer__nav { flex: 2 1 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer__nav a { display: flex; align-items: center; min-height: 44px; color: var(--on-dark); text-decoration: none; }
.site-footer__nav a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 24px; border-top: 1px solid var(--divider-dark); font-size: 14px; }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; margin: 0; padding: 0; }
.site-footer__legal a { color: var(--on-dark-2); }

/* ---------- Cards & entries ---------- */
.card { display: flex; flex-direction: column; gap: 20px; padding: 32px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--divider); }
.card--canvas { background: var(--canvas); }
.card--dashed { border-style: dashed; border-color: var(--border-strong); }
.card__scope { margin: 0; padding-top: 16px; border-top: 1px solid var(--divider); }
.card .grow { flex: 1 1 auto; }
.entry-card > a { display: flex; flex-direction: column; gap: 14px; height: 100%; color: var(--ink); text-decoration: none; border-radius: var(--r-md); }
.entry-card > a:hover { color: var(--link); }
.entry-card h3 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.35; text-wrap: balance; }
.entry-card .excerpt { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.entry-card .byline { margin-top: auto; font-size: 14px; color: var(--ink-2); }
.entry-row > a { display: flex; flex-wrap: wrap; gap: 20px 32px; padding: 28px 0; color: var(--ink); text-decoration: none; }
.entry-row > a:hover { color: var(--link); }
.entry-row .media { flex: 0 0 min(100%, 240px); }
.entry-row__body { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.entry-row h3 { margin: 0; font-size: clamp(20px, 1.67vw, 24px); font-weight: 700; line-height: 1.3; }
.entry-compact > a { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; min-height: 64px; padding: 18px 0; color: var(--ink); text-decoration: none; }
.entry-compact > a:hover { color: var(--link); }
.feature-lead { display: flex; flex-direction: column; gap: 20px; color: var(--ink); text-decoration: none; }
.feature-lead:hover { color: var(--link); }
.feature-lead h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 3.33vw, 48px); line-height: clamp(32px, calc(7px + 3vw), 50px); }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; }
.pagination .page-numbers { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 6px; border-radius: var(--r-pill); color: var(--ink); text-decoration: none; font-family: var(--f-label); font-size: 14px; font-weight: 600; }
.pagination a.page-numbers:hover { background: var(--purple-tint); color: var(--link); }
.pagination .page-numbers.current { background: var(--purple); color: var(--on-dark); font-weight: 700; }
.pagination .page-numbers.dots { min-width: 28px; color: var(--ink-3); }
.pagination .prev, .pagination .next { padding: 0 18px; border: 1px solid var(--ink); background: var(--white); font-size: 13px; letter-spacing: 0.04em; }
.pagination .is-disabled { color: var(--disabled); border-color: var(--divider); }
.pagination__status { margin: 0; font-size: 14px; color: var(--ink-2); }
@media (max-width: 767px) { .pagination .page-numbers:not(.current):not(.prev):not(.next) { display: none; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; color: var(--ink-2); }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--border-strong); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 700; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend, .form-label { font-family: var(--f-label); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.field .opt { font-family: var(--f-body); font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-2); }
.req { color: var(--pink-ink); }
.input, .field input[type="text"], .field input[type="email"], .field input[type="url"], .field textarea, .field select { width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--r-md); border: 1px solid var(--border-strong); background: var(--white); color: var(--ink); font-family: var(--f-body); font-size: 16px; }
.field textarea { min-height: 140px; line-height: 1.6; resize: vertical; }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--purple); outline-offset: 0; border-color: var(--purple); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__help { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.field__error { margin: 0; font-size: 14px; line-height: 1.4; color: var(--error); }
.field__error:empty { display: none; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.5; color: var(--ink); cursor: pointer; }
.check input { flex: 0 0 22px; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--purple); }
.radio-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--divider); background: var(--white); cursor: pointer; font-family: var(--f-label); font-size: 13px; font-weight: 600; }
.radio-chip:has(input:checked) { border-color: var(--purple); background: var(--purple-tint); color: var(--link); }
.radio-chip input { width: 16px; height: 16px; margin: 0; accent-color: var(--purple); }
.grid-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.alert { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px; border-radius: var(--r-md); border: 2px solid var(--error); background: var(--white); }
.alert__title { margin: 0; font-weight: 700; color: var(--error); }
.alert ul { margin: 0; padding-left: 20px; }
.notice-success { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 40px clamp(24px, 3.33vw, 48px); border-radius: var(--r-lg); border: 1px solid var(--divider); background: var(--canvas); }
.hp-field { position: absolute; left: -9999px; }
.search-form { display: flex; gap: 8px; width: 100%; max-width: 560px; }
.search-form--lg { max-width: 760px; }
.search-form input[type="search"] { flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 12px 22px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); background: var(--white); color: var(--ink); font-family: var(--f-body); font-size: 16px; }
.search-form--lg input[type="search"] { min-height: 56px; font-size: 18px; }
@media (max-width: 767px) { .search-form { flex-direction: column; } .search-form .btn { width: 100%; } }
.search-form input[type="search"]:focus { outline: 2px solid var(--purple); outline-offset: 0; border-color: var(--purple); }
.spinner { width: 16px; height: 16px; border-radius: var(--r-pill); border: 2px solid rgba(248,248,248,0.4); border-top-color: var(--on-dark); animation: is-spin 700ms linear infinite; }
@keyframes is-spin { to { transform: rotate(360deg); } }

/* ---------- FAQ ---------- */
.faq__item { border-top: 1px solid var(--divider); }
.faq { border-bottom: 1px solid var(--divider); }
.faq__q { margin: 0; }
.faq__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 28px 0 0; background: transparent; border: 0; text-align: left; color: var(--ink); font-family: var(--f-body); font-size: 20px; font-weight: 700; line-height: 1.4; cursor: default; }
.faq__sign { display: none; flex: 0 0 32px; height: 32px; border-radius: var(--r-pill); border: 1px solid var(--divider); align-items: center; justify-content: center; font-size: 18px; color: var(--link); }
.faq__a { padding: 12px 0 28px; }
.faq__a p { margin: 0; max-width: 720px; color: var(--ink-2); }
@media (max-width: 767px) {
  .js .faq__btn { padding: 16px 0; font-size: 18px; cursor: pointer; }
  .js .faq__btn:hover { color: var(--link); }
  .js .faq__sign { display: flex; }
  .js .faq__a { padding: 0 48px 24px 0; }
  .js .faq__a[hidden] { display: none; }
}
@media (min-width: 768px) { .faq__a[hidden] { display: block; } }

/* ---------- Article / prose ---------- */
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 24px; border-top: 1px solid var(--divider); }
.article-meta dl { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--ink-2); }
.article-meta dl div { display: flex; gap: 6px; }
.article-meta dd { margin: 0; color: var(--ink); }
.article-author { display: flex; align-items: center; gap: 14px; }
.cover-band { background: linear-gradient(var(--canvas) 50%, var(--white) 50%); }
.cover-band figure { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 12px; }
.cover-band figcaption { font-size: 14px; color: var(--ink-2); }
.article-layout { max-width: 1440px; margin: 0 auto; padding: 56px var(--gutter) 96px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 64px; }
.article-layout--center { justify-content: center; }
.article-main { flex: 1 1 560px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 24px; }
.toc { display: none; flex: 0 0 260px; position: sticky; top: 104px; flex-direction: column; gap: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--divider); }
.toc a { display: flex; align-items: center; min-height: 40px; padding: 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); font-size: 15px; line-height: 1.4; text-decoration: none; }
.toc a:hover { color: var(--link); }
.toc a[aria-current] { border-left-color: var(--purple); color: var(--link); font-weight: 700; }
.toc-mobile { border: 1px solid var(--divider); border-radius: var(--r-md); }
.toc-mobile summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; cursor: pointer; list-style: none; font-family: var(--f-label); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: "+"; font-size: 18px; color: var(--link); }
.toc-mobile[open] summary::after { content: "−"; }
.toc-mobile ol { list-style: none; margin: 0; padding: 0 8px 8px; }
.toc-mobile a { display: flex; align-items: center; min-height: 44px; padding: 0 8px; border-top: 1px solid var(--divider); color: var(--ink); text-decoration: none; }
@media (min-width: 1024px) { .toc { display: flex; } .toc-mobile { display: none; } }
.prose { font-size: 18px; line-height: 1.7; color: var(--ink); }
.prose > * { margin-top: 0; margin-bottom: 24px; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2 { margin-top: 40px; font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 2.78vw, 40px); line-height: clamp(32px, calc(6px + 2.55vw), 43px); scroll-margin-top: 96px; text-wrap: balance; }
.prose h3 { margin-top: 32px; font-size: 21px; font-weight: 700; line-height: 1.35; scroll-margin-top: 96px; }
.prose h4 { margin-top: 24px; font-family: var(--f-label); font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 10px; padding-left: 4px; }
.prose blockquote, .prose .wp-block-pullquote { margin: 40px 0; padding: 0; border: 0; }
.prose blockquote p, .prose .wp-block-pullquote p { margin: 0 0 12px; font-family: var(--f-body); font-size: clamp(20px, 1.67vw, 24px); font-weight: 700; line-height: 1.45; text-wrap: pretty; }
.prose blockquote cite, .prose .wp-block-pullquote cite { font-style: normal; font-size: 14px; color: var(--ink-2); }
.prose figure { margin: 32px 0; }
.prose figure img { border-radius: var(--r-md); width: 100%; }
.prose figcaption, .prose .wp-element-caption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); text-align: left; }
.prose .wp-block-table { overflow-x: auto; border: 1px solid var(--divider); border-radius: var(--r-md); }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px; border: 0; border-top: 1px solid var(--divider); }
.prose thead th { background: var(--canvas); border-top: 0; }
.prose td { color: var(--ink-2); }
.prose .wp-block-embed__wrapper, .prose .wp-block-video video { border-radius: var(--r-md); overflow: hidden; }
.prose .wp-block-embed.is-type-video .wp-block-embed__wrapper { position: relative; aspect-ratio: 16/9; }
.prose .wp-block-embed.is-type-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.prose details { padding: 16px 20px; border-radius: var(--r-md); border: 1px solid var(--divider); background: var(--canvas); font-size: 16px; }
.prose details summary { cursor: pointer; color: var(--link); font-family: var(--f-label); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.prose .is-style-takeaway, .callout { padding: 24px 28px; border-radius: var(--r-lg); border: 1px solid var(--divider); background: var(--white); }
.prose a { color: var(--link); text-underline-offset: 3px; }
.box { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--divider); background: var(--canvas); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px 32px; }
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); }
.facts--stack { display: flex; flex-direction: column; gap: 0; }
.facts--stack div { padding: 12px 0; border-top: 1px solid var(--divider); }
.series a, .series span { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: var(--r-md); color: var(--ink); text-decoration: none; }
.series [aria-current] { background: var(--purple-tint); color: var(--link); font-weight: 700; }
.author-box { display: flex; flex-wrap: wrap; gap: 24px; padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--divider); background: var(--canvas); }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tags .chip { min-height: 40px; }

/* ---------- Home / landing specifics ---------- */
.logo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 16px; }
.logo-grid li { height: 88px; display: flex; align-items: center; justify-content: center; padding: 12px; border-radius: var(--r-md); }
.logo-grid img { max-height: 48px; width: auto; filter: grayscale(1); }
.method-row { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; gap: 24px 48px; padding: 48px 0; border-top: 1px solid var(--divider); scroll-margin-top: 140px; }
.method-row__ghost { position: absolute; right: 0; top: 12px; font-family: var(--f-display); font-size: clamp(120px, 12vw, 180px); line-height: 0.85; color: var(--divider); pointer-events: none; user-select: none; }
.method-row__meta { position: relative; flex: 0 1 200px; display: flex; flex-direction: column; gap: 16px; }
.method-row__body { position: relative; flex: 1 1 360px; min-width: 0; max-width: 640px; display: flex; flex-direction: column; gap: 16px; }
.stage-eyebrow { margin: 0; font-family: var(--f-label); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.stage-eyebrow span { color: var(--purple); }
.measure-panel { display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: var(--r-lg); background: var(--info-tint); border: 1px solid rgba(43,108,176,0.24); }
.measure-panel .micro { color: var(--info); }
.method-wrap { display: flex; flex-direction: row-reverse; flex-wrap: wrap; align-items: flex-start; gap: 48px 64px; }
.method-wrap > aside { flex: 1 1 340px; }
.method-wrap > ol { flex: 2 1 560px; min-width: 0; }
@media (min-width: 1024px) { .method-wrap > aside { position: sticky; top: 156px; } }
.anchor-nav { position: sticky; top: var(--header-h); z-index: 40; background: var(--white); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.admin-bar .anchor-nav { top: calc(var(--header-h) + 32px); }
.anchor-nav ul { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); list-style: none; display: flex; align-items: center; gap: 4px; overflow-x: auto; min-height: 60px; }
.anchor-nav a { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); color: var(--ink); text-decoration: none; font-family: var(--f-label); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.anchor-nav a:hover, .anchor-nav a[aria-current] { background: var(--purple-tint); color: var(--link); }
.anchor-nav a span { color: var(--ink-3); }
.anchor-nav a[aria-current] span { color: var(--purple); }
.status-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.status-steps li { display: flex; flex-direction: column; gap: 8px; font-family: var(--f-label); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.status-steps li::before { content: ""; height: 8px; border-radius: var(--r-pill); border: 1px solid var(--divider); background: var(--white); }
.status-steps .is-done { color: var(--link); } .status-steps .is-done::before { background: var(--purple); border-color: var(--purple); }
.status-steps .is-current { color: var(--link); } .status-steps .is-current::before { background: var(--purple-tint); border-color: var(--purple); }
.lab-card { display: flex; flex-direction: column; border-radius: var(--r-lg); border: 1px solid var(--divider); background: var(--white); overflow: hidden; }
.lab-card .media { border-radius: 0; }
.lab-card__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 16px; padding: 28px; }
.lab-card__body .btn { margin-top: auto; align-self: flex-start; }
.mini-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; line-height: 1.5; }
.mini-dl dd { margin: 0; color: var(--ink-2); }
.demo-frame { position: relative; aspect-ratio: 16/9; width: 100%; border-radius: var(--r-md); overflow: hidden; }
.demo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .anchor-nav, .toc, .toc-mobile { display: none !important; } }

/* ---------- Article content blocks (migrated case studies + Lab) ---------- */
.prose h4 { margin-top: 32px; font-family: var(--f-body); font-size: 19px; font-weight: 700; letter-spacing: 0; text-transform: none; line-height: 1.35; }
.prose h5 { margin-top: 28px; margin-bottom: 12px; font-family: var(--f-label); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.prose h6 { margin-top: 20px; margin-bottom: 8px; font-family: var(--f-label); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.prose .wp-block-quote { margin: 32px 0; padding: 0 0 0 20px; border-left: 2px solid var(--purple); }
.prose .wp-block-quote p { font-family: var(--f-body); font-size: 19px; line-height: 1.6; color: var(--ink); }
.prose .wp-block-quote cite { display: block; margin-top: 8px; }
.prose .is-style-statement { margin: 48px 0 8px; padding: 32px 0; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); font-size: clamp(32px, 3.89vw, 52px); line-height: clamp(35px, calc(9px + 3.11vw), 51px); }
.prose .is-style-statement em { font-style: normal; color: var(--link); }
.prose .is-style-case-facts, .prose .is-style-takeaway { padding: 24px 28px; border-radius: var(--r-lg); border: 1px solid var(--divider); background: var(--canvas); }
.prose .wp-block-group > *:first-child { margin-top: 0; }
.prose .wp-block-group > *:last-child { margin-bottom: 0; }
.prose .is-style-case-facts .wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 16px 32px; margin: 0; }
.prose .is-style-case-facts h3, .prose .is-style-takeaway h3 { margin: 0 0 8px; font-family: var(--f-label); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.prose .is-style-takeaway h3 { color: var(--purple); margin-bottom: 12px; }
.prose .is-style-case-facts ul { list-style: none; padding: 0; margin: 0; font-size: 16px; line-height: 1.5; }
.prose .is-style-case-facts li { margin: 0 0 4px; padding: 0; }
.prose .is-style-takeaway ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px 24px; }
.prose .is-style-takeaway li { margin: 0; padding: 12px 0 0; border-top: 1px solid var(--divider); font-size: 16px; line-height: 1.5; }
.prose .is-style-testimonial { display: grid; gap: 20px; margin: 48px 0; padding: clamp(24px, 2.78vw, 40px); border-radius: var(--r-lg); background: var(--dark-2); color: var(--on-dark); }
.prose .is-style-testimonial .wp-block-quote { margin: 0; padding: 0; border: 0; }
.prose .is-style-testimonial .wp-block-quote p { font-size: clamp(18px, 1.53vw, 22px); line-height: 1.55; color: var(--on-dark); }
.prose .is-style-testimonial cite { margin-top: 16px; font-size: 15px; color: var(--on-dark-2); }
.prose .is-style-testimonial cite a { color: var(--on-dark); font-weight: 700; }
.prose .is-testimonial-portrait { margin: 0; }
.prose .is-testimonial-portrait img { width: 72px; height: 72px; border-radius: var(--r-pill); object-fit: cover; }
@media (min-width: 768px) { .prose .is-style-testimonial { grid-template-columns: 72px minmax(0, 1fr); gap: 28px; align-items: start; } }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; padding: 14px 28px; border-radius: var(--r-pill); border: 1px solid var(--ink); background: var(--white); color: var(--ink); text-decoration: none; font-family: var(--f-label); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.prose .wp-block-button__link:hover { background: var(--surface-2); color: var(--ink); }
.prose .wp-block-separator { margin: 48px 0; border: 0; border-top: 1px solid var(--divider); }
.prose .wp-block-image img { border-radius: var(--r-md); }

/* ---------- Search toggle + popup ---------- */
.search-toggle { flex: 0 0 auto; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; padding: 0; border-radius: var(--r-pill); border: 1px solid var(--divider); background: var(--white); color: var(--ink); cursor: pointer; transition: background-color 160ms ease-out, transform 160ms ease-out; }
.search-toggle:hover { background: var(--purple-tint); color: var(--link); border-color: var(--link); }
.search-toggle:active { transform: scale(0.97); }
.search-toggle:focus-visible, .search-pop__close:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.search-pop { position: fixed; inset: 88px 0 auto 0; margin: 0 auto; width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 112px); overflow: auto; padding: 0; border: 1px solid var(--divider); border-radius: var(--r-lg); background: var(--white); color: var(--ink); box-shadow: 0 12px 32px rgba(12,7,20,0.16); }
.search-pop::backdrop { background: rgba(12,7,20,0.48); }
.search-pop__inner { display: flex; flex-direction: column; gap: 24px; padding: clamp(24px, 3vw, 40px); }
.search-pop__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.search-pop__close { width: 44px; height: 44px; margin: -8px -8px -8px 0; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink); cursor: pointer; }
.search-pop__close:hover { background: var(--purple-tint); color: var(--link); }
.search-pop__popular { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--divider); }
.search-pop .chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.drawer__cta { display: flex; flex-direction: column; gap: 12px; }
.drawer__cta .btn { width: 100%; }
.header-tools .header-cta + .header-cta { margin-left: -8px; }

/* ---------- Case study cards (portfolio) ---------- */
.case-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px 32px; }
.case-card__link { display: flex; flex-direction: column; gap: 16px; color: var(--ink); text-decoration: none; border-radius: var(--r-md); }
.case-card__link:focus-visible { outline: 2px solid var(--purple); outline-offset: 6px; }
.case-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-md); background: var(--surface-2); }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 320ms cubic-bezier(0.23, 1, 0.32, 1); }
.case-card__topic { display: block; font-family: var(--f-label); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.4; color: var(--ink-3); }
.case-card__text { display: flex; flex-direction: column; gap: 6px; }
.case-card__topic--static { align-self: flex-start; display: inline-flex; align-items: center; min-height: 28px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--purple-tint); color: var(--link); line-height: 1.2; }
.case-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.case-card__company { display: flex; align-items: center; gap: 12px; min-width: 0; }
.case-card__logo { flex: 0 0 auto; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; padding: 6px; border-radius: var(--r-md); border: 1px solid var(--divider); background: var(--white); }
.case-card__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.case-card__logo--l { width: 56px; height: 56px; padding: 8px; }
.case-card__name { font-family: var(--f-display); font-size: clamp(24px, 2.22vw, 32px); line-height: 1.15; }
.case-card__link:hover { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .case-card__link:hover .case-card__media img { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .case-card__media img { transition: none; } }
.case-card__more { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; margin-top: 4px; color: var(--link); font-family: var(--f-label); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.case-card__link:hover .case-card__more { color: var(--purple); text-decoration-thickness: 2px; }
.case-company { display: flex; align-items: center; gap: 14px; padding-top: 24px; border-top: 1px solid var(--divider); }
.case-cover img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r-md); }
@media (max-width: 767px) { .case-cover img { aspect-ratio: 4 / 3; } }

/* ---------- Forminator (site-wide form 8887) — align with the design system ---------- */
.is-forminator .forminator-ui.forminator-custom-form { margin: 0 !important; font-family: var(--f-body) !important; }
.is-forminator .forminator-label { font-family: var(--f-label) !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: 0.06em !important; text-transform: uppercase !important; color: var(--ink) !important; }
.is-forminator input.forminator-input, .is-forminator textarea.forminator-textarea, .is-forminator select { min-height: 48px; padding: 12px 16px !important; border: 1px solid #A8A8A8 !important; border-radius: var(--r-md) !important; background: var(--white) !important; color: var(--ink) !important; font-family: var(--f-body) !important; font-size: 16px !important; }
.is-forminator input.forminator-input:focus, .is-forminator textarea.forminator-textarea:focus { outline: 2px solid var(--purple) !important; outline-offset: 0 !important; border-color: var(--purple) !important; box-shadow: none !important; }
.is-forminator .forminator-error-message, .is-forminator .forminator-error-message * { color: var(--error) !important; font-size: 14px !important; }
.is-forminator .forminator-button-submit { min-height: 48px; padding: 14px 28px !important; border: 0 !important; border-radius: var(--r-pill) !important; background: var(--purple) !important; color: var(--on-dark) !important; font-family: var(--f-label) !important; font-size: 14px !important; font-weight: 600 !important; letter-spacing: 0.06em !important; text-transform: uppercase !important; box-shadow: none !important; transition: background-color 160ms ease-out, transform 160ms ease-out; }
.is-forminator .forminator-button-submit:hover { background: var(--link) !important; }
.is-forminator .forminator-button-submit:active { transform: scale(0.97); }
.is-forminator .forminator-button-submit:focus-visible { outline: 2px solid var(--purple) !important; outline-offset: 3px !important; }
.is-forminator .forminator-response-message.forminator-success { border-radius: var(--r-md) !important; background: rgba(31,138,76,0.08) !important; color: #1F8A4C !important; }

/* ---------- Thank-you page ---------- */
.ty-options { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.ty-option { display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 2.78vw, 40px); border-radius: var(--r-lg); border: 1px solid var(--divider); background: var(--canvas); }
.ty-option .btn { align-self: flex-start; margin-top: auto; }
.ty-option--dark { background: var(--dark-2); border-color: var(--dark-2); }
.ty-option__icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(138,43,226,0.08); color: #741DA9; }
.ty-option--dark .ty-option__icon { background: rgba(248,248,248,0.08); color: var(--on-dark); }

/* ---------- Logo carousel (Our experience across brands) ---------- */
.logo-marquee { min-width: 0; }
.logo-marquee__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.logo-marquee__track { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; width: max-content; animation: is-marquee var(--marquee-duration, 40s) linear infinite; }
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }
.logo-marquee__tile { flex: 0 0 auto; width: 176px; height: 88px; display: flex; align-items: center; justify-content: center; padding: 16px 20px; border-radius: var(--r-md); border: 1px solid var(--divider); background: var(--canvas); }
.logo-marquee__tile img { max-width: 100%; max-height: 48px; width: auto; height: auto; object-fit: contain; }
.logo-marquee__name { font-family: var(--f-display); font-size: 26px; line-height: 1; color: var(--ink); text-align: center; }
@keyframes is-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 8px)); } }
@media (prefers-reduced-motion: reduce) { .logo-marquee__track { animation: none; flex-wrap: wrap; width: auto; } .logo-marquee__track > :nth-child(n + 9) { display: none; } }

/* ---------- Header nav + mega menu (Header menu location; submenus → panel) ---------- */
.site-nav .nav-list, .drawer .nav-list { list-style: none; margin: 0; padding: 0; }
.site-nav .nav-list { display: flex; align-items: center; gap: 2px; }
.site-nav .nav-item { display: flex; align-items: center; }
.site-nav .nav-link { display: flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: var(--r-pill); color: var(--ink); text-decoration: none; font-family: var(--f-label); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; transition: background-color 160ms ease-out; }
.site-nav .nav-link:hover, .site-nav .nav-link.is-current, .site-nav .has-mega.is-open .nav-link { color: var(--link); background: var(--purple-tint); }
.site-nav .has-mega .nav-link { padding-right: 4px; border-radius: var(--r-pill) 0 0 var(--r-pill); }
.mega-toggle { width: 32px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 0 var(--r-pill) var(--r-pill) 0; background: transparent; color: var(--ink); cursor: pointer; }
.mega-toggle svg { transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }
.mega-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-nav .has-mega:hover .mega-toggle, .site-nav .has-mega.is-open .mega-toggle { background: var(--purple-tint); color: var(--link); }
.mega-toggle:focus-visible, .nav-link:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.site-nav .mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; background: var(--white); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); box-shadow: 0 12px 32px rgba(12,7,20,0.08); }
.site-nav .mega__inner { max-width: 1440px; margin: 0 auto; padding: 40px clamp(24px, 4.44vw, 64px) 48px; display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 48px; }
.mega__intro { display: flex; flex-direction: column; gap: 12px; padding-right: 32px; border-right: 1px solid var(--divider); }
.mega__intro .micro { color: var(--purple); }
.mega__lead { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink); }
.mega__intro .tlink { margin-top: auto; }
.mega__cols { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 32px; }
.mega__feature { display: flex; flex-direction: column; gap: 6px; padding: 16px; margin: -16px -16px 0; border-radius: var(--r-md); color: var(--ink); text-decoration: none; transition: background-color 160ms ease-out; }
.mega__feature:hover { background: var(--canvas); color: var(--ink); }
.mega__title { font-family: var(--f-display); font-size: 26px; line-height: 1.1; }
.mega__feature:hover .mega__title { color: var(--link); }
.mega__desc { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.mega__heading { display: block; margin-bottom: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--divider); color: var(--ink); text-decoration: none; font-family: var(--f-label); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.mega__heading:hover { color: var(--link); }
.mega__col--group .mega__desc { display: block; margin: -2px 0 8px; }
.mega__links { list-style: none; margin: 0; padding: 0; }
.mega__link { display: flex; align-items: center; min-height: 40px; color: var(--ink); text-decoration: none; font-size: 16px; }
.mega__link:hover, .mega__link[aria-current] { color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
.mega__feature:focus-visible, .mega__link:focus-visible, .mega__heading:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .site-nav .mega:not([hidden]) { animation: is-mega-in 180ms cubic-bezier(0.23, 1, 0.32, 1); } }
@keyframes is-mega-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* Drawer (mobile): accordion */
.drawer .nav-list > li { border-bottom: 1px solid var(--divider); }
.drawer .nav-item { display: flex; align-items: center; justify-content: space-between; }
.drawer .nav-link { flex: 1 1 auto; display: flex; align-items: center; min-height: 64px; color: var(--ink); text-decoration: none; font-family: var(--f-label); font-size: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.drawer .nav-link.is-current { color: var(--link); }
.drawer .mega-toggle { width: 48px; height: 48px; border-radius: var(--r-pill); }
.drawer .mega { padding: 0 0 20px; }
.drawer .mega__inner { display: flex; flex-direction: column; gap: 20px; }
.drawer .mega__intro { padding: 0; border: 0; }
.drawer .mega__intro .micro, .drawer .mega__lead { display: none; }
.drawer .mega__cols { grid-template-columns: 1fr; gap: 16px; }
.drawer .mega__feature { margin: 0; padding: 12px 16px; background: var(--white); border: 1px solid var(--divider); }
.drawer .mega__title { font-size: 22px; }

/* mega resets: neutralise the generic .site-nav ul / a rules inside the panel */
.site-nav .mega ul.mega__cols { display: grid; align-items: start; gap: 8px 32px; }
.site-nav .mega ul.mega__links { display: block; }
.site-nav .mega a { display: revert; min-height: 0; padding: 0; border-radius: 0; background: none; font-family: var(--f-body); font-size: inherit; font-weight: inherit; letter-spacing: 0; text-transform: none; white-space: normal; }
.site-nav .mega a.mega__feature { display: flex; padding: 16px; border-radius: var(--r-md); }
.site-nav .mega a.mega__feature:hover { background: var(--canvas); }
.site-nav .mega a.mega__heading { display: block; padding-bottom: 10px; font-family: var(--f-label); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.site-nav .mega a.mega__link { display: flex; min-height: 40px; font-size: 16px; }
.site-nav .mega a.tlink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--f-label); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--link); text-decoration: underline; text-underline-offset: 6px; }
.site-nav .mega a:hover { color: var(--link); }

/* ---------- Footer contact + social ---------- */
.footer-contact { display: flex; flex-direction: column; gap: 6px; font-style: normal; font-size: 16px; line-height: 1.5; color: var(--on-dark-2); }
.footer-contact a { color: var(--on-dark); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; text-underline-offset: 4px; color: var(--on-dark); }
.footer-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-pill); border: 1px solid var(--divider-dark); color: var(--on-dark); transition: background-color 160ms ease-out, border-color 160ms ease-out; }
.footer-social a:hover { background: rgba(248,248,248,0.08); border-color: var(--on-dark-2); color: var(--on-dark); }
.footer-social a:focus-visible, .footer-contact a:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 2px; }

/* ---------- v1.2.0 · match design views ---------- */
/* Nav links: Lato 14 / 600 uppercase (as in the design header). */
.site-nav a { font-family: var(--f-body); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
/* Header CTA keeps design size. */
.header-cta { min-height: 48px; padding: 14px 28px; }
/* Hero: on desktop the image runs from the eyebrow to the bottom of the buttons. */
@media (min-width: 1024px) {
  .hero-split { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); column-gap: 64px; row-gap: 24px; align-items: stretch; }
  .hero-split > .col-main { display: contents; }
  .hero-split > .col-main > * { grid-column: 1; margin-top: 0; margin-bottom: 0; }
  .hero-split > .col-side { grid-column: 2; grid-row: 1 / span 4; display: flex; min-height: 320px; }
  .hero-split:has(> .col-main > :nth-child(3):last-child) > .col-side { grid-row: 1 / span 3; }
  .hero-split:has(> .col-main > :nth-child(3):last-child):has(> .col-main > .btn-row + p.body:last-child) > .col-side { grid-row: 1 / span 2; }
  .hero-split:has(> .col-main > :nth-child(4):last-child) > .col-side { grid-row: 1 / span 4; }
  .hero-split:has(> .col-main > :nth-child(4):last-child):has(> .col-main > .btn-row + p.body:last-child) > .col-side { grid-row: 1 / span 3; }
  .hero-split:has(> .col-main > :nth-child(5):last-child) > .col-side { grid-row: 1 / span 5; }
  .hero-split:has(> .col-main > :nth-child(5):last-child):has(> .col-main > .btn-row + p.body:last-child) > .col-side { grid-row: 1 / span 4; }
  .hero-split:has(> .col-main > :nth-child(6):last-child) > .col-side { grid-row: 1 / span 6; }
  .hero-split:has(> .col-main > :nth-child(6):last-child):has(> .col-main > .btn-row + p.body:last-child) > .col-side { grid-row: 1 / span 5; }
  .hero-split:has(> .col-main > :nth-child(7):last-child) > .col-side { grid-row: 1 / span 7; }
  .hero-split:has(> .col-main > :nth-child(7):last-child):has(> .col-main > .btn-row + p.body:last-child) > .col-side { grid-row: 1 / span 6; }
  .hero-split:has(> .col-main > :nth-child(8):last-child) > .col-side { grid-row: 1 / span 8; }
  .hero-split:has(> .col-main > :nth-child(8):last-child):has(> .col-main > .btn-row + p.body:last-child) > .col-side { grid-row: 1 / span 7; }
  .hero-split > .col-side .media { aspect-ratio: auto; height: 100%; }
}

/* Lab: linked image + title; single project two-column */
.lab-card__media { display: block; }
.lab-card__title { color: inherit; text-decoration: none; }
.lab-card__title:hover { color: var(--link); }
.lab-card__title:focus-visible, .lab-card__media:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 4px; }
.lab-single { gap: 48px 64px; }

/* ---------- Icons (Lucide, CRM container style) ---------- */
.icon-box { flex: 0 0 56px; width: 56px; height: 56px; border-radius: var(--r-md); background: var(--purple-tint); color: var(--link); display: flex; align-items: center; justify-content: center; }
.icon-box svg { width: 28px; height: 28px; }

/* ---------- UX Design demos ---------- */
.ux-statement { margin: 0; max-width: 1100px; font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 3.33vw, 48px); line-height: clamp(32px, calc(7px + 3vw), 50px); color: var(--ink); text-wrap: balance; }
.demo-grid { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 16px; }
.demo-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.demo-grid--3 { max-width: 1120px; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.demo-grid--4 { gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
@media (min-width: 768px) { .demo-grid--4 { gap: 24px; } }
.demo-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--divider); }
.demo-grid--3 .demo-card { gap: 14px; padding: 20px; }
.demo-card--hl { border: 2px solid var(--purple); }
.demo-card--sold { border: 2px solid var(--ink); }
.demo-card--dark { background: var(--dark-2); border-color: var(--divider-dark); }
.demo-card--dark.demo-card--hl { border-color: var(--pink); }
.demo-card__img { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-md); background: var(--canvas); }
.demo-card__img img { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; display: block; }
.demo-card__img--tall img { height: 115%; }
@media (min-width: 768px) { .demo-card__img--tall img { height: 130%; } }
.demo-card__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.demo-price { margin: 0; font-family: var(--f-display); font-size: 32px; line-height: 1; color: var(--ink); }
.demo-price--l { font-size: 40px; }
.demo-counter { margin: 0; font-size: 15px; font-weight: 700; }
.badge--ink { background: var(--ink); color: var(--on-dark); }
.badge--pink { background: var(--pink); color: var(--dark); }
.badge--dark { background: var(--divider-dark); color: var(--on-dark); }
.rating { display: flex; gap: 2px; color: var(--pink-ink); }
.on-dark .rating { color: var(--pink); }
.rating__i { position: relative; display: block; width: 18px; height: 18px; }
.rating__i svg { display: block; }
.rating__f { position: absolute; left: 0; top: 0; height: 18px; overflow: hidden; }
.rating__f svg { fill: currentColor; }

/* ---------- Author profile ---------- */
.author-layout { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "profile" "articles" "about"; gap: 56px; padding-top: 40px; }
@media (min-width: 768px) { .author-layout { padding-top: 64px; } }
@media (min-width: 1024px) { .author-layout { grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); grid-template-areas: "profile articles" "profile about"; column-gap: 48px; align-items: start; } }
@media (min-width: 1280px) { .author-layout { column-gap: 64px; } }
.author-profile { grid-area: profile; min-width: 0; display: flex; flex-direction: column; gap: 28px; align-items: center; text-align: center; }
.author-profile__head { display: flex; flex-direction: column; gap: 16px; align-items: inherit; }
.author-portrait { width: 72px; height: 72px; background: var(--surface-2); }
@media (min-width: 768px) { .author-portrait { width: 88px; height: 88px; } }
.author-name { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 4.44vw, 64px); line-height: clamp(43px, calc(10px + 3.7vw), 63px); color: var(--ink); }
.author-role { font-size: 13px; color: var(--ink); }
.author-focus { margin: 0; font-family: var(--f-label); font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--link); }
.author-bio { max-width: 440px; }
.author-topics { align-items: inherit; }
@media (max-width: 767px) { .author-topics { display: none; } }
.author-topics__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; max-width: 440px; font-size: 15px; line-height: 1.5; }
.author-topics__list a { display: inline-flex; align-items: baseline; gap: 6px; min-height: 32px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 4px; }
.author-topics__list a:hover { color: var(--link); text-decoration-color: var(--link); }
.author-topics__list span { font-size: 13px; color: var(--ink-3); }
.author-profile__jump { align-self: center; }
.author-links { width: 100%; max-width: 440px; }
.author-links ul { display: flex; flex-direction: column; gap: 10px; }
.qlink { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 12px 20px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--divider); color: var(--ink); text-decoration: none; font-family: var(--f-label); font-size: 14px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.3; transition: border-color 160ms ease-out, color 160ms ease-out, transform 160ms ease-out; }
.qlink > span:first-of-type { flex: 1 1 auto; text-align: left; }
.qlink svg { flex: 0 0 20px; }
.qlink:hover { border-color: var(--link); color: var(--link); }
.qlink:active { transform: scale(0.97); }
.qlink--primary { border: 0; background-image: linear-gradient(120deg, #CC4B00, #8A2BE2); color: var(--on-dark); }
.qlink--primary:hover { background-image: linear-gradient(120deg, #FF6A1A, #A64DFF); color: var(--on-dark); }
.save-card { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 16px; align-items: inherit; padding: 24px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--divider); }
.save-card__row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: center; }
.save-card__qr { flex: 0 0 176px; width: 176px; height: 176px; background: var(--white); }
.save-card__dl { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.4; text-align: left; min-width: 0; }
.save-card__dl dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.author-articles { grid-area: articles; min-width: 0; outline: none; scroll-margin-top: 96px; }
.author-about { grid-area: about; min-width: 0; padding-top: 40px; border-top: 1px solid var(--divider); }
.author-prose { margin: 0; max-width: 760px; font-size: 18px; line-height: 1.7; color: var(--ink); text-wrap: pretty; }
.author-perspective { max-width: 760px; padding-left: 16px; border-left: 2px solid var(--purple); }
@media (min-width: 1024px) {
  .author-profile { align-items: flex-start; text-align: left; }
  .author-topics__list { justify-content: flex-start; }
  .author-profile__jump { align-self: flex-start; }
  .save-card__row { justify-content: flex-start; }
}

/* ---------- Home people (bento, max 6) ---------- */
.people { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.person { min-width: 0; display: flex; gap: 20px; align-items: flex-start; padding: 20px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--divider); }
.person__img { flex: 0 0 96px; width: 96px; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); }
.person__img img { width: 100%; height: 100%; object-fit: cover; }
.person__body { flex: 1 1 0; min-width: 0; }
.person .h3 { font-size: 28px; line-height: 1.1; }
.people--1 .person, .people--2 .person, .people--3 .person { flex-direction: column; gap: 16px; padding: 0; background: transparent; border: 0; }
.people--1 .person__img, .people--2 .person__img, .people--3 .person__img { flex-basis: auto; width: 100%; }
@media (min-width: 768px) {
  .people { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .people--1, .people--2, .people--3 { gap: 48px 32px; }
  .people > .person { grid-column: span 3; }
  .people--5 > .person:nth-child(-n+3), .people--6 > .person { grid-column: span 2; flex-direction: column; gap: 16px; }
  .people--5 > .person:nth-child(-n+3) .person__img, .people--6 > .person .person__img { flex-basis: auto; width: 100%; aspect-ratio: 1 / 1; }
  .people--4 .person__img, .people--5 > .person:nth-child(n+4) .person__img { flex-basis: 38%; width: 38%; }
}
@media (min-width: 1024px) {
  .people--1 > .person { grid-column: span 6; max-width: 420px; }
  .people--2 > .person { grid-column: span 3; }
  .people--3 > .person { grid-column: span 2; }
}
/* 1–2 people: Lab single rule — intro beside the cards on desktop */
.people-split { display: flex; flex-direction: column; gap: 64px; }
@media (min-width: 1024px) {
  .people-split { display: grid; align-items: center; column-gap: 64px; }
  .people-split > * { min-width: 0; }
  .people-split--1 { grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); }
  .people-split--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .people-split .people { grid-template-columns: repeat(var(--pn, 1), minmax(0, 1fr)); }
  .people-split--2 .people { --pn: 2; }
  .people-split .people > .person { grid-column: span 1; max-width: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .people--3 > .person:last-child { grid-column: 2 / span 4; }
}

/* ---------- Authors page ---------- */
.gap-4 { gap: 4px; }
.author-card { display: flex; flex-direction: column; gap: 20px; height: 100%; padding: 28px; border-radius: var(--r-lg); background: var(--canvas); border: 1px solid var(--divider); }
.author-card__head { display: flex; align-items: center; gap: 16px; }
.author-card h3 a { color: inherit; text-decoration: none; }
.author-card h3 a:hover { color: var(--link); }
.author-card__topics { display: flex; flex-wrap: wrap; gap: 8px; }
.author-card__topics li { display: flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--purple-tint); color: var(--link); font-size: 14px; line-height: 1.4; }
.author-card__foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--divider); }
.author-card__latest { font-weight: 700; line-height: 1.4; color: var(--ink); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 4px; }
.author-card__latest:hover { color: var(--link); text-decoration-color: var(--link); }

/* v1.2.7 · Header menu links use Lato (desktop, drawer, mega toggles). */
.site-nav .nav-link, .site-nav > ul > li > a, .drawer nav a, .drawer .nav-link { font-family: var(--f-body); }
.media picture { display: block; width: 100%; height: 100%; }
/* v1.2.9 · Image frames are transparent so PNG/WebP with alpha show no grey box; placeholders keep their fill. */
.media:not(.placeholder), .media:not(.placeholder) img, .media picture { background: transparent; }
/* v1.3.0 · icon at the top of rule-list items (Ecommerce capabilities) */
.rule-item > .icon-box { margin-bottom: 8px; }
@media (min-width: 1100px) { .grid--4up { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* CRM hero: wider image, 4:3, vertically centred (matches CRM design view) */
@media (min-width: 1024px) {
  .hero-split.hero-split--wide { grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); column-gap: 56px; align-content: center; }
  .hero-split.hero-split--wide > .col-side { grid-row: 1 / span 5 !important; align-self: center; min-height: 0; }
  .hero-split.hero-split--wide > .col-side .media { aspect-ratio: 4 / 3; height: auto; }
}
/* v1.3.2 · Article hero: featured image beside the title, 4:3 */
.article-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; }
.article-hero__text { flex: 1 1 520px; min-width: 0; }
.article-hero__figure { flex: 1 1 400px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.article-hero__figure figcaption { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
@media (min-width: 1024px) { .article-hero--media { display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); gap: 56px; align-items: center; } }

/* Mobile: tighter space between header and hero eyebrow */
@media (max-width: 767px) { #main > section:first-child > .wrap, .hero-split { padding-top: 40px !important; } }

/* v1.3.5 · Case studies archive: featured case */
.case-feature { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 64px; color: var(--ink); text-decoration: none; border-radius: var(--r-md); }
.case-feature:focus-visible { outline: 2px solid var(--purple); outline-offset: 6px; }
.case-feature__media { position: relative; flex: 3 1 520px; min-width: 0; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-md); background: var(--surface-2); }
.case-feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 320ms cubic-bezier(0.23, 1, 0.32, 1); }
.case-feature__tag { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; min-height: 28px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--white); color: var(--ink); font-family: var(--f-label); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; white-space: nowrap; }
.case-feature__text { flex: 2 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.case-feature__title { font-family: var(--f-display); font-size: clamp(28px, 3.33vw, 48px); line-height: clamp(32px, calc(7px + 3vw), 50px); text-wrap: balance; }
.case-feature:hover .case-feature__title { color: var(--link); }
.case-feature:hover .case-card__more { color: var(--purple); text-decoration-thickness: 2px; }
@media (hover: hover) and (pointer: fine) { .case-feature:hover .case-feature__media img { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .case-feature__media img { transition: none; } }

/* v1.3.6 · Contact hero: image keeps 4:3, vertically centred (matches Contact design view) */
@media (min-width: 1024px) {
  .hero-split.hero-split--4x3 { align-content: center; }
  .hero-split.hero-split--4x3 > .col-side { grid-row: 1 / span 5 !important; align-self: center; min-height: 0; }
  .hero-split.hero-split--4x3 > .col-side .media { aspect-ratio: 4 / 3; height: auto; }
}

/* v1.3.7 · 404 hero with illustration (matches 404 design view) */
.nf-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.nf-hero__text { flex: 1 1 520px; min-width: 0; gap: 28px; }
.nf-hero__art { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.nf-hero__art .media { width: 100%; max-width: 560px; background: none; }
.nf-hero__art .media img { object-fit: contain; }

/* v1.4.0 · Motion (body.has-motion: Home + landings — see is_has_motion() in functions.php) */
.has-motion a, .has-motion .btn, .has-motion .tlink, .has-motion .card, .has-motion .lab-card, .has-motion .person, .has-motion .case-card__link, .has-motion .entry-card > a { transition: all 0.3s ease; }
@media (hover: hover) and (pointer: fine) {
  .has-motion .btn:hover { transform: translateY(-2px); }
  .has-motion .btn:active { transform: scale(0.97); }
  .has-motion .card:is(a, :has(> a:only-child)):hover, .has-motion .lab-card:is(a, :has(> a:only-child)):hover { transform: translateY(-4px); box-shadow: var(--shadow-floating); border-color: var(--border-strong); }
  .has-motion .case-card__link:hover .case-card__media img { transform: scale(1.04); }
  .has-motion .tlink:hover .is-arrow, .has-motion .tlink:hover svg { transform: translateX(3px); }
  .has-motion .tlink svg { transition: transform 0.3s ease; }
}
/* Reveal on scroll: classes are added by assets/js/animations.js only to elements below the fold. */
.reveal { opacity: 0; translate: 0 24px; transition: all 0.3s ease, opacity 0.7s var(--ease-out) var(--reveal-delay, 0ms), translate 0.7s var(--ease-out) var(--reveal-delay, 0ms); }
.reveal.is-in { opacity: 1; translate: 0 0; }
/* Hero: static on load, layers drift apart as you scroll down (--hero-p: 0 → 1). */
.hero-scroll { --hero-p: 0; }
.hero-scroll .hero-layer { translate: 0 calc(var(--hero-p) * var(--k, 1) * -64px); opacity: calc(1 - var(--hero-p) * 0.8); }
.hero-scroll .hero-media { translate: 0 calc(var(--hero-p) * 96px); scale: calc(1 - var(--hero-p) * 0.1); }
.hero-scroll .hero-media .media { border-radius: calc(10px + var(--hero-p) * 22px); }
.hero-scroll .hero-media img { scale: calc(1 + var(--hero-p) * 0.25); translate: 0 calc(var(--hero-p) * -40px); }
.banner-img { --img-p: 0; }
.banner-img:not(:has(img)) { scale: calc(1 - max(var(--img-p), calc(var(--img-p) * -1)) * 0.06); translate: 0 calc(var(--img-p) * 32px); }
.banner-img img { scale: calc(1.14 - (1 - max(var(--img-p), calc(var(--img-p) * -1))) * 0.04); translate: 0 calc(var(--img-p) * 6%); }
@media (prefers-reduced-motion: reduce) {
  .reveal {
  .banner-img:not(:has(img)) { scale: calc(1 - max(var(--img-p), calc(var(--img-p) * -1)) * 0.06); translate: 0 calc(var(--img-p) * 32px); }
.banner-img img { scale: none !important; translate: none !important; } opacity: 1 !important; translate: none !important; }
  .hero-scroll .hero-layer, .hero-scroll .hero-media, .hero-scroll .hero-media img { translate: none !important; scale: none !important; opacity: 1 !important; }
  .hero-scroll .hero-media .media { border-radius: var(--r-md) !important; }
  .has-motion .btn:hover, .has-motion .card:hover, .has-motion .lab-card:hover, .has-motion .case-card__link:hover .case-card__media img { transform: none; }
}
