/* ==========================================================================
   TMI Technologies — WordPress additions.
   assets/styles.css is the original stylesheet, unchanged. Everything here is
   either a fix to the original or styling for views the static site did not have
   (blog, search, pagination, 404, block-editor content). Uses the original tokens.
   ========================================================================== */

/* ----- Fix: dropdown hover gap -------------------------------------------
   .nav-dropdown sits 16px below its trigger (top: calc(100% + 16px)), so the
   pointer left :hover while crossing the gap and the menu closed. An invisible
   bridge (part of the dropdown, so inside .nav-item) keeps hover alive. */
@media (hover: hover) and (pointer: fine) and (min-width: 821px) {
  .nav-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
}

/* ----- WordPress admin bar (logged-in users only) ----- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ----- Accessibility helpers ----- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: static !important; width: auto; height: auto; margin: 0; clip: auto; clip-path: none; white-space: normal; }
.breadcrumb li[aria-current="page"] { color: var(--muted); }

/* Eyebrow rendered as a link (blog category). */
.eyebrow a { color: inherit; }
.eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ----- Pagination ----- */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 48px; }
.pagination__pages { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pagination__pages a, .pagination__pages span, .pagination__step { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--navy-dark); font-size: 14px; font-weight: 750; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.pagination__pages a:hover, .pagination__step:is(a):hover { border-color: #a9bee7; color: var(--blue); }
.pagination__pages .current { border-color: var(--navy-dark); background: var(--navy-dark); color: var(--white); }
.pagination__pages .dots { border-color: transparent; background: none; min-width: 24px; padding: 0 4px; }
.pagination__step.is-disabled { color: #a0a7b4; background: var(--surface); cursor: not-allowed; }
@media (max-width: 420px) { .pagination__step { padding: 0 12px; } }

/* ----- Blog listing ----- */
.blog-listing { padding-top: 64px; }
.blog-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.blog-filter a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: #394256; font-size: 14px; font-weight: 700; background: var(--white); }
.blog-filter a:hover { color: var(--blue); border-color: #a9bee7; }
.blog-filter a[aria-current="page"] { background: var(--blue-soft); border-color: #ccdaf4; color: var(--blue); }

.post-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--white); transition: box-shadow .2s ease, transform .2s ease; }
.post-card:hover { box-shadow: 0 14px 30px rgba(20,47,99,.10); transform: translateY(-3px); }
.post-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.post-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.post-card__placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: radial-gradient(circle at 85% 15%, rgba(49,87,213,.55), transparent 45%), linear-gradient(135deg, var(--navy-dark), var(--navy)); }
.post-card__placeholder img { width: 93px; height: auto; object-fit: contain; opacity: .9; }
.post-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px 26px 26px; }
.post-card .article-label { display: inline-block; }
.post-card h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.3; }
.post-card h3 a:hover { color: var(--blue); }
.post-card p { margin: 0 0 16px; color: var(--muted); }
.post-card .post-card__meta { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 650; }
.post-card__meta a:hover { color: var(--blue); }
@media (max-width: 980px) { .post-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .post-card-grid { grid-template-columns: minmax(0, 1fr); } }

/* ----- Empty states ----- */
.empty-state { max-width: 760px; padding: 40px; border: 1px dashed #ccdaf4; border-radius: 20px; background: var(--surface); }
.empty-state h2 { margin: 0 0 10px; font-size: clamp(24px, 2.6vw, 32px); }
.empty-state p { margin: 0 0 22px; color: var(--muted); }
@media (max-width: 720px) { .empty-state { padding: 26px; } }

/* ----- Search ----- */
.search-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; }
.search-form input[type="search"] { flex: 1 1 260px; min-height: 48px; padding: 0 16px; border: 1px solid #cfd8e6; border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; font-size: 16px; }
.search-form input[type="search"]:focus { outline: 3px solid #88a6ff; outline-offset: 2px; border-color: var(--blue); }
.search-form .button { min-height: 48px; border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.hero-search { margin-top: 28px; }
.hero-search + .hero-actions { margin-top: 22px; }
.search-results-section { padding-top: 64px; }

/* ----- Insights archive: article list ----- */
.insight-list-section > .container > h2 { max-width: 820px; margin-bottom: 38px; }

/* ----- Long-form layout without a table of contents ----- */
.longform-grid--single { grid-template-columns: minmax(0, 1fr); }

/* ----- Author archive ----- */
.author-hero__media { margin-top: 24px; }
.author-hero__media img, .author-hero__avatar { display: block; width: 96px; height: 96px; border-radius: 50%; border: 4px solid var(--white); box-shadow: var(--shadow); }

/* ----- Block-editor content inside article bodies and pages ----- */
.article-body img, .entry-content img { max-width: 100%; height: auto; }
.article-body figure, .entry-content figure { margin: 30px 0; }
.article-body figcaption, .entry-content figcaption, .wp-caption-text { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; text-align: center; }
.article-body blockquote, .entry-content blockquote { margin: 30px 0; padding: 6px 0 6px 24px; border-left: 4px solid var(--blue); color: var(--navy-dark); font-size: 20px; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body pre, .entry-content pre { overflow-x: auto; padding: 18px; border-radius: 14px; background: var(--navy-dark); color: #e6edff; font-size: 14px; }
.article-body code, .entry-content code { padding: 2px 6px; border-radius: 6px; background: var(--blue-soft); font-size: .9em; }
.article-body pre code { padding: 0; background: none; }
.article-body hr, .entry-content hr { margin: 36px 0; border: 0; border-top: 1px solid var(--line); }
.article-body iframe, .entry-content iframe { max-width: 100%; }
.article-body .wp-block-table, .entry-content .wp-block-table { overflow-x: auto; margin: 28px 0; }
.article-body h2[id], .article-body section[id] { scroll-margin-top: 100px; }
.entry-content { max-width: 780px; color: #374258; font-size: 18px; }
.alignleft { float: left; margin: 6px 24px 16px 0; }
.alignright { float: right; margin: 6px 0 16px 24px; }
.aligncenter { display: block; margin-inline: auto; }
@media (max-width: 720px) { .alignleft, .alignright { float: none; margin: 24px 0; } }

/* ----- Single blog post ----- */
.post-featured-image { margin: 0 0 36px !important; }
.post-featured-image img { display: block; width: 100%; height: auto; border-radius: 20px; }
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.post-tags span { margin-right: 4px; color: var(--navy-dark); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.article-body .post-tags a { padding: 5px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 14px; font-weight: 700; text-decoration: none; }
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.article-body .post-nav a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; color: var(--navy-dark); font-size: 16px; font-weight: 750; line-height: 1.4; text-decoration: none; }
.article-body .post-nav a:hover { border-color: #a9bee7; color: var(--blue); }
.post-nav span { display: block; margin-bottom: 6px; color: var(--blue); font-size: 12px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.post-nav__next { grid-column: 2; text-align: right; }
.page-links { margin: 28px 0; font-weight: 750; }
@media (max-width: 720px) {
  .post-nav { grid-template-columns: minmax(0, 1fr); }
  .post-nav__next { grid-column: auto; text-align: left; }
}

/* ----- Header: plain links (Blog) highlighted on pages beneath them ----- */
.navlinks > a.is-current-section { color: var(--blue); }

/* ----- Single blog post: sidebar ----- */
.longform-grid--post { grid-template-columns: minmax(0, 1fr) 310px; gap: 64px; }
.post-sidebar { display: flex; flex-direction: column; gap: 18px; align-self: stretch; min-width: 0; }
.sidebar-card { padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.sidebar-card__title { margin: 0 0 10px; color: var(--navy-dark); font-size: 13px; font-weight: 800; letter-spacing: .06em; line-height: 1.4; text-transform: uppercase; }
.sidebar-categories ul { margin: 0; padding: 0; list-style: none; }
.sidebar-categories a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); color: #394256; font-size: 14px; font-weight: 650; line-height: 1.4; }
.sidebar-categories li:last-child a { border-bottom: 0; padding-bottom: 0; }
.sidebar-categories a:hover, .sidebar-categories a.is-current { color: var(--blue); }
.sidebar-categories__count { flex: none; min-width: 28px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--muted); font-size: 12px; font-weight: 750; text-align: center; }
.sidebar-toc a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.4; }
.sidebar-toc a:last-child { border-bottom: 0; padding-bottom: 0; }
.sidebar-toc a:hover { color: var(--blue); }
.post-sidebar .widget ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.post-sidebar .widget a:hover { color: var(--blue); }
.sidebar-cta { position: sticky; top: 104px; padding: 26px; border-radius: 20px; color: var(--white); background: radial-gradient(circle at 90% 0%, rgba(49,87,213,.55), transparent 55%), var(--navy-dark); box-shadow: var(--shadow); }
.sidebar-cta .section-kicker { margin-bottom: 10px; }
.sidebar-cta h2 { margin: 0 0 10px; color: var(--white); font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
.sidebar-cta p:not(.section-kicker) { margin: 0 0 20px; color: #cfdaee; font-size: 15px; line-height: 1.55; }
.sidebar-cta .button { width: 100%; }
.admin-bar .sidebar-cta { top: 136px; }
.post-toc-mobile { display: none; }
@media (max-width: 980px) {
  .longform-grid--post { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .sidebar-cta { position: static; }
  /* Tablets and phones: collapsible "In this article" above the content instead of below it. */
  .post-sidebar .sidebar-toc { display: none; }
  .post-toc-mobile { display: block; margin: 0 0 28px; padding: 0 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
  .post-toc-mobile summary { position: relative; padding: 17px 36px 17px 0; color: var(--navy-dark); cursor: pointer; font-size: 13px; font-weight: 800; letter-spacing: .06em; line-height: 1.4; list-style: none; text-transform: uppercase; }
  .post-toc-mobile summary::-webkit-details-marker { display: none; }
  .post-toc-mobile summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--blue); font-size: 24px; font-weight: 400; line-height: 1; letter-spacing: 0; }
  .post-toc-mobile[open] summary::after { content: "\2212"; }
  .post-toc-mobile nav { padding: 0 0 16px; border-top: 1px solid var(--line); }
  .post-toc-mobile nav a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.4; text-decoration: none; }
  .post-toc-mobile nav a:last-child { border-bottom: 0; padding-bottom: 0; }
  .post-toc-mobile nav a:hover { color: var(--blue); }
}

/* ----- Single blog post: author box ----- */
/* .article-body .author-box beats the original `.article-body section { padding: 0 0 42px }`. */
.article-body .author-box, .author-box { display: flex; gap: 22px; align-items: flex-start; margin-top: 40px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.author-box__media { flex: none; }
.author-box__media img { display: block; width: 88px; height: 88px; border: 3px solid var(--white); border-radius: 50%; object-fit: cover; box-shadow: 0 10px 24px rgba(20,47,99,.12); }
.author-box .author-box__kicker { margin: 0 0 6px; color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.article-body .author-box__name { margin: 0; font-size: 24px; line-height: 1.25; }
.article-body .author-box__name a { color: var(--navy-dark); font-weight: inherit; text-decoration: none; }
.article-body .author-box__name a:hover { color: var(--blue); }
.author-box .author-box__role { margin: 4px 0 0; color: var(--muted); font-size: 15px; font-weight: 700; }
.author-box .author-box__bio { margin: 12px 0 0; color: #374258; font-size: 16px; line-height: 1.6; }
.author-box .author-box__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0 0; font-size: 15px; }
.article-body .author-box__links a { color: var(--blue); font-weight: 800; text-decoration: none; }
.article-body .author-box__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 720px) { .article-body .author-box { flex-direction: column; padding: 22px; } }

/* ----- Header fit with the added Blog link (tablet widths, desktop nav visible from 721px) ----- */
.navlinks > a, .navlinks .nav-item > a, .nav > .button { white-space: nowrap; }
@media (min-width: 721px) and (max-width: 1099px) {
  .navlinks { gap: 18px; }
}
@media (min-width: 821px) and (max-width: 900px) {
  .nav { gap: 12px; }
  .navlinks { gap: 10px; }
  .navlinks a { font-size: 13.5px; }
  .nav > .button { padding-inline: 15px; }
  .brand { width: 96px; }
}
/* Tablets up to 820px (iPad portrait) use the mobile menu drawer: with About Us in the header the
   full navigation no longer fits. Same rules as the mobile drawer in styles.css (max-width: 720px);
   nav-menu.js uses the same 820px breakpoint. */
@media (min-width: 721px) and (max-width: 820px) {
  .nav { min-height: 68px; position: relative; }
  .nav .button { padding: 10px 14px; }
  .nav-toggle { display: inline-flex; }
  .site-header { backdrop-filter: none; background: #fff; }
  .navlinks { display: flex; position: fixed; top: var(--site-nav-h, 68px); left: 0; right: 0; bottom: 0; z-index: 15; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; margin-left: 0; overflow-y: auto; padding: 6px 0 18px; background: #fff; transform: translateX(100%); visibility: hidden; pointer-events: none; transition: transform .32s cubic-bezier(.4,0,.2,1), visibility 0s linear .32s; }
  .site-header.nav-open .navlinks { transform: translateX(0); visibility: visible; pointer-events: auto; transition: transform .32s cubic-bezier(.4,0,.2,1); }
  .navlinks > a { padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
  .navlinks .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .navlinks .nav-item > a { flex: 1 1 auto; padding: 15px 20px; font-size: 15.5px; }
  .navlinks .nav-caret { display: inline-flex; flex: none; width: 48px; height: 48px; margin: 0; border-radius: 0; }
  .navlinks .nav-dropdown, .navlinks .nav-dropdown--right { position: static; flex: 1 1 100%; width: auto; left: auto; right: auto; opacity: 1; visibility: visible; transform: none; pointer-events: auto; max-height: 0; overflow: hidden; margin: 0; padding: 0 10px; border: 0; border-radius: 0; box-shadow: none; background: var(--surface); transition: max-height .2s ease, padding .2s ease; }
  .navlinks .nav-item.open .nav-dropdown { max-height: 900px; padding: 6px 10px 12px; }
  .nav > .button-dark { display: none; }
  .navlinks .navlinks__cta { display: flex; margin: 18px 20px 4px; }
}

/* ----- Performance: WebP version of the hero city illustration (JPEG kept as fallback) ----- */
.hero-graphic__city { background-image: url("../hero/city-illustration.jpg"), linear-gradient(160deg,#e3ebfb 0%,#cfdcf3 100%); background-image: image-set(url("../hero/city-illustration.webp") type("image/webp"), url("../hero/city-illustration.jpg") type("image/jpeg")), linear-gradient(160deg,#e3ebfb 0%,#cfdcf3 100%); }

/* ----- Enquiry forms: Submit stays disabled until the consent box is ticked (see web-to-lead.js) ----- */
.web-to-lead-form button[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }

/* ----- Client logos: wide wordmarks without built-in padding (e.g. One Broker Group) stay logo-sized on
   one-column mobile cards. The padded 115x80 logos are height-bound, so they render exactly as before. ----- */
.approved-customer-grid img { max-width: 160px; margin-inline: auto; }

/* ----- Blog pages (index, posts, category/tag/author archives, search): full-width title area and a
   tighter gap between the hero and the content. Other pages keep the original hero. ----- */
.blog-hero { padding-bottom: 40px; }
.blog-hero h1, .blog-hero .lead { max-width: none; }
.blog-hero h1:last-child { margin-bottom: 0; }
.blog-hero + .blog-listing, .blog-hero + .longform-section, .blog-hero + .search-results-section { padding-top: 40px; }
@media (max-width: 720px) {
  .blog-hero { padding-bottom: 28px; }
  .blog-hero + .blog-listing, .blog-hero + .longform-section, .blog-hero + .search-results-section { padding-top: 28px; }
}

/* ----- Insights: author byline and author box ----- */
.article-meta + .article-meta--sub { margin-top: 6px; }
/* The custom long-form layout styles its own paragraphs and links; keep the byline like the others. */
.lf-hero .lf-byline { margin: 18px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.5; }
.lf-hero .lf-byline a { color: inherit; text-decoration: none; }
.insight-author { padding: 56px 0 72px; }
.insight-author .article-body .author-box { margin-top: 0; }
@media (max-width: 720px) { .insight-author { padding: 40px 0 52px; } }

/* ----- Blog articles: components of the article package (quote, case study, statistics, strategy,
   interactive UX concept, related links, sources). Sections beat `.article-body section`. ----- */
.post-body .quote { margin: 30px 0; padding: 22px 26px; border-left: 5px solid var(--blue); border-radius: 0 14px 14px 0; background: var(--blue-soft); color: var(--navy-dark); font-size: 20px; font-weight: 650; line-height: 1.5; }
.post-body section.case { margin: 38px 0; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.post-body section.strategy { margin: 38px 0; padding: 30px 32px; border-radius: var(--radius); background: var(--blue-soft); }
.post-body .case .eyebrow, .post-body .strategy .eyebrow { margin-bottom: 10px; }
.post-body .case h2, .post-body .strategy h2 { margin: 0 0 18px; }
.post-body .case > :last-child, .post-body .strategy > :last-child { margin-bottom: 0; }
.post-body .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 26px 0; }
.post-body .stat { padding: 20px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.post-body .stat b { display: block; color: var(--blue); font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.post-body .stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.post-body .note { color: var(--muted); font-size: 14px; line-height: 1.6; }
/* "Related TMI guidance": a separate box after the article, small heading, link cards. */
.post-body .related-guidance { margin: 56px 0 8px; padding: 24px 26px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.post-body .related-guidance .related-guidance__title { margin: 0 0 16px; padding: 0; border: 0; color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.post-body .related-guidance .related-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; list-style: none; }
.post-body .related-guidance .related-links li { margin: 0; padding: 0; border: 0; }
.post-body .related-guidance .related-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--navy-dark); font-size: 15px; font-weight: 700; line-height: 1.4; text-decoration: none; transition: border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.post-body .related-guidance .related-links a::after { content: "\2192"; flex: none; color: var(--blue); font-weight: 800; }
.post-body .related-guidance .related-links a:hover, .post-body .related-guidance .related-links a:focus-visible { border-color: #a9bee7; color: var(--blue); box-shadow: 0 10px 24px rgba(20,47,99,.08); }
@media (max-width: 720px) {
  .post-body .related-guidance { padding: 20px 18px 20px; }
  .post-body .related-guidance .related-links { grid-template-columns: minmax(0, 1fr); }
}
.post-body .source-note { margin-top: 28px; color: var(--muted); font-size: 14px; }
.post-body .ux-concept { margin: 38px 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ux-concept__frame { display: block; width: 100%; border: 0; border-radius: 14px; background: transparent; }
.post-body .ux-concept figcaption { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.6; }
@media (max-width: 720px) {
  .post-body .quote { padding: 18px 20px; font-size: 18px; }
  .post-body section.case, .post-body section.strategy { padding: 22px; }
  .post-body .stats { grid-template-columns: minmax(0, 1fr); }
  .post-body .ux-concept { padding: 10px; }
  .post-body .ux-concept figcaption { padding: 0 6px 6px; }
}

/* ----- Case studies (listing cards, hero facts and results, challenge/solution card, story) ----- */
.case-study-card .article-label { margin-bottom: 10px; }
.post-card .case-study-card__metric { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--blue-soft); color: var(--navy-dark); font-size: 14px; line-height: 1.45; }
.case-study-card__metric strong { margin-right: 4px; color: var(--blue); font-size: 20px; font-weight: 800; }
.case-study-card__link { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.case-study-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.case-study-facts div { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.case-study-facts dt { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.case-study-facts dd { margin: 0; color: var(--navy-dark); font-size: 14px; font-weight: 700; }
.case-study-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 900px; margin: 22px 0 0; }
.case-study-metrics div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 10px 28px rgba(20,47,99,.06); }
.case-study-metrics dd { margin: 0 0 4px; color: var(--blue); font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.case-study-metrics dt { color: var(--muted); font-size: 15px; font-weight: 650; line-height: 1.4; }
.case-study-metrics__note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.case-study-overview { padding: 8px 0 0; }
.case-study-overview__card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: var(--shadow); }
.case-study-overview__col { padding: 38px 40px; }
.case-study-overview__col h2 { margin: 0 0 18px; font-size: 24px; letter-spacing: -.01em; }
.case-study-overview__col ul { margin: 0; padding: 0; list-style: none; }
.case-study-overview__col li { position: relative; padding: 12px 0 12px 36px; border-bottom: 1px solid var(--line); color: #374258; font-size: 16px; font-weight: 600; line-height: 1.5; }
.case-study-overview__col li:last-child { border-bottom: 0; }
.case-study-overview__col li::before { content: "!"; position: absolute; top: 12px; left: 0; display: grid; width: 24px; height: 24px; border-radius: 50%; background: var(--orange-soft); color: var(--orange); font-size: 13px; font-weight: 800; place-items: center; }
.case-study-overview__col--solution { background: radial-gradient(circle at 92% 8%, rgba(49,87,213,.5), transparent 46%), var(--navy-dark); }
.case-study-overview__col--solution h2 { color: var(--white); }
.case-study-overview__col--solution li { border-color: rgba(255,255,255,.12); color: #e4ebfa; }
.case-study-overview__col--solution li::before { content: "\2713"; background: var(--blue); color: var(--white); }
.case-study-overview__tagline { grid-column: 1 / -1; margin: 0; padding: 18px 40px; background: var(--blue-soft); color: var(--navy-dark); font-size: 18px; font-weight: 800; text-align: center; }
.case-study-story { padding-top: 64px; }
.case-study-story .case-study-body { max-width: 780px; margin: 0 auto; }
.case-study-body h3 { color: var(--navy-dark); }
.case-study-related { padding: 0 0 76px; }
.case-study-related h2 { margin-bottom: 26px; }
.case-study-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.case-study-related__item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); color: var(--navy-dark); font-weight: 700; line-height: 1.4; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.case-study-related__item span:last-child { color: var(--blue); }
.case-study-related__item:hover { border-color: #b9caf2; box-shadow: 0 12px 26px rgba(20,47,99,.08); transform: translateY(-2px); }
@media (max-width: 980px) {
  .case-study-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .case-study-metrics { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .case-study-metrics div { padding: 16px 18px; }
  .case-study-overview__card { grid-template-columns: minmax(0, 1fr); border-radius: 20px; }
  .case-study-overview__col { padding: 28px 22px; }
  .case-study-overview__tagline { padding: 16px 22px; }
  .case-study-story { padding-top: 44px; }
  .case-study-related__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ----- Star ratings (partial stars for ratings such as 4.9) ----- */
.star-rating { display: inline-flex; align-items: center; gap: 8px; }
.star-rating__stars { position: relative; display: inline-block; color: #d9dee8; font-size: 18px; letter-spacing: 2px; line-height: 1; white-space: nowrap; }
.star-rating__stars::before { content: "\2605\2605\2605\2605\2605"; }
.star-rating__stars::after { content: "\2605\2605\2605\2605\2605"; position: absolute; top: 0; left: 0; overflow: hidden; width: calc(var(--rating, 5) / 5 * 100%); color: #f5a623; }
.star-rating__value { color: var(--navy-dark); font-size: 14px; font-weight: 800; }

/* ----- Testimonial cards ----- */
.testimonial-card { display: flex; flex-direction: column; height: 100%; padding: 26px 26px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: 0 10px 28px rgba(20,47,99,.05); }
.testimonial-card[hidden] { display: none; }
.testimonial-card { scroll-margin-top: 100px; }
.testimonial-card__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: 26px; margin-bottom: 14px; }
.testimonial-card__top:empty { display: none; }
.testimonial-card__badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.testimonial-card__badge::before { content: "\2713"; }
.testimonial-card__headline { margin: 0 0 8px; color: var(--navy-dark); font-size: 18px; line-height: 1.35; }
.testimonial-card__quote { margin: 0 0 20px; color: #374258; font-size: 16px; line-height: 1.65; }
.testimonial-card__text p { margin: 0 0 10px; }
.testimonial-card__text p:last-child { margin-bottom: 0; }
.testimonial-card__text.is-clamped { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 7; }
.testimonial-card.is-expanded .testimonial-card__text { display: block; overflow: visible; -webkit-line-clamp: unset; }
.testimonial-card__toggle { align-self: flex-start; margin: -10px 0 20px; padding: 0; border: 0; background: none; color: var(--blue); cursor: pointer; font: inherit; font-size: 14px; font-weight: 750; }
.testimonial-card__toggle:hover { text-decoration: underline; text-underline-offset: 3px; }
.testimonial-card__footer { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.testimonial-card__avatar { display: grid; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--navy-dark); color: var(--white); font-size: 15px; font-weight: 800; place-items: center; }
.testimonial-card__avatar--icon { background: var(--green-soft); }
.testimonial-card__avatar--photo { overflow: hidden; background: var(--blue-soft); box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--line); }
.testimonial-card__avatar--photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.testimonial-card__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.testimonial-card__who strong { color: var(--navy-dark); font-size: 15px; }
.testimonial-card__meta { color: var(--muted); font-size: 13px; }
.testimonial-card__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; }
.testimonial-card__links a { color: var(--blue); font-size: 14px; font-weight: 750; }
.testimonial-card__links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ----- Testimonials carousel (pages and case studies; assets/testimonials.js) ----- */
.testimonials-section { padding: 76px 0; border-top: 1px solid var(--line); background: var(--surface); }
.testimonials-section__head { max-width: 760px; margin-bottom: 30px; }
.testimonials-section__head h2 { margin: 0; }
.testimonial-carousel { --per-view: 3; --gap: 20px; position: relative; padding: 0 62px; }
.testimonial-carousel__viewport { overflow-x: auto; }
.testimonial-carousel.is-ready .testimonial-carousel__viewport { overflow: hidden; }
.testimonial-carousel__track { position: relative; display: flex; gap: var(--gap); margin: 0; padding: 6px 2px 12px; list-style: none; transition: transform .6s cubic-bezier(.22, .61, .36, 1); touch-action: pan-y; }
.testimonial-carousel__slide { display: flex; flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view)); min-width: 0; }
.testimonial-carousel__slide .testimonial-card { width: 100%; }
.testimonial-carousel__nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.testimonial-carousel__nav[hidden] { display: none; }
.testimonial-carousel__arrow { position: absolute; top: calc(50% - 40px); display: grid; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--navy-dark); cursor: pointer; place-items: center; box-shadow: 0 8px 20px rgba(20,47,99,.08); transition: background .2s ease, border-color .2s ease, color .2s ease; }
.testimonial-carousel__arrow--prev { left: 0; }
.testimonial-carousel__arrow--next { right: 0; }
.testimonial-carousel__arrow:hover { border-color: var(--navy-dark); background: var(--navy-dark); color: var(--white); }
.testimonial-carousel__arrow:focus-visible { outline: 3px solid #88a6ff; outline-offset: 3px; }
.testimonial-carousel__dots { display: flex; gap: 8px; }
.testimonial-carousel__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #c9d3e6; cursor: pointer; transition: width .25s ease, background .25s ease; }
.testimonial-carousel__dots button[aria-current="true"] { width: 24px; background: var(--blue); }
.testimonials-section__more { margin: 22px 0 0; text-align: center; }
@media (prefers-reduced-motion: reduce) { .testimonial-carousel__track { transition: none; } }
@media (max-width: 980px) { .testimonial-carousel { --per-view: 2; } }
@media (max-width: 720px) {
  .testimonials-section { padding: 52px 0; }
  .testimonial-carousel { --per-view: 1; --gap: 14px; padding: 0; }
  .testimonial-carousel__arrow { position: static; width: 42px; height: 42px; }
}

/* ----- Testimonials page ----- */
.rating-summaries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 920px; margin-top: 32px; }
.rating-summary { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: 0 10px 28px rgba(20,47,99,.06); transition: border-color .2s ease, transform .2s ease; }
.rating-summary:hover { border-color: #b9caf2; transform: translateY(-2px); }
.rating-summary__name { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.rating-summary__score { display: flex; align-items: center; gap: 12px; }
.rating-summary__score strong { color: var(--navy-dark); font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.rating-summary__score .star-rating__stars { font-size: 22px; }
.rating-summary__count { color: #374258; font-size: 15px; }
.rating-summary__cta { color: var(--blue); font-size: 14px; font-weight: 750; }
.testimonial-feature { padding: 72px 0; background: radial-gradient(circle at 88% 12%, rgba(49,87,213,.55), transparent 42%), var(--navy-dark); color: var(--white); }
.testimonial-feature figure { max-width: 920px; margin: 0; }
.testimonial-feature .star-rating__value { color: var(--white); }
.testimonial-feature blockquote { margin: 20px 0 22px; }
.testimonial-feature blockquote p { margin: 0; color: var(--white); font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.testimonial-feature blockquote p::before { content: "\201C"; }
.testimonial-feature blockquote p::after { content: "\201D"; }
.testimonial-feature figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; color: #c9d5ef; font-size: 15px; }
.testimonial-feature figcaption strong { color: var(--white); }
.testimonial-feature figcaption a { color: #a9c0ff; font-weight: 750; }
.testimonial-feature figcaption a:hover { text-decoration: underline; text-underline-offset: 3px; }
.testimonials-all { padding-top: 64px; }
.testimonials-all__intro { margin-bottom: 28px; }
.testimonials-all__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.testimonials-all__head h2 { margin: 0; }
.testimonial-masonry { columns: 3; column-gap: 18px; }
.testimonial-masonry .testimonial-card { display: flex; height: auto; margin: 0 0 18px; break-inside: avoid; }
.testimonial-masonry .testimonial-card[hidden] { display: none; }
.testimonial-masonry .testimonial-card__text.is-clamped { -webkit-line-clamp: 9; }
/* With JavaScript: a row-by-row masonry (cards read left to right in the Testimonials order, in the
   same order as the HTML); each card spans as many 2px rows as it is tall (testimonials.js). */
.testimonial-masonry.is-masonry { display: grid; grid-template-columns: repeat(var(--masonry-columns, 3), minmax(0, 1fr)); grid-auto-rows: 2px; align-items: start; column-gap: 18px; columns: auto; }
.testimonial-masonry.is-masonry .testimonial-card { margin: 0; }
@media (max-width: 980px) {
  .testimonial-masonry { columns: 2; --masonry-columns: 2; }
}
@media (max-width: 720px) {
  .testimonial-card { padding: 22px 20px 20px; }
  .rating-summaries { grid-template-columns: minmax(0, 1fr); }
  .testimonial-feature { padding: 52px 0; }
  .testimonial-masonry { columns: 1; --masonry-columns: 1; }
}

/* ----- Case study hero with an illustration (single-case_study.php, "Hero image" field) ----- */
.case-study-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.case-study-hero--media h1 { font-size: clamp(38px, 4.3vw, 58px); }
.case-study-hero--media .case-study-metrics { max-width: none; gap: 12px; }
.case-study-hero--media .case-study-metrics div { padding: 16px 18px; }
.case-study-hero--media .case-study-metrics dd { font-size: clamp(26px, 2.6vw, 36px); }
.case-study-hero--media .case-study-metrics dt { font-size: 14px; }
.case-study-hero__media { margin: 0; }
.case-study-hero__image { display: block; width: 100%; max-width: 520px; height: auto; margin-left: auto; }
@media (max-width: 980px) {
  .case-study-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .case-study-hero__image { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .case-study-hero--media .case-study-metrics { grid-template-columns: minmax(0, 1fr); }
  .case-study-hero__image { max-width: 420px; }
}

/* ----- About page (migration/pages/about.html) ----- */
.about-hero { padding: 0 0 84px; background: radial-gradient(circle at 86% 18%, rgba(49,87,213,.14), transparent 34%), linear-gradient(180deg, #f7f9ff 0%, #fff 100%); }
.about-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding-top: 34px; }
.about-hero h1 { max-width: 640px; font-size: clamp(40px, 4.8vw, 64px); }
.about-hero .lead { max-width: 640px; }
.about-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 30px 0; padding: 0; list-style: none; }
.about-facts li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.about-facts strong { display: block; color: var(--navy-dark); font-size: 17px; font-weight: 800; line-height: 1.25; }
.about-facts span { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.about-hero__media { margin: 0; }
.about-hero__media img { display: block; width: 100%; max-width: 560px; height: auto; margin-left: auto; }
.about-icon { display: grid; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); place-items: center; }
.about-icon img { width: 22px; height: 22px; }
.about-icon--orange { background: var(--orange-soft); color: var(--orange); }
.about-section-head { max-width: 780px; margin-bottom: 34px; }
.about-section-head h2, .about-problem__head h2 { margin-bottom: 0; }
.about-subhead { margin: 60px 0 24px; font-size: clamp(24px, 2.4vw, 30px); }
.about-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.about-chips li { padding: 5px 11px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 700; }

.about-problem { padding: 90px 0; }
.about-problem__head { max-width: 760px; margin-bottom: 30px; }
.about-problem__head p:not(.section-kicker) { margin: 14px 0 0; color: var(--muted); font-size: 19px; }
.about-pain-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.about-pain-grid article { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.about-pain-grid h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.about-mission { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 24px; padding: 28px 34px; border-radius: 22px; background: radial-gradient(circle at 92% 10%, rgba(49,87,213,.55), transparent 45%), var(--navy-dark); }
.about-mission__lead { margin: 0; color: var(--white); font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.01em; }
.about-mission .text-link { color: #a9c0ff; }

.about-services { padding: 90px 0; background: var(--surface); }
.about-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.about-service { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.about-service h3 { margin: 6px 0 0; font-size: 21px; }
.about-service p { margin: 0; color: var(--muted); }
.about-service .text-link { margin-top: auto; padding-top: 8px; }
.about-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.about-product { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--white); transition: box-shadow .2s ease, transform .2s ease; }
.about-product:hover { box-shadow: 0 16px 34px rgba(20,47,99,.10); transform: translateY(-3px); }
.about-product__media { display: block; height: 210px; overflow: hidden; background: linear-gradient(160deg, #eef3ff 0%, #f8faff 100%); }
.about-product__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about-product__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; }
.about-product__body strong { color: var(--navy-dark); font-size: 21px; }
.about-product__body > span:last-child { color: var(--muted); font-size: 15px; line-height: 1.55; }
.about-product__tag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

.about-audience { padding: 90px 0; }
.about-audience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.about-audience-card { padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.about-audience-card h3 { margin: 18px 0 20px; font-size: 24px; }
.about-audience-card > p { margin: 20px 0 0; color: var(--muted); font-size: 16px; font-weight: 600; }
.about-audience-card--dark { border-color: transparent; background: radial-gradient(circle at 92% 8%, rgba(49,87,213,.5), transparent 46%), var(--navy-dark); color: var(--white); }
.about-audience-card--dark h3 { color: var(--white); }
.about-audience-card--dark > p { color: #c9d5ef; }
.about-audience-card--dark .about-icon { background: var(--white); }
.about-audience-card--dark .about-flow li { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.1); color: var(--white); }
.about-audience-card--dark .about-flow li:not(:last-child)::after { color: #a9c0ff; }
.about-flow { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; }
.about-flow li { position: relative; padding: 9px 14px; border-radius: 12px; background: var(--blue-soft); color: var(--navy-dark); font-size: 14.5px; font-weight: 700; }
.about-flow li:not(:last-child)::after { content: "\2192"; position: absolute; top: 50%; right: -20px; color: var(--blue); font-weight: 800; transform: translateY(-50%); }
.about-checks { margin: 0; padding: 0; list-style: none; }
.about-checks li { position: relative; padding: 11px 0 11px 36px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 17px; font-weight: 700; }
.about-checks li::before { content: "\2713"; position: absolute; top: 11px; left: 0; display: grid; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 12px; place-items: center; }

.about-founder { padding: 96px 0; background: var(--surface); }
.about-founder__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.about-portrait { position: relative; max-width: 440px; margin: 0; padding: 0 30px 30px 0; }
.about-portrait::before { content: ""; position: absolute; inset: 34px 0 0 34px; border-radius: 36px; background: radial-gradient(circle at 80% 20%, #4a6fe0, transparent 60%), linear-gradient(135deg, var(--blue), var(--navy-dark)); }
.about-portrait__frame { position: relative; display: block; overflow: hidden; aspect-ratio: 1; border: 6px solid var(--white); border-radius: 32px; box-shadow: var(--shadow); }
.about-portrait__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-portrait__badge { position: absolute; display: flex; flex-direction: column; max-width: 170px; padding: 12px 16px; border-radius: 16px; background: var(--white); box-shadow: 0 14px 30px rgba(11,31,69,.16); color: var(--muted); font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.about-portrait__badge strong { color: var(--blue); font-size: 26px; font-weight: 800; line-height: 1.1; }
.about-portrait__badge--one { top: 36px; left: -22px; }
.about-portrait__badge--two { top: 46%; right: -6px; }
.about-portrait__badge--three { bottom: 0; left: 26px; }
.about-founder__intro h2 { margin: 0; font-size: clamp(34px, 4vw, 48px); }
.about-founder__role { margin: 6px 0 20px; color: var(--blue); font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.about-founder__intro > p:not(.section-kicker):not(.about-founder__role) { color: #374258; font-size: 18px; }
.about-founder__focus { padding: 16px 18px; border-left: 4px solid var(--blue); border-radius: 0 14px 14px 0; background: var(--white); color: var(--navy-dark) !important; font-weight: 700; }
.about-founder__focus span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.about-linkedin { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; }
.about-linkedin svg { color: #0a66c2; }
.about-credentials-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.about-credentials-grid article { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.about-credentials-grid h4 { margin: 14px 0 12px; color: var(--navy-dark); font-size: 19px; }
.about-plain { margin: 0; padding: 0; list-style: none; }
.about-plain li { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.about-plain li:last-child { border-bottom: 0; }
.about-plain strong { display: block; color: var(--navy-dark); font-size: 16px; }
.about-note { margin: 12px 0 0; color: var(--muted); font-size: 14px; font-weight: 700; }

.about-focus { padding: 90px 0; background: radial-gradient(circle at 88% 10%, rgba(49,87,213,.5), transparent 42%), var(--navy-dark); color: var(--white); }
.about-focus__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.about-focus h2 { color: var(--white); font-size: clamp(32px, 3.6vw, 46px); }
.about-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.about-benefits li { padding: 22px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.06); color: #e4ebfa; font-size: 16.5px; font-weight: 600; line-height: 1.5; }
.about-benefits__num { display: block; margin-bottom: 10px; color: #a9c0ff; font-size: 13px; font-weight: 800; letter-spacing: .1em; }

.about-process { padding: 90px 0; }
.about-steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.about-steps::before { content: ""; position: absolute; top: 27px; right: 10%; left: 10%; height: 2px; background: repeating-linear-gradient(90deg, #b9caf2 0 8px, transparent 8px 14px); }
.about-steps li { position: relative; text-align: center; }
.about-steps span { position: relative; display: grid; width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 20px; font-weight: 800; place-items: center; box-shadow: 0 0 0 8px var(--white), 0 10px 24px rgba(49,87,213,.3); }
.about-steps h3 { margin: 0 0 8px; font-size: 19px; }
.about-steps p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.about-credentials { padding: 90px 0; background: var(--surface); }
.about-credentials__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: start; }
.about-credentials__grid > div > p:not(.section-kicker) { color: var(--muted); font-size: 17px; }
.about-partner-badges { display: inline-block; margin-top: 18px; padding: 14px 20px; border-radius: 16px; background: var(--navy-dark); }
.about-partner-badges img { display: block; width: 230px; height: auto; }
.about-cert-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.about-cert-grid li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 12px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.about-cert-grid li:hover { box-shadow: 0 14px 30px rgba(20,47,99,.08); transform: translateY(-2px); }
.about-cert-grid img { display: block; width: 88px; height: 88px; object-fit: contain; }
.about-cert-grid span { color: var(--navy-dark); font-size: 13.5px; font-weight: 700; line-height: 1.3; }
@media (max-width: 1100px) { .about-cert-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) { .about-cert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .about-cert-grid li { padding: 14px 8px; } .about-cert-grid img { width: 64px; height: 64px; } .about-cert-grid span { font-size: 12px; } }
@media (max-width: 420px) { .about-cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .about-cert-grid li, .about-cert-grid li:hover { transition: none; transform: none; } }

@media (max-width: 1100px) {
  .about-pain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
  .about-steps::before { display: none; }
}
@media (max-width: 980px) {
  .about-hero__grid, .about-founder__grid, .about-focus__grid, .about-credentials__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .about-hero__media img { max-width: 480px; margin: 0 auto; }
  .about-service-grid, .about-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-portrait { margin: 0 auto; }
}
@media (max-width: 720px) {
  .about-hero { padding-bottom: 56px; }
  .about-problem, .about-services, .about-audience, .about-founder, .about-focus, .about-process, .about-credentials { padding: 60px 0; }
  .about-pain-grid, .about-service-grid, .about-product-grid, .about-audience-grid, .about-credentials-grid, .about-benefits, .about-steps { grid-template-columns: minmax(0, 1fr); }
  .about-audience-card { padding: 26px 22px; }
  .about-credentials__grid { gap: 8px; }
  .about-mission { padding: 22px; }
  .about-portrait { max-width: 330px; padding: 0 22px 22px 0; }
  .about-portrait::before { inset: 26px 0 0 26px; }
  .about-portrait__badge { padding: 9px 12px; font-size: 11.5px; }
  .about-portrait__badge strong { font-size: 21px; }
  .about-portrait__badge--one { left: -10px; }
  .about-portrait__badge--two { right: -10px; }
  .about-steps li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 0 16px; text-align: left; }
  .about-steps span { grid-row: span 2; margin: 0; }
}

/* ----- Blog articles: section labels, illustrations, tables and the two-panel handoff
   (WhatsApp journeys article, 26 Nov 2026) ----- */
.post-body > .eyebrow { margin: 46px 0 0; }
.post-body > .eyebrow + h2 { margin-top: 8px; }
.post-body .article-image { margin: 32px 0 34px; }
.post-body .article-image a { display: block; border-radius: 14px; }
.post-body .article-image img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; }
.post-body .article-image figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.post-body .wp-block-table { overflow-x: auto; margin: 28px 0; border: 1px solid var(--line); border-radius: 16px; }
.post-body .wp-block-table table { min-width: 460px; margin: 0; }
.post-body .wp-block-table td:first-child { color: var(--navy-dark); font-weight: 650; }
.post-body .article-handoff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; margin: 30px 0; border: 1px solid var(--line); border-radius: var(--radius); }
.post-body .article-handoff > div { padding: 26px 26px 22px; background: var(--blue-soft); }
.post-body .article-handoff > div + div { border-left: 1px solid var(--line); background: var(--surface); }
.post-body .article-handoff__label { margin: 0 0 6px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.post-body .article-handoff h3 { margin: 0 0 14px; font-size: 20px; }
.post-body .article-handoff dl { margin: 0; font-size: 15px; line-height: 1.5; }
.post-body .article-handoff dt { margin-top: 12px; color: var(--muted); font-size: 13px; }
.post-body .article-handoff dd { margin: 2px 0 0; color: var(--navy-dark); font-weight: 700; }
.post-body .article-handoff p:not(.article-handoff__label) { margin: 0; font-size: 15.5px; line-height: 1.65; }
@media (max-width: 720px) {
  .post-body .article-handoff { grid-template-columns: minmax(0, 1fr); }
  .post-body .article-handoff > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .post-body .article-handoff > div { padding: 20px; }
}

/* ----- Case studies without reported figures: highlights in the hero (numbered tiles, same frame
   as the results tiles) and illustrations in the story (26 Nov 2026) ----- */
.case-study-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 900px; margin: 22px 0 0; padding: 0; list-style: none; }
.case-study-highlights li { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.case-study-highlights__num { color: var(--green); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.case-study-highlights strong { color: var(--navy-dark); font-size: 17px; line-height: 1.3; }
.case-study-highlights span:not(.case-study-highlights__num) { color: var(--muted); font-size: 14px; line-height: 1.45; }
.case-study-body .case-study-figure { margin: 32px 0 34px; }
.case-study-body .case-study-figure a { display: block; border-radius: 14px; }
.case-study-body .case-study-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; }
.case-study-body .case-study-figure figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
@media (max-width: 720px) {
  .case-study-highlights { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .case-study-highlights li { padding: 14px 16px; }
}
.case-study-hero--media.case-study-hero--long h1 { font-size: clamp(32px, 3.4vw, 46px); }

/* ----- Blog: scope strip and highlighted figures table (implementation timeline article) ----- */
.post-body .article-scope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 26px 0 44px; padding: 0; list-style: none; }
.post-body .article-scope li { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--blue-soft); color: var(--navy-dark); font-size: 15.5px; font-weight: 700; line-height: 1.4; }
.post-body .article-scope strong { display: block; margin-bottom: 2px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.post-body .article-table--figures td:not(:first-child) { color: var(--blue); font-size: 18px; font-weight: 800; white-space: nowrap; }
@media (max-width: 720px) {
  .post-body .article-scope { grid-template-columns: minmax(0, 1fr); }
}
