/* Service pages and project stories share one responsive, CMS-editable layout. */
.page-inner .site-main__inner > .detail-page { max-width: none; }
.detail-page { padding-bottom: 1rem; }
.detail-page h1 { font-size: clamp(2.6rem, 5.8vw, 4.8rem); letter-spacing: -.055em; line-height: 1.1; }
.detail-page h2 { font-size: clamp(1.65rem, 2.7vw, 2.5rem); letter-spacing: -.035em; line-height: 1.2; }
.detail-page p { color: var(--muted); }
.detail-page a { text-underline-offset: .25em; }
.detail-page a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.detail-breadcrumb { display: flex; flex-wrap: wrap; gap: .7rem; font-size: .8rem; margin-bottom: 2.5rem; color: #657987; }
.detail-hero { padding: 0 0 3.5rem; max-width: 950px; }
.detail-page .detail-kicker { font: 650 .72rem var(--body); letter-spacing: .11em; text-transform: uppercase; color: #006981; margin: 0 0 1rem; }
.detail-hero .lead { max-width: 60ch; font-size: clamp(1.05rem, 2vw, 1.25rem); margin-top: 1.5rem; }
.detail-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 1.4rem; margin-bottom: 3.5rem; }
.detail-cards article { padding: 2rem; background: #fff; border-radius: 10px; border-top: 3px solid #9edeea; display: flex; flex-direction: column; align-items: start; }
.detail-cards h2 { font-size: 1.5rem; margin: 0; }
.detail-cards p:not(.detail-kicker) { font-size: .94rem; margin: 1rem 0 1.5rem; }
.detail-cards a { margin-top: auto; font-weight: 650; font-size: .88rem; }
.detail-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 4rem; padding: 3rem 0; border-top: 1px solid var(--line); }
.detail-split h2 { margin-top: 0; }
.detail-split > div > p:first-child:not(.detail-kicker) { margin-top: 0; }
.detail-split small { font-size: .8rem; }
.detail-capabilities { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; padding: 2rem 0 3.5rem; }
.detail-capabilities section { border-top: 2px solid #c5e5eb; padding-top: 1.5rem; }
.detail-capabilities h2 { font-size: 1.45rem; margin: 0; }
.detail-capabilities p { font-size: .95rem; }
.detail-note { padding: 2.5rem; border-radius: 10px; background: #e2f6fb; margin-bottom: 3.5rem; }
.detail-note h2 { margin: 0; }
.detail-note p { max-width: 75ch; color: #385366; }
.detail-process { padding: 2rem 0 3rem; }
.detail-process h2 { margin: 0; }
.detail-process ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; list-style: none; padding: 0; margin-top: 2rem; counter-reset: steps; }
.detail-process li { counter-increment: steps; border-top: 1px solid #b7d8e0; padding-top: 1rem; }
.detail-process li::before { content: '0' counter(steps); color: #006981; font-size: .8rem; }
.detail-process h3 { font-size: 1.1rem; margin: .7rem 0 0; }
.detail-process p { font-size: .9rem; }
.detail-cta { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 3rem; border-radius: 12px; background: var(--navy-deep); margin-top: 2rem; }
.detail-cta h2 { color: #fff; margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.detail-cta p { color: #d4e6f2; max-width: 55ch; }
.detail-cta .btn { flex-shrink: 0; background: #fff; color: var(--navy); border-color: #fff; border-radius: 8px; font-family: var(--body); }
.detail-cta .btn:hover { background: #e2f6fb; }
.detail-image { margin: 0 0 3rem; padding: 2.5rem; background: #e7eeef; border-radius: 12px; }
.detail-image img { display: block; width: 100%; max-width: 800px; margin: auto; border-radius: 6px; box-shadow: 0 12px 35px #00356414; }
.detail-image figcaption { max-width: 800px; margin: 1rem auto 0; font-size: .8rem; color: #506576; }
.detail-external { margin: -1rem 0 3rem; font-weight: 650; }
.detail-status { display: flex; gap: 1.5rem; align-items: start; padding: 1.3rem 1.5rem; background: #e2f6fb; border-left: 3px solid #0097b8; margin-bottom: 2rem; color: #385366; font-size: .9rem; }
.detail-status strong { flex-shrink: 0; color: var(--navy); }
.detail-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 1rem; align-items: center; background: var(--navy); color: #fff; padding: 3rem; border-radius: 12px; margin-bottom: 3rem; }
.detail-flow h2 { color: #fff; font-size: clamp(1.3rem, 2.5vw, 2rem); margin: 1rem 0 0; }
.detail-flow p { color: #d4e6f2; font-size: .85rem; }
.detail-flow span { font-size: .75rem; color: #9ae2ef; }
.detail-flow b { color: #9ae2ef; font-weight: 400; }
.detail-about { display: grid; grid-template-columns: .85fr 1.2fr; gap: 4rem; align-items: center; margin-bottom: 3.5rem; }
.detail-portrait { margin: 0; }
.detail-portrait img { width: 100%; aspect-ratio: 4/4.3; object-fit: cover; object-position: 32% center; border-radius: 12px; }
.detail-portrait figcaption { font-size: .8rem; color: var(--muted); margin-top: .6rem; }
.detail-about h2 { margin: 0; }
.work-stories { margin: 2.5rem 0 3rem; padding: 2rem; background: #e2f6fb; border-radius: 12px; }
.work-stories h2 { margin: 0; font-size: 1.65rem; }
.work-stories ul { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; list-style: none; padding: 0; margin-bottom: 0; }
.work-stories a { font-weight: 650; }
@media (min-width: 861px) and (max-width: 1000px) { .site-nav ul li a { padding-inline: .45rem; font-size: .85rem; } .site-header__inner { gap: .7rem; } }
@media (max-width: 760px) {
 .detail-split, .detail-about { grid-template-columns: 1fr; gap: 1.5rem; }
 .detail-capabilities { gap: 2rem; }
 .detail-process ol { grid-template-columns: 1fr 1fr; }
 .detail-cta { flex-direction: column; align-items: start; padding: 2rem; }
 .detail-portrait { max-width: 380px; }
 .detail-flow { padding: 2rem; gap: .6rem; }
 .detail-flow p { display: none; }
 .detail-flow h2 { font-size: 1.2rem; }
}
@media (max-width: 520px) {
 .detail-hero { padding-bottom: 2.5rem; }
 .detail-hero h1 br { display: none; }
 .detail-breadcrumb { margin-bottom: 2rem; }
 .detail-cards article, .detail-note { padding: 1.5rem; }
 .detail-capabilities { grid-template-columns: 1fr; }
 .detail-image { padding: 1rem; }
 .detail-status { display: block; }
 .detail-status strong { display: block; margin-bottom: .5rem; }
 .detail-flow { grid-template-columns: 1fr; gap: 1rem; }
 .detail-flow div { display: flex; align-items: center; gap: 1rem; }
 .detail-flow h2 { margin: 0; font-size: 1.5rem; }
 .detail-flow b { display: none; }
 .detail-process ol { gap: 1.5rem; }
 .work-stories { padding: 1.5rem; }
 .work-stories ul { display: grid; gap: .8rem; }
}

/* Existing portfolio thumbnails must also fit the smallest supported phones. */
.ccm-page .portfolio { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); padding-left: 0; }

/* Pricing and direct contact use the same page rhythm as service stories. */
.price-feature, .contact-options { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; padding: 3rem; margin-bottom: 3rem; background: #fff; border-radius: 12px; border-top: 3px solid #9edeea; }
.price-feature h2, .contact-options h2 { margin-top: 0; }
.price-feature .lead strong { display: block; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--navy); }
.price-feature ul, .detail-split ul { padding-left: 1.3rem; color: var(--muted); }
.price-feature li, .detail-split li { margin-bottom: .6rem; }
.contact-primary { display: block; width: fit-content; max-width: 100%; overflow-wrap: anywhere; font-size: clamp(1.1rem, 2.1vw, 1.6rem); font-weight: 650; margin: 1rem 0; }
.contact-options address { font-style: normal; color: var(--muted); }
@media (max-width: 760px) { .price-feature, .contact-options { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem; } }
@media (max-width: 520px) { .price-feature, .contact-options { padding: 1.5rem; } }
