/* TechToTab V83 — Unified case-study imagery, responsive gallery, and cinematic detail heroes */
/* Consistent edge-to-edge image viewport for all 33 cards, regardless of older card-type selectors. */
body.g7-site .portfolio-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch}
body.g7-site .portfolio-grid>article.portfolio-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border-radius:16px;border:1px solid #e5e8e7;background:white;box-shadow:0 8px 28px oklch(from rgba(35,45,40,.055) l c var(--tt-accent-hue, h) / alpha)}
body.g7-site .portfolio-grid>article.portfolio-card>a:has(>img){width:100%;aspect-ratio:16/9;min-height:0!important;height:auto!important;display:block;overflow:hidden;padding:0!important;background:#171d1a}
body.g7-site .portfolio-grid>article.portfolio-card>a:has(>img)>img{display:block!important;width:100%!important;height:100%!important;min-height:0!important;aspect-ratio:16/9!important;object-fit:cover!important;object-position:center!important;padding:0!important;max-height:none!important;transition:transform .35s ease}
body.g7-site .portfolio-grid>article.portfolio-card>a:hover>img{transform:scale(1.035)}
body.g7-site .portfolio-grid>article.portfolio-card>.rice-card-body{display:flex;flex-direction:column;flex:1;padding:22px 22px 24px}
body.g7-site .portfolio-grid>article.portfolio-card>.rice-card-body h3{font-size:clamp(19px,1.35vw,23px);line-height:1.3;overflow-wrap:anywhere}
body.g7-site .portfolio-grid>article.portfolio-card>.rice-card-body p{font-size:14px;line-height:1.65}
body.g7-site .portfolio-grid>article.portfolio-card>.rice-card-body>a:last-child{margin-top:auto;align-self:flex-start}
body.g7-site .portfolio-grid .portfolio-card[data-reveal]{opacity:1}
/* Full-bleed detail hero: deep gradient left, individual topical illustration right */
body.g7-site .tt81-detail-hero{min-height:clamp(510px,65vh,680px)!important;background:#131715!important}
body.g7-site .tt81-detail-hero>img{display:block;object-fit:cover;object-position:center;width:100%;height:100%;max-width:none}
body.g7-site .tt81-detail-hero:before{background:linear-gradient(90deg,rgba(14,16,15,.95) 0%,rgba(14,16,15,.82) 40%,rgba(14,16,15,.05) 78%)}
body.g7-site .tt81-detail-hero h1,body.g7-site .tt81-detail-hero p{max-width:650px}
/* PPC hero background asset fills the entire top region */
body.g7-site .tt80-ppc-hero{background-image:var(--tt80-case-bg)!important;background-position:center center!important;background-size:cover!important;background-repeat:no-repeat!important}
body.g7-site .tt80-ppc-hero .tt80-case-inner{padding-top:clamp(56px,6vw,86px);padding-bottom:clamp(56px,6vw,86px)}
/* Career page uses a professionally composed full-width image */
body.g7-site .tt83-careers{min-height:clamp(540px,70vh,690px);background-position:center center!important;background-size:cover!important}
body.g7-site .tt83-careers .v60-hero-content{max-width:660px}
body.g7-site .tt83-careers .v60-hero-content h1{max-width:13ch!important}
@media(max-width:1000px){body.g7-site .portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}}
@media(max-width:680px){body.g7-site .portfolio-grid{grid-template-columns:1fr;gap:18px}body.g7-site .portfolio-grid>article.portfolio-card>.rice-card-body{padding:20px}body.g7-site .tt81-detail-hero{min-height:530px!important}body.g7-site .tt81-detail-hero:before{background:linear-gradient(90deg,rgba(14,16,15,.96),rgba(14,16,15,.83))}body.g7-site .tt81-detail-hero h1{font-size:clamp(31px,8vw,43px)}body.g7-site .tt80-ppc-hero{background-position:65% center!important}body.g7-site .tt83-careers{min-height:610px;background-position:69% center!important}}

/* Previously plain detail pages also receive topic-specific full-width background artwork. */
body.g7-site .seo40-hero{position:relative;isolation:isolate;background:#131715 var(--tt83-bg) center /cover no-repeat!important}
body.g7-site .seo40-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(11,13,12,.94),rgba(11,13,12,.68) 55%,rgba(11,13,12,.16));z-index:-1}
body.g7-site .ops38-hero{background:#151917 var(--tt83-bg) center / cover no-repeat!important;position:relative;isolation:isolate}
body.g7-site .ops38-hero:before{content:"";inset:0;position:absolute;background:linear-gradient(90deg,rgba(14,16,15,.96),rgba(14,16,15,.75));z-index:-1}
