/* Multi-page additions (loaded after site.css) */
.cpi-header { position: sticky; top: 0; z-index: 10; }
.cpi-tools { display: flex; align-items: center; gap: 4px; }
.cpi-icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--cpi-ink); cursor: pointer; border-radius: 2px; font-size: 18px; }
.cpi-icon-btn:hover { color: var(--cpi-blue); }
.cpi-nav > a, .cpi-dd-btn { color: color-mix(in oklab, var(--cpi-ink) 78%, transparent); font-size: 12px; text-decoration: none; background: transparent; border: 0; cursor: pointer; padding: 0; font-family: inherit; display: inline-flex; align-items: center; gap: 4px; }
.cpi-nav > a:hover, .cpi-dd-btn:hover, .cpi-nav > a[aria-current="page"] { color: var(--cpi-blue); }
.cpi-nav > a.cpi-nav-cta { color: var(--cpi-paper); }
.cpi-dd { position: relative; }
.cpi-dd-btn svg { width: 12px; height: 12px; }
.cpi-dd-menu { display: none; position: absolute; top: 100%; left: -14px; min-width: 250px; padding: 8px; background: var(--cpi-paper); border: 1px solid color-mix(in oklab, var(--cpi-ink) 14%, transparent); box-shadow: 0 16px 40px color-mix(in oklab, var(--cpi-ink) 14%, transparent); }
.cpi-dd.open .cpi-dd-menu, .cpi-dd:hover .cpi-dd-menu, .cpi-dd:focus-within .cpi-dd-menu { display: grid; }
.cpi-dd-menu a { padding: 9px 12px; color: var(--cpi-ink); font-size: 12px; text-decoration: none; }
.cpi-dd-menu a:hover { background: color-mix(in oklab, var(--cpi-blue) 10%, transparent); color: var(--cpi-blue); }
@media (max-width: 680px) {
  .cpi-dd-menu { position: static; display: grid; box-shadow: none; border: 0; padding: 0 0 6px 10px; min-width: 0; }
  .cpi-dd { border-bottom: 1px solid color-mix(in oklab, var(--cpi-ink) 13%, transparent); }
  .cpi-dd-btn { padding: 13px 4px; font-size: 13px; width: 100%; justify-content: space-between; }
  .cpi-dd-btn svg { display: none; }
  .cpi-nav > a:not(.cpi-nav-cta) { padding: 13px 4px; font-size: 13px; border-bottom: 1px solid color-mix(in oklab, var(--cpi-ink) 13%, transparent); }
  .cpi-header { z-index: 20; }
}
.cpi-page-hero { background: linear-gradient(135deg, #212529, #343a40); color: #f8f9fa; padding: 56px 0 72px; }
.cpi-page-hero h1 { max-width: 820px; margin: 22px 0 16px; font-size: clamp(38px, 5vw, 64px); line-height: 1.04; font-weight: 600; color: #f8f9fa; }
.cpi-page-hero h1 em { color: #39c5f0; font-family: Georgia, serif; font-weight: 400; }
.cpi-page-hero p { max-width: 620px; font-size: 16px; line-height: 1.75; color: color-mix(in oklab, #f8f9fa 80%, transparent); }
.cpi-page-hero .cpi-hero-secondary { color: #f8f9fa; }
.cpi-crumbs { font-size: 11px; color: color-mix(in oklab, #f8f9fa 65%, transparent); margin-bottom: 8px; }
.cpi-crumbs a { color: inherit; text-decoration: none; }
.cpi-crumbs a:hover { color: #39c5f0; }
.cpi-crumbs i { font-style: normal; opacity: .6; }
.cpi-crumb-wrap .cpi-crumbs, .cpi-legal .cpi-crumbs { color: color-mix(in oklab, var(--cpi-ink) 60%, transparent); }
.cpi-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; padding-block: 72px 56px; align-items: start; }
.cpi-prose { max-width: 720px; font-size: 15px; line-height: 1.85; color: color-mix(in oklab, var(--cpi-ink) 82%, transparent); }
.cpi-prose h2 { font-size: 26px; font-weight: 600; margin: 0 0 14px; color: var(--cpi-ink); line-height: 1.2; }
.cpi-prose-sec { margin-bottom: 44px; }
.cpi-prose ul, .cpi-prose ol { padding-left: 20px; display: grid; gap: 8px; }
.cpi-prose p { margin-bottom: 14px; }
.cpi-fine { font-size: 11px; line-height: 1.6; color: color-mix(in oklab, var(--cpi-ink) 58%, transparent); }
.cpi-side-card { position: sticky; top: 104px; padding: 26px; background: color-mix(in oklab, var(--cpi-blue) 7%, var(--cpi-paper)); border: 1px solid color-mix(in oklab, var(--cpi-blue) 20%, transparent); display: grid; gap: 12px; font-size: 13px; line-height: 1.7; }
.cpi-side-card h3 { font-size: 15px; font-weight: 650; }
.cpi-side-card ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.cpi-side-card li { display: flex; gap: 10px; align-items: flex-start; }
.cpi-side-card li svg { color: var(--cpi-blue); margin-top: 4px; }
.cpi-side-card a:not(.cpi-button-lime) { color: var(--cpi-blue); }
.cpi-faq-list h2 { margin-top: 8px; }
.cpi-faq { border-bottom: 1px solid color-mix(in oklab, var(--cpi-ink) 16%, transparent); }
.cpi-faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; font-size: 15px; position: relative; color: var(--cpi-ink); }
.cpi-faq summary::-webkit-details-marker { display: none; }
.cpi-faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 22px; font-weight: 300; color: var(--cpi-blue); transition: transform .2s ease; }
.cpi-faq[open] summary::after { transform: rotate(45deg); }
.cpi-faq div { padding: 0 0 18px; }
.cpi-related-wrap { padding-block: 24px 72px; }
.cpi-related-wrap h2 { font-size: 22px; margin-bottom: 18px; }
.cpi-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.cpi-related { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border: 1px solid color-mix(in oklab, var(--cpi-ink) 16%, transparent); text-decoration: none; color: var(--cpi-ink); font-size: 13px; font-weight: 600; transition: border-color .18s ease, transform .18s ease; }
.cpi-related:hover { border-color: var(--cpi-blue); color: var(--cpi-blue); transform: translateY(-2px); }
.cpi-cta-band { background: var(--cpi-blue); color: #f8f9fa; padding: 64px 0; }
.cpi-cta-band .cpi-section { width: min(100% - 96px, 1240px); }
.cpi-cta-band h2 { max-width: 640px; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; font-weight: 550; margin-bottom: 22px; }
.cpi-cta-band .cpi-text-link { color: #f8f9fa; margin-top: 0; }
.cpi-card-grid-wrap { padding-block: 64px 24px; }
.cpi-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.cpi-card { display: grid; gap: 10px; align-content: start; padding: 26px; border: 1px solid color-mix(in oklab, var(--cpi-ink) 15%, transparent); text-decoration: none; color: var(--cpi-ink); background: var(--cpi-paper); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.cpi-card:hover { transform: translateY(-3px); border-color: var(--cpi-blue); box-shadow: 0 14px 36px color-mix(in oklab, var(--cpi-ink) 10%, transparent); }
.cpi-card h3 { font-size: 17px; font-weight: 600; }
.cpi-card p { font-size: 13px; line-height: 1.7; color: color-mix(in oklab, var(--cpi-ink) 68%, transparent); }
.cpi-card .cpi-text-link { margin-top: 6px; }
.cpi-card-ic { color: var(--cpi-blue); font-size: 22px; }
.cpi-card time { font-size: 11px; color: color-mix(in oklab, var(--cpi-ink) 55%, transparent); }
.cpi-insights-wrap { padding-block: 64px 72px; }
.cpi-steps { display: grid; gap: 22px; }
.cpi-steps > div { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
.cpi-steps span { grid-row: span 2; color: var(--cpi-blue); font-size: 12px; padding-top: 4px; }
.cpi-steps h3 { font-size: 16px; font-weight: 600; }
.cpi-steps p { margin: 0; }
.cpi-teasers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-block: 24px 80px; }
.cpi-teaser { display: grid; gap: 10px; align-content: start; padding: 28px; border: 1px solid color-mix(in oklab, var(--cpi-ink) 16%, transparent); text-decoration: none; color: var(--cpi-ink); transition: transform .2s ease, border-color .2s ease; }
.cpi-teaser:hover { transform: translateY(-3px); border-color: var(--cpi-blue); }
.cpi-teaser h3 { font-size: 18px; font-weight: 600; }
.cpi-teaser p { font-size: 13px; line-height: 1.7; color: color-mix(in oklab, var(--cpi-ink) 66%, transparent); }
a.cpi-domain-row { text-decoration: none; color: inherit; transition: background .18s ease; }
a.cpi-domain-row:hover { background: color-mix(in oklab, var(--cpi-paper) 6%, transparent); }
.cpi-footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 32px 0; border-bottom: 1px solid color-mix(in oklab, var(--cpi-ink) 17%, transparent); }
.cpi-footer-cols h3 { font-size: 11px; text-transform: uppercase; margin-bottom: 12px; color: color-mix(in oklab, var(--cpi-ink) 60%, transparent); }
.cpi-footer-cols ul { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 12px; }
.cpi-footer-cols a { text-decoration: none; color: var(--cpi-ink); }
.cpi-footer-cols a:hover { color: var(--cpi-blue); }
.cpi-footer-bottom { margin-top: 0; }
/* Search */
.cpi-search { position: fixed; inset: 0; z-index: 50; background: rgb(8 12 20 / .6); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 0; }
.cpi-search[hidden] { display: none; }
.cpi-search-box { position: relative; width: min(640px, 100%); background: var(--cpi-paper); padding: 14px; box-shadow: 0 24px 80px rgb(0 0 0 / .4); }
.cpi-search-box input { width: calc(100% - 48px); height: 46px; border: 1px solid color-mix(in oklab, var(--cpi-ink) 25%, transparent); background: var(--cpi-paper); color: var(--cpi-ink); padding: 0 14px; font: inherit; font-size: 15px; }
.cpi-search-box .cpi-icon-btn { position: absolute; top: 14px; right: 10px; }
#search-results { list-style: none; padding: 0; margin: 10px 0 0; max-height: 50vh; overflow: auto; }
#search-results a { display: block; padding: 10px 12px; text-decoration: none; color: var(--cpi-ink); }
#search-results a:hover, #search-results a:focus { background: color-mix(in oklab, var(--cpi-blue) 10%, transparent); }
#search-results b { display: block; font-size: 14px; }
#search-results span { font-size: 12px; color: color-mix(in oklab, var(--cpi-ink) 62%, transparent); }
/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
/* Quiz */
.cpi-quiz-wrap { width: min(100% - 40px, 760px); margin-inline: auto; padding-block: 56px 80px; display: grid; gap: 16px; }
.cpi-quiz { border: 1px solid color-mix(in oklab, var(--cpi-ink) 16%, transparent); padding: 28px; background: var(--cpi-paper); box-shadow: 0 18px 60px color-mix(in oklab, var(--cpi-ink) 8%, transparent); }
.cpi-progress { height: 4px; background: color-mix(in oklab, var(--cpi-ink) 12%, transparent); margin-bottom: 22px; }
.cpi-progress > div { height: 100%; background: var(--cpi-blue); transition: width .3s ease; }
.cpi-quiz h2 { font-size: 22px; line-height: 1.3; margin-bottom: 6px; }
.cpi-quiz .cpi-q-help { font-size: 12px; color: color-mix(in oklab, var(--cpi-ink) 60%, transparent); margin-bottom: 16px; }
.cpi-options { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
.cpi-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid color-mix(in oklab, var(--cpi-ink) 20%, transparent); cursor: pointer; font-size: 14px; line-height: 1.5; }
.cpi-option:hover { border-color: var(--cpi-blue); }
.cpi-option input { margin-top: 3px; accent-color: var(--cpi-blue); }
.cpi-option:has(input:checked) { border-color: var(--cpi-blue); background: color-mix(in oklab, var(--cpi-blue) 8%, transparent); }
.cpi-quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.cpi-btn-ghost { background: transparent; border: 1px solid color-mix(in oklab, var(--cpi-ink) 28%, transparent); color: var(--cpi-ink); min-height: 48px; padding: 0 18px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; border-radius: 2px; }
.cpi-btn-ghost:hover { border-color: var(--cpi-blue); color: var(--cpi-blue); }
.cpi-result { display: grid; gap: 14px; }
.cpi-result .tag { display: inline-block; padding: 4px 10px; font-size: 11px; font-weight: 700; background: var(--cpi-lime); color: #212529; width: fit-content; }
.cpi-result .tag.warn { background: #ecb439; }
.cpi-result ul { padding-left: 20px; display: grid; gap: 8px; font-size: 14px; line-height: 1.6; }
.cpi-send { border-top: 1px solid color-mix(in oklab, var(--cpi-ink) 16%, transparent); padding-top: 16px; display: grid; gap: 12px; }
/* Booking */
.cpi-book-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding-block: 56px 80px; align-items: start; }
.cpi-book { display: grid; gap: 28px; }
.cpi-book h2 { font-size: 16px; margin-bottom: 10px; }
.cpi-days { display: flex; flex-wrap: wrap; gap: 8px; }
.cpi-day, .cpi-slot { min-height: 44px; padding: 8px 14px; border: 1px solid color-mix(in oklab, var(--cpi-ink) 24%, transparent); background: var(--cpi-paper); color: var(--cpi-ink); cursor: pointer; font: inherit; font-size: 13px; border-radius: 2px; }
.cpi-day small { display: block; font-size: 10px; opacity: .7; }
.cpi-day:hover, .cpi-slot:hover { border-color: var(--cpi-blue); }
.cpi-day[aria-pressed="true"], .cpi-slot[aria-pressed="true"] { background: var(--cpi-blue); color: #f8f9fa; border-color: var(--cpi-blue); }
.cpi-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.cpi-book-form { box-shadow: none; padding: 24px; background: color-mix(in oklab, var(--cpi-ink) 3%, var(--cpi-paper)); border: 1px solid color-mix(in oklab, var(--cpi-ink) 12%, transparent); }
.cpi-book-form[hidden], .cpi-form-success[hidden] { display: none; }
/* Articles */
.cpi-article { width: min(100% - 40px, 760px); margin: 0 auto; padding: 48px 0 80px; }
.cpi-article h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; margin: 12px 0; }
.cpi-article .meta { font-size: 12px; color: color-mix(in oklab, var(--cpi-ink) 58%, transparent); margin-bottom: 28px; }
.cpi-article .cpi-prose { max-width: none; }
.cpi-article h2 { margin-top: 32px; }
.cpi-notfound .cpi-button-lime { margin-top: 8px; }
/* Dark mode */
:root[data-theme="dark"] { --cpi-ink: #f1f3f5; --cpi-paper: #1b1f23; --cpi-mist: #1f2d35; color-scheme: dark; }
:root[data-theme="dark"] .cpi-hero, :root[data-theme="dark"] .cpi-domain-band, :root[data-theme="dark"] .cpi-founder-band, :root[data-theme="dark"] .cpi-cta-band, :root[data-theme="dark"] .cpi-page-hero { --cpi-ink: #212529; --cpi-paper: #f8f9fa; }
:root[data-theme="dark"] .cpi-button-lime { color: #212529; }
:root[data-theme="dark"] .cpi-button-lime:hover { background: #f8f9fa; }
:root[data-theme="dark"] .cpi-nav-cta, :root[data-theme="dark"] .cpi-nav > a.cpi-nav-cta { background: #f1f3f5; color: #212529; }
:root[data-theme="dark"] .cpi-intro-main h2 span, :root[data-theme="dark"] .cpi-section-head h2 em { color: #5ab4e6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --cpi-ink: #f1f3f5; --cpi-paper: #1b1f23; --cpi-mist: #1f2d35; color-scheme: dark; }
  :root:not([data-theme="light"]) .cpi-hero, :root:not([data-theme="light"]) .cpi-domain-band, :root:not([data-theme="light"]) .cpi-founder-band, :root:not([data-theme="light"]) .cpi-cta-band, :root:not([data-theme="light"]) .cpi-page-hero { --cpi-ink: #212529; --cpi-paper: #f8f9fa; }
  :root:not([data-theme="light"]) .cpi-button-lime { color: #212529; }
  :root:not([data-theme="light"]) .cpi-button-lime:hover { background: #f8f9fa; }
  :root:not([data-theme="light"]) .cpi-nav-cta, :root:not([data-theme="light"]) .cpi-nav > a.cpi-nav-cta { background: #f1f3f5; color: #212529; }
  :root:not([data-theme="light"]) .cpi-intro-main h2 span, :root:not([data-theme="light"]) .cpi-section-head h2 em { color: #5ab4e6; }
}
@media (max-width: 900px) {
  .cpi-detail, .cpi-book-wrap { grid-template-columns: 1fr; gap: 40px; }
  .cpi-side-card { position: static; }
  .cpi-teasers { grid-template-columns: 1fr; }
  .cpi-footer-cols { grid-template-columns: 1fr 1fr; }
  .cpi-cta-band .cpi-section { width: calc(100% - 56px); }
}
@media (max-width: 680px) { .cpi-cta-band .cpi-section { width: calc(100% - 40px); } }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .cpi-card:hover, .cpi-related:hover, .cpi-teaser:hover { transform: none; } }
.cpi-nav > a.cpi-nav-cta { background: var(--cpi-ink); height: 42px; padding-inline: 18px; border-radius: 2px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }
.cpi-nav > a.cpi-nav-cta:hover { background: var(--cpi-blue); color: #f8f9fa; }
.cpi-cookie { font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif; }
.cpi-quiz h2:focus, .cpi-result h2:focus { outline: none; }
.cpi-quiz > .cpi-fine { margin-bottom: 8px; }
.cpi-company { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-block: 64px; border-top: 1px solid color-mix(in oklab, var(--cpi-ink) 14%, transparent); }
.cpi-company h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; font-weight: 550; margin-top: 18px; }
.cpi-company p { font-size: 14px; line-height: 1.8; color: color-mix(in oklab, var(--cpi-ink) 72%, transparent); margin-bottom: 14px; }
.cpi-footer-note a { color: inherit; text-decoration: underline; }
@media (max-width: 900px) { .cpi-company { grid-template-columns: 1fr; gap: 20px; } }

/* ===== Metayage brand palette (colours from metayage.com) ===== */
:root { --cpi-gold: #ecb439; --cpi-green: #30b67d; --cpi-blue-deep: #0f6ca8; --cpi-blue-ink: #0f6ca8; }
:root[data-theme="dark"] { --cpi-blue-ink: #5ab4e6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --cpi-blue-ink: #5ab4e6; } }
.cpi-button-lime, :root[data-theme="dark"] .cpi-button-lime { background: var(--cpi-gold); color: #212529; }
.cpi-button-lime:hover, :root[data-theme="dark"] .cpi-button-lime:hover { background: #f0c361; color: #212529; }
.cpi-founder-band, .cpi-cta-band { background: var(--cpi-blue-deep); }
.cpi-text-link, .cpi-intro-copy a, .cpi-section-number, .cpi-principles article > span, .cpi-service-top, .cpi-service-item > a, .cpi-footer-bottom a, .cpi-side-card a:not(.cpi-button-lime), .cpi-assessment-aside > span, .cpi-form-disclosure a, .cpi-legal a, .cpi-prose a, .cpi-form-top i, .cpi-card-ic, .cpi-steps span { color: var(--cpi-blue-ink); }
.cpi-domain-heading .cpi-text-link { color: #39c5f0; }
.cpi-cta-band .cpi-text-link, .cpi-founder-label .cpi-section-number { color: #f8f9fa; }
.cpi-founder-label .cpi-section-number { color: #39c5f0; }
.cpi-success-icon { background: var(--cpi-green); color: #fff; }
.cpi-result .tag { background: #39c5f0; }
.cpi-result .tag.warn { background: var(--cpi-gold); }
.cpi-nav > a.cpi-nav-cta, .cpi-nav-cta, :root[data-theme="dark"] .cpi-nav-cta, :root[data-theme="dark"] .cpi-nav > a.cpi-nav-cta { background: var(--cpi-blue-deep); color: #fff; }
.cpi-nav > a.cpi-nav-cta:hover, .cpi-nav-cta:hover { background: var(--cpi-blue); color: #fff; }

/* ===== 3D / interactive effects ===== */
.cpi-3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; will-change: transform; }
.cpi-page-hero { position: relative; isolation: isolate; overflow: hidden; }
.cpi-hero::after, .cpi-page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(520px circle at var(--mx, 72%) var(--my, 40%), rgb(57 197 240 / .16), transparent 60%); transition: background .2s ease; }
.cpi-hero-shade { z-index: -1; }
.cpi-page-hero .cpi-section { position: relative; z-index: 1; }
/* perspective grid floor in the dark technology band */
.cpi-domain-band { position: relative; overflow: hidden; isolation: isolate; perspective: 900px; }
.cpi-domain-band::before { content: ""; position: absolute; left: -25%; right: -25%; bottom: -8%; height: 62%; z-index: -1; transform-origin: 50% 100%; transform: rotateX(64deg); background-image: linear-gradient(rgb(57 197 240 / .22) 1px, transparent 1px), linear-gradient(90deg, rgb(57 197 240 / .22) 1px, transparent 1px); background-size: 56px 56px; animation: cpi-grid 5s linear infinite; -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%); mask-image: linear-gradient(to top, #000 10%, transparent 90%); }
.cpi-domain-band::after { content: ""; position: absolute; width: 520px; height: 520px; left: var(--mx, 20%); top: var(--my, 30%); translate: -50% -50%; z-index: -1; pointer-events: none; background: radial-gradient(circle, rgb(20 129 196 / .28), transparent 65%); filter: blur(8px); transition: left .25s ease, top .25s ease; }
@keyframes cpi-grid { to { background-position: 0 56px, 0 0; } }
/* floating orbs in blue bands */
.cpi-founder-band, .cpi-cta-band { position: relative; isolation: isolate; overflow: hidden; }
.cpi-founder-band::before, .cpi-cta-band::before { content: ""; position: absolute; width: 420px; height: 420px; right: 8%; top: -120px; border-radius: 50%; z-index: -1; background: radial-gradient(circle at 35% 30%, rgb(57 197 240 / .55), rgb(57 197 240 / 0) 68%); filter: blur(2px); animation: cpi-float 9s ease-in-out infinite; }
.cpi-founder-band::after, .cpi-cta-band::after { content: ""; position: absolute; width: 260px; height: 260px; left: 6%; bottom: -90px; border-radius: 50%; z-index: -1; background: radial-gradient(circle at 40% 35%, rgb(236 180 57 / .4), rgb(236 180 57 / 0) 70%); animation: cpi-float 11s ease-in-out infinite reverse; }
@keyframes cpi-float { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-28px, 34px, 0) scale(1.08); } }
/* tilting cards with light glare */
.cpi-tilt { transform-style: preserve-3d; transition: transform .18s ease-out, box-shadow .25s ease, border-color .25s ease; position: relative; will-change: transform; }
.cpi-card.cpi-tilt, .cpi-teaser.cpi-tilt, .cpi-related.cpi-tilt { overflow: hidden; }
.cpi-card.cpi-tilt::after, .cpi-teaser.cpi-tilt::after, .cpi-related.cpi-tilt::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s ease; background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgb(57 197 240 / .22), transparent 60%); }
.cpi-card.cpi-tilt:hover::after, .cpi-teaser.cpi-tilt:hover::after, .cpi-related.cpi-tilt:hover::after { opacity: 1; }
.cpi-tilt:hover { box-shadow: 0 26px 50px rgb(20 129 196 / .18), 0 8px 18px rgb(0 0 0 / .1); }
.cpi-domain-row.cpi-tilt:hover { background: rgb(57 197 240 / .08); box-shadow: 0 0 0 1px rgb(57 197 240 / .25), 0 18px 40px rgb(0 0 0 / .35); }
.cpi-service-item.cpi-tilt:hover { z-index: 2; background: var(--cpi-paper); }
.cpi-button-lime { box-shadow: 0 6px 0 rgb(140 100 10 / .55), 0 10px 24px rgb(236 180 57 / .25); transition: transform .15s ease, box-shadow .15s ease, background .2s ease; }
.cpi-button-lime:hover { transform: translateY(-2px); box-shadow: 0 8px 0 rgb(140 100 10 / .55), 0 16px 30px rgb(236 180 57 / .35); }
.cpi-button-lime:active { transform: translateY(4px); box-shadow: 0 2px 0 rgb(140 100 10 / .55); }
.cpi-hero h1 { text-shadow: 0 8px 40px rgb(0 0 0 / .45); }
@media (max-width: 680px) { .cpi-3d { opacity: .55; } .cpi-domain-band::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .cpi-domain-band::before, .cpi-founder-band::before, .cpi-cta-band::before, .cpi-founder-band::after, .cpi-cta-band::after { animation: none; } .cpi-tilt { transform: none !important; } }
.js .reveal.cpi-tilt { transition: opacity .6s ease, transform .18s ease-out, box-shadow .25s ease, border-color .25s ease; }
/* Home hero photo with pointer parallax */
.cpi-hero.has-photo { background-size: cover; background-position: calc(50% + (var(--mx, 50%) - 50%) * 0.06) calc(54% + (var(--my, 50%) - 50%) * 0.18); transition: background-position .25s ease-out; }
@media (max-width: 680px) { .cpi-hero.has-photo { background-position: 68% center; } }
/* Per-page hero art for services and technology areas */
.cpi-page-hero.has-art { background-color: #212529; background-image: linear-gradient(90deg, rgb(33 37 41 / .97) 0%, rgb(33 37 41 / .86) 34%, rgb(33 37 41 / .22) 72%, rgb(33 37 41 / .04) 100%), var(--hero-art); background-size: cover; background-position: calc(100% - (var(--mx, 50%) - 50%) * 0.05) calc(50% + (var(--my, 50%) - 50%) * 0.2); padding-block: 64px 84px; }
@media (max-width: 900px) { .cpi-page-hero.has-art { background-image: linear-gradient(90deg, rgb(33 37 41 / .94) 0%, rgb(33 37 41 / .75) 100%), var(--hero-art); } }
.cpi-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cpi-chip { padding: 7px 14px; border: 1px solid color-mix(in oklab, var(--cpi-blue) 45%, transparent); border-radius: 999px; font-size: 12px; text-decoration: none; color: var(--cpi-blue-ink); background: color-mix(in oklab, var(--cpi-blue) 7%, transparent); transition: background .2s ease, transform .2s ease; }
.cpi-chip:hover { background: color-mix(in oklab, var(--cpi-blue) 18%, transparent); transform: translateY(-2px); }

/* ===== Insights: news-style list and articles ===== */
.cpi-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cpi-news { display: flex; flex-direction: column; text-decoration: none; color: var(--cpi-ink); background: var(--cpi-paper); border: 1px solid color-mix(in oklab, var(--cpi-ink) 14%, transparent); overflow: hidden; transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease; }
.cpi-news:hover { transform: translateY(-4px); border-color: var(--cpi-blue); box-shadow: 0 22px 44px rgb(20 129 196 / .16); }
.cpi-news-media { aspect-ratio: 16 / 9; background: #212529; overflow: hidden; position: relative; }
.cpi-news-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.cpi-news:hover .cpi-news-media img { transform: scale(1.05); }
.cpi-news-media.is-empty { background: linear-gradient(135deg, #212529, #0f6ca8); }
.cpi-news-media.is-empty::after { content: ""; position: absolute; inset: 0; background: url("favicon.png") center / 72px no-repeat; opacity: .85; }
.cpi-news-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; flex: 1; }
.cpi-news-body time { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: color-mix(in oklab, var(--cpi-ink) 58%, transparent); }
.cpi-news-body h2 { font-size: 20px; line-height: 1.3; font-weight: 600; }
.cpi-news-body p { font-size: 14px; line-height: 1.75; color: color-mix(in oklab, var(--cpi-ink) 72%, transparent); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cpi-news-body .cpi-text-link { margin-top: auto; padding-top: 6px; }
.cpi-news-feature { grid-column: 1 / -1; flex-direction: row; }
.cpi-news-feature .cpi-news-media { flex: 1.35; aspect-ratio: auto; min-height: 340px; }
.cpi-news-feature .cpi-news-body { flex: 1; justify-content: center; padding: 36px 40px; }
.cpi-news-feature .cpi-news-body h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; }
.cpi-news-feature .cpi-news-body p { -webkit-line-clamp: 6; font-size: 15px; }
.cpi-article-cover { margin: 0 0 32px; }
.cpi-article-cover img { width: 100%; height: auto; display: block; max-height: 460px; object-fit: cover; border-radius: 3px; }
.cpi-prose img { max-width: 100%; height: auto; display: block; margin: 26px auto; border-radius: 3px; }
.cpi-prose figure { margin: 26px 0; }
.cpi-prose figcaption { font-size: 12px; color: color-mix(in oklab, var(--cpi-ink) 58%, transparent); text-align: center; margin-top: 8px; }
@media (max-width: 900px) { .cpi-news-grid { grid-template-columns: repeat(2, 1fr); } .cpi-news-feature { flex-direction: column; } .cpi-news-feature .cpi-news-media { min-height: 0; aspect-ratio: 16 / 9; flex: none; } .cpi-news-feature .cpi-news-body { padding: 24px; } }
@media (max-width: 600px) { .cpi-news-grid { grid-template-columns: 1fr; } }

/* ===== Insights: card grid / list, toggle and pagination ===== */
.cpi-insights-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.cpi-insights-bar[hidden], .cpi-pager[hidden] { display: none; }
.cpi-view-toggle { display: inline-flex; border: 1px solid color-mix(in oklab, var(--cpi-ink) 22%, transparent); border-radius: 3px; overflow: hidden; }
.cpi-view-toggle button { min-height: 38px; padding: 0 18px; border: 0; background: transparent; color: var(--cpi-ink); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.cpi-view-toggle button + button { border-left: 1px solid color-mix(in oklab, var(--cpi-ink) 22%, transparent); }
.cpi-view-toggle button::before { content: ""; width: 14px; height: 14px; background: currentColor; opacity: .85; }
#view-grid::before { -webkit-mask: linear-gradient(#000 0 0) 0 0 / 6px 6px, linear-gradient(#000 0 0) 8px 0 / 6px 6px, linear-gradient(#000 0 0) 0 8px / 6px 6px, linear-gradient(#000 0 0) 8px 8px / 6px 6px; -webkit-mask-repeat: no-repeat; mask: linear-gradient(#000 0 0) 0 0 / 6px 6px, linear-gradient(#000 0 0) 8px 0 / 6px 6px, linear-gradient(#000 0 0) 0 8px / 6px 6px, linear-gradient(#000 0 0) 8px 8px / 6px 6px; mask-repeat: no-repeat; }
#view-list::before { -webkit-mask: linear-gradient(#000 0 0) 0 1px / 14px 3px, linear-gradient(#000 0 0) 0 6px / 14px 3px, linear-gradient(#000 0 0) 0 11px / 14px 3px; -webkit-mask-repeat: no-repeat; mask: linear-gradient(#000 0 0) 0 1px / 14px 3px, linear-gradient(#000 0 0) 0 6px / 14px 3px, linear-gradient(#000 0 0) 0 11px / 14px 3px; mask-repeat: no-repeat; }
.cpi-view-toggle button[aria-pressed="true"] { background: var(--cpi-blue-deep); color: #fff; }

.cpi-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 30px; }
.cpi-post { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--cpi-ink); background: var(--cpi-paper); box-shadow: 0 12px 44px rgb(0 0 0 / .08); transition: transform .25s ease, box-shadow .3s ease; }
.cpi-post:hover { transform: translateY(-5px); box-shadow: 0 26px 56px rgb(20 129 196 / .2); }
.cpi-post-top { position: relative; }
.cpi-post-media { aspect-ratio: 16 / 10; background: #212529; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); position: relative; }
.cpi-post-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.cpi-post:hover .cpi-post-media img { transform: scale(1.06); }
.cpi-post-media.is-empty { background: linear-gradient(135deg, #212529, #0f6ca8); }
.cpi-post-media.is-empty::after { content: ""; position: absolute; inset: 0; background: url("favicon.png") center / 76px no-repeat; opacity: .9; }
.cpi-post-date { position: absolute; right: 0; bottom: -30px; z-index: 2; padding: 15px 20px; background: var(--cpi-gold); color: #212529; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 8px 18px rgb(0 0 0 / .18); }
.cpi-post-body { display: flex; flex-direction: column; gap: 14px; padding: 52px 28px 24px; flex: 1; }
.cpi-post-body h2 { font-size: 22px; line-height: 1.35; font-weight: 400; }
.cpi-post-body p { font-size: 14px; line-height: 1.8; color: color-mix(in oklab, var(--cpi-ink) 72%, transparent); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cpi-post-more { margin-top: auto; padding-top: 16px; border-top: 1px solid color-mix(in oklab, var(--cpi-ink) 14%, transparent); display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--cpi-blue-ink); }
.cpi-post-arrow { font-size: 26px; line-height: 1; transition: transform .25s ease; }
.cpi-post:hover .cpi-post-arrow { transform: translateX(6px); }

/* list layout */
.cpi-post-grid.is-list { grid-template-columns: 1fr; gap: 28px; }
.is-list .cpi-post { flex-direction: row; align-items: stretch; }
.is-list .cpi-post-top { width: 360px; flex: none; }
.is-list .cpi-post-media { aspect-ratio: auto; height: 100%; min-height: 230px; clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); }
.is-list .cpi-post-date { bottom: 0; right: 14px; }
.is-list .cpi-post-body { padding: 30px 32px 24px 26px; justify-content: center; }
.is-list .cpi-post-body p { -webkit-line-clamp: 3; }
.is-list .cpi-post-more { margin-top: 6px; border-top: 0; padding-top: 4px; justify-content: flex-start; gap: 10px; }

/* pagination */
.cpi-pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 54px; flex-wrap: wrap; }
.cpi-page { min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid color-mix(in oklab, var(--cpi-ink) 20%, transparent); color: var(--cpi-ink); text-decoration: none; font-size: 14px; font-weight: 600; background: var(--cpi-paper); transition: background .2s ease, color .2s ease, border-color .2s ease; }
a.cpi-page:hover { border-color: var(--cpi-blue); color: var(--cpi-blue-ink); }
.cpi-page.is-current { background: var(--cpi-blue-deep); border-color: var(--cpi-blue-deep); color: #fff; }
.cpi-page.is-disabled { opacity: .4; }
.cpi-page-gap { padding: 0 4px; color: color-mix(in oklab, var(--cpi-ink) 55%, transparent); }

@media (max-width: 1000px) { .cpi-post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .cpi-post-grid { grid-template-columns: 1fr; }
  .is-list .cpi-post { flex-direction: column; }
  .is-list .cpi-post-top { width: auto; }
  .is-list .cpi-post-media { aspect-ratio: 16 / 10; height: auto; min-height: 0; clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); }
  .is-list .cpi-post-date { bottom: -30px; right: 0; }
  .is-list .cpi-post-body { padding: 52px 24px 22px; }
}
@media (prefers-reduced-motion: reduce) { .cpi-post, .cpi-post:hover, .cpi-post:hover .cpi-post-arrow, .cpi-post:hover .cpi-post-media img { transform: none; } }
/* icon-only layout switch */
.cpi-view-toggle button { width: 46px; padding: 0; justify-content: center; }
.cpi-view-toggle button::before { width: 16px; height: 16px; opacity: 1; }
#view-grid::before { -webkit-mask-size: 7px 7px, 7px 7px, 7px 7px, 7px 7px; -webkit-mask-position: 0 0, 9px 0, 0 9px, 9px 9px; mask-size: 7px 7px, 7px 7px, 7px 7px, 7px 7px; mask-position: 0 0, 9px 0, 0 9px, 9px 9px; }
#view-list::before { -webkit-mask-size: 16px 3px, 16px 3px, 16px 3px; -webkit-mask-position: 0 1px, 0 6.5px, 0 12px; mask-size: 16px 3px, 16px 3px, 16px 3px; mask-position: 0 1px, 0 6.5px, 0 12px; }

/* ===== Patent showcase ===== */
.cpi-showcase { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; padding-block: 64px 40px; align-items: start; }
.cpi-showcase-filters h2 { font-size: 26px; font-weight: 500; margin: 0 0 18px; }
.cpi-showcase-filters h2:not(:first-child) { margin-top: 44px; }
.cpi-filter { list-style: none; padding: 0; margin: 0; border: 1px solid color-mix(in oklab, var(--cpi-ink) 14%, transparent); padding: 10px; background: var(--cpi-paper); box-shadow: 0 8px 30px rgb(0 0 0 / .05); }
.cpi-filter li + li { border-top: 1px solid color-mix(in oklab, var(--cpi-ink) 10%, transparent); }
.cpi-filter-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 0 18px; border: 0; background: transparent; color: var(--cpi-ink); font: inherit; font-size: 15px; text-align: left; cursor: pointer; transition: background .2s ease, color .2s ease; }
.cpi-filter-btn:hover { background: color-mix(in oklab, var(--cpi-blue) 8%, transparent); }
.cpi-filter-btn.is-active { background: var(--cpi-blue-deep); color: #fff; font-weight: 600; }
.cpi-filter-tail { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.cpi-filter-tail em { font-style: normal; font-size: 11px; opacity: .7; }
.cpi-filter-tail i { font-style: normal; font-size: 18px; }
.cpi-showcase-title { font-size: clamp(22px, 2.6vw, 32px); font-weight: 500; margin: 0 0 24px; line-height: 1.25; }
.cpi-patent-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cpi-pcard { display: flex; flex-direction: column; text-decoration: none; color: var(--cpi-ink); background: var(--cpi-paper); border: 1px solid color-mix(in oklab, var(--cpi-ink) 14%, transparent); transition: transform .25s ease, box-shadow .3s ease, border-color .25s ease; overflow: hidden; }
.cpi-pcard:hover { transform: translateY(-5px); border-color: var(--cpi-blue); box-shadow: 0 24px 50px rgb(20 129 196 / .18); }
.cpi-pcard-fig { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid color-mix(in oklab, var(--cpi-ink) 10%, transparent); }
.cpi-pcard-fig img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .5s ease; }
.cpi-pcard:hover .cpi-pcard-fig img { transform: scale(1.04); }
.cpi-pcard-fig.is-empty { background: linear-gradient(135deg, #212529, #0f6ca8); position: relative; }
.cpi-pcard-fig.is-empty::after { content: ""; position: absolute; inset: 0; background: url("favicon.png") center / 64px no-repeat; opacity: .9; }
.cpi-pcard-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.cpi-pcard-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cpi-pcard-domain { font-size: 14px; color: color-mix(in oklab, var(--cpi-ink) 70%, transparent); display: inline-flex; align-items: center; gap: 8px; }
.cpi-pcard-domain::before { content: ""; width: 16px; height: 13px; background: currentColor; -webkit-mask: linear-gradient(#000 0 0) 0 4px / 16px 9px no-repeat, linear-gradient(#000 0 0) 5px 0 / 6px 4px no-repeat; mask: linear-gradient(#000 0 0) 0 4px / 16px 9px no-repeat, linear-gradient(#000 0 0) 5px 0 / 6px 4px no-repeat; border-radius: 2px; }
.cpi-pcard-country { padding: 3px 10px; border-radius: 4px; background: #212529; color: #fff; font-size: 12px; font-weight: 700; }
.cpi-pcard h3 { font-size: 20px; line-height: 1.35; font-weight: 400; }
.cpi-pcard-id { font-size: 12px; color: color-mix(in oklab, var(--cpi-ink) 56%, transparent); letter-spacing: .03em; }
.cpi-pcard .cpi-text-link { margin-top: auto; padding-top: 6px; text-decoration: underline; }
.cpi-fine-wrap { padding-block: 0 48px; }
/* patent detail page */
.cpi-patent { width: min(100% - 40px, 960px); margin: 0 auto; padding: 48px 0 80px; }
.cpi-patent-head h1 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; font-weight: 500; margin: 20px 0 28px; }
.cpi-patent-meta { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 8px 0 0; padding: 18px 22px; border: 1px solid color-mix(in oklab, var(--cpi-ink) 14%, transparent); background: color-mix(in oklab, var(--cpi-blue) 5%, var(--cpi-paper)); }
.cpi-patent-meta dt { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in oklab, var(--cpi-ink) 56%, transparent); }
.cpi-patent-meta dd { margin: 4px 0 0; font-size: 17px; font-weight: 600; }
.cpi-patent-meta a { color: var(--cpi-blue-ink); text-decoration: none; }
.cpi-patent-meta a:hover { text-decoration: underline; }
.cpi-patent-figure { margin: 28px 0; background: #fff; border: 1px solid color-mix(in oklab, var(--cpi-ink) 14%, transparent); padding: 18px; }
.cpi-patent-figure img { display: block; max-width: 100%; max-height: 560px; height: auto; margin: 0 auto; }
.cpi-patent-abstract h2, .cpi-patent-recs h2 { font-size: 26px; font-weight: 500; margin: 34px 0 14px; }
.cpi-patent-recs { margin-top: 50px; padding-top: 10px; border-top: 1px solid color-mix(in oklab, var(--cpi-ink) 14%, transparent); }
.cpi-patent-recs[hidden] { display: none; }
.cpi-rec-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cpi-patent .cpi-button-lime { margin-top: 34px; }
@media (max-width: 1100px) { .cpi-patent-grid, .cpi-rec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .cpi-showcase { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 600px) { .cpi-patent-grid, .cpi-rec-grid { grid-template-columns: 1fr; } }

/* Navigation: keep links on one line, and use the menu button below 1040px (the nav has more links now) */
.cpi-nav > a, .cpi-dd-btn { white-space: nowrap; }
@media (max-width: 1040px) {
  .cpi-menu-button { display: inline-flex; }
  .cpi-nav { display: none; position: absolute; top: 84px; left: 0; right: 0; padding: 18px 28px; background: var(--cpi-paper); box-shadow: 0 12px 20px color-mix(in oklab, var(--cpi-ink) 10%, transparent); z-index: 20; }
  .cpi-nav.is-open { display: flex; align-items: stretch; flex-direction: column; gap: 0; }
  .cpi-nav > a:not(.cpi-nav-cta) { padding: 13px 4px; font-size: 13px; border-bottom: 1px solid color-mix(in oklab, var(--cpi-ink) 13%, transparent); }
  .cpi-nav > a.cpi-nav-cta { margin-top: 13px; justify-content: center; }
  .cpi-dd-menu { position: static; display: grid; box-shadow: none; border: 0; padding: 0 0 6px 10px; min-width: 0; }
  .cpi-dd { border-bottom: 1px solid color-mix(in oklab, var(--cpi-ink) 13%, transparent); }
  .cpi-dd-btn { padding: 13px 4px; font-size: 13px; width: 100%; justify-content: space-between; }
  .cpi-dd-btn svg { display: none; }
}
@media (max-width: 680px) { .cpi-nav { top: 72px; padding: 18px; } }

/* ===== Patent page: layout after the Metayage showcase (centred, wide) ===== */
.cpi-patent { width: min(100% - 48px, 1240px); padding: 56px 0 90px; text-align: center; }
.cpi-patent-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 auto; max-width: 1040px; padding: 38px 30px; background: var(--cpi-paper); border-radius: 14px; box-shadow: 0 18px 60px rgb(0 0 0 / .09); border: 0; }
.cpi-patent-meta > div { display: grid; gap: 14px; }
.cpi-patent-meta dt { font-size: 20px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--cpi-ink); }
.cpi-patent-meta dd { margin: 0; font-size: 20px; font-weight: 600; }
.cpi-patent-meta a { color: var(--cpi-blue); text-decoration: none; }
.cpi-patent-meta dd:not(:has(a)) { color: var(--cpi-blue); }
.cpi-patent-domain { margin: 56px 0 18px; font-size: clamp(26px, 3vw, 38px); color: var(--cpi-blue); font-weight: 400; }
.cpi-patent h1 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.25; font-weight: 700; margin: 0 auto 48px; max-width: 1100px; }
.cpi-patent-figure { margin: 0 auto 56px; background: transparent; border: 0; padding: 0; max-width: 900px; }
.cpi-patent-figure img { display: block; max-width: 100%; max-height: none; height: auto; margin: 0 auto; }
.cpi-patent-abstract { text-align: left; max-width: 1240px; margin: 0 auto; }
.cpi-patent-abstract .cpi-prose { max-width: none; font-size: 17px; line-height: 1.9; }
.cpi-patent-abstract .cpi-prose p { margin-bottom: 22px; }
.cpi-patent-recs { margin-top: 90px; padding-top: 0; border-top: 0; }
.cpi-patent-recs h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 400; color: var(--cpi-blue); margin: 0 0 44px; }
.cpi-rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; align-items: stretch; }
.cpi-rcard { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 34px 38px 38px; background: color-mix(in oklab, var(--cpi-ink) 3%, var(--cpi-paper)); border: 1px solid var(--cpi-blue); border-radius: 4px; box-shadow: 0 10px 28px rgb(20 129 196 / .14); text-align: center; transition: transform .25s ease, box-shadow .3s ease; }
.cpi-rcard:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgb(20 129 196 / .22); }
.cpi-rcard-domain { margin: 0; font-size: 19px; display: inline-flex; align-items: center; gap: 10px; color: var(--cpi-ink); }
.cpi-rcard-domain::before { content: ""; width: 22px; height: 18px; background: var(--cpi-green); -webkit-mask: linear-gradient(#000 0 0) 0 6px / 22px 12px no-repeat, linear-gradient(#000 0 0) 7px 0 / 8px 6px no-repeat; mask: linear-gradient(#000 0 0) 0 6px / 22px 12px no-repeat, linear-gradient(#000 0 0) 7px 0 / 8px 6px no-repeat; border-radius: 3px; }
.cpi-rcard h3 { font-size: 21px; line-height: 1.35; font-weight: 400; margin: 0; flex: 1; }
.cpi-rcard-country { margin: 0; display: inline-flex; align-items: center; gap: 10px; }
.cpi-globe { width: 20px; height: 20px; background: var(--cpi-ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' d='M12 3a9 9 0 1 0 0 18a9 9 0 0 0 0-18zM3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' d='M12 3a9 9 0 1 0 0 18a9 9 0 0 0 0-18zM3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18'/%3E%3C/svg%3E") center / contain no-repeat; }
.cpi-rcard-country b { padding: 4px 12px; border-radius: 6px; background: var(--cpi-gold); color: #212529; font-size: 14px; }
.cpi-rcard-btn { align-self: stretch; padding: 14px 18px; border: 1px solid var(--cpi-blue); border-radius: 4px; color: var(--cpi-blue); text-decoration: none; font-size: 17px; transition: background .2s ease, color .2s ease; }
.cpi-rcard-btn:hover { background: var(--cpi-blue); color: #fff; }
.cpi-patent-note { margin-top: 56px; }
.cpi-patent-cta { margin-top: 12px; }
@media (max-width: 900px) { .cpi-patent-meta { grid-template-columns: 1fr; } .cpi-rec-grid { grid-template-columns: 1fr; } .cpi-patent-abstract .cpi-prose { font-size: 16px; } }

/* Terms & Privacy (one page) */
.cpi-legal-toc { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 8px; }
.cpi-legal-toc a { padding: 8px 16px; border: 1px solid color-mix(in oklab, var(--cpi-blue) 45%, transparent); border-radius: 999px; font-size: 13px; text-decoration: none; color: var(--cpi-blue-ink); }
.cpi-legal-toc a:hover { background: color-mix(in oklab, var(--cpi-blue) 12%, transparent); }
.cpi-legal section { scroll-margin-top: 100px; margin-top: 44px; }
.cpi-legal section > h2 { font-size: 30px; margin: 0 0 6px; padding-bottom: 12px; border-bottom: 2px solid var(--cpi-blue); }
.cpi-legal h3 { font-size: 18px; margin: 28px 0 8px; }

/* ===== Patent figures: one small strip that scrolls sideways (the page itself does not) ===== */
.cpi-figwrap { position: relative; width: fit-content; max-width: 100%; margin: 0 auto 52px; }
.cpi-figstrip { display: flex; gap: 18px; width: fit-content; max-width: 100%; margin: 0 auto 52px; padding: 4px 4px 16px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--cpi-blue) color-mix(in oklab, var(--cpi-ink) 10%, transparent); text-align: center; overscroll-behavior-x: contain; }
.cpi-figwrap .cpi-figstrip { margin: 0; }
.cpi-figstrip:focus-visible { outline: 2px solid var(--cpi-blue); outline-offset: 4px; }
.cpi-figstrip::-webkit-scrollbar { height: 10px; }
.cpi-figstrip::-webkit-scrollbar-track { background: color-mix(in oklab, var(--cpi-ink) 8%, transparent); border-radius: 6px; }
.cpi-figstrip::-webkit-scrollbar-thumb { background: var(--cpi-blue); border-radius: 6px; }
.cpi-fig { flex: 0 0 auto; margin: 0; scroll-snap-align: center; }
.cpi-fig-open { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.cpi-fig img { display: block; height: 280px; width: auto; max-width: min(560px, 82vw); object-fit: contain; background: #fff; border: 1px solid color-mix(in oklab, var(--cpi-ink) 16%, transparent); padding: 8px; }
.cpi-fig figcaption { margin-top: 8px; font-size: 12px; letter-spacing: .04em; color: color-mix(in oklab, var(--cpi-ink) 58%, transparent); }
.cpi-fig-nav { position: absolute; top: 118px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--cpi-ink) 20%, transparent); background: var(--cpi-paper); color: var(--cpi-ink); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgb(0 0 0 / .18); z-index: 2; display: none; }
.cpi-fig-nav.prev { left: -14px; }
.cpi-fig-nav.next { right: -14px; }
.cpi-figwrap.is-overflowing .cpi-fig-nav { display: block; }
.cpi-fig-nav:hover { background: var(--cpi-blue); color: #fff; }
.cpi-fig-nav[disabled] { opacity: .35; cursor: default; }
.cpi-lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.cpi-lightbox::backdrop { background: rgb(8 12 20 / .85); }
.cpi-lightbox-body { position: relative; display: grid; justify-items: center; gap: 12px; }
.cpi-lightbox img { display: block; max-width: 92vw; max-height: 82vh; object-fit: contain; background: #fff; padding: 12px; }
.cpi-lightbox-cap { color: #fff; font-size: 13px; }
.cpi-lightbox-btn { position: absolute; top: 8px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .92); color: #212529; font-size: 22px; cursor: pointer; }
.cpi-lightbox-btn.close { right: 8px; }
.cpi-lightbox-btn.prev { top: 45%; left: 8px; }
.cpi-lightbox-btn.next { top: 45%; right: 8px; }
.cpi-lightbox-btn[disabled] { opacity: .35; cursor: default; }
@media (max-width: 680px) { .cpi-fig img { height: 220px; } .cpi-fig-nav { top: 90px; } .cpi-fig-nav.prev { left: -6px; } .cpi-fig-nav.next { right: -6px; } }

/* Patent ID link */
.cpi-id-link { color: var(--cpi-blue); text-decoration: none; border-bottom: 1px dashed color-mix(in oklab, var(--cpi-blue) 60%, transparent); }
.cpi-id-link:hover { border-bottom-style: solid; }
.cpi-patent-meta dd small { display: block; margin-top: 6px; font-size: 12px; font-weight: 400; color: color-mix(in oklab, var(--cpi-ink) 56%, transparent); }

.cpi-patent-meta > div { align-content: start; }

/* Per-domain icons for patent cards (grid and Recommended Patents) */
:root { --dom-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 8h18v12H3zM9 8V5h6v3M3 13h18'/%3E%3C/svg%3E"); }
.dom-ai { --dom-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M7 7h10v10H7zM10 3v4M14 3v4M10 17v4M14 17v4M3 10h4M3 14h4M17 10h4M17 14h4'/%3E%3C/svg%3E"); }
.dom-telecom { --dom-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 12v9M8 21h8M12 10a2 2 0 1 0 0 .01M7.8 7.8a5.9 5.9 0 0 0 0 8.4M16.2 7.8a5.9 5.9 0 0 1 0 8.4M4.9 4.9a10 10 0 0 0 0 14.2M19.1 4.9a10 10 0 0 1 0 14.2'/%3E%3C/svg%3E"); }
.dom-ev { --dom-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E"); }
.dom-health { --dom-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM12 8v8M8 12h8'/%3E%3C/svg%3E"); }
.dom-crypto { --dom-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 11h12v10H6zM8 11V7a4 4 0 0 1 8 0v4M12 15v2'/%3E%3C/svg%3E"); }
.dom-xr { --dom-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 2l9 5v10l-9 5-9-5V7zM12 12l9-5M12 12v10M12 12 3 7'/%3E%3C/svg%3E"); }
.dom-chain { --dom-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 4h7v7H3zM14 13h7v7h-7zM10 8h4a3 3 0 0 1 3 3v2M14 16h-4a3 3 0 0 1-3-3v-2'/%3E%3C/svg%3E"); }
.dom-factory { --dom-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zM12 2v3M12 19v3M2 12h3M19 12h3M5 5l2 2M17 17l2 2M19 5l-2 2M7 17l-2 2'/%3E%3C/svg%3E"); }
.dom-bi { --dom-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 20V10M10 20V4M16 20v-7M22 20H2'/%3E%3C/svg%3E"); }
.dom-network { --dom-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 3a2 2 0 1 0 0 .01M5 19a2 2 0 1 0 0 .01M19 19a2 2 0 1 0 0 .01M12 5v6M12 11l-6 6M12 11l6 6'/%3E%3C/svg%3E"); }
.dom-food { --dom-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 8h12v6a6 6 0 0 1-12 0zM17 9h2a2 2 0 0 1 0 5h-2M8 3v2M12 3v2M3 21h16'/%3E%3C/svg%3E"); }
.dom-aero { --dom-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 14l9-3V4a1 1 0 0 1 2 0v7l9 3v2l-9-1-1 5 3 1v1l-4-1-4 1v-1l3-1-1-5-9 1z'/%3E%3C/svg%3E"); }
.dom-bio { --dom-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M9 3h6M10 3v6L4 19a2 2 0 0 0 2 3h12a2 2 0 0 0 2-3l-6-10V3M7 15h10'/%3E%3C/svg%3E"); }
.dom-polymer { --dom-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 2l8 5v10l-8 5-8-5V7zM12 7l4 2.5v5L12 17l-4-2.5v-5z'/%3E%3C/svg%3E"); }
.cpi-pcard-domain::before, .cpi-rcard-domain::before { width: 20px; height: 20px; border-radius: 0; -webkit-mask: var(--dom-icon) center / contain no-repeat; mask: var(--dom-icon) center / contain no-repeat; }
.cpi-pcard-domain::before { background: var(--cpi-blue); }
.cpi-rcard-domain::before { background: var(--cpi-green); width: 24px; height: 24px; }

/* Indian Patent Office link for IN numbers */
.cpi-id-office { display: grid; justify-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed color-mix(in oklab, var(--cpi-ink) 18%, transparent); }
.cpi-office-link { font-size: 14px; font-weight: 600; color: var(--cpi-blue); text-decoration: none; }
.cpi-office-link:hover { text-decoration: underline; }
.cpi-copy-id { padding: 6px 14px; border: 1px solid var(--cpi-blue); border-radius: 999px; background: transparent; color: var(--cpi-blue); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .2s ease, color .2s ease; }
.cpi-copy-id:hover { background: var(--cpi-blue); color: #fff; }
.cpi-copy-id[disabled] { opacity: .7; cursor: default; }
.cpi-id-office small { max-width: 280px; line-height: 1.5; }

/* Home hero: the process scene sits above the shade so every step stays bright */
.cpi-hero > canvas.cpi-3d { z-index: 0; }
.cpi-hero-content { z-index: 1; }
@media (max-width: 900px) {
  .cpi-hero, .cpi-hero-content { min-height: 1000px; }
  .cpi-hero-note { display: none; }
}
