/* PIVOT 03: the homepage uses Civic's palette, type, shell and controls. */
.jp-home { background:linear-gradient(180deg,var(--surface-canvas),var(--surface-page) 48rem); }
.jp-home .jp-hero { gap:1.75rem; padding-block:1.25rem 3rem; align-items:center; }
.jp-hero-photo { margin:0; min-width:0; overflow:hidden; border-radius:var(--radius-card); aspect-ratio:16/10; }
.jp-hero-photo img { display:block; width:100%; height:100%; object-fit:cover; object-position:42% 50%; }
.jp-home .jp-thesis { margin:0; font-size:clamp(2.05rem,1.45rem + 2.35vw,3.55rem); line-height:1.08; font-weight:550; letter-spacing:-.05em; text-wrap:pretty; }
.jp-home .jp-hero-copy > * + * { margin-top:1.25rem; }
.jp-home .jp-hero-copy .jp-eyebrow { margin:0 0 1rem; }
.jp-home .jp-positioning { font-size:1.0625rem; line-height:1.6; max-width:47ch; }
.jp-home .jp-hero .wp-block-buttons { margin-top:1.5rem; }
.jp-home .jp-section { padding-block:2.5rem; }
.jp-home-section-heading { margin:0 0 1.5rem; }
.jp-home-section-heading .jp-eyebrow { margin:0 0 .5rem; font-size:.75rem; }
.jp-home-section-heading h2 { margin:0; font-size:var(--text-h2); line-height:1.1; letter-spacing:-.04em; font-weight:550; }
.jp-expertise-grid { display:grid; gap:1rem; }
.jp-expertise-field { --field-accent:var(--expertise-cx-accent); position:relative; display:grid; grid-template-columns:3.5rem minmax(0,1fr); gap:1rem; align-content:start; min-width:0; padding:1.5rem; border:1px solid var(--border-subtle); border-top:.5rem solid var(--field-accent); border-radius:var(--radius-card); background:var(--surface-glass-fallback); background:color-mix(in srgb,var(--field-accent) 13%,var(--expertise-surface)); color:var(--expertise-text); }
.jp-expertise-field--ai-enablement { --field-accent:var(--expertise-ai-enablement-accent); }
.jp-expertise-field--service-cocreation { --field-accent:var(--expertise-service-cocreation-accent); }
.jp-expertise-field--crm-value { --field-accent:var(--expertise-crm-value-accent); }
.jp-field-number { display:grid; place-items:center; width:3.5rem; height:3.5rem; border-radius:var(--radius-control); background:var(--field-accent); font:400 2rem/1 var(--font-system); color:var(--color-text-inverse); }
.jp-expertise-field h3 { margin:0; align-self:center; font-size:clamp(1.375rem,1.1rem + .75vw,1.75rem); font-weight:600; letter-spacing:-.035em; line-height:1.15; }
.jp-expertise-field p { grid-column:1 / -1; margin:0; font-size:1rem; line-height:1.6; max-width:55ch; }
.jp-expertise-field > .jp-compatibility-anchor { position:absolute; top:0; left:0; }
.jp-compatibility-anchor { display:block; height:0; pointer-events:none; }
.jp-insights-layout,.jp-insights-aside { display:grid; gap:1.5rem; }
.jp-own-articles { min-width:0; }
.jp-own-articles > h3 { margin:0 0 1.25rem; font-size:1.125rem; font-weight:600; }
.jp-home-articles { display:grid; gap:1.5rem; }
.jp-home-article { min-width:0; }
.jp-home-article-media { display:block; overflow:hidden; border-radius:var(--radius-small); aspect-ratio:3/2; background:var(--surface-evidence); }
.jp-home-article-media img { width:100%; height:100%; display:block; object-fit:cover; }
.jp-home-article-copy .jp-meta { margin:.75rem 0 .375rem; font-size:.8125rem; }
.jp-home-article h4 { margin:0; font-size:1.1875rem; line-height:1.3; letter-spacing:-.025em; font-weight:600; }
.jp-home-article h4 a { display:inline-block; min-height:var(--target-size); color:var(--color-text-primary); text-decoration:none; }
.jp-home-article h4 a:hover { color:var(--color-action-primary); text-decoration:underline; }
.jp-home-text-link { display:inline-flex; align-items:center; gap:.5rem; min-height:var(--target-size); font-weight:500; font-size:.9375rem; line-height:1.4; }
.jp-own-articles > .jp-home-text-link { margin-top:1rem; }
.jp-external-perspective { padding:1.5rem; border-radius:var(--radius-card); background:var(--color-cobalt-blue); color:var(--color-text-inverse); --focus-ring:3px solid var(--color-white); }
.jp-external-perspective h3,.jp-literature-copy h3 { margin:0; font-size:1.375rem; line-height:1.2; font-weight:550; letter-spacing:-.03em; }
.jp-external-perspective p,.jp-literature-copy p { margin:.75rem 0; font-size:.9375rem; line-height:1.55; }
.jp-external-perspective a { color:var(--color-text-inverse); }
.jp-literature-perspective { overflow:hidden; border-radius:var(--radius-card); background:var(--surface-canvas); }
.jp-literature-media { display:block; height:10rem; }
.jp-literature-media img { display:block; height:100%; width:100%; object-fit:cover; object-position:50% 43%; }
.jp-literature-copy { padding:1.25rem 1.5rem; }
.jp-literature-copy h3 a { display:inline-block; min-height:var(--target-size); color:var(--color-text-primary); }
.jp-literature-copy p { margin-bottom:0; }
.jp-home .jp-jan { position:relative; color:var(--color-human); }
.jp-jan > .jp-compatibility-anchor { position:absolute; top:2.5rem; }
.jp-short-vita > p { margin:0 0 1rem; max-width:60ch; font-size:1.0625rem; line-height:1.65; }
.jp-home .jp-contact { margin-block:0 2rem; padding:1.75rem; border:0; border-radius:var(--radius-card); background:var(--color-human); color:var(--color-text-inverse); --focus-ring:3px solid var(--color-white); }
.jp-contact .jp-eyebrow,.jp-contact a { color:var(--color-text-inverse); }
.jp-contact-copy > p { margin:0 0 .75rem; max-width:52ch; }
.jp-contact-copy .jp-contact-cta { margin-top:.75rem; }
.jp-contact-profiles { display:flex; flex-wrap:wrap; gap:1.5rem; }
.jp-contact-profiles a { display:inline-flex; align-items:center; gap:.5rem; min-height:var(--target-size); font-size:.9375rem; }
@media(max-width:47.999rem) {
 .jp-home-article:not(:first-child) { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.6fr); gap:1rem; align-items:start; padding-top:1.5rem; border-top:var(--border-default); }
 .jp-home-article:not(:first-child) .jp-home-article-media { aspect-ratio:1; }
 .jp-home-article:not(:first-child) .jp-meta { margin-top:0; }
 .jp-home-article:not(:first-child) h4 { font-size:1.0625rem; }
}
@media(min-width:48rem) {
 .jp-home .jp-hero { padding-block:2rem 3rem; }
 .jp-hero-photo { aspect-ratio:2/1; }
 .jp-home .jp-hero-copy { max-width:52rem; }
 .jp-home .jp-positioning { max-width:58ch; }
 .jp-home .jp-section { padding-block:3rem; }
 .jp-expertise-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.25rem; }
 .jp-expertise-field { padding:1.75rem; }
 .jp-home-articles { grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.25rem; }
 .jp-insights-aside { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .jp-home .jp-jan,.jp-home .jp-contact { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); gap:2rem; }
 .jp-jan .jp-home-section-heading,.jp-contact .jp-home-section-heading { margin:0; }
 .jp-home .jp-contact { padding:2rem; margin-bottom:3rem; }
}
@media(min-width:64rem) {
 .jp-home .jp-hero { grid-template-columns:minmax(0,1fr) minmax(0,1.12fr); gap:clamp(2rem,4vw,4rem); padding-block:2.5rem 3.5rem; }
 .jp-hero-photo { grid-column:2; grid-row:1; aspect-ratio:1.08; }
 .jp-home .jp-hero-copy { grid-column:1; grid-row:1; }
 .jp-home .jp-section { padding-block:3.5rem; }
 .jp-expertise-field { padding:2rem; }
 .jp-insights-layout { grid-template-columns:minmax(0,1.9fr) minmax(0,1fr); gap:2rem; }
 .jp-insights-aside { grid-template-columns:minmax(0,1fr); gap:1.25rem; }
 .jp-home-article-media { aspect-ratio:4/3; }
 .jp-literature-media { height:9rem; }
 .jp-jan > .jp-compatibility-anchor { top:3.5rem; }
 .jp-home .jp-contact { padding:2.5rem; margin-bottom:3rem; }
}
@media(min-width:64rem) and (max-width:79.999rem) {
 .jp-insights-layout { grid-template-columns:minmax(0,1fr); }
 .jp-insights-aside { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(forced-colors:active) {
 .jp-expertise-field,.jp-external-perspective,.jp-literature-perspective,.jp-home .jp-contact { background:Canvas; color:CanvasText; border:1px solid CanvasText; }
 .jp-home .jp-contact a,.jp-contact .jp-eyebrow,.jp-external-perspective a,.jp-literature-copy h3 a,.jp-home-article h4 a { color:LinkText; }
}

/* Homepage consent access stays in document flow after the existing footer.
   Provider classes still own visibility, labels, state and click handling. */
body.home.wp-theme-jp-platform-theme #cmplz-manage-consent {
 display:flex; justify-content:center; padding-inline:var(--gutter); background:var(--surface-footer);
}
body.home.wp-theme-jp-platform-theme #cmplz-manage-consent .cmplz-manage-consent {
 position:static; inset:auto!important; transform:none; animation:none; width:auto; min-width:0; max-width:100%; height:auto; min-height:var(--target-size);
 margin:.5rem 0 1.5rem; padding:.625rem 1rem; border:1px solid var(--border-footer-control); border-radius:var(--radius-pill);
 background:var(--surface-footer-control); color:var(--color-footer-link); box-shadow:none; font:400 var(--text-micro)/1.4 var(--font-main);
}
body.home.wp-theme-jp-platform-theme #cmplz-manage-consent .cmplz-manage-consent:hover { background:var(--surface-footer-control-hover); color:var(--color-footer-link-hover); }
body.home.wp-theme-jp-platform-theme #cmplz-manage-consent .cmplz-manage-consent:focus-visible { outline:3px solid var(--color-footer-focus); outline-offset:var(--focus-offset); }
@media(forced-colors:active) {
 .jp-field-number { background:Canvas; color:CanvasText; border:2px solid CanvasText; }
 body.home.wp-theme-jp-platform-theme #cmplz-manage-consent { background:Canvas; }
 body.home.wp-theme-jp-platform-theme #cmplz-manage-consent .cmplz-manage-consent { background:ButtonFace; color:ButtonText; border-color:ButtonText; }
}

/* PIVOT 07: three real articles plus an explicit archive destination; ready for four. */
.jp-home-archive-access{display:flex;flex-direction:column;justify-content:center;min-width:0;border:1px solid var(--border-subtle);border-radius:var(--radius-card);padding:clamp(1.25rem,3vw,2rem);background:var(--surface-canvas)}
.jp-home-archive-access .jp-eyebrow{font-size:.75rem;margin:0 0 .75rem}
.jp-home-archive-access h4{margin:0;font-size:clamp(1.4rem,2vw,2rem);line-height:1.15;letter-spacing:-.035em}
.jp-home-archive-access h4 a{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:var(--target-size);text-decoration:none}
.jp-home-archive-access>p:last-child{max-width:28ch;font-size:.9375rem;line-height:1.6;margin:1rem 0 0}
.jp-external-perspective--photo:has(.jp-external-photo){display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;padding:1.25rem;align-content:start}
.jp-external-copy{display:contents}
.jp-external-photo{margin:0;min-width:0;grid-column:1;grid-row:auto}
.jp-external-photo img{display:block;width:100%;height:auto;object-fit:contain;border-radius:var(--radius-small);filter:none}
.jp-external-photo figcaption{font-size:.75rem;line-height:1.5;margin-top:.5rem;color:var(--color-white)}
.jp-external-perspective--photo:has(.jp-external-photo) h3{grid-column:1;grid-row:auto;align-self:start;font-size:clamp(1.25rem,2vw,1.625rem);line-height:1.15;overflow-wrap:normal}
.jp-external-perspective--photo:has(.jp-external-photo) p{grid-column:1/-1;margin:0}
.jp-external-perspective--photo:has(.jp-external-photo) a.jp-home-text-link{grid-column:1/-1;margin:0;align-self:end}
.jp-home :is(.jp-home-article-media,.jp-item-media).jp-editorial-image-fallback{box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;align-items:start;gap:.75rem;padding:1.5rem;background:var(--surface-tint);color:var(--color-action-primary);border:1px solid var(--border-subtle)}
.jp-editorial-image-fallback span{font-size:.75rem;line-height:1.4}
.jp-editorial-image-fallback strong{font:400 clamp(1.75rem,3vw,3rem)/1 var(--font-system);letter-spacing:-.035em}
@media(max-width:47.999rem){.jp-home-archive-access{padding:1rem 1.25rem}.jp-home-archive-access>p:last-child{max-width:40ch;margin-top:.5rem}.jp-home .jp-home-article-media.jp-editorial-image-fallback{padding:1rem}.jp-home-article:not(:first-child) .jp-editorial-image-fallback strong{font-size:1.5rem}}
@media(min-width:48rem){.jp-home-articles{grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem 1.5rem}.jp-home-article-media{aspect-ratio:16/10}.jp-home-archive-access{min-height:15rem}.jp-insights-aside{align-items:start}.jp-external-perspective--photo:has(.jp-external-photo){padding:1.5rem}}
@media(min-width:64rem){.jp-insights-layout{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:2.5rem}.jp-insights-aside{grid-template-columns:1fr;gap:1.5rem}.jp-home-article-media{aspect-ratio:16/10}.jp-literature-media{height:9rem}}

@media(forced-colors:active){.jp-home-archive-access,.jp-home .jp-editorial-image-fallback{background:Canvas;color:CanvasText;border-color:CanvasText}.jp-external-photo figcaption{color:CanvasText}}

@media(max-width:47.999rem){.jp-home-archive-access{padding:.75rem 1rem}.jp-home-archive-access>p{display:none}.jp-home-archive-access h4{font-size:1.1875rem;line-height:1.3}}
