/* Home production additions. Approved CSS lives untouched in base.css and home.css. */
.photo picture{display:contents}
/* --- Project cards: components/project-cards.html, scoped to #work and renamed because its
   class names (.project, .projects, .brand, .link) collide with Home's own. Values unchanged. --- */
#work .pair{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:29px}
#work .pcard{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;min-height:clamp(300px,29vw,440px);padding:34px 14% 36px 7%;box-sizing:border-box;color:white;text-decoration:none;overflow:hidden;border-radius:18px;clip-path:polygon(0 0,100% 0,91% 100%,0 100%)}
#work .pcard.pos-2{clip-path:polygon(9% 0,100% 0,100% 100%,0 100%);padding-left:15%}
#work .pcard:before,#work .pcard:after{content:'';position:absolute;inset:0;z-index:-1}
#work .pcard:before{display:none}
#work .pcard-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-2;pointer-events:none}
#work .pcard:after{background:linear-gradient(90deg,rgba(12,16,19,.94),rgba(12,16,19,.75) 32%,rgba(12,16,19,.13) 80%)}
#work .pcard.tone-warm:after{background:linear-gradient(90deg,rgba(30,22,15,.94),rgba(30,22,15,.72) 35%,rgba(30,22,15,.10) 82%)}
#work .pcard-logo{height:56px;width:220px;max-width:100%;object-fit:contain;object-position:left center}
#work .pcard h3{font:500 clamp(21px,2.1vw,34px)/1.24 Inter,Arial,sans-serif;max-width:340px;margin:18px 0}
#work .pcard-link{border-bottom:1px solid currentColor;padding-bottom:5px;font-weight:600}
#work .pcard:focus-visible{outline:3px solid white;outline-offset:-8px}
@media(max-width:760px){#work .pair{grid-template-columns:1fr;gap:18px}#work .pcard,#work .pcard.pos-2{clip-path:none;padding:28px;min-height:300px}#work .pcard h3{font-size:24px}
  /* Spec: one card at a time on mobile, with the approved arrows/dots. */
}
@media(min-width:761px){
  /* Component: two low, wide cards, 1.90:1, enlarged beyond the text column (centered, 90vw up to 1440px). */
  #work .pair{width:min(90vw,1440px);max-width:none;position:relative;left:50%;transform:translateX(-50%);gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
  #work .pcard,#work .pcard.pos-2{aspect-ratio:1.90;min-height:0;padding:5.8% 14% 7% 7%;border-radius:15px}
  #work .pcard.pos-2{padding-left:15%}
  #work .pcard-logo{width:32%;height:clamp(28px,3.5vw,50px)}
  #work .pcard h3{font-size:clamp(18px,1.8vw,27px);max-width:65%;margin:10px 0}
  #work .pcard-link{font-size:clamp(14px,1.35vw,19px)}
}
/* --- Logo band: 14 logos, component speed (45s for one full set). --- */
.logos .track{animation-duration:45s}
/* --- Testimonials: stable height sized to the longest quote (set by JS); shorter quotes are centered. --- */
#quoteFrame{display:flex;flex-direction:column;justify-content:center}
/* --- Closing CTA, owner-approved (25 Nov): same treatment as every page's closing section (Services is the
   reference): centered, standard section-heading size, divider line, same spacing and button size, no glow.
   Supporting line removed at owner's request; Home keeps its heading, both buttons and the visible email. --- */
.contact{padding:65px 0 75px;gap:0;border-top:1px solid rgba(255,255,255,.17)}
.contact:before{display:none}
.contact h2{font-size:clamp(30px,3.35vw,46px);line-height:1.3}
.contact .buttons{margin-top:24px}
.contact .btn{padding:13px 22px;font-size:14px}
.contact>a{margin-top:18px}
@media(max-width:760px){.contact{padding:65px 0 75px}.contact h2{font-size:clamp(30px,3.35vw,46px)}.contact .btn{padding:13px 22px}}
/* --- Hero seam fix (owner request 25 Nov). The extended hero image has a hard vertical edge where the original
   photograph meets the extended background: 1086px from the image's right edge (57.16% of its width). The image is
   right-aligned at a height of 125% of the panel (112% at 761–1000px), so the seam sits a fixed multiple of the
   panel height from the right. A soft page-colour fade is laid over it, ending before the subject. Photo untouched. --- */
@media(min-width:761px){
  .hero .photo{container-type:size}
  .hero .photo::after{content:'';position:absolute;top:0;bottom:0;left:0;pointer-events:none;
    --seam:calc(100cqh * 1.25 * 1900 / 1448 * 0.5716);
    right:calc(var(--seam) - 170px);
    background:linear-gradient(90deg,rgba(40,47,56,.82) 0,rgba(40,47,56,.82) calc(100% - 430px),rgba(40,47,56,.55) calc(100% - 170px),rgba(40,47,56,0) 100%)}
}
@media(min-width:761px) and (max-width:1000px){.hero .photo::after{--seam:calc(100cqh * 1.12 * 1900 / 1448 * 0.5716)}}

/* --- Selected projects slider (owner request 25 Nov): controls under the cards; moves one card at a time so more
   projects can be added. Slant follows the slot (left card slants right, right card slants left), overlay tone
   follows the project. --- */
#work .pcard[hidden]{display:none}
.pcontrols{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:24px}
.pcontrols .dots{margin:0}
/* Owner request 25 Nov: magenta dots only (one per project) under the cards. */
#projectDots{gap:12px}
#projectDots .dot{width:10px;height:10px;background:#c00078;opacity:.35;transition:opacity .2s}
#projectDots .dot:hover{opacity:.7}
#projectDots .dot.active{opacity:1}
#projectDots .dot:focus-visible{outline:2px solid #fff;outline-offset:3px}
/* Owner request 25 Nov: smaller testimonial type (was clamp(23px,3vw,36px)). */
.quote{font-size:clamp(20px,2.1vw,28px);line-height:1.5;max-width:760px}
/* Owner request 25 Nov: project cards sit inside the page column, aligned with every other element's edges
   (previously enlarged to 90vw beyond the column). */
@media(min-width:761px){#work .pair{width:auto;left:auto;transform:none}}
/* Owner request 25 Nov: industry cards take the same magenta hover border as the Services cards. */
.industry:hover{border-color:#c0007899}
