/* Homepage case study carousel — isolated namespace, uses the original theme palette. */
.phcs {
  --phcs-accent: var(--color-teal, #09B5C1);
  --phcs-accent-dark: var(--color-teal-dark, #087f89);
  --phcs-ink: var(--color-ink, #142438);
  --phcs-muted: var(--color-ink-soft, #405267);
  --phcs-pale: #e6f7f9;
  position: relative;
  isolation: isolate;
  background: #fbfdfe;
  color: var(--phcs-ink);
  overflow: hidden;
}
.phcs [hidden] { display: none !important; }
.phcs-shell { position: relative; min-width: 0; }
.phcs-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 42px; }
.phcs-eyebrow { display: inline-flex; align-items: center; gap: 18px; font-weight: 800; font-size: .85rem; line-height: 1.4; letter-spacing: .15em; text-transform: uppercase; }
.phcs-eyebrow > span { width: 56px; height: 3px; background: var(--phcs-accent); }
.phcs .phcs-section-heading { margin: 12px 0 0; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.15; }
.phcs-all { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 46px; padding: 10px 23px; border: 1.5px solid var(--phcs-accent); border-radius: 100px; font-size: .94rem; font-weight: 700; line-height: 1.35; color: var(--phcs-accent-dark); background: rgba(255,255,255,.84); text-align: center; transition: background .2s, color .2s; flex-shrink: 0; }
.phcs-all:hover { color: var(--phcs-ink); background: var(--phcs-pale); }
.phcs-all > span, .phcs-text-link > span { font-size: 1.28em; line-height: 1; }
.phcs-viewport { position: relative; }
.phcs-slide { position: relative; display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); gap: clamp(20px, 3vw, 50px); align-items: center; isolation: isolate; padding: 12px 0 20px; background-color: var(--phcs-slide-bg, transparent); }
.phcs-full .phcs-slide { min-height: max(590px, calc(100vh - 220px)); min-height: max(590px, calc(100svh - 220px)); }
.phcs-slide + .phcs-slide { margin-top: 36px; } /* usable stacked layout when JavaScript is unavailable */
.phcs-ready .phcs-slide + .phcs-slide { margin-top: 0; }
.phcs-slide-background { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; border-radius: 24px; }
.phcs-slide:has(.phcs-slide-background)::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,rgba(255,255,255,.97) 0%,rgba(255,255,255,.9) 40%,rgba(255,255,255,.2) 70%,transparent 100%); border-radius: 24px; }
.phcs-copy { min-width: 0; position: relative; z-index: 2; padding: 8px 0; }
.phcs-copy:has(~ .phcs-visual) { overflow-wrap: anywhere; }
.phcs-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(18px, 2vw, 27px); }
.phcs-tags > span { display: inline-flex; align-items: center; gap: 9px; padding: 9px 17px; background: #dff5f7; color: #086a74; font-weight: 740; font-size: .93rem; line-height: 1.4; border-radius: 100px; }
.phcs-icon-svg, .phcs-icon-image { display: inline-block; width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; color: var(--phcs-accent-dark); vertical-align: middle; }
.phcs .phcs-title { font-size: clamp(2rem, 3.35vw, 3.65rem); line-height: 1.09; font-weight: 780; letter-spacing: -.045em; color: var(--phcs-ink); margin: 0 0 20px; }
.phcs-title > span { color: var(--phcs-accent-dark); }
.phcs .phcs-description { font-size: clamp(1rem, 1.22vw, 1.18rem); line-height: 1.6; color: var(--phcs-muted); margin: 0 0 26px; max-width: 64ch; }
.phcs-implementation { display: flex; align-items: flex-start; gap: 15px; background: #e9f6f8; border: 1px solid rgba(9,181,193,.08); border-radius: 18px; padding: 19px 21px; margin: 0 0 26px; }
.phcs-implementation > .phcs-icon-svg, .phcs-implementation > .phcs-icon-image { width: 35px; height: 35px; flex-basis: 35px; color: var(--phcs-accent-dark); }
.phcs-implementation > div { flex: 1; min-width: 0; }
.phcs-implementation strong { font-size: 1.12rem; line-height: 1.4; display: block; margin-bottom: 4px; font-weight: 750; }
.phcs .phcs-implementation p { font-size: .97rem; line-height: 1.55; margin: 0; color: var(--phcs-muted); }
.phcs a.phcs-implementation:hover { background: #dff3f5; }
.phcs-impl-arrow { align-self: center; display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: #d2eff2; color: var(--phcs-accent-dark); font-size: 1.65rem; line-height: 1; }
.phcs-impact-title { font-size: 1.05rem; font-weight: 750; margin-bottom: 10px; }
.phcs-metrics { display: grid; grid-template-columns: repeat(var(--phcs-metric-count, 3), minmax(0, 1fr)); margin: 0 0 30px; }
.phcs-metric { display: flex; align-items: flex-start; gap: 10px; padding: 5px 13px; min-width: 0; }
.phcs-metric:first-child { padding-left: 0; }
.phcs-metric:last-child { padding-right: 0; }
.phcs-metric + .phcs-metric { border-left: 1px solid #cce6e9; }
.phcs-metric > .phcs-icon-svg, .phcs-metric > .phcs-icon-image { width: 26px; height: 26px; flex-basis: 26px; margin-top: 4px; }
.phcs-metric > div { min-width: 0; }
.phcs-metric strong { display: block; font-weight: 780; font-size: clamp(1.4rem, 2.5vw, 2.3rem); letter-spacing: -.045em; line-height: 1.08; color: var(--phcs-accent-dark); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.phcs-metric span { display: block; font-size: .89rem; line-height: 1.45; color: var(--phcs-muted); }
.phcs-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.phcs-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 54px; padding: 12px 24px; background: var(--phcs-accent); color: #062d34; font-size: 1rem; font-weight: 750; line-height: 1.4; border-radius: 100px; transition: transform .2s, background .2s, box-shadow .2s; }
.phcs-button:hover { transform: translateY(-2px); background: #2bc5ce; box-shadow: 0 10px 24px rgba(9,181,193,.22); }
.phcs-button .phcs-icon-svg { color: inherit; }
.phcs-text-link { display: inline-flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--phcs-accent); padding: 6px 0; color: var(--phcs-ink); font-size: .94rem; font-weight: 700; line-height: 1.4; }
.phcs-text-link > span { color: var(--phcs-accent-dark); }
/* The visual area accepts a full composition, overlapping screenshots, or 2–3 phone screens. */
.phcs-visual { min-width: 0; min-height: 420px; aspect-ratio: 1.13; position: relative; isolation: isolate; }
.phcs-visual.phcs-decor::before { content: ''; position: absolute; z-index: -2; width: 77%; height: 77%; right: 0; top: 2%; border-radius: 38% 62% 54% 46%; background: #dff5f8; transform: rotate(-20deg); pointer-events: none; }
.phcs-visual.phcs-decor::after { content: ''; position: absolute; z-index: -1; width: 86%; height: 19%; left: 5%; bottom: 0; border-radius: 999px; background: #c9eff3; transform: rotate(-25deg); opacity: .8; pointer-events: none; }
.phcs-visual-background { position: absolute; z-index: 0; right: 0; top: 4%; width: 85%; height: 69%; object-fit: cover; object-position: var(--phcs-bg-position,center); border-radius: 30px; }
.phcs-float-icon { position: absolute; z-index: 3; display: grid; place-items: center; top: 9%; left: 12%; width: clamp(52px, 6vw, 84px); aspect-ratio: 1; border-radius: 26%; background: white; box-shadow: 0 15px 42px rgba(9,181,193,.2); }
.phcs-float-icon .phcs-icon-svg, .phcs-float-icon .phcs-icon-image { width: 52%; height: 52%; color: var(--phcs-accent-dark); }
.phcs-screens { position: absolute; inset: 0; }
.phcs-screen { position: absolute; display: block; width: auto; height: auto; max-height: 86%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(20,36,56,.18)); }
.phcs-layout-layered .phcs-screen-main { width: 91%; max-height: 78%; left: 0; bottom: 7%; z-index: 1; }
.phcs-layout-layered.phcs-has-secondary .phcs-screen-main { width: 85%; }
.phcs-layout-layered .phcs-screen-secondary { width: 28%; height: 67%; right: 0; bottom: 3%; z-index: 3; object-position: center bottom; }
.phcs-layout-layered .phcs-screen-third { width: 27%; height: 55%; right: 23%; bottom: 3%; z-index: 2; object-position: center bottom; }
.phcs-layout-single .phcs-screen-main { inset: 0; margin: auto; width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.phcs-layout-mobile .phcs-screen-main { width: 36%; height: 89%; max-height: 89%; left: 9%; bottom: 5%; z-index: 2; }
.phcs-layout-mobile .phcs-screen-secondary { width: 36%; height: 81%; right: 8%; bottom: 9%; z-index: 1; }
.phcs-layout-mobile.phcs-has-third .phcs-screen-main { left: 0; width: 35%; height: 77%; bottom: 11%; z-index: 1; }
.phcs-layout-mobile.phcs-has-third .phcs-screen-secondary { left: 32%; right: auto; width: 36%; height: 89%; max-height: 89%; bottom: 4%; z-index: 3; }
.phcs-layout-mobile .phcs-screen-third { right: 0; width: 35%; height: 77%; bottom: 11%; z-index: 1; }
.phcs-layout-mobile:not(.phcs-has-secondary):not(.phcs-has-third) .phcs-screen-main { left: 25%; width: 50%; }
/* Edge navigation avoids covering text or visuals; bottom counter remains in the same place. */
.phcs-controls { position: relative; display: flex; justify-content: center; align-items: center; min-height: 64px; padding-top: 8px; }
.phcs-nav { position: absolute; z-index: 5; display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; border: 1px solid #cbe6e9; background: white; color: var(--phcs-accent-dark); box-shadow: 0 6px 20px rgba(9,181,193,.12); cursor: pointer; transition: background .2s, color .2s, border .2s; }
.phcs-nav > span { font-size: 2.05rem; font-weight: 600; line-height: .8; display: block; margin-top: -3px; }
.phcs-nav:hover { background: var(--phcs-accent); color: var(--phcs-ink); border-color: var(--phcs-accent); }
.phcs-prev { left: 0; }
.phcs-next { right: 0; }
.phcs-pagination { display: flex; align-items: center; gap: 15px; padding: 7px 16px; border: 1px solid #dbe9ec; background: #fff; border-radius: 100px; box-shadow: 0 5px 18px rgba(20,36,56,.05); }
.phcs-count { font-size: .88rem; line-height: 1.5; white-space: nowrap; color: var(--color-muted,#687789); font-variant-numeric: tabular-nums; }
.phcs-count b { color: var(--phcs-accent-dark); }
.phcs-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; max-width: min(60vw, 300px); }
.phcs-count + .phcs-dots { border-left: 1px solid #dbe9ec; padding-left: 11px; }
.phcs-dots button { border: 0; background: transparent; padding: 0; width: 25px; height: 28px; display: grid; place-items: center; cursor: pointer; }
.phcs-dots button::before { content: ''; width: 9px; height: 9px; background: #ccd9df; border-radius: 20px; transition: background .2s, width .2s; }
.phcs-dots button[aria-current="true"]::before { background: var(--phcs-accent-dark); width: 15px; }
@media (min-width: 1050px) {
  .phcs-ready .phcs-slide.is-active { animation: phcs-in .32s ease both; }
}
@keyframes phcs-in { from {opacity:.25; transform:translateX(12px);} to {opacity:1; transform:translateX(0);} }
@media (max-width: 1180px) { .phcs-nav {width:40px;height:40px;} .phcs-metric {gap:6px;padding-inline:10px;} .phcs-metric > .phcs-icon-svg,.phcs-metric > .phcs-icon-image {width:22px;height:22px;flex-basis:22px;} }
@media (max-width: 1049px) { .phcs-full .phcs-slide {min-height: 0;} .phcs-ready .phcs-prev {left:0;} .phcs-ready .phcs-next {right:0;} .phcs-visual {min-height:350px;} .phcs-metric {display:block;} .phcs-metric > .phcs-icon-svg,.phcs-metric > .phcs-icon-image {margin:0 0 7px;} }
@media (max-width: 780px) {
  .phcs-header {margin-bottom: 22px; gap: 14px; align-items: flex-start;}
  .phcs-eyebrow {gap:8px;font-size:.78rem;letter-spacing:.09em;}
  .phcs-eyebrow > span {width:24px;}
  .phcs-all {font-size:.82rem;min-height:40px;padding:8px 12px;gap:8px;flex-shrink:1;}
  .phcs-slide {grid-template-columns: 1fr;gap: 18px; padding:0;}
  .phcs-copy {padding:0;}
  .phcs .phcs-title {font-size:clamp(1.85rem,7.1vw,3rem);margin-bottom:14px;}
  .phcs-tags {gap:8px;margin-bottom:16px;}
  .phcs-tags > span {font-size:.84rem;padding:7px 12px;}
  .phcs .phcs-description {margin-bottom:19px;}
  .phcs-implementation {padding:15px;gap:12px;margin-bottom:20px;}
  .phcs-implementation > .phcs-icon-svg,.phcs-implementation > .phcs-icon-image {width:28px;height:28px;flex-basis:28px;}
  .phcs-metrics {margin-bottom:21px;}
  .phcs-metric strong {font-size:clamp(1.35rem,5vw,2.05rem);}
  .phcs-metric span {font-size:.82rem;}
  .phcs-visual {min-height:0;aspect-ratio:1.12;max-height:480px;}
  .phcs-actions {gap:12px 18px;}
  .phcs-button {min-height:47px;padding:10px 18px;font-size:.92rem;}
  .phcs-controls {min-height:64px;padding-top:12px;}
  .phcs-dots {max-width: min(40vw, 220px);}
  .phcs-pagination {gap:8px;padding:4px 10px;max-width:calc(100% - 94px);}
  .phcs-dots button {width:22px;}
  .phcs-slide:has(.phcs-slide-background)::before {background:rgba(255,255,255,.9);}
}
@media (max-width: 360px) { .phcs-metrics {grid-template-columns:1fr;gap:10px;} .phcs-metric {padding:8px 0;display:flex;} .phcs-metric + .phcs-metric {border-left:0;border-top:1px solid #cce6e9;} }
@media (prefers-reduced-motion: reduce) { .phcs *, .phcs *::before, .phcs *::after { animation:none !important;transition:none !important; } }
/* Editor-selectable button appearances, still within the original teal palette. */
.phcs .phcs-style-filled { background:var(--phcs-accent); color:#062d34; border:1px solid var(--phcs-accent); }
.phcs .phcs-style-filled:hover { background:#2bc5ce; }
.phcs .phcs-style-outline { background:white; color:var(--phcs-accent-dark); border:1.5px solid var(--phcs-accent); }
.phcs .phcs-style-outline:hover { background:var(--phcs-pale); }
.phcs .phcs-style-text { background:transparent; color:var(--phcs-ink); border:0; border-bottom:1px solid var(--phcs-accent); border-radius:0; padding:6px 0; min-height:0; box-shadow:none; }
.phcs .phcs-style-text:hover { color:var(--phcs-accent-dark); background:transparent; box-shadow:none; }
.phcs-impl-arrow .phcs-icon-svg,.phcs-impl-arrow .phcs-icon-image {width:20px;height:20px;}
.phcs-pagination { position:relative; z-index:6; }
.phcs-header { position:relative; z-index:7; }
/* Shared theme .section and .container govern all outer spacing and widths. */
.phcs-controls { margin-top: 10px; }

