/* Full-bleed rotating homepage photography */
.portfolio-hero {position:relative;isolation:isolate;display:flex;align-items:flex-end;min-height:clamp(480px,44vw,730px);overflow:hidden;background:#293535}
.portfolio-hero .project-view,.portfolio-hero .project-image {position:absolute;inset:0;width:100%;height:100%;margin:0}
.portfolio-hero .project-view {z-index:-1}
.portfolio-hero .project-image img {width:100%;height:100%;object-fit:cover;object-position:var(--focus,50% 48%);filter:brightness(1.13)}
.project-image img[src*="/073-"] {--focus:28% 49%}
.project-image img[src*="/006-"] {--focus:24% 49%}
.project-image img[src*="/114-"] {--focus:23% 48%}
.project-image img[src*="/120-"] {--focus:66% 50%}
.project-image img[src*="/010-"] {--focus:65% 55%}
.project-image img[src*="/067-"] {--focus:58% 56%}
.portfolio-hero .project-image:after {content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,18,20,.78),rgba(8,18,20,.38) 42%,transparent 74%),linear-gradient(0deg,rgba(8,18,20,.48),transparent 52%)}
.portfolio-hero .field-intro {background:none;display:block;position:static;padding:clamp(42px,6vw,92px) 6vw;width:min(740px,72%);color:white}
.portfolio-hero .field-intro h1 {font-size:clamp(44px,4.9vw,82px);max-width:15ch;color:white}
.portfolio-hero .field-intro .eyebrow {color:#ffb18c}
.portfolio-hero .hero-summary {margin-top:18px}
.portfolio-hero .hero-summary p {max-width:44ch}
.portfolio-hero .project-view figcaption {position:absolute;bottom:20px;right:3vw;padding:0;z-index:2}
.portfolio-hero .project-controls {padding:6px 10px;background:#152226e8;border-radius:4px}
.portfolio-hero .project-controls button {min-height:36px}
.portfolio-hero .field-intro {pointer-events:none}
.portfolio-hero .field-intro a {pointer-events:auto}
.header nav a[href="/safety"],.footer a[href="/safety"] {color:#ac3c0b}
.footer a[href="/safety"] {color:#ffad7e}
.page-index .field-stats {background:#f5efe5}
.page-index .field-stats:before {opacity:1;background:linear-gradient(90deg,#f4efe8 2%,rgba(244,239,232,.97) 34%,rgba(244,239,232,.84) 69%,rgba(244,239,232,.64)),url('/portfolio-photos/003-l.webp') center 44%/cover}
.page-index .v4-safety-home {background:#152328;color:#fff}
.page-index .v4-safety-home:before {opacity:1;background:linear-gradient(90deg,rgba(13,27,30,.75),rgba(13,27,30,.88) 55%,rgba(13,27,30,.66)),url('/portfolio-photos/web-safety-field-l.webp') center 43%/cover}
.page-index .v4-safety-home h2,.page-index .v4-safety-home p:not(.safety-label),.page-index .v4-safety-home .under-link {color:white}
.page-index .v4-safety-home .safety-label,.r14-proof .r14-kicker {color:#ff995d;font-size:clamp(24px,2.9vw,48px);font-weight:700;letter-spacing:-.035em;line-height:1.05;margin:0 0 18px}
.page-index .v4-safety-home .field-emr {color:#fff}
.r14-about-hero>img {object-fit:cover;object-position:66% 42%;filter:brightness(1.08)}
.r14-proof {background:linear-gradient(90deg,#19272aee,#19272ad9),url('/portfolio-photos/011-l.webp') center/cover;color:#fff}
.r14-proof :is(h2,p,.r14-link,strong,span) {color:white}
.r14-proof .r14-kicker {color:#ffa36e}
.r14-proof .r14-metrics div {background:#18282bc4}
.r14-about-history:not(.portfolio-tech) {background:linear-gradient(90deg,#f5f2eaef,#f5f2eae8),url('/portfolio-photos/068-l.webp') center 55%/cover}
@media(max-width:760px) {
 .portfolio-hero {min-height:clamp(520px,78svh,690px)}
 .portfolio-hero .field-intro {padding:130px 6vw 85px;width:100%}
 .portfolio-hero .field-intro h1 {font-size:clamp(39px,9vw,54px)}
 .portfolio-hero .project-image:after {background:linear-gradient(0deg,rgba(7,18,20,.91) 2%,rgba(7,18,20,.76) 37%,rgba(7,18,20,.34) 65%,rgba(7,18,20,.03) 90%)}
 .portfolio-hero .project-view figcaption {bottom:15px;right:6vw}
 .page-index .field-stats:before {background-position:60% center}
}

/* Keep every field photograph inside its frame. The background color extends to
   the banner edges when the source proportions differ from the display. */
.portfolio-hero {min-height:clamp(465px,39vw,670px);background:#233133}
.portfolio-hero .project-view {background:linear-gradient(115deg,#172729,#334442 63%,#1c292b)}
.portfolio-hero .project-image {inset:0 0 0 auto;width:64%;height:100%}
.portfolio-hero .project-image img {object-fit:contain;object-position:center;filter:brightness(1.1);position:absolute;inset:0}
.portfolio-hero .project-image:after {display:none}
.portfolio-hero .field-intro {width:36%;padding:50px 1.5vw 50px 5vw;align-self:center}
.portfolio-hero .field-intro h1 {font-size:clamp(35px,3.6vw,68px)}
.portfolio-hero .project-view figcaption {z-index:4}
.page-index .field-stats:before {background:linear-gradient(90deg,#f4efe8 20%,rgba(244,239,232,.9) 57%,rgba(244,239,232,.64)),url('/portfolio-photos/003-l.webp') right center / contain no-repeat}
.page-index .v4-safety-home:before {background:linear-gradient(90deg,rgba(13,27,30,.92),rgba(13,27,30,.79) 55%,rgba(13,27,30,.69)),url('/portfolio-photos/web-safety-field-l.webp') right center / contain no-repeat}
.r14-about-hero>img {object-fit:contain;object-position:right center}
.r14-proof {background:linear-gradient(90deg,#19272af7,#19272ac9),url('/portfolio-photos/011-l.webp') right center/contain no-repeat,#19272a}
.r14-about-history:not(.portfolio-tech) {background:linear-gradient(90deg,#f5f2eafa,#f5f2eadb),url('/portfolio-photos/068-l.webp') right center/contain no-repeat,#f5f2ea}
.portfolio-gallery {position:relative;isolation:isolate;overflow:hidden;border-radius:8px;background:#1a2527}
.portfolio-gallery .r14-gallery-stage {aspect-ratio:1.65;background:linear-gradient(120deg,#263335,#111d20)}
.portfolio-gallery .r14-gallery-stage .r14-slide {background:transparent;transition:opacity .32s ease;visibility:visible;pointer-events:none}
.portfolio-gallery .r14-gallery-stage .r14-slide img {object-fit:contain;object-position:center;transform:none;background:transparent}
.portfolio-gallery .r14-gallery-controls {position:absolute;inset:0;border:0;margin:0;padding:0;pointer-events:none;z-index:3}
.portfolio-gallery .r14-gallery-count {position:absolute;bottom:12px;right:14px;color:#fff;background:#172427d9;border-radius:20px;padding:4px 12px;font-size:12px;letter-spacing:.07em;font-variant-numeric:tabular-nums}
.portfolio-gallery .r14-gallery-controls button {position:absolute;inset-block:0;width:18%;height:100%;min-width:48px;pointer-events:auto;border:0;background:transparent;color:transparent;font-size:0;display:flex;align-items:center;padding:0 12px;outline-offset:-4px}
.portfolio-gallery [data-gallery-prev] {left:0;justify-content:flex-start}
.portfolio-gallery [data-gallery-next] {right:0;justify-content:flex-end}
.portfolio-gallery .r14-gallery-controls button::after {display:grid;place-content:center;width:42px;height:42px;border-radius:50%;border:1px solid #ffffff80;color:white;background:#132023bd;opacity:.7;transition:opacity .2s,transform .2s;font:24px/1 system-ui}
.portfolio-gallery [data-gallery-prev]::after {content:'‹'}
.portfolio-gallery [data-gallery-next]::after {content:'›'}
.portfolio-gallery .r14-gallery-controls button:is(:hover,:focus-visible)::after {background:#973b15;opacity:1;transform:scale(1.13)}
@media(hover:none){.portfolio-gallery .r14-gallery-controls button::after{opacity:1}}
@media(prefers-reduced-motion:reduce){.portfolio-gallery *,.portfolio-gallery *::after{transition:none!important}}
@media(max-width:760px){
 .portfolio-hero {display:grid;grid-template-rows:minmax(210px,58vw) auto;min-height:0}
 .portfolio-hero .project-image {width:100%;inset:0 0 auto;height:max(210px,58vw)}
 .portfolio-hero .field-intro {grid-row:2;width:100%;padding:25px 6vw 68px}
 .portfolio-hero .field-intro h1 {font-size:clamp(36px,8vw,54px);max-width:18ch}
 .portfolio-hero .project-view figcaption {bottom:14px}
 .portfolio-gallery .r14-gallery-stage {aspect-ratio:1.45}
}

.portfolio-hero .project-image {background-position:center;background-size:contain;background-repeat:no-repeat}
.photo-enter {animation:field-photo-enter .32s ease-out}
@keyframes field-photo-enter {from {opacity:0} to {opacity:1}}
@media(prefers-reduced-motion:reduce){.photo-enter{animation:none}}

.r14-about-history.team-history{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto 1fr;gap:18px clamp(30px,5vw,84px);align-items:center}
.team-history>.r14-kicker{grid-column:1;align-self:end;margin:0}
.team-history>div{grid-column:1;align-self:start}
.team-history>.team-photo{grid-column:2;grid-row:1 / 3;margin:0}
.team-photo img{display:block;width:100%;height:auto;border-radius:8px}
@media(max-width:760px){.r14-about-history.team-history{display:flex;flex-direction:column;align-items:stretch}.team-history>.r14-kicker{align-self:start}.team-history>.team-photo{margin-top:10px}}

/* Each slide has an opaque matte so the outgoing photo fades out at its edges too. */
.portfolio-hero .project-image img {background:#273537}
.company-profile-link {display:inline-block;margin-top:14px;color:inherit;text-underline-offset:4px}
.r14-hero.r14-about-hero {display:grid;grid-template-columns:1fr 1.1fr;align-items:center;gap:5vw;background:#f3f0e9;color:#192629;padding:clamp(36px,5vw,85px) 6vw;min-height:0}
.r14-about-hero .r14-hero-shade {display:none}
.r14-hero.r14-about-hero>img {position:static;grid-column:2;grid-row:1;object-fit:contain;width:100%;height:auto;min-height:0;filter:none;opacity:1;border-radius:8px;transform:none}
.r14-about-hero .r14-hero-copy {grid-column:1;grid-row:1;padding:0;width:auto;max-width:none}
.r14-about-hero .r14-hero-copy :is(h1,em,p:last-child) {color:#192629}
.r14-about-hero .r14-kicker {color:#a54017}
.r14-about-hero .r14-hero-copy h1 {font-size:clamp(40px,5.1vw,76px)}
@media(max-width:760px){.r14-hero.r14-about-hero {display:flex;flex-direction:column-reverse;align-items:stretch;gap:24px}}
