/*
 * Public website style contract. This hand-authored file is authoritative for
 * shared roles and loads AFTER legacy bundles and page CSS. No minification
 * step is needed. Page modules retain compositions, dark surfaces and imagery.
 * Use ephp-* roles in new templates; aliases keep existing modules compatible.
 */
:root {
    --brand-primary: #2563eb;
    --brand-primary-hover: #1d4ed8;
    --color-heading: #111827;
    --color-body: #4a4f54;
    --color-muted: #64748b;
    --color-surface: #fff;
    --color-surface-soft: #f8fafc;
    --color-border: #e8ebf0;
    --font-heading: "Poppins", sans-serif;
    --font-body: "Inter", sans-serif;
    --type-display: 2.625rem;
    --line-display: 3.4375rem;
    --type-section: 2rem;
    --line-section: 2.75rem;
    --type-card: 1.25rem;
    --line-card: 1.875rem;
    --type-lead: 1.125rem;
    --line-lead: 1.75rem;
    --type-body: 1rem;
    --line-body: 1.625rem;
    --type-label: .875rem;
    --line-label: 1.25rem;
    --space-1: .5rem;
    --space-2: .75rem;
    --space-3: 1rem;
    --space-4: 1.25rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 2.5rem;
    --space-8: 3.5rem;
    --space-9: 5rem;
    --space-10: 6.25rem;
    --action-padding-inline: var(--space-5);
    --radius-control: .5rem;
    --radius-card: .75rem;
    --radius-media: 1rem;
    --radius-feature: 1.25rem;
    --section-space: var(--space-9);
    --section-space-spacious: var(--space-10);
    --site-content-max: 87.5rem;
    --site-gutter-x: 7.5rem;
    /* Compatibility names: modules use these until their next scoped cleanup. */
    --ui-purple: var(--brand-primary);
    --ui-purple-soft: var(--brand-primary-hover);
    --ui-accent: var(--brand-primary-hover);
    --ui-blue: var(--brand-primary);
    --ui-text: var(--color-heading);
    --ui-text-alt: var(--color-heading);
    --ui-body: var(--color-body);
    --ui-muted: var(--color-muted);
    --ui-border: var(--color-border);
    --ui-bg-soft: var(--color-surface-soft);
    --ui-white: var(--color-surface);
    --ui-radius: var(--radius-card);
    --ui-radius-lg: var(--radius-feature);
    --career-purple: var(--brand-primary);
    --blog-purple: var(--brand-primary);
}
body.ephp-site {
    font-family: var(--font-body);
    color: var(--color-body);
}
.ephp-site main h1,
.ephp-site .ephp-display {
    font-family: var(--font-heading);
    font-size: var(--type-display);
    line-height: var(--line-display);
    font-weight: 600;
    letter-spacing: normal;
    overflow-wrap: anywhere;
}
.ephp-site :is(.ephp-section-title, .legal-content h2, .privacy-content h2) {
    font-family: var(--font-heading);
    font-size: var(--type-section);
    line-height: var(--line-section);
    font-weight: 600;
    letter-spacing: normal;
}
.ephp-site :is(.ephp-card-title, .ui-card-title, .core-service-title,
    .blog-card-title, .career-job-title, .cs-card h3) {
    font-family: var(--font-heading);
    font-size: var(--type-card);
    line-height: var(--line-card);
    font-weight: 600;
}
.ephp-site :is(.ephp-lead, .ui-subtitle) {
    font-family: var(--font-body);
    font-size: var(--type-lead);
    line-height: var(--line-lead);
}
.ephp-site :is(.ephp-body, .ui-body, .ui-card-text) {
    font-family: var(--font-body);
    font-size: var(--type-body);
    line-height: var(--line-body);
}
/* A legacy service title helper declares a tight important line-height. */
.ephp-site main h1.font-mobile-title { line-height: var(--line-display) !important; }
.ephp-site .ui-label {
    font-size: var(--type-label);
    line-height: var(--line-label);
    color: var(--brand-primary);
}
/* Standard page hero: About-style surface, shared gutters, left-aligned
   content, wrapping actions and uncropped artwork. Page bodies can differ. */
.ephp-site .ephp-page-hero {
    background: linear-gradient(145deg, #eef4ff, var(--color-surface) 75%);
    padding: clamp(2.25rem, 5vw, 4rem) var(--site-gutter-x);
    text-align: start;
}
.ephp-page-hero-inner {
    width: 100%;
    max-width: var(--site-content-max);
    margin-inline: auto;
}
.ephp-site .ephp-page-hero :is(.ephp-display, .ephp-page-hero-lead) {
    text-align: start;
    color: var(--color-heading);
    margin: 0;
}
.ephp-site .ephp-page-hero .ephp-page-hero-lead {
    margin-block-start: var(--space-3);
    max-inline-size: 68ch;
    color: var(--color-body);
}
.ephp-page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-block-start: var(--space-5);
}
.ephp-page-hero-actions .btn { width: fit-content; justify-content: center; }
.ephp-site .ephp-page-hero-actions .btn-secondary {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}
.ephp-site .ephp-page-hero-actions .btn-secondary:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}
.ephp-page-hero-back {
    display: inline-block;
    margin-block-end: var(--space-3);
    color: var(--brand-primary);
}
.ephp-page-hero-image {
    display: block;
    width: 100%;
    height: auto;
    margin-block-start: var(--space-6);
    border-radius: var(--radius-media);
}
.ephp-site .ephp-hero-copy { text-align: start; }
.ephp-site .ephp-hero-copy :is(h1, .ephp-lead) { text-align: start; }

/* Horizontal gutters remain owned by existing family shells: no nested padding. */
.ephp-site .ephp-section {
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);
}
.ephp-site .ephp-section-spacious {
    padding-top: var(--section-space-spacious);
    padding-bottom: var(--section-space-spacious);
}
/* Action buttons keep a 48px minimum height and may wrap long labels.
   Horizontal padding is 24px on desktop, 20px on tablets and 16px on phones.
   Tabs, dots, summaries and FAQ controls retain their own dimensions. */
.ephp-site :is(.ui-btn, .btn-primary, .btn-secondary, .btn-service, .btn-cta,
    .contact-btn, .cta-btn, .btn-submit, .cs-external, .careers-cta-btn, .career-apply-btn) {
    font-family: var(--font-body);
    font-size: var(--type-label);
    font-weight: 600;
    line-height: var(--line-label);
    border-radius: var(--radius-control);
    min-height: 3rem;
    height: auto;
    padding: .8125rem var(--action-padding-inline);
    white-space: normal;
    text-align: center;
    max-width: 100%;
}
.ephp-site :is(.ui-btn-purple, .btn-primary, .btn-service, .btn-submit, .cs-external) {
    background-color: var(--brand-primary);
    color: #fff;
}
/* Filled primary buttons use a single solid edge. Keep the border space
   transparent for consistent sizing and use the shared focus-visible outline
   for keyboard focus. */
.ephp-site .btn-primary {
    border-color: transparent;
}
.ephp-site :is(.ui-btn-purple, .btn-primary, .btn-service, .btn-submit, .cs-external):hover {
    background-color: var(--brand-primary-hover);
    color: #fff;
}
/* The navigation action has an existing narrow width. Let its short label
   size the button instead of wrapping after applying shared action padding. */
.ephp-site header .contact-btn {
    width: auto;
    min-width: 140px;
    flex-shrink: 0;
    white-space: nowrap;
    gap: var(--space-1);
}
/* Multi-action groups wrap before a button can be clipped by the hero. */
.ephp-site .hero-buttons {
    flex-wrap: wrap;
    min-width: 0;
}
/* Preserve each card's layout, intentional surface, and existing image crop. */
.ephp-site :is(.ui-card, .service-card, .industry-card, .testimonial-card,
    .blog-card, .career-job-card, .perk-card, .core-service-card,
    .va-offer-card, .cs-offer-card, .cs-platform-card, .ais-card, .ai-ds-card, .cs-card) {
    border-radius: var(--radius-card);
    border-color: var(--color-border);
}
.ephp-site :is(.mission-card, .vision-card, .ui-process-panel) {
    border-radius: var(--radius-feature);
}
.ephp-site main :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
    select, textarea) {
    font-family: var(--font-body);
    font-size: var(--type-body);
    border-radius: var(--radius-control);
}
.ephp-site :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid var(--brand-primary);
    outline-offset: 4px;
}
/* Fix content sizing rather than concealing overflow. This includes legacy URL
   sections and newly edited admin sections with very long words or links. */
.ephp-site .cs-page :is(.cs-split, .cs-solutions, .cs-gallery) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ephp-site .cs-page .cs-solutions-text { grid-template-columns: minmax(0, 1fr); }
.ephp-site .cs-page :is(.cs-split, .cs-solutions, .cs-gallery, .cs-hero-inner) > * {
    min-width: 0;
}
.ephp-site .cs-page :is(.cs-solution p, .cs-solution a, .cs-prose, .cs-gallery figcaption) {
    overflow-wrap: anywhere;
}
.ephp-site .cs-page .cs-hero-image { border-radius: var(--radius-media); }
@media (max-width: 991.98px) {
    :root {
        --site-gutter-x: 1.5rem;
        --action-padding-inline: var(--space-4);
        --section-space: var(--space-8);
        --section-space-spacious: var(--space-8);
    }
}
@media (max-width: 767.98px) {
    :root {
        --site-gutter-x: 1rem;
        --action-padding-inline: var(--space-3);
        --type-display: 2rem;
        --line-display: 2.625rem;
        --type-section: 1.75rem;
        --line-section: 2.375rem;
        --section-space: var(--space-7);
        --section-space-spacious: var(--space-7);
    }
    /* Legacy mobile helpers use !important; keep the role authoritative. */
    .ephp-site .ephp-section-title.font-mobile-title-2 {
        font-size: var(--type-section) !important;
        line-height: var(--line-section) !important;
    }
    .ephp-site .cs-page :is(.cs-split, .cs-solutions, .cs-gallery) {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (prefers-reduced-motion: reduce) {
    .ephp-site { scroll-behavior: auto; }
    .ephp-site .ui-btn:hover { transform: none; }
}

/* Home composition: approved copy and imagery, with a connected experience panel.
   Shared case cards use light surfaces, landscape media, and uncropped artwork. */
.ephp-site .home-hero .hero-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, .42fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
}
.ephp-site .home-hero .hero-content { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.ephp-site .home-hero .hero-content :is(.hero-title, .hero-copy, .hero-buttons) { margin-top: 0; margin-bottom: 0; }
.ephp-site .home-hero .hero-title { max-width: 24ch; }
.ephp-site .home-hero .hero-stats {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--brand-primary);
    border-radius: var(--radius-feature);
    background: rgba(255,255,255,.92);
    box-shadow: 0 12px 36px rgba(17,24,39,.04);
}
.ephp-site .home-hero .stats-title { font-size: 1.375rem; line-height: 1.4; margin-bottom: 1rem; }
.ephp-site .home-hero .stats-description { font-size: 1rem; line-height: 1.65; margin-bottom: 0; }
.ephp-site .home-hero .social-proof { margin-top: 1.5rem; }
.ephp-site .home-hero .btn-secondary {
    background: #fff;
    border: 1px solid #e8ebf0;
    color: var(--color-heading);
}
.ephp-site .home-hero .btn-secondary:hover { background: var(--color-surface-soft, #f8fafc); }
.ephp-site .home-why-intro {
    grid-template-columns: minmax(12rem, .45fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    padding: clamp(1.5rem, 3vw, 3rem);
    margin-bottom: 2rem;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-feature);
}
.ephp-site .home-why-intro .why-left { gap: 1.5rem; }
.ephp-site .home-why-intro .why-title { max-width: 27ch; margin-bottom: 1.25rem; }
.ephp-site .home-why-intro .why-description { max-width: 65ch; margin-bottom: 1.5rem; }
.ephp-site .home-why-intro .team-text { font-size: .9375rem; line-height: 1.5; }
.ephp-site .home-trust-strip {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}
.ephp-site .home-trust-strip > .stat-card {
    min-width: 0; min-height: 0; grid-column: auto;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    border-radius: var(--radius-media);
}
.ephp-site .home-trust-strip :is(.stat-text, .stat-text-white) {
    font-size: 1rem; line-height: 1.6; margin-bottom: 0;
}
.ephp-site .home-trust-strip .stat-year { margin-bottom: .75rem; }
.ephp-site .home-trust-strip > .stat-card-image { padding: 0; overflow: hidden; }
.ephp-site .home-trust-strip .stat-card-image img {
    display: block; width: 100%; height: auto; aspect-ratio: 3 / 2;
    object-fit: contain; align-self: center;
}
.ephp-site .ephp-case-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 1.5rem;
}
.ephp-site .ephp-case-media {
    display: block; width: 100%; height: auto; overflow: hidden;
    border-radius: var(--radius-media); background: #f3f4f6;
}
.ephp-site .ephp-case-media img {
    display: block; width: 100%; height: auto; aspect-ratio: 16 / 10;
    object-fit: contain; object-position: center; transform: none;
}
.ephp-site .case-study-item:hover .ephp-case-media img { transform: none; }
.ephp-site .cs-page .cs-card { background: #f8fafc; box-shadow: none; border: 0; overflow: visible; }
/* Keep case-study copy and actions comfortably inset from the soft card surface. */
.ephp-site .cs-page .cs-card-body { padding: var(--space-4); }
.ephp-site .cs-page .cs-card-body .cs-eyebrow {
    margin: 0 0 var(--space-1);
    font-size: var(--type-label);
    line-height: var(--line-label);
}
.ephp-site .cs-page .cs-card-body h3 { margin: 0 0 var(--space-2); }
.ephp-site .cs-page .cs-card-body > p:not(.cs-eyebrow) {
    margin: 0 0 var(--space-5);
    font-size: var(--type-body);
    line-height: var(--line-body);
}
.ephp-site .cs-page .cs-read {
    align-items: center;
    min-height: 3rem;
    gap: var(--space-3);
    padding-top: var(--space-3);
}
.ephp-site .cs-page .cs-read > [aria-hidden="true"] { flex-shrink: 0; }
@media (min-width: 640px) {
    .ephp-site .cs-page .cs-card-body { padding: var(--space-5); }
}
.ephp-site .cs-page .cs-card:hover { transform: none; box-shadow: none; }
@media (max-width: 991.98px) {
    .ephp-site .home-hero .hero-container { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .ephp-site .home-hero .hero-stats { width: auto; max-width: none; }
    .ephp-site .home-why-intro { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .ephp-site .home-why-intro .why-left { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
    .ephp-site .home-trust-strip { grid-template-columns: minmax(0, 1fr); }
    .ephp-site .home-trust-strip > .stat-card { grid-column: auto; min-height: 0; }
}
@media (max-width: 639.98px) {
    .ephp-site .ephp-case-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .ephp-site .home-hero .hero-buttons > a { width: 100%; text-align: center; justify-content: center; }
}

/* Closed mobile navigation is absent from focus and accessibility traversal,
   including before deferred JavaScript initializes its inert state. */
@media (max-width: 48rem) {
    .ephp-site .nav-container:not(.active) { visibility: hidden; }
    .ephp-site .nav-container.active { visibility: visible; }
}

/* Legacy mobile cards set a fixed height; allow this credited canvas to define
   the row's intrinsic height instead of overflowing a vertically centered box. */
.ephp-site .home-trust-strip > .stat-card-image {
    height: auto; min-height: 0; max-height: none; align-self: stretch;
}
.ephp-site .home-trust-strip > .stat-card-image img { flex: 0 0 auto; }

/* Picture wrappers must not introduce a new grid/flex box or alter intrinsic image sizing. */
.ephp-site .embedded-credit-picture { display: contents; }

/* Shared case cards: four across on large desktop, two tablet, one narrow.
   Only top media corners are rounded; the image meets its text area squarely. */
.ephp-site .ephp-case-media { border-radius: var(--radius-media) var(--radius-media) 0 0; }
.ephp-site .ephp-case-media img { border-radius: inherit; }
@media (min-width: 1280px) {
    .ephp-site .ephp-case-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.ephp-site .case-studies .case-study-title {
    display: block; white-space: normal; overflow: visible;
    text-overflow: clip; overflow-wrap: anywhere; -webkit-line-clamp: unset;
}
.ephp-site .ephp-case-grid :is(.case-study-info, .cs-card-body) { min-width: 0; overflow-wrap: anywhere; }

/* Keep accessible labels hidden even if a third-party utility sheet is unavailable. */
.ephp-site .visually-hidden:not(:focus):not(:active) { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }


/* Preserve the requested inset on the established Home card variant too. */
.ephp-site .case-study-item .case-study-info { padding: 1.25rem; min-width: 0; }
.ephp-site .case-study-item .case-study-title { overflow-wrap: anywhere; }
@media (min-width: 640px) { .ephp-site .case-study-item .case-study-info { padding: 1.5rem; } }

.ephp-site .case-study-item .case-study-summary { margin: .75rem 0; font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; }

/* Reviewed professional replacements retain their full natural canvas. */
.ephp-site .service-detail-image img[src*="/professional/"],
.ephp-site .careers-hero-image[src*="/professional/"] { width: 100%; height: auto; object-fit: contain; }

/* Keep industry capability text separate from the new full photographic canvas and credit. */
.ephp-site .professional-industry-visual { height: auto; min-height: 0; aspect-ratio: auto; }
.ephp-site .professional-industry-visual > img { width: 100%; height: auto; object-fit: contain; position: static; }
.ephp-site .professional-industry-visual .ai-ds-industry-overlay { position: static; inset: auto; background: #102b46; padding: 1.25rem; }
.ephp-site .cs-platform-panel-media:has(img[src*="/professional/"]) { min-height: 0; }
.ephp-site .cs-platform-panel-media img[src*="/professional/"],
.ephp-site .ss-tech-visual img[src*="/professional/"] { width: 100%; height: auto; object-fit: contain; }

.ephp-site .service-detail-image img[src*="/professional/"] { aspect-ratio: auto; background: transparent; }
.ephp-site .service-detail-image:has(img[src*="/professional/"]) { height: auto; aspect-ratio: auto; background: transparent; }

.ephp-site .professional-industry-visual .ai-ds-industry-overlay { background: #f5f7fa; color: #243447; }
.ephp-site .professional-industry-visual .ai-ds-industry-overlay-title,
.ephp-site .professional-industry-visual .ai-ds-industry-features { color: #243447; }
.ephp-site .ais-industry-card > img[src*="/professional/"] { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }

/* Focused Home composition: established brand, full professional canvases. */
.ephp-site .home-hero { padding-top: 3rem; padding-bottom: 3rem; }
.ephp-site .home-hero .hero-container { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); margin-bottom: 0; align-items: center; gap: clamp(2rem, 4vw, 4rem); }
.ephp-site .home-hero .hero-content { gap: 1.25rem; }
/* Reset legacy responsive flex ordering so visual and reading order agree. */
.ephp-site .home-hero .hero-content > * { order: 0; }
.ephp-site .home-hero .hero-title { font-size: clamp(2.25rem, 3.25vw, 3.25rem); line-height: 1.17; max-width: 22ch; }
.ephp-site .home-hero .hero-copy { order: initial; font-size: 1rem; line-height: 1.65; max-width: 53ch; }
.ephp-site .home-hero .hero-buttons { order: initial; gap: .75rem; }
.ephp-site .home-hero .hero-buttons .btn { min-height: 48px; padding: .875rem 1.25rem; }
.ephp-site .home-hero .home-experience { margin: .25rem 0 0; padding-top: 1.125rem; border-top: 1px solid #e8ebf0; color: #555f6c; font-size: .875rem; }
.ephp-site .home-hero .home-experience strong { color: #202b3c; font-size: 1rem; }
.ephp-site .home-hero .home-experience span { margin: 0 .5rem; }
.ephp-site .home-hero .hero-images { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1fr); align-items: center; gap: 1rem; width: 100%; max-width: 600px; margin: 0; padding: 0; }
.ephp-site .home-hero .hero-images .image-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.ephp-site .home-hero .hero-images :is(.image-large, .image-item) { width: auto; height: auto; min-height: 0; aspect-ratio: auto; overflow: visible; background: transparent; }
.ephp-site .home-hero .hero-images img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 14px; }
.ephp-site .home-why-editorial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; margin-bottom: 0; padding: 0; border: 0; background: transparent; }
.ephp-site .home-why-photo { margin: 0; min-width: 0; }
.ephp-site .home-why-photo img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 14px; }
.ephp-site .home-why-photo figcaption { margin-top: 1rem; font-size: .875rem; line-height: 1.6; color: #626b77; max-width: 48ch; }
.ephp-site .home-why-copy { min-width: 0; }
.ephp-site .home-why-copy > .btn { width: fit-content; max-width: 100%; min-height: 48px; }
.ephp-site .home-why-copy .why-badge { margin-bottom: 1.25rem; }
.ephp-site .home-why-copy .why-title { margin: 0 0 1.5rem; font-size: clamp(1.625rem, 2.3vw, 2rem); line-height: 1.3; max-width: 28ch; }
.ephp-site .home-capability-list { margin: 0 0 1.75rem; }
.ephp-site .home-capability-list > div { border-top: 1px solid #e8ebf0; padding: .875rem 0; }
.ephp-site .home-capability-list dt { font-weight: 600; font-size: 1rem; color: #202b3c; }
.ephp-site .home-capability-list dd { margin: .35rem 0 0; font-size: .9375rem; line-height: 1.6; color: #626b77; }
@media (max-width: 991.98px) {
 .ephp-site .home-hero .hero-container { grid-template-columns: minmax(0,1fr); gap: 2rem; }
 .ephp-site .home-hero .hero-images { justify-self: center; }
 .ephp-site .home-why-editorial { grid-template-columns: minmax(0,1fr); gap: 1.75rem; }
 .ephp-site .home-why-photo { width: 100%; max-width: none; }
 .ephp-site .home-why-photo figcaption { max-width: none; }
}
@media (max-width: 639.98px) {
 .ephp-site .home-hero { padding-top: 2rem; padding-bottom: 2rem; }
 .ephp-site .home-hero .hero-title { font-size: 2rem; line-height: 1.2; }
 .ephp-site .home-hero .hero-content { gap: 1rem; }
 .ephp-site .home-hero .hero-images, .ephp-site .home-hero .hero-images .image-grid { gap: .625rem; }
 .ephp-site .home-hero .hero-buttons > a { width: 100%; }
 .ephp-site .home-why-photo figcaption { font-size: .8125rem; }
}

/* Do not reserve carousel spacing while the scoped client strip is withheld. */
.ephp-site .home-services-without-client-strip .solutions-section { margin-top: 0; }

/* November 12: established-design alignment and the six approved Home logos. */
.ephp-site .home-hero .hero-images {
    --collage-gap: clamp(.625rem, 1.2vw, 1rem);
    /* 992:1586 portrait beside two 1600:900 canvases, with one intervening gap. */
    grid-template-columns: calc(41.30274% - var(--collage-gap) * .0458919) minmax(0, 1fr);
    align-items: start; gap: var(--collage-gap);
}
.ephp-site .home-hero .hero-images .image-grid { gap: var(--collage-gap); }
.ephp-site .home-hero .hero-images .image-large img {
    position: static; inset: auto; width: 100%; height: auto; object-fit: contain;
}
.ephp-site .home-client-strip { margin: 0 0 clamp(3rem, 6vw, 5rem); }
.ephp-site .home-client-heading { margin: 0 0 2rem; text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); }
.ephp-site .home-client-logos {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: center;
    gap: 1.5rem; margin: 0; padding: 0; list-style: none;
}
.ephp-site .home-client-logos li { display: flex; justify-content: center; align-items: center; min-width: 0; }
.ephp-site .home-client-logos img {
    display: block; width: 100%; max-width: 180px; height: auto; max-height: 80px;
    object-fit: contain; filter: grayscale(1);
}
.ephp-site .home-approved-clients .solutions-section { margin-top: 0; }
.ephp-site #portfolioGrid .case-study-item {
    display: flex; flex-direction: column; height: 100%; min-width: 0;
    background: #fff; border: 1px solid #e1e7ef; border-radius: 16px;
    box-shadow: 0 4px 16px rgb(20 40 70 / 5%);
}
.ephp-site #portfolioGrid .case-study-image { flex: 0 0 auto; }
.ephp-site #portfolioGrid .case-study-info { flex: 1; }
.ephp-site .case-studies .case-studies-cta { padding-top: 2rem; }
@media (max-width: 991.98px) {
    .ephp-site .home-client-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; }
}
@media (max-width: 479.98px) {
    .ephp-site .home-client-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}

/* Requested running client row: six accessible originals; duplicate is presentation-only. */
.ephp-site .home-client-strip { width: 100%; max-width: 100%; min-width: 0; }
.ephp-site .home-client-viewport { width: 100%; max-width: 100%; min-width: 0; }
.ephp-site .home-client-heading { margin-bottom: .5rem; }
.ephp-site .home-client-subtitle { text-align: center; margin: 0 0 1rem; color: var(--color-body); }
.ephp-site .home-client-clone { display: none; }
.ephp-site .home-clients-running .home-client-clone { display: flex; }
.ephp-site .home-clients-running .home-client-viewport { overflow: hidden; }
.ephp-site .home-clients-running .home-client-track { display: flex; width: max-content; min-width: 200%; animation: home-client-loop 36s linear infinite; }
.ephp-site .home-clients-running .home-client-logos {
    --client-gap: clamp(2rem, 4vw, 3rem);
    display: flex; flex: 1 0 auto; justify-content: space-around; width: max-content; gap: var(--client-gap);
    padding-inline-end: var(--client-gap);
}
.ephp-site .home-clients-running .home-client-logos li { width: clamp(140px, 14vw, 180px); flex: 0 0 auto; }
.ephp-site .home-clients-running:hover .home-client-track,
.ephp-site .home-clients-running:focus-within .home-client-track { animation-play-state: paused; }
@keyframes home-client-loop { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .ephp-site .home-client-track { animation: none !important; transform: none !important; }
    .ephp-site .home-client-clone { display: none !important; }
}
/* Shared compact project CTA: content determines height; only decorative desktop
   framing is cropped, anchored to the unchanged embedded bottom-center credit. */
.ephp-site .cta-section, .ephp-site .project-cta { margin-block: 0; padding-block: var(--space-5); }
.ephp-site .project-cta-banner {
    position: relative; isolation: isolate; display: block; width: 100%;
    height: auto; min-height: 0; padding: 0; overflow: hidden;
    background: #e9e4dc; border-radius: var(--radius-media); text-align: center;
}
.ephp-site .project-cta-banner::before, .ephp-site .project-cta-banner::after { content: none; }
.ephp-site .project-cta-banner .project-cta-copy {
    position: relative; z-index: 1; width: 100%; min-width: 0; margin: 0 auto;
    padding: 24px 20px; text-align: center; overflow-wrap: anywhere;
}
.ephp-site .project-cta-banner :is(.cta-title, .about-cta-title) {
    margin: 0 0 12px; color: #172433; font-size: clamp(1.5rem, 2.3vw, 2rem);
    line-height: 1.3; text-align: center;
}
.ephp-site .project-cta-banner :is(.cta-subtitle, .about-cta-subtitle) {
    max-width: 68ch; margin: 0 auto 20px; color: #354454; font-size: 1rem;
    line-height: 1.6; text-align: center;
}
.ephp-site .project-cta-banner .btn-cta {
    display: inline-flex; align-items: center; justify-content: center;
    margin: 0; padding: 12px 24px; height: auto; min-height: 48px; max-width: 100%; white-space: normal;
    background: #f8f9fa; color: #172433;
}
.ephp-site .project-cta-banner .btn-cta:hover { background: #fff; color: #172433; }
.ephp-site .project-cta-banner .credit-cta-art { display: block; position: relative; width: 100%; margin: 0; }
.ephp-site .credit-cta-art img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; aspect-ratio: 1600 / 512; border-radius: 0; }
@media (min-width: 992px) {
    .ephp-site .project-cta-banner { display: flex; align-items: center; min-height: 300px; }
    .ephp-site .project-cta-banner .project-cta-copy { width: min(70%, 760px); padding: 32px 0 44px; }
    .ephp-site .project-cta-banner .credit-cta-art { position: absolute; inset: 0; height: 100%; }
    .ephp-site .project-cta-banner .credit-cta-art img {
        width: 100%; height: 100%; object-fit: cover; object-position: center bottom; aspect-ratio: auto;
    }
}
@media (max-width: 991.98px) {
    .ephp-site .project-cta-banner .project-cta-copy {
        max-width: 44rem;
        padding: clamp(1.5rem, 4vw, 2rem) clamp(1rem, 5vw, 2.5rem) 3rem;
    }

    .ephp-site .project-cta-banner .credit-cta-art {
        position: absolute;
        inset: 0;
        height: 100%;
    }

    .ephp-site .project-cta-banner .credit-cta-art::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgb(248 245 239 / 90%) 0 78%, transparent 95%);
        pointer-events: none;
    }

    .ephp-site .project-cta-banner .credit-cta-art img {
        height: 100%;
        object-fit: cover;
        object-position: center bottom;
        aspect-ratio: auto;
    }
}
@media (max-width: 767.98px) {
    .ephp-site .cta-section, .ephp-site .project-cta { padding-block: var(--space-4); }
}

.ephp-site .ephp-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.ephp-site .ephp-related-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
    align-items: center;
    gap: .5rem 1rem;
    height: 100%;
    min-height: 7rem;
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-surface-soft);
    color: var(--color-heading);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.ephp-site .ephp-related-card:is(:hover, :focus-visible) {
    border-color: var(--brand-primary);
    background: var(--color-surface);
}

.ephp-site .ephp-related-kind {
    grid-column: 1 / -1;
    color: var(--color-muted);
    font-size: var(--type-label);
    font-weight: 600;
}

.ephp-site .ephp-related-arrow {
    color: var(--brand-primary);
}

@media (max-width: 991.98px) {
    .ephp-site .ephp-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .ephp-site .ephp-related-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Service card sliders stay inside the same gutters as their section headings. */
.ephp-site .ephp-contained-carousel {
    --carousel-card-count: 4;
    --carousel-gap: 0px;
    margin-inline: 0;
}

.ephp-site .ephp-contained-carousel.ais-industry-carousel {
    --carousel-card-count: 3;
    --carousel-gap: 20px;
}

.ephp-site .ephp-contained-carousel .ais-carousel-track {
    gap: var(--carousel-gap);
    scroll-padding-inline: 0;
    border-radius: var(--radius-card);
    /* Match whole-pixel slide measurements used by the pagination script. */
    width: calc(round(down, 100% + var(--carousel-gap), var(--carousel-card-count) * 1px) - var(--carousel-gap));
}

.ephp-site .ephp-contained-carousel .ais-carousel-track::before,
.ephp-site .ephp-contained-carousel .ais-carousel-track::after {
    content: none;
}

.ephp-site .ephp-contained-carousel .ais-carousel-slide {
    flex: 0 0 calc((100% + var(--carousel-gap)) / var(--carousel-card-count) - var(--carousel-gap));
    width: auto;
    min-width: 0;
    max-width: none;
}

@media (max-width: 991.98px) {
    .ephp-site .ephp-contained-carousel,
    .ephp-site .ephp-contained-carousel.ais-industry-carousel {
        --carousel-card-count: 2;
    }
}

@media (max-width: 767.98px) {
    .ephp-site .ephp-contained-carousel.ais-steps-carousel {
        --carousel-card-count: 1;
    }
}

@media (max-width: 575.98px) {
    .ephp-site .ephp-contained-carousel.ais-industry-carousel {
        --carousel-card-count: 1;
    }
}

/* Keep image and copy edges aligned across the service carousel cards. */
.ephp-site .ephp-contained-carousel.ais-industry-carousel .ais-carousel-track {
    box-sizing: content-box;
    padding: 3px 3px 10px;
    width: calc(100% - 6px);
    width: calc(round(down, 100% - 6px + var(--carousel-gap), var(--carousel-card-count) * 1px) - var(--carousel-gap));
}

.ephp-site .ephp-contained-carousel .ais-industry-card {
    box-shadow: 0 3px 7px -3px rgb(15 23 42 / 14%);
}

.ephp-site .ephp-contained-carousel .ais-industry-card > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

.ephp-site .ephp-contained-carousel .ais-industry-card > img[src*="/professional/"] {
    object-fit: contain;
    background: var(--color-surface-soft);
}

.ephp-site .ephp-contained-carousel .ais-industry-body {
    padding: clamp(1rem, 2vw, 1.5rem);
}
