/* Homepage-only reference treatment. Booking styles remain in site.css. */
.reference-header{background:#080b0d;color:#fff;position:relative;z-index:2}.reference-header-inner{height:clamp(86px,6.1vw,110px);width:calc(100% - 8.8vw);margin:auto;display:flex;align-items:center;gap:3vw}.reference-logo{display:flex;align-items:center;justify-content:flex-start;width:18vw;max-width:285px;flex-shrink:0;text-decoration:none}.reference-logo img{display:block;width:100%;height:clamp(68px,5.2vw,90px);object-fit:cover;object-position:50% 50%}.logo-file-pending{font-size:25px;font-weight:800;letter-spacing:1px}.logo-file-pending small{display:block;font-size:9px;font-weight:400;letter-spacing:1px;color:#bfc0c2;margin-top:6px}.reference-header nav{display:flex;flex:1;justify-content:space-between;gap:1.5vw;font-size:clamp(12px,1.2vw,20px);font-weight:500;white-space:nowrap}.reference-header nav>a,.reference-nav-unavailable{display:inline-flex;align-items:center;min-height:44px;position:relative;text-decoration:none}.reference-header nav>a[aria-current=page]{text-decoration:none}.reference-home-link:after{content:'';position:absolute;left:0;right:0;bottom:1px;background:#e10013;height:3px}.reference-nav-unavailable{color:#d1d2d3;cursor:default}.reference-book,.reference-message{display:inline-flex;justify-content:center;align-items:center;gap:10px;min-height:55px;line-height:1.2;font-size:clamp(13px,1.13vw,21px);letter-spacing:-.4px;font-weight:700;padding:14px 18px;border:0;border-radius:13px;text-decoration:none;white-space:nowrap}.reference-book{background:#d90010;color:white}.reference-book:hover{background:#ba000d}.reference-book svg{display:block;width:26px;height:26px;stroke:currentColor;stroke-width:1.8;fill:none;flex-shrink:0}.reference-header>.reference-header-inner>.reference-book{flex-shrink:0;min-height:47px;border-radius:13px;font-size:clamp(12px,1.15vw,21px);padding:12px 17px}.reference-header .reference-book svg{width:24px;height:24px}.hero-reference{position:relative;isolation:isolate;height:50.1vw;min-height:670px;max-height:980px;width:100vw;margin-left:calc((min(1200px,100vw - 40px) - 100vw)/2);overflow:hidden;background:radial-gradient(ellipse at 34% 28%,#161a1c 0,#0b0e10 40%,#070a0c 76%);color:white}.reference-panels{position:absolute;inset:0;z-index:-1;overflow:hidden}.reference-panel{position:absolute;top:0;bottom:0;margin:0;overflow:hidden;background:#202326;isolation:isolate}.reference-panel-1{left:32.4%;width:29.4%;clip-path:polygon(38% 0,100% 0,62% 100%,0 100%)}.reference-panel-2{left:52.5%;width:30.4%;clip-path:polygon(33% 0,100% 0,67% 100%,0 100%)}.reference-panel-3{left:73.8%;width:32.2%;clip-path:polygon(31% 0,100% 0,69% 100%,0 100%)}.reference-panel img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 50%}.reference-panel:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#0002 0,transparent 65%,#0001 100%)}.reference-panel-1:before{content:'';position:absolute;left:0;top:0;bottom:0;width:100%;clip-path:polygon(38% 0,38.5% 0,.5% 100%,0 100%);background:#e00016;z-index:2;pointer-events:none}.reference-photo-pending{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:10px;text-align:center;padding:20px 32%;background:linear-gradient(140deg,#34383b,#171b1e);color:#d4d6d8}.reference-photo-pending>span{font-size:48px;font-weight:700;color:#ffffff18}.reference-photo-pending strong{font-size:13px;line-height:1.4;letter-spacing:1px}.reference-photo-pending small{font-size:9px;line-height:1.4;color:#999fa3}.reference-panel-2 .reference-photo-pending{background:linear-gradient(140deg,#35352e,#181c1d)}.reference-panel-3 .reference-photo-pending{background:linear-gradient(140deg,#30272a,#15191c)}.reference-copy{position:relative;z-index:1;width:36%;padding:4.65vw 0 2.4vw;margin-left:4.6vw}.reference-eyebrow{display:flex;align-items:center;gap:16px;font-size:clamp(11px,1.16vw,20px);line-height:1.4;font-weight:700;letter-spacing:3px;white-space:nowrap;margin:0 0 2.1vw}.reference-eyebrow>span{width:6.8vw;max-width:115px;height:2px;background:#fff;flex-shrink:0}.reference-copy h1{font-size:clamp(48px,4.28vw,82px);line-height:1.025;letter-spacing:-1.8px;font-weight:700;margin:0 0 2.1vw;width:max-content;max-width:100%}.reference-city{display:inline-block;text-decoration-line:underline;text-decoration-color:#fff;text-decoration-thickness:5px;text-underline-offset:9px;white-space:nowrap}.reference-description{font-size:clamp(16px,1.36vw,24px);line-height:1.28;margin:0;max-width:31vw;font-weight:400;color:#f2f2f2}.reference-actions{display:flex;align-items:center;gap:13px;margin-top:2.8vw;margin-left:-.6vw}.reference-actions .reference-book{min-height:55px;padding:15px 18px;gap:10px}.reference-message{min-height:55px;background:#fff;color:#07090a;padding:13px 18px;gap:10px}.reference-message:hover{background:#e8e8e8}.reference-message svg{display:block;width:31px;height:31px;stroke:currentColor;stroke-width:1.7;fill:none;flex-shrink:0}.reference-message svg path:last-child{fill:currentColor;stroke:none}.reference-draft-note{font-size:8px;line-height:1.5;color:#c7baa0;margin:11px 0 0;letter-spacing:.3px}.hero-reference a:focus-visible,.reference-header a:focus-visible{outline:3px solid #e5bb68;outline-offset:4px}
@media(min-width:1600px){.reference-header-inner{width:calc(100% - 8.8vw)}.reference-copy{width:36%}.reference-actions .reference-book,.reference-message{min-height:64px;padding:17px 21px}}
@media(min-width:701px) and (max-width:1150px){.reference-header-inner{width:calc(100% - 48px);gap:22px;height:auto;min-height:90px;flex-wrap:wrap;padding:14px 0}.reference-logo{width:205px;margin-right:auto}.reference-logo img{height:65px}.reference-header nav{order:3;width:100%;flex:auto;justify-content:space-between;font-size:14px;gap:15px}.hero-reference{height:720px;min-height:720px}.reference-copy{width:44%;margin-left:28px;padding-top:55px}.reference-copy h1{font-size:clamp(42px,5.1vw,58px);letter-spacing:-1.5px}.reference-eyebrow{font-size:11px;letter-spacing:2px;gap:10px;margin-bottom:28px}.reference-eyebrow>span{width:50px}.reference-description{font-size:16px;max-width:340px;margin-top:25px}.reference-actions{flex-direction:column;align-items:flex-start;margin-top:30px;gap:10px}.reference-actions>a{min-width:245px}.reference-panel-1{left:43%;width:30%}.reference-panel-2{left:62%;width:30%}.reference-panel-3{left:81%;width:31%}.reference-photo-pending strong{font-size:10px}}
@media(max-width:700px){.reference-header-inner{width:calc(100% - 32px);height:auto;min-height:0;gap:15px;flex-wrap:wrap;padding:12px 0 10px}.reference-logo{width:145px;max-width:none;margin-right:auto}.reference-logo img{height:53px}.logo-file-pending{font-size:18px;letter-spacing:.3px}.logo-file-pending small{font-size:6px;letter-spacing:.4px}.reference-header>.reference-header-inner>.reference-book{font-size:10px;letter-spacing:-.3px;min-height:42px;padding:10px 9px;border-radius:8px;gap:6px}.reference-header .reference-book svg{width:18px;height:18px}.reference-header nav{order:3;flex:auto;display:flex;width:100%;justify-content:space-between;gap:5px;font-size:10px;overflow:visible}.reference-header nav>a,.reference-nav-unavailable{min-height:35px}.reference-home-link:after{height:2px}.hero-reference{height:auto;min-height:0;max-height:none;width:100vw;margin-left:-18px;display:flex;flex-direction:column;overflow:hidden}.reference-copy{width:100%;margin:0;padding:32px 22px 25px;order:0}.reference-eyebrow{font-size:10px;letter-spacing:2px;gap:12px;margin-bottom:23px}.reference-eyebrow>span{width:48px;height:2px}.reference-copy h1{font-size:clamp(35px,10.25vw,58px);letter-spacing:-1.3px;line-height:1.03;margin-bottom:24px}.reference-city{text-decoration-thickness:3px;text-underline-offset:6px}.reference-description{max-width:430px;font-size:14px;line-height:1.5}.reference-actions{margin:25px 0 0;gap:10px;display:grid;grid-template-columns:1fr}.reference-actions .reference-book,.reference-message{width:100%;min-height:51px;border-radius:9px;font-size:14px;letter-spacing:-.2px;padding:12px 15px;gap:10px}.reference-book svg{width:24px;height:24px}.reference-message svg{width:28px;height:28px}.reference-panels{position:relative;order:1;inset:auto;z-index:0;flex:none;width:100%;height:270px;overflow:hidden;margin-top:5px}.reference-panel-1{left:-12%;width:49%;clip-path:polygon(27% 0,100% 0,73% 100%,0 100%)}.reference-panel-2{left:25%;width:49%;clip-path:polygon(27% 0,100% 0,73% 100%,0 100%)}.reference-panel-3{left:62%;width:49%;clip-path:polygon(27% 0,100% 0,73% 100%,0 100%)}.reference-panel-1:before{clip-path:polygon(27% 0,28% 0,1% 100%,0 100%)}.reference-photo-pending{padding:15px 27%;gap:8px}.reference-photo-pending>span{font-size:30px}.reference-photo-pending strong{font-size:9px;letter-spacing:.3px}.reference-photo-pending small{font-size:7px}.reference-draft-note{font-size:7px;max-width:290px;margin-top:13px}}
@media(max-width:359px){.reference-logo{width:114px}.reference-header>.reference-header-inner>.reference-book{font-size:9px}.reference-header nav{font-size:9px}.reference-copy{padding-inline:18px}.reference-eyebrow{font-size:9px;letter-spacing:1.4px}.reference-copy h1{font-size:35px}}




@media(min-width:1151px){
 .reference-panel-1{left:31%;width:33%;clip-path:polygon(34% 0,100% 0,66% 100%,0 100%)}
 .reference-panel-2{left:53%;width:33%;clip-path:polygon(34% 0,100% 0,66% 100%,0 100%)}
 .reference-panel-3{left:75%;width:33%;clip-path:polygon(34% 0,100% 0,66% 100%,0 100%)}
 .reference-panel-1:before{clip-path:polygon(34% 0,34.5% 0,.5% 100%,0 100%)}
}





.hero-reference .reference-expertise{color:#f04450}
/* One naturally proportioned photograph blends into the homepage hero. */
.hero-reference{display:grid;grid-template-columns:38% 62%;height:auto;min-height:0;max-height:none;background:#0b0e10;align-items:center}
.reference-copy{grid-column:1;grid-row:1;width:auto;margin-left:4.6vw;padding:50px 20px 50px 0;align-self:center}
.reference-copy h1{font-size:clamp(42px,4.28vw,82px)}
.reference-description{max-width:100%;line-height:1.45}
.reference-eyebrow{color:#f3cf54}.reference-eyebrow>span{background:currentColor}
.hero-reference .reference-expertise{color:#ff4558}
.reference-actions{flex-wrap:wrap;margin-left:0}
.reference-message{background:#0866ff;color:#fff}.reference-message:hover{background:#0758db}
.hero-photo{position:relative;grid-column:2;grid-row:1;min-width:0;width:100%;margin:0;isolation:isolate}
.hero-photo img{display:block;width:100%;height:auto;max-width:100%}
.hero-photo:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#0b0e10 0%,#0b0e1080 6%,transparent 23%),linear-gradient(270deg,#0b0e10e6 0%,#0b0e1059 5%,transparent 19%),linear-gradient(180deg,#0b0e10cc 0%,transparent 15%),linear-gradient(0deg,#0b0e10ed 0%,#0b0e1066 7%,transparent 25%)}
@media(min-width:701px) and (max-width:1150px){.hero-reference{grid-template-columns:42% 58%}.reference-copy{margin-left:28px;padding:40px 20px 40px 0}.reference-copy h1{font-size:clamp(36px,4.8vw,55px)}.reference-actions{gap:10px}}
@media(max-width:700px){.hero-reference{display:flex;flex-direction:column;height:auto;min-height:0;max-height:none}.reference-copy{width:100%;margin:0;padding:28px 22px 24px;align-self:auto;order:0}.reference-copy h1{font-size:clamp(35px,10.25vw,58px)}.hero-reference .hero-photo{order:1;flex:none;height:auto;max-height:none;aspect-ratio:auto}.hero-photo:after{background:linear-gradient(90deg,#0b0e1066,transparent 7%),linear-gradient(270deg,#0b0e1066,transparent 7%),linear-gradient(180deg,#0b0e1099,transparent 8%),linear-gradient(0deg,#0b0e1099,transparent 10%)}.reference-actions{margin-top:22px}}
/* The grid creates columns only for confirmed, rendered highlights. */
.credibility-strip{position:relative;background:#e4c878;color:#171717;border-top:2px solid #7d652a;border-bottom:2px solid #7d652a;padding:40px 0;box-shadow:0 0 0 100vmax #e4c878;clip-path:inset(0 -100vmax)}
.credibility-strip ul{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);padding:0;margin:0;list-style:none}
.credibility-strip li{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:15px;padding:0 24px;font-size:17px;line-height:1.5;font-weight:600}
.credibility-strip li+li{border-left:1px solid #b99b4f80}
.credibility-strip svg{width:38px;height:38px;fill:none;stroke:#242424;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:700px){.credibility-strip{padding:18px 0}.credibility-strip ul{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-flow:column;gap:0}.credibility-strip li{min-width:0;justify-content:flex-start;font-size:clamp(11px,2.9vw,13px);line-height:1.4;gap:8px;padding:0 6px}.credibility-strip li+li{border-top:0;border-left:1px solid #b99b4f80;padding-top:0}.credibility-strip svg{width:25px;height:25px;flex-shrink:0}}

/* Preserve the full supplied wordmark and slogan at every breakpoint. */
.reference-logo img{width:100%;height:auto;object-fit:contain;mix-blend-mode:screen}

/* Descriptive service links retain the existing heading treatment. */
.service-card h3 a{color:inherit;text-decoration:none}.service-card h3 a:hover{text-decoration:underline;text-underline-offset:4px}.service-card h3 a:focus-visible{outline:2px solid var(--red);outline-offset:4px}

/* Mobile-only composition: the image begins behind the compact CTA row. */
.reference-mobile-established{display:none}
@media(max-width:700px){
 .reference-copy{padding:24px 22px 12px}
 .reference-copy .reference-eyebrow{display:none}
 .reference-copy h1{margin-bottom:18px}
 .reference-description{line-height:1.45}
 .reference-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}
 .reference-actions .reference-book,.reference-actions .reference-message{min-height:44px;padding:10px 8px;font-size:12px;gap:7px;border-radius:8px}
 .reference-actions .reference-book svg,.reference-actions .reference-message svg{width:20px;height:20px}
 .hero-reference .hero-photo{margin-top:-54px;z-index:0}
 .hero-photo:after{background:linear-gradient(180deg,#0b0e10 0%,#0b0e10c0 7%,transparent 25%),linear-gradient(90deg,#0b0e1044,transparent 6%),linear-gradient(270deg,#0b0e1044,transparent 6%),linear-gradient(0deg,#0b0e10 0%,transparent 12%)}
 .reference-mobile-established{display:block;order:2;position:relative;z-index:1;margin:0;padding:8px 22px 18px;color:#cbb77c;font-size:10px;line-height:1.5;letter-spacing:1.5px;text-align:center}
}

/* One photograph covers the entire mobile hero behind all content. */
@media(max-width:700px){
 .hero-reference{display:flex;min-height:clamp(540px,calc(90svh - 110px),600px);justify-content:space-between}
 .hero-reference .hero-photo{position:absolute;inset:0;width:100%;height:100%;margin:0;z-index:0;overflow:hidden}
 .hero-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:30% 50%}
 .hero-photo:after{background:linear-gradient(180deg,rgba(6,9,11,.91) 0%,rgba(6,9,11,.8) 30%,rgba(6,9,11,.3) 55%,transparent 76%),linear-gradient(0deg,#0b0e10df 0%,transparent 14%)}
 .reference-copy{position:relative;z-index:1;padding-top:28px;padding-bottom:0}
 .reference-copy h1{text-shadow:0 2px 12px #0004}
 .reference-description{color:#fff;text-shadow:0 1px 6px #0008}
 .reference-mobile-established{margin-top:220px;padding-bottom:18px}
}

/* Mobile content sits low, with an unobstructed photographic upper area. */
@media(max-width:700px){
 .hero-reference{min-height:clamp(700px,calc(100svh - 100px),820px);justify-content:flex-end}
 .reference-copy{padding:310px 22px 28px}
 .reference-copy .reference-eyebrow{display:flex;font-size:10px;letter-spacing:1.6px;gap:12px;margin:0 0 16px;color:#f3cf54}
 .reference-copy .reference-eyebrow>span{width:48px;height:1px;background:currentColor}
 .reference-mobile-established{display:none}
 .hero-photo img{object-position:35% 45%}
 .hero-photo:after{background:linear-gradient(180deg,transparent 0%,rgba(6,9,11,.06) 25%,rgba(6,9,11,.56) 46%,rgba(6,9,11,.88) 65%,rgba(6,9,11,.96) 100%)}
}
/* Homepage header aligns the logo and appointment link. */
.reference-header-inner{justify-content:space-between;flex-wrap:nowrap}
#services{background:#24272b;color:#fff;box-shadow:0 0 0 100vmax #24272b;clip-path:inset(0 -100vmax)}
#services .section-heading{display:block;margin-bottom:32px}
#services h2{font-size:clamp(30px,3.5vw,48px);color:#fff;letter-spacing:-1.4px}
#services .section-heading p{color:#c7ccd1;margin:18px 0 0;max-width:640px;line-height:1.6}
#services .service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.homepage-service-card{min-width:0;background:#2e3237;border:1px solid #42474d;border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.service-photo{aspect-ratio:4/3;flex:none;background:#202429;overflow:hidden}
.service-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:var(--service-photo-position,50% 50%)}
.homepage-service-card:nth-child(1){--service-photo-position:50% 55%}
.homepage-service-card:nth-child(2){--service-photo-position:50% 45%}
.service-photo-placeholder{height:100%;padding:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;background:linear-gradient(145deg,#343a41,#252a30);color:#c7ccd1}
.service-photo-placeholder>span{font-size:18px;font-weight:600}.service-photo-placeholder small{font-size:12px;line-height:1.6;color:#aab2bb}
.service-content{padding:26px;flex:1;display:flex;flex-direction:column;align-items:flex-start}
.service-content h3{font-size:26px;line-height:1.2;color:#fff;letter-spacing:-.5px;margin:0 0 15px}
.service-content p{color:#cbd0d5;font-size:14px;line-height:1.7;margin:0 0 24px}
.service-inquiry{margin-top:auto;color:#fff;font-size:13px;font-weight:600;line-height:1.5;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;text-decoration:none;border-top:1px solid #474d55;width:100%;padding-top:12px}
.service-inquiry:hover{text-decoration:underline}.service-inquiry:focus-visible{outline:2px solid #d5bd87;outline-offset:4px}
@media(max-width:700px){#services .service-grid{grid-template-columns:1fr;gap:22px}#services .section-heading{margin-bottom:26px}.service-content{padding:24px}.reference-header-inner{min-height:76px;padding-block:12px}}

/* Extend the recognition bar rules across its full-bleed background. */
.credibility-strip:before,.credibility-strip:after{content:'';position:absolute;left:calc((100% - 100vw)/2);width:100vw;height:2px;background:#7d652a;pointer-events:none}
.credibility-strip:before{top:-2px}.credibility-strip:after{bottom:-2px}

/* Full-width photographic contact section with a right-hand card. */
.photo-contact{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr);align-items:center;width:100vw;margin-left:calc((min(1200px,100vw - 40px) - 100vw)/2);background:#151719;color:#fff}
.photo-contact:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#0001,#0002 45%,#0007)}
.photo-contact-card{grid-area:1/1;justify-self:end;min-width:0;width:460px;max-width:calc(100% - 48px);margin:48px max(24px,calc((100vw - 1200px)/2));padding:32px;background:#151719;border:3px solid #000;border-radius:10px;box-shadow:0 10px 30px #0003}
.photo-contact-card h2{margin:0 0 18px;font-size:34px;line-height:1.15;letter-spacing:-.6px;color:#fff;font-weight:800}
.photo-contact-card .contact-description{margin:0 0 20px;font-size:15px;font-weight:600;color:#f0f1f2;line-height:1.65}
.photo-contact-card address{font-style:normal;color:#fff;font-size:14px;line-height:1.7;font-weight:500}
.photo-contact .reference-actions{display:grid;grid-template-columns:1fr;margin:24px 0 0;gap:12px;width:100%}
.photo-contact .reference-actions a{width:100%}
@media(min-width:701px) and (max-width:1100px){.photo-contact-card{width:44vw;margin:24px;padding:24px}.photo-contact-card h2{font-size:30px}}
@media(max-width:700px){.photo-contact{display:flex;min-height:0;padding:24px 12px;align-items:center}.photo-contact:before{background:#0003}.photo-contact-card{width:100%;max-width:none;margin:0;padding:26px 22px}.photo-contact-card h2{font-size:30px}.photo-contact .reference-actions{grid-template-columns:1fr}}
@media(max-width:650px){.photo-contact{margin-left:-18px}}

/* Equal-width contact CTAs share a single row at all supported sizes. */
.photo-contact .reference-actions{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.photo-contact .reference-actions a{min-width:0}

/* Two genuine photographs share the contact backdrop. */
.contact-photos{position:relative;grid-area:1/1;z-index:-2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));height:clamp(540px,52vw,760px);background:#151719;gap:2px}
.contact-photos img{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain;background:#151719}
.photo-contact:before{background:linear-gradient(90deg,transparent 35%,#0001 70%,#0003)}
.photo-contact-card{width:420px;margin-right:32px}
@media(min-width:701px) and (max-width:1100px){.photo-contact-card{width:44vw;margin-right:24px}}
@media(max-width:700px){.contact-photos{position:absolute;inset:0;width:100%;height:100%}.contact-photos img{object-fit:cover;object-position:60% 50%}.contact-photos .contact-photo:last-child img{object-position:45% 50%}.photo-contact:before{background:#0002}.photo-contact-card{width:100%;margin:0}}

/* Tablet-only: one photographic hero with lower-left content. */
@media(min-width:768px) and (max-width:1023px){
 .hero-reference{display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;min-height:max(640px,80svh);height:auto;max-height:none}
 .hero-reference .hero-photo{position:absolute;inset:0;grid-area:auto;width:100%;height:100%;margin:0;z-index:0;overflow:hidden}
 .hero-reference .hero-photo img{width:100%;height:100%;object-fit:cover;object-position:8% 40%}
 .hero-reference .hero-photo:after{background:linear-gradient(180deg,transparent 0%,#06090b08 32%,#06090b70 52%,#06090bd9 74%,#06090bf5 100%)}
 .hero-reference .reference-copy{position:relative;z-index:1;width:min(100%,680px);margin:0;padding:340px 40px 40px;align-self:flex-start}
 .hero-reference .reference-eyebrow{font-size:12px;letter-spacing:1.6px;gap:14px;margin:0 0 18px}
 .hero-reference .reference-eyebrow>span{width:64px;height:1px}
 .hero-reference .reference-copy h1{font-size:clamp(44px,5.7vw,56px);margin:0 0 22px;text-shadow:0 2px 12px #0004}
 .hero-reference .reference-description{max-width:580px;font-size:17px;line-height:1.5;color:#f2f2f2}
 .hero-reference .reference-actions{display:flex;flex-direction:row;align-items:stretch;flex-wrap:wrap;gap:12px;margin:22px 0 0}
 .hero-reference .reference-actions a{min-width:160px;min-height:48px;padding:12px 18px;gap:9px;font-size:15px;border-radius:9px}
 .hero-reference .reference-actions svg{width:24px;height:24px}
}

/* Desktop contact showcase: diagonal frames, upright genuine photographs. */
.contact-photo{display:block;min-width:0;min-height:0;height:100%;overflow:hidden}
.contact-photo-desktop{display:none}
@media(min-width:1024px){
 .photo-contact .contact-photos{display:block;height:clamp(660px,52vw,820px);overflow:hidden}
 .photo-contact .contact-photo{display:block;position:absolute;top:0;bottom:0;height:100%}
 .photo-contact .contact-photo:nth-child(1){left:0;width:calc(33.333% + 49px);clip-path:polygon(0 0,100% 0,calc(100% - 96px) 100%,0 100%)}
 .photo-contact .contact-photo:nth-child(2){left:calc(33.333% - 48px);width:calc(33.334% + 97px);clip-path:polygon(96px 0,100% 0,calc(100% - 96px) 100%,0 100%)}
 .photo-contact .contact-photo:nth-child(3){display:block;left:calc(66.666% - 48px);width:calc(33.334% + 48px);clip-path:polygon(96px 0,100% 0,100% 100%,0 100%)}
 .photo-contact .contact-photo img{object-fit:cover;object-position:54% 50%}
 .photo-contact .contact-photo:nth-child(3) img{object-position:50% 50%}
}

.reference-header-inner:has(.reference-service-nav) {
  column-gap: clamp(16px, 2vw, 28px);
}
.reference-header .reference-service-nav {
  flex: 0 0 auto;
  width: auto;
  margin-inline-start: auto;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 28px);
  order: 0;
  font-size: clamp(13px, 1.2vw, 18px);
}
.reference-header .reference-service-nav-home { font-weight: 700; }
.reference-service-nav a:hover,
.reference-header .reference-service-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: #e10013;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
@media (max-width: 850px) {
  .reference-header-inner:has(.reference-service-nav) {
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 0;
  }
  .reference-header .reference-service-nav {
    flex: 0 0 100%;
    order: 3;
  }
  .reference-header .reference-service-nav a { min-height: 44px; }
}

.reference-header:has(.reference-service-nav-home) .reference-logo {
  width: min(16vw, 255px);
}
@media (max-width: 1150px) {
  .reference-header:has(.reference-service-nav-home) .reference-logo { width: 186px; }
}
@media (max-width: 700px) {
  .reference-header:has(.reference-service-nav-home) .reference-logo { width: 132px; }
}
@media (max-width: 359px) {
  .reference-header:has(.reference-service-nav-home) .reference-logo { width: 105px; }
}

.hero-reference.parallax-hero {
  --hero-travel: 150px;
  --hero-motion-rate: .34;
  --hero-overscan: 36px;
  min-height: clamp(520px, 46.2vw, 900px);
}
.parallax-hero .hero-photo {
  position: absolute;
  inset: 0;
  grid-area: auto;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
.parallax-hero .hero-photo img {
  position: absolute;
  inset: auto 0 0;
  top: calc(-1 * var(--hero-overscan));
  height: calc(100% + var(--hero-overscan));
  object-fit: cover;
  object-position: right center;
  transform: translateY(var(--hero-shift, 0px));
}
.parallax-hero .hero-photo::after {
  background:
    radial-gradient(ellipse 31% 78% at 12% 56%, #000d 0%, #000a 36%, #0004 72%, transparent 100%),
    linear-gradient(90deg, #0005 0%, #0003 22%, transparent 43%);
}
@media (max-width: 1199px), (pointer: coarse) {
  .hero-reference.parallax-hero {
    --hero-travel: 95px;
    --hero-motion-rate: .28;
  }
}
@media (min-width: 701px) and (max-width: 1023px),
       (min-width: 701px) and (max-width: 1199px) and (orientation: portrait) {
  .hero-reference.parallax-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    min-height: max(630px, 80svh);
  }
  .parallax-hero .reference-copy {
    align-self: flex-start;
    width: min(100%, 660px);
    margin: 0;
    padding: 330px 40px 40px;
  }
  .parallax-hero .reference-actions { flex-direction: row; }
  .parallax-hero .hero-photo img { object-position: 36% 47%; }
}
@media (max-width: 700px) {
  .hero-reference.parallax-hero {
    --hero-travel: 62px;
    --hero-motion-rate: .24;
    min-height: clamp(700px, calc(100svh - 100px), 820px);
  }
  .parallax-hero .hero-photo img { object-position: 33% 45%; }
}
@media (max-width: 1023px), (max-width: 1199px) and (orientation: portrait) {
  .parallax-hero .hero-photo::after {
    background:
      radial-gradient(ellipse 96% 56% at 30% 80%, #000e 0%, #000a 44%, #0004 74%, transparent 100%),
      linear-gradient(180deg, transparent 28%, #0002 47%, #0007 72%, #000c 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-reference.parallax-hero { --hero-overscan: 0px; }
  .parallax-hero .hero-photo img { transform: none; }
}
