/* QA report follow-up: scoped behavior and responsive corrections. */
.ds-site .footer-social a { width:fit-content; max-width:100%; }
.ds-site .ds-load-status.is-success { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.ds-site .ds-load-more > button[hidden] { display:none; }
.ds-site .ds-load-more .arrow { filter:brightness(0) invert(1) drop-shadow(.45px 0 0 #fff); }
.ds-site .blog-categories a { display:block; white-space:normal; overflow-wrap:anywhere; }
.blog-page.ds-site .blog-categories li::before { top:calc(.8em - 4px); }
.ds-site .blog-search input { min-width:0; }
.ds-site .ds-article-back { padding-inline:0; border:0; justify-content:flex-start; }
.ds-site .draft-contact-form select { color:var(--ink); text-overflow:ellipsis; }
.ds-site .draft-contact-form select:has(option:checked[value=""]) { color:var(--text-placeholder); }
.ds-site .draft-contact-form select option { color:var(--ink); background:#fff; }
.ds-site .draft-contact-form .gfield--type-checkbox.gfield_contains_required .gfield_checkbox label::after { content:' *'; color:#df1936; }
.home.ds-site .industry-card > [role=tabpanel] { min-height:var(--ds-industry-panel-height,0px); }
.ds-site .portfolio-popup-copy { padding-top:0; }
.portfolio-page.ds-site .portfolio-card-media--blur .portfolio-image-window { filter:blur(4px); }
.ds-site .portfolio-card-arrow { bottom:22px; filter:brightness(0) invert(1) drop-shadow(.4px 0 0 #fff); }
.ds-site .portfolio-card.is-featured .portfolio-card-arrow { bottom:22px; }
@media (hover:hover) and (pointer:fine) {
 .ds-site .portfolio-card-copy { --summary-height:calc(var(--ds-body) * 4.666666667); }
 .ds-site .portfolio-card-copy p { position:absolute; inset:auto 0 0; height:var(--summary-height); margin:0; opacity:0; transform:translateY(8px); transition:opacity .2s,transform .2s; -webkit-line-clamp:3; }
 .ds-site .portfolio-card-copy h2 { transition:transform .2s; }
 .ds-site .portfolio-card:has(.portfolio-card-copy p):has(> .portfolio-card-link:is(:hover,:focus-visible)) h2 { transform:translateY(calc(-1 * (var(--summary-height) + 15px))); }
 .ds-site .portfolio-card:has(> .portfolio-card-link:is(:hover,:focus-visible)) .portfolio-card-copy p { opacity:1; transform:none; }
}
@media(min-width:992px) {
 .home.ds-site .hero { min-height:var(--ds-hero-needed,0px); }
 .home.ds-site .hero-copy h2 { white-space:normal; }
 .ds-site .projects-section .project-card h3 { font-size:clamp(18px,1.25vw,24px); line-height:1.333333333; }
}
@media(max-width:1919px) {
 .contact-page.ds-site main .contact-form-panel .ds-gravity-wrapper .draft-contact-form select.gfield_select { height:clamp(48px,3.333333333vw,64px); min-height:48px; padding:10px 36px 10px 14px; line-height:24px; }
}
@media(max-width:1199px) {
 .ds-site .hero-services button.is-active::before { left:0; right:0; width:100%; max-width:100%; }
}
@media(max-width:991px) {
 .ds-site .nav-bar { padding-block:12px; }
 .ds-site .stat { align-items:flex-start; }
 .ds-site .stat > div { align-self:flex-start; }
 .ds-site .stats-grid { align-items:stretch; }
 .ds-site .stat strong,.ds-site .stat .flags { min-height:36px; display:flex; align-items:center; margin-top:0; }
 .ds-site .steel-card { padding:24px; }
 .ds-site .steel-card .button { white-space:normal; text-align:left; line-height:1.4; }
 .ds-site .careers-story-grid { align-items:center; }
 .ds-site .careers-story-copy { padding-top:0; }
 .ds-site .careers-story-copy .talent-email { font-size:var(--ds-body); flex-wrap:wrap; }
 .ds-site .careers-story-copy .talent-email > span { font-size:inherit; line-height:inherit; }
 .ds-site .portfolio-popup-close { width:44px; height:44px; }
 .ds-site .portfolio-popup-close img { width:20px; height:20px; }
 .ds-site .osp-step p { overflow-wrap:anywhere; }
}
@media(max-width:767px) {
 .ds-site .project-card.is-active p { white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; max-width:100%; }
 .ds-site .logo-slide img { width:100px; max-width:100px; height:44px; max-height:44px; object-fit:contain; }
 .ds-site .logo-slide { display:flex; align-items:center; justify-content:center; }
 .portfolio-page.ds-site .ds-load-more { top:calc(100% + 28px); }
 .portfolio-page.ds-site .portfolio-section { padding-bottom:120px; }
 .ds-site .job-meta img { width:18px; height:18px; object-fit:contain; }
 .about-page.ds-site .company-intro { padding-bottom:0; }
 .about-page.ds-site .company-copy { padding-bottom:40px; }
}
@media(prefers-reduced-motion:reduce) {
 .ds-site .portfolio-card-copy :is(h2,p) { transition:none; }
}

/* Tablet/photo panels preserve the complete supplied art instead of a fixed-height crop. */
@media(max-width:991px) {
 .ds-site .inner-hero:not(.ds-page-hero):not(.ds-article-hero) > .inner-hero-image {
  position:relative; inset:auto; width:100%; height:auto; max-height:none; object-fit:contain; aspect-ratio:auto;
 }
 .ds-site .blog-search input:focus:not(:focus-visible) { outline:none; box-shadow:none; }
}
.blog-page.ds-site .blog-categories li::before { top:calc(.5lh - 4.5px); }
@media(max-width:1199px) {
 .ds-site .steel-card { padding:24px; }
 .ds-site .steel-card .button { white-space:normal; text-align:left; line-height:1.4; }
 .ds-site .careers-story-grid { align-items:center; }
 .ds-site .careers-story-copy { padding-top:0; }
 .careers-page.ds-site .careers-story-copy h2 { font-size:clamp(24px,2.5vw,32px); line-height:1.2; }
 .ds-site .careers-story-copy .talent-email > span { font-size:inherit; line-height:inherit; }
}
@media(min-width:992px) and (max-width:1199px) {
 .ds-site .osp-step { padding-right:24px; }
 .ds-site .osp-step h3 { width:100%; white-space:normal; min-height:2.8em; line-height:1.4; margin-top:0; }
 .ds-site .osp-step:not(:last-child)::after { right:12px; height:100%; }
 .ds-site .osp-step:not(:last-child)::before { right:4px; }
}

.portfolio-page.ds-site .portfolio-card.is-featured .portfolio-card-copy { right:70px; }

@media(max-width:1199px) {
 .ds-site .stat { align-items:flex-start; }
 .ds-site .stat > div { align-self:flex-start; }
}
@media(max-width:991px) {
 .ds-site .nav-bar { height:auto; min-height:78px; padding-block:12px; }
 .ds-site .stat:last-child > div { display:grid; grid-template-rows:36px auto; row-gap:7px; }
 .ds-site .stat:last-child .coverage-flags { margin-bottom:0; align-self:center; }
}
@media(max-width:767px) {
 .ds-site .stat { padding-bottom:60px; }
 .ds-site .steel-card { padding:20px; }
}
@media(max-width:1199px) {
 .ds-site .steel-card .button { height:auto; min-height:44px; }
}
@media(max-width:991px) {
 .portfolio-page.ds-site .portfolio-banner-art { height:auto; }
 .portfolio-page.ds-site .portfolio-banner-image { position:static; width:100%; height:auto; object-fit:contain; }
}
