/* Scoped PCW screenshot revisions. Existing first-draft brand and protected form behavior retained. */
:root {
 --revision-navy: #0a192f;
 --revision-panel: #0f274a;
 --revision-blue: #2563eb;
 --revision-gold: #fbbf24;
 --revision-white: #ffffff;
 --revision-light: #edf3fa;
 --revision-ink: #0a192f;
 --revision-copy: #435775;
 --revision-soft: #dbe7f7;
 --revision-line: #b5c9e2;
 --revision-shadow: rgba(0,0,0,.16);
}
html,body {overflow-x:clip;}
.revision-skip {position:absolute;left:-9999px;}
.revision-skip:focus {left:1rem;top:1rem;z-index:3000;padding:1rem;background:var(--revision-white);color:var(--revision-navy);}
:is(.guide-card,.work-card,.pcw-carousel button,.text-link,.revision-breadcrumb a,.article-contents a,.project-record a,.revision-section-action a,#guide-search):focus-visible {outline:3px solid var(--revision-blue);outline-offset:4px;}
:is(h1,h2,h3) {overflow-wrap:break-word;min-width:0;}
/* Distinct service divisions, not columns inside one enclosing directory. */
.first-draft .revision-division {padding:5rem 0;}
.revision-division-0 {background:var(--revision-navy);color:var(--revision-white);}
.revision-division-1 {background:var(--revision-light);color:var(--revision-navy);}
.revision-division-content {display:block;}
.dir-section#prop-grid .section-h2 span {color:var(--revision-gold);}
.revision-division :is(#proj-grid,#prop-grid) {background:transparent;border:0;}
.revision-division .division-heading {font-size:clamp(2.5rem,4vw,3.5rem);margin:0 0 1.25rem;color:inherit;}
.revision-division .division-heading::after {content:"";display:block;width:80px;height:3px;background:var(--revision-gold);margin-top:1rem;}
.revision-division .fd-directory-intro {max-width:70ch;margin:0 0 2rem;font-size:1.0625rem;}
.revision-division-0 .fd-directory-intro p {color:var(--revision-soft);}
.revision-division-1 .fd-directory-intro p {color:var(--revision-copy);}
.revision-division .fd-services-all-list {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 1.75rem;}
.revision-division .fd-service-link-item {color:var(--revision-white);background:var(--revision-panel);padding:1rem;min-height:72px;border:0;border-bottom:1px solid var(--revision-line);border-radius:0;justify-content:space-between;text-align:left;font-size:1rem;line-height:1.5;transform:none;box-shadow:none;}
.revision-division .fd-service-link-item:hover {background:var(--revision-blue);color:var(--revision-white);transform:none;box-shadow:none;}
.revision-division .fd-service-link-item:focus-visible {outline-color:var(--revision-gold);outline-offset:-4px;}
.revision-division .fd-directory-route {margin-top:2rem;}
.revision-division-0 .fd-directory-route a {color:var(--revision-gold);}
.revision-division-1 .fd-directory-route a {color:var(--revision-blue);}
.revision-division .fd-directory-route a {display:inline-flex;align-items:center;min-height:44px;font-weight:700;}

/* Homepage service directories — review-only visual treatment.
   The live service anchors, names, order, modal targets, and route links stay
   intact. These rules change only the presentation of the existing directory
   lists into a single dark panel of separate service-name tiles. */
.revision-division .fd-services-all-list {
 background:#0f172a;
 border:2px solid #080d17;
 border-radius:8px;
 box-shadow:0 8px 14px rgba(0,0,0,.14);
 gap:.75rem;
 padding:1.5rem;
}
.revision-division .fd-service-link-item {
 min-height:50px;
 padding:.7rem .8rem;
 background:#202839;
 border:1px solid #30384a;
 border-radius:4px;
 color:#fff;
 font-size:.875rem;
 font-weight:700;
 line-height:1.2;
 text-align:center;
 justify-content:center;
 gap:.5rem;
}
.revision-division .fd-service-link-item::before {display:none;}
.revision-division .fd-service-link-item svg {
 flex:0 0 14px;
 width:14px;
 height:14px;
 color:currentColor;
 stroke-width:1.8;
}
.revision-division .fd-service-link-item:hover {
 background:#2563eb;
 border-color:#2563eb;
 color:#fff;
 transform:none;
 box-shadow:none;
}
.revision-division .fd-service-link-item:focus-visible {
 outline:2px solid #fbbf24;
 outline-offset:3px;
}
@media(max-width:768px) {
 .revision-division .fd-services-all-list {grid-template-columns:repeat(2,minmax(0,1fr));padding:1rem;gap:.625rem;}
 .revision-division .fd-service-link-item {min-height:52px;font-size:.8125rem;padding:.65rem .5rem;}
}
@media(max-width:480px) {
 .revision-division .fd-services-all-list {grid-template-columns:minmax(0,1fr);}
 .revision-division .fd-service-link-item {min-height:52px;font-size:.9375rem;}
}
/* Why Choose: readable rich navy, aligned checks, fully visible credentials. */
.first-draft #about {background:var(--revision-navy);color:var(--revision-white);padding:5rem 0;}
#about .fd-why-us-grid {align-items:start;gap:2rem 3rem;grid-template-areas:"image intro" "image benefits";grid-template-rows:auto 1fr;}
#about .revision-why-intro {grid-area:intro;min-width:0;}
#about .fd-why-us-image-wrapper {grid-area:image;}
#about .revision-why-benefits {grid-area:benefits;min-width:0;}
@media(max-width:1100px) {#about .fd-why-us-grid {grid-template-areas:"intro" "image" "benefits";grid-template-rows:auto;}}
#about .fd-section-title {color:var(--revision-white);}
#about .fd-section-title span {color:var(--revision-gold);}
#about .fd-section-title::after {margin-left:0;margin-right:auto;}
#about .fd-section-desc {color:var(--revision-soft);font-size:1.0625rem;line-height:1.75;}
#about .fd-why-us-features {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem 1.5rem;}
#about .fd-feature-card {align-items:start;gap:.8rem;}
#about .fd-feature-info h3 {color:var(--revision-white);font-size:1.5rem;line-height:1.2;letter-spacing:.03em;}
#about .fd-feature-info p {color:var(--revision-soft);font-size:1rem;line-height:1.75;}
#about .fd-feature-checkmark {color:var(--revision-gold);background:var(--revision-panel);margin-top:.15rem;}
#about .fd-feature-checkmark svg {width:20px;height:20px;}
#about .revision-why-details {margin-top:3rem;padding-top:3rem;border-top:1px solid var(--revision-line);}
#about .revision-why-details>.fd-why-us-features {grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem;}
#about .license-block {background:var(--revision-panel);margin:3rem 0;padding:2rem;}
#about .license-block h3 {font-size:1.7rem;line-height:1.3;color:var(--revision-white);}
#about .license-block h3 span {font-family:var(--font-body);font-size:1rem;display:block;margin-top:.5rem;color:var(--revision-gold);}
#about .license-block p {font-size:1.0625rem;line-height:1.8;color:var(--revision-soft);margin:.75rem 0 0;}
.client-strip h3 {font-size:1.75rem;line-height:1.3;}
#about .client-strip h3 {color:var(--revision-white);}
.client-strip .affiliation-strip {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem 2rem;justify-content:start;text-align:left;padding:1.5rem;margin:1rem 0 2rem;}
#about .affiliation-strip {background:var(--revision-panel);border:1px solid var(--revision-line);}
.client-strip .affiliation-tag {display:grid;grid-template-columns:24px minmax(0,1fr);gap:.8rem;align-items:start;justify-content:start;min-width:0;white-space:normal;font-size:1rem;line-height:1.6;font-weight:500;}
#about .affiliation-tag {color:var(--revision-white);}
.client-strip .affiliation-tag svg {width:22px;height:22px;flex-shrink:0;margin-top:.1rem;}
#about .affiliation-tag svg {color:var(--revision-gold);}
/* Image-led, manual-only work carousel. All slides visible without JavaScript. */
.pcw-carousel {min-width:0;touch-action:pan-y;}
.carousel-filters {display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem;margin-bottom:1.5rem;}
.carousel-filters button {border:1px solid var(--revision-line);background:var(--revision-white);color:var(--revision-navy);font:600 1rem/1.4 var(--font-body);padding:.75rem 1rem;min-height:48px;border-radius:6px;cursor:pointer;}
.carousel-filters button[aria-pressed="true"] {background:var(--revision-navy);color:var(--revision-white);border-color:var(--revision-navy);}
.carousel-track {display:grid;gap:2rem;}
.carousel-slide {display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);background:var(--revision-white);border:1px solid var(--revision-line);border-radius:12px;overflow:hidden;}
.carousel-image {min-width:0;display:block;height:420px;}
.carousel-image img {display:block;width:100%;height:100%;min-height:0;object-fit:cover;}
.first-draft #projects,.first-draft #resources {padding:5rem 0;}
.carousel-copy {padding:2.5rem;align-self:center;min-width:0;}
.first-draft .carousel-copy h3 {font-size:2.2rem;line-height:1.2;color:var(--revision-navy);margin-bottom:1rem;}
.carousel-copy p {font-size:1.0625rem;line-height:1.75;color:var(--revision-copy);margin-bottom:1rem;}
.carousel-copy .image-disclosure {font-size:.875rem;line-height:1.6;}
.pcw-carousel.is-ready .carousel-slide[hidden] {display:none;}
.carousel-controls {display:flex;gap:1rem;align-items:center;justify-content:center;margin-top:1.5rem;}
.carousel-controls[hidden] {display:none;}
.carousel-controls>button {width:48px;height:48px;display:grid;place-items:center;border:1px solid var(--revision-line);border-radius:50%;background:var(--revision-navy);color:var(--revision-white);cursor:pointer;}
.carousel-status {font-size:1rem;color:var(--revision-copy);min-width:3rem;text-align:center;}
.carousel-dots {display:flex;gap:.25rem;}
.carousel-dots button {width:44px;height:44px;display:grid;place-items:center;background:transparent;border:0;cursor:pointer;}
.carousel-dots button span {width:10px;height:10px;border:1px solid var(--revision-navy);border-radius:50%;background:var(--revision-white);}
.carousel-dots button[aria-pressed="true"] span {background:var(--revision-blue);border-color:var(--revision-blue);}
/* Resource cards: real titles and images, same readable journey on home and index. */
#resources {background:var(--revision-white);}
.guide-grid,.work-image-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem;}
.guide-card,.work-card {display:flex;flex-direction:column;min-width:0;color:var(--revision-navy);background:var(--revision-white);border:1px solid var(--revision-line);border-radius:10px;overflow:hidden;box-shadow:0 6px 20px -12px var(--revision-shadow);transition:transform .2s,border-color .2s;}
.guide-card:hover,.work-card:hover {transform:translateY(-3px);border-color:var(--revision-blue);}
.guide-card img,.work-card img {display:block;width:100%;height:auto;aspect-ratio:800/420;object-fit:cover;background:var(--revision-light);}
.guide-card-copy,.work-card-copy {padding:1.5rem;display:flex;flex-direction:column;flex-grow:1;gap:.9rem;}
.guide-card h3,.first-draft .guide-card h3,.work-card h3 {font-family:var(--font-body);font-weight:700;font-size:1.25rem;line-height:1.35;letter-spacing:0;color:var(--revision-navy);margin:0;}
.guide-card p,.work-card p {font-size:1rem;line-height:1.7;color:var(--revision-copy);margin:0;}
.guide-read {display:flex;align-items:center;gap:.6rem;min-height:44px;color:var(--revision-blue);font-weight:700;margin-top:auto;}
.guide-read>span {font-size:1.5rem;}
.guide-index {background:var(--revision-light);padding:4rem 0 5rem;}
.resource-intro {max-width:70ch;margin-bottom:2rem;}
.resource-intro h2 {font-size:2.5rem;color:var(--revision-navy);margin-bottom:1rem;}
.resource-intro p {color:var(--revision-copy);font-size:1.0625rem;line-height:1.75;}
.resource-intro label {display:block;margin:1.5rem 0 .5rem;font-weight:700;color:var(--revision-navy);}
#guide-search {width:100%;min-height:50px;border:1px solid var(--revision-line);border-radius:6px;padding:.75rem 1rem;font:1rem/1.5 var(--font-body);background:var(--revision-white);color:var(--revision-navy);}
#guide-results {margin-top:.75rem;font-size:.95rem;}
.guide-grid [hidden] {display:none;}
.legacy-guide-links {scroll-margin-top:110px;}
/* Long-form reading surfaces: clear article purpose, compact visual lead, 65-character body measure. */
.article-banner {background:var(--revision-navy);color:var(--revision-white);padding:2rem 0 3.5rem;}
.revision-breadcrumb {display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;font-size:.9375rem;color:var(--revision-soft);margin:0 0 2rem;}
.revision-breadcrumb a {color:var(--revision-white);min-height:44px;display:inline-flex;align-items:center;text-decoration:underline;text-underline-offset:4px;}
.article-opening {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3rem;align-items:center;}
.article-opening h1 {font-size:clamp(2.5rem,4.5vw,4rem);line-height:1.05;margin-bottom:1.25rem;color:var(--revision-white);}
.article-opening .article-lead {font-size:1.1875rem;line-height:1.7;color:var(--revision-soft);}
.article-opening p {font-size:1.0625rem;line-height:1.75;color:var(--revision-soft);}
.article-opening figure {margin:0;min-width:0;}
.article-opening img {width:100%;height:auto;display:block;border-radius:8px;}
.article-opening figcaption {font-size:.875rem;line-height:1.6;color:var(--revision-soft);margin-top:.75rem;}
.article-opening .text-link {color:var(--revision-gold);}
.text-link {display:inline-flex;align-items:center;gap:.6rem;min-height:44px;color:var(--revision-blue);font-weight:700;text-decoration:underline;text-underline-offset:4px;}
.article-layout {display:grid;grid-template-columns:240px minmax(0,1fr);gap:4rem;padding-top:3.5rem;padding-bottom:4rem;align-items:start;}
.article-contents {position:sticky;top:120px;}
.article-contents h2 {font-family:var(--font-body);font-size:1rem;font-weight:700;letter-spacing:0;line-height:1.5;color:var(--revision-navy);}
.article-contents ol {padding-left:1.3rem;margin:1rem 0;}
.article-contents li {margin-bottom:.4rem;font-size:.9375rem;line-height:1.6;color:var(--revision-copy);}
.article-contents li a {display:inline-block;padding:.4rem 0;color:var(--revision-copy);text-decoration:underline;text-underline-offset:3px;}
.guide-article {max-width:40rem;min-width:0;}
.guide-article section {padding:0;margin:0 0 2.75rem;scroll-margin-top:120px;}
.guide-article h2,.project-record h2 {font-family:var(--font-body);font-size:1.55rem;font-weight:700;letter-spacing:-.01em;line-height:1.35;color:var(--revision-navy);margin-bottom:1rem;}
.guide-article h3 {font-family:var(--font-body);font-size:1.2rem;line-height:1.4;font-weight:700;letter-spacing:0;color:var(--revision-navy);margin:1.5rem 0 .75rem;}
.guide-article p,.guide-article li,.project-record p {font-size:1.0625rem;line-height:1.85;color:var(--revision-copy);}
.guide-article ul,.guide-article ol {padding-left:1.5rem;}
.guide-article li {margin:.6rem 0;}
.guide-article .planning-checklist {padding:1.5rem;background:var(--revision-light);border-radius:8px;}
.guide-note {font-size:.9375rem!important;padding-top:1.5rem;border-top:1px solid var(--revision-line);}
.guide-article .article-next {margin-top:2.5rem;}
.article-next .btn {margin-top:1rem;}
.related-guides {background:var(--revision-light);padding:4rem 0;}
.related-guides h2 {font-size:2.5rem;color:var(--revision-navy);margin-bottom:1.5rem;}
.revision-section-action {margin-top:2rem;text-align:center;}
.revision-section-action a {display:inline-flex;align-items:center;min-height:44px;color:var(--revision-blue);font-weight:700;}
/* Portfolio bands distinguish named institutions from general capabilities. */
.portfolio-institutions,.portfolio-capabilities,.portfolio-maintenance {padding:4rem 0;}
.portfolio-institutions {background:var(--revision-light);}
.portfolio-capabilities {background:var(--revision-navy);color:var(--revision-white);}
.portfolio-maintenance {background:var(--revision-light);}
:is(.portfolio-institutions,.portfolio-capabilities,.portfolio-maintenance) h2 {font-size:clamp(2rem,4vw,3rem);margin-bottom:1rem;color:inherit;}
.portfolio-intro {max-width:75ch;font-size:1.0625rem;line-height:1.75;margin-bottom:2rem;color:var(--revision-copy);}
.portfolio-capabilities .portfolio-intro {color:var(--revision-soft);}
.work-card .image-disclosure {font-size:.875rem;}
.project-record {max-width:850px;padding-top:3.5rem;padding-bottom:3.5rem;}
.project-record section {padding:0;margin-bottom:2.75rem;}
.project-record .btn {margin-top:1rem;}
.project-record-links {display:flex;gap:1.25rem;flex-wrap:wrap;margin-top:1rem;}
.project-record-links a {display:inline-flex;align-items:center;min-height:44px;color:var(--revision-blue);font-weight:700;text-decoration:underline;text-underline-offset:4px;}
@media(max-width:1100px) {
 .revision-division .fd-services-all-list {grid-template-columns:repeat(3,minmax(0,1fr));}
 .article-layout {grid-template-columns:200px minmax(0,1fr);gap:2rem;}
 .article-opening {gap:2rem;}
 #about .fd-why-us-grid {grid-template-columns:minmax(0,1fr);}
 #about .fd-why-us-image-wrapper {max-height:420px;}
 .carousel-copy {padding:1.75rem;}
}
@media(max-width:980px) {
 .guide-grid,.work-image-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem;}
 .client-strip .affiliation-strip {grid-template-columns:repeat(2,minmax(0,1fr));}
 #about .revision-why-details>.fd-why-us-features {grid-template-columns:repeat(2,minmax(0,1fr));}
 .article-opening {grid-template-columns:minmax(0,1fr);}
 .article-opening figure {max-width:720px;}
 .article-opening img {max-height:320px;object-fit:contain;background:var(--revision-light);}
 .carousel-slide {grid-template-columns:minmax(0,1fr);}
 .carousel-image {height:350px;}
 .carousel-image img {height:100%;min-height:0;}
 .article-layout {grid-template-columns:minmax(0,1fr);gap:2.5rem;}
 .article-contents {position:static;padding-bottom:1.5rem;border-bottom:1px solid var(--revision-line);}
 .article-contents ol {columns:2;column-gap:2.5rem;}
}
@media(max-width:768px) {
 .revision-division .fd-services-all-list {grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1rem;}
 #about .fd-why-us-features {grid-template-columns:minmax(0,1fr);}
 .carousel-image {height:280px;}
 .carousel-copy {padding:1.5rem;}
 .carousel-filters {justify-content:flex-start;}
 .carousel-filters button {flex:1 1 150px;}
 .carousel-controls {gap:.5rem;}
 .article-banner {padding-top:1.25rem;}
 .article-opening h1 {font-size:2.75rem;}
 .article-opening .article-lead {font-size:1.125rem;}
 .article-layout {padding-top:2.5rem;}
 .guide-card-copy,.work-card-copy {padding:1.25rem;}
}
@media(max-width:600px) {
 .guide-grid,.work-image-grid {grid-template-columns:minmax(0,1fr);}
 #about .revision-why-details>.fd-why-us-features {grid-template-columns:minmax(0,1fr);}
 .client-strip .affiliation-strip {grid-template-columns:minmax(0,1fr);gap:1.2rem;padding:1.25rem;}
 #about .license-block {padding:1.5rem;}
 .revision-division .fd-services-all-list {grid-template-columns:minmax(0,1fr);}
 .revision-division .fd-service-link-item {min-height:56px;}
 .carousel-image {height:230px;}
 .carousel-controls {flex-wrap:wrap;}
 .article-contents ol {columns:1;}
 .article-opening h1 {font-size:2.5rem;}
 .revision-breadcrumb {font-size:.875rem;}
}
@media(prefers-reduced-motion:reduce) {
 .guide-card,.work-card {transition:none;}
 .guide-card:hover,.work-card:hover {transform:none;}
 .carousel-track {scroll-behavior:auto;}
}

/* Credentials band: licensing, client types and trade affiliations at the page foot. */
.fd-credentials-section {background:var(--revision-navy);color:var(--revision-white);padding:5rem 0;}
.fd-credentials-section .credentials-head {max-width:75ch;margin:0 0 2.5rem;}
.fd-credentials-section .credentials-eyebrow {font-family:var(--font-body);font-size:.9375rem;line-height:1.5;font-weight:700;letter-spacing:0;text-transform:none;color:var(--revision-gold);margin:0 0 .75rem;}
.fd-credentials-section .fd-section-title {color:var(--revision-white);text-align:left;margin:0 0 1rem;}
.fd-credentials-section .fd-section-title span {color:var(--revision-gold);}
.fd-credentials-section .fd-section-title::after {margin-left:0;margin-right:auto;}
.fd-credentials-section .fd-section-desc {color:var(--revision-soft);font-size:1.0625rem;line-height:1.75;margin:0;}
.fd-credentials-section .license-block {background:var(--revision-panel);margin:0 0 3rem;padding:2rem;border-radius:var(--radius-md);}
.fd-credentials-section .license-block h3 {font-size:1.7rem;line-height:1.3;color:var(--revision-white);margin:0;}
.fd-credentials-section .license-block h3 span {font-family:var(--font-body);font-size:1rem;display:block;margin-top:.5rem;color:var(--revision-gold);}
.fd-credentials-section .license-block p {font-size:1.0625rem;line-height:1.8;color:var(--revision-soft);margin:.75rem 0 0;}
.fd-credentials-section .client-strip {margin-top:0;}
.fd-credentials-section .client-strip h3 {color:var(--revision-white);font-size:1.75rem;line-height:1.3;margin:0 0 .5rem;}
.fd-credentials-section .affiliation-strip {border-radius:var(--radius-md);background:var(--revision-panel);border:1px solid var(--revision-line);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem 2rem;justify-content:start;align-items:start;text-align:left;padding:1.5rem;margin:1rem 0 2rem;}
.fd-credentials-section .affiliation-tag {display:grid;grid-template-columns:24px minmax(0,1fr);gap:.8rem;align-items:start;justify-content:start;min-width:0;white-space:normal;font-size:1rem;line-height:1.6;font-weight:500;color:var(--revision-white);}
.fd-credentials-section .affiliation-tag svg {width:22px;height:22px;flex-shrink:0;margin-top:.1rem;color:var(--revision-gold);}
@media(max-width:980px) {.fd-credentials-section .affiliation-strip {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px) {
 .fd-credentials-section {padding:3.5rem 0;}
 .fd-credentials-section .affiliation-strip {grid-template-columns:minmax(0,1fr);gap:1.2rem;padding:1.25rem;}
 .fd-credentials-section .license-block {padding:1.5rem;}
}
/* Adjacent pale bands after the HOA/Commercial-first ordering need tonal separation. */
.portfolio-capabilities {border-top:1px solid rgba(255,255,255,.16);}
.portfolio-maintenance {background:var(--revision-white);border-top:1px solid var(--revision-line);}
/* Stats rail overlaps the hero and now sits above the navy Why Choose band; keep a deliberate light margin under the card. */
.first-draft .fd-stats-bar-section {padding:0 0 3rem;}

/* ===== Approved testimonial carousel: single calm reading card, no visible controls ===== */
.review-carousel-status[hidden]{display:none!important}
.review-carousel-status{display:flex;align-items:center;justify-content:center;gap:.65rem;width:max-content;min-width:5.5rem;margin:1.25rem auto 1.5rem;padding:.45rem .8rem;border-top:1px solid currentColor;border-bottom:1px solid currentColor;color:inherit;font:600 .78rem/1 var(--font-body,sans-serif);letter-spacing:.12em}
.review-carousel-status::before{content:"";width:1.9rem;height:2px;background:currentColor;opacity:.45}
.review-carousel.is-active{display:block}
.review-carousel.is-active>[hidden]{display:none!important}
.review-carousel.is-active>*{max-width:48rem;margin:auto}
.fd-testimonials-section{padding:5.5rem 0 6rem}
.fd-testimonials-section .review-carousel-status{color:var(--gold-500)}
.fd-testimonials-section .review-carousel.is-active .fd-testimonial-card{min-height:21rem;display:flex;flex-direction:column;justify-content:center;padding:3.25rem 3.5rem;background:#132e52;border:1px solid rgba(255,255,255,.16);border-radius:10px;box-shadow:0 20px 42px rgba(0,0,0,.22)}
.fd-testimonials-section .fd-testimonial-content{max-width:40rem;margin:1.1rem 0 1.8rem;font-family:var(--font-body);font-size:1.125rem;line-height:1.75;color:#f4f7fa;font-style:normal}
.fd-testimonials-section .fd-testimonial-category{color:var(--gold-400);font-family:var(--font-body);font-size:.82rem;font-weight:700;letter-spacing:.04em;text-transform:none}
.fd-testimonials-section .fd-review-name{font-size:1.04rem}
.fd-testimonials-section .fd-review-title{margin-top:.22rem}
.fd-testimonials-section .is-duplicate-role .fd-review-title{display:none}
.review-carousel.is-active.review-grid{display:block;max-width:50rem;margin:0 auto}
.review-carousel.is-active .review-card{min-height:21rem;justify-content:center;padding:3rem 3.4rem;background:#fff;border:1px solid #cad4de;border-radius:10px;box-shadow:0 18px 42px rgba(20,38,59,.1)}
.review-carousel.is-active .review-card p{max-width:42rem;margin:1rem 0 1.75rem;font-size:1.075rem;line-height:1.75;color:#263849;font-style:normal}
.review-carousel.is-active .review-cat{font-family:var(--font-body);font-size:.82rem;letter-spacing:.04em;text-transform:none;color:#915f00}
.review-carousel.is-active .review-name{font-size:1.02rem}
.review-carousel.is-active .review-title{margin-top:.2rem}
.review-carousel.is-active .is-duplicate-role .review-title{display:none}
.review-carousel-status+.review-carousel{margin-top:0!important}
#work-slide-1 .carousel-image img{object-fit:cover;object-position:center 32%}
.fd-testimonials-section .fd-section-header{margin-bottom:2rem}
.fd-testimonials-section .review-carousel-status{margin:0 auto 1.15rem}
.fd-testimonials-section .review-carousel.is-active .fd-testimonial-card{padding:2.45rem 3.5rem}
.fd-testimonials-section .fd-testimonial-content{margin:.65rem 0 1.45rem}
@media(max-width:600px){.fd-testimonials-section{padding:4rem 0}.fd-testimonials-section .review-carousel.is-active .fd-testimonial-card,.review-carousel.is-active .review-card{min-height:0;padding:2rem 1.45rem}.fd-testimonials-section .fd-testimonial-content,.review-carousel.is-active .review-card p{font-size:1rem;line-height:1.7}.review-carousel-status{margin:1rem auto 1.25rem}}
@media(prefers-reduced-motion:reduce){.review-carousel-status{display:none}.review-carousel:not(.is-active){display:grid}.review-carousel:not(.is-active).fd-testimonials-grid{grid-template-columns:repeat(auto-fit,minmax(16rem,1fr))}.review-carousel:not(.is-active).review-grid{grid-template-columns:repeat(auto-fit,minmax(16rem,1fr))}}
@media(max-width:600px){.fd-testimonials-section .fd-section-header{margin-bottom:1.5rem}.fd-testimonials-section .review-carousel.is-active .fd-testimonial-card{padding:1.75rem 1.45rem}.fd-testimonials-section .fd-testimonial-content{margin:.6rem 0 1.25rem}}

/* ===== Capability icon tiles (no repeated stock photos) ===== */
.capability-tile{display:flex;flex-direction:column;align-items:flex-start;gap:1rem;padding:1.75rem;background:var(--revision-navy);border:1px solid rgba(255,255,255,.14);border-radius:10px;overflow:visible;box-shadow:0 6px 20px -12px var(--revision-shadow)}
.capability-tile .capability-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:10px;background:rgba(247,215,109,.14);color:var(--gold-500)}
.capability-tile{overflow:hidden}.capability-tile .tile-photo{width:100%;height:190px;object-fit:cover;object-position:center;display:block;margin-bottom:.25rem;background:var(--revision-light)}
.capability-tile .capability-icon svg{width:26px;height:26px}
.portfolio-capabilities .capability-tile{background:var(--revision-navy);color:var(--revision-white)}
.portfolio-capabilities .capability-tile h3{color:var(--revision-white)}
.portfolio-capabilities .capability-tile .image-disclosure{color:var(--revision-soft)}
.portfolio-capabilities .capability-tile .guide-read{color:var(--gold-400)}
.portfolio-maintenance .capability-tile{background:var(--revision-white);border-color:var(--revision-line);color:var(--revision-navy)}
.portfolio-maintenance .capability-tile .capability-icon{background:rgba(15,39,74,.08);color:var(--revision-navy)}
.portfolio-maintenance .capability-tile .image-disclosure{color:var(--revision-copy)}
.portfolio-maintenance .capability-tile .guide-read{color:var(--revision-blue)}
.capability-tile .work-card-copy{display:flex;flex-direction:column;gap:.55rem;flex-grow:1;padding:0}
.capability-tile .image-disclosure{font-size:.875rem;line-height:1.6}
@media(max-width:980px){.capability-tile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.capability-tile-grid{grid-template-columns:minmax(0,1fr)}.capability-tile{padding:1.4rem}}

/* ===== Service page project photo ===== */
.service-photo{margin:0 0 2rem;border:1px solid var(--revision-line);border-radius:10px;overflow:hidden;background:var(--revision-white);box-shadow:0 8px 22px -14px var(--revision-shadow)}
.service-photo img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover}
.service-photo figcaption{padding:.85rem 1.1rem;font-size:.9rem;line-height:1.6;color:var(--revision-copy)}
.service-photo figcaption strong{color:var(--revision-navy);font-weight:700}
/* 3-up auto-advancing testimonial carousel (no buttons) */
.review-carousel.is-active{display:block;overflow:hidden}
.review-carousel.is-active>.review-track{display:flex;gap:1.5rem;max-width:none;margin:0;transition:transform .6s cubic-bezier(.4,0,.2,1);will-change:transform}
.review-carousel.is-active>.review-track>*{flex:0 0 calc((100% - 3rem)/3);min-width:0;max-width:none;margin:0}
.fd-testimonials-section .review-carousel.is-active .fd-testimonial-card{min-height:22rem;padding:2.4rem 2.2rem}
@media(max-width:820px){
  .review-carousel.is-active>.review-track>*{flex:0 0 100%}
  .fd-testimonials-section .review-carousel.is-active .fd-testimonial-card{min-height:0;padding:2rem 1.45rem}
}
@media(prefers-reduced-motion:reduce){
  .review-carousel.is-active>.review-track{transition:none}
}
#institutions .image-credit{margin:1rem 0 0;font-size:.78rem;line-height:1.5;opacity:.7}

/* ==========================================================================
   KNOWLEDGE HUB — photographic hero, section feature image, image-backed CTA.
   Scoped to the knowledge hub page only (body.kh-visual) so no other
   subpage/gateway section changes.
   ========================================================================== */
.kh-visual .subpage-hero {
    overflow: hidden;
    isolation: isolate;
}

.kh-visual .subpage-hero .subpage-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 62%;
    z-index: -2;
    filter: saturate(1.05);
}

/* Navy scrim: keeps white heading/lead text at AA contrast over the photo. */
.kh-visual .subpage-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(100deg, rgba(10, 25, 47, 0.94) 0%, rgba(10, 25, 47, 0.86) 46%, rgba(10, 25, 47, 0.62) 100%),
        linear-gradient(180deg, rgba(10, 25, 47, 0.35) 0%, rgba(10, 25, 47, 0) 45%);
}

.kh-visual .subpage-hero .container {
    position: relative;
    z-index: 1;
}

/* Feature image beside the guide-section intro on wide screens. */
.kh-visual .guide-index .resource-intro {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 2.5rem;
    align-items: center;
}

.kh-visual .guide-index .resource-intro > h2,
.kh-visual .guide-index .resource-intro > p {
    grid-column: 1;
    max-width: 62ch;
}

.kh-visual .guide-index .resource-feature {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--revision-line);
    box-shadow: 0 18px 40px rgba(10, 25, 47, 0.16);
    margin: 0;
}

@media (max-width: 900px) {
    .kh-visual .guide-index .resource-intro {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }
    .kh-visual .guide-index .resource-feature {
        grid-column: 1;
        grid-row: auto;
        aspect-ratio: 16 / 9;
    }
}

/* Image-backed CTA band (photo on the right, text stays on navy). */
.kh-visual .cta-strip-section .cta-strip-media {
    position: absolute;
    inset: 0 0 0 auto;
    width: 46%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    opacity: 0.42;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}

.kh-visual .cta-strip-section .cta-strip-content {
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .kh-visual .cta-strip-section .cta-strip-media {
        width: 100%;
        opacity: 0.22;
    }
}

/* Keep the section heading and its paragraph together beside the feature photo. */
.kh-visual .guide-index .resource-intro > h2,
.kh-visual .guide-index .resource-intro > p {
    align-self: end;
    margin-bottom: 0;
}
.kh-visual .guide-index .resource-intro > h2 { margin-bottom: 0.85rem; }
.kh-visual .guide-index .resource-intro > p:last-of-type { margin-bottom: 0; }

/* Group heading + paragraph in one block so no vertical gap is introduced. */
.kh-visual .guide-index .resource-intro {
    align-items: center;
}
.kh-visual .guide-index .resource-intro-text {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    min-width: 0;
}
.kh-visual .guide-index .resource-intro-text h2 { margin: 0 0 0.85rem; max-width: 62ch; }
.kh-visual .guide-index .resource-intro-text p { margin: 0; max-width: 62ch; }

/* ==========================================================================
   MOBILE FIX — testimonial carousel
   Cards stretched to the height of the longest review (986 chars) because the
   flex track's default align-items:stretch made every card as tall as the
   tallest, leaving ~280px of dead space above/below short quotes on phones.
   Align to the top and let each card size to its own content.
   ========================================================================== */
.review-carousel.is-active > .review-track {
    align-items: flex-start;
}

.fd-testimonials-section .review-carousel.is-active .fd-testimonial-card {
    justify-content: flex-start;
    min-height: 0;
    height: auto;
}

@media (max-width: 820px) {
    .fd-testimonials-section .review-carousel.is-active .fd-testimonial-card {
        min-height: 0;
        height: auto;
        justify-content: flex-start;
        padding: 1.75rem 1.35rem;
    }
    /* Phone: give the quote a comfortable measure and let long reviews breathe. */
    .fd-testimonials-section .fd-testimonial-content {
        font-size: 1rem;
        line-height: 1.65;
        margin: 0.6rem 0 1.2rem;
    }
    .fd-testimonials-section .fd-testimonial-category {
        font-size: 0.76rem;
    }
    .fd-testimonials-section .fd-review-name {
        font-size: 1rem;
    }
    /* Quote mark must not overlap the text on narrow screens. */
    .fd-testimonials-section .fd-testimonial-card .fd-quote-mark,
    .fd-testimonials-section .fd-testimonial-card blockquote::before {
        font-size: 2rem;
        line-height: 1;
        margin-bottom: 0.25rem;
    }
}

/* ==========================================================================
   MOBILE AUDIT PASS — 2026-12-01
   Every rule below is scoped to a max-width media query, so desktop rendering
   above the breakpoint is untouched. No markup, copy, route, form ID, webhook
   or .kh-visual scoping is changed here.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SERVICE DETAIL PAGES — related-services links were 38.5px tall
      (14.08px label + 8px vertical padding), under the 44px touch minimum,
      on 36 templates. Give the rows a full-width 44px hit area and phone-type
      label size. Desktop is unaffected (scoped to <=820px).
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
    .service-sidebar .sidebar-link-item {
        min-height: 44px;
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }
    /* Desktop 56px grid gap plus the sidebar's own 32px margin-top stacked up
       to a 119px void between the end of the service copy and "Service Facts".
       One gap instead of two. */
    .service-layout-grid { row-gap: 2rem; }
    .service-sidebar { margin-top: 0; }
}

/* --------------------------------------------------------------------------
   2. SUB-PAGE HERO — 72px/56px desktop padding on a 390px slide wasted ~130px
      before the first content; the h1 also clipped the last word onto its own
      line ("...CONFIDENCE / BELOW"). Tighten the block and balance the wrap.
      The contact page already overrides its own hero padding at this width,
      so excluding .contact-page leaves that page pixel-identical.
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
    body:not(.contact-page) .subpage-hero { padding: 2.5rem 0 2.25rem; }
    body:not(.contact-page) .subpage-hero h1 {
        font-size: clamp(2rem, 8.2vw, 3rem);
        line-height: 1.02;
        text-wrap: balance;
    }
    body:not(.contact-page) .subpage-hero p.subpage-lead {
        font-size: 1.0625rem;
        line-height: 1.6;
    }
}

/* --------------------------------------------------------------------------
   3. KICKER / EYEBROW LABELS — 0.76rem = 12.16px, the only text on the site
      under 12px (measured 12.2px on all 54 routes). Nudge to 12.8px on phones.
      Gold on navy keeps AA contrast; this is legibility only, not a redesign.
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
    .kicker { font-size: 0.8rem; }
    .kicker-pill { font-size: 0.78rem; }
    .footer-contact-info > div > div:first-child { line-height: 1.5; }
}

/* --------------------------------------------------------------------------
   4. FOOTER — links were 17-18px tall (line-box only). Give them the same
      44px row rhythm as the rest of the mobile nav.
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
    .footer-links a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0.15rem 0;
    }
    .footer-links { gap: 0; }
    .footer-bottom a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
    .footer-bottom .footer-legal-affiliations + div a,
    .footer-bottom > div:last-child a { margin-right: 1rem; }
    /* Phone/email inside sidebar cards and the contact info panel were
       17-18px line-box links. Grow the hit area without moving the layout. */
    .sidebar-card a[href^="tel:"],
    .sidebar-card a[href^="mailto:"],
    .contact-details-list a,
    .contact-info-panel a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

/* --------------------------------------------------------------------------
   5. PROJECT-DESCRIPTION TEXTAREA — opens at ~2 lines (74px) for a free-text
      work request. Give it a phone-sized starting height.
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
    #pcw-contact-form textarea { min-height: 148px; }
    #pcw-contact-form .form-label { min-height: 0; }
}

/* --------------------------------------------------------------------------
   6. SERVICE MODAL — the card was pinned to max-height:86vh with a 4vh
      top margin while the overlay also scrolls, so the last paragraph was cut
      at the card's rounded bottom edge. Use the dynamic viewport height and
      reserve safe-area for the home indicator.
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
    .modal { padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); }
    .modal-card {
        max-height: calc(100dvh - 2rem - env(safe-area-inset-bottom, 0px));
        margin: 0 auto;
        padding: 1.5rem 1.25rem 1.75rem;
    }
}

/* --------------------------------------------------------------------------
   7. CAPABILITY / WORK CARD HEADINGS — long single-line names were running
      the full card width on phones. Balance multi-word wraps.
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
    .capability-tile h3 { text-wrap: balance; }
    .dir-card h3 { text-wrap: balance; }
}

/* --------------------------------------------------------------------------
   8. TESTIMONIAL TRACK — desktop stability only (min-width, so phones are
      untouched). The content-sized cards above let the track shrink to the
      currently visible group, so on desktop the section height (and therefore
      the page) changed every 1.5s as the carousel advanced — HEAD's live
      geometry was a constant height for the whole track. Restoring an auto
      track height on desktop gives back that exact geometry (auto = tallest
      card in the row) while every card keeps sizing to its own content.
      Measured at 1440: home 9849-10259px oscillating -> 10259px constant;
      /testimonials/ 2407-3801px -> 3801px constant, both identical to HEAD.
   -------------------------------------------------------------------------- */
@media (min-width: 821px) {
    .review-carousel.is-active > .review-track {
        height: auto !important;
    }
}
