/* Original logo contours, without JPEG enlargement, contrast or blend filters. */
body .twm-header :is(.twm-brand img,.custom-logo){filter:none;mix-blend-mode:normal;transform:none}
body .twm-header .twm-brand{overflow:visible}
body .twm-header .twm-brand img{width:165px;max-width:100%;height:auto;display:block}
.twm-footer .twm-brand img[src*="twm-logo-vector.svg"]{width:165px;max-width:100%;height:auto}
.twm-services-band .twm-agency-home-card{grid-column:1/-1;border-top:1px solid #72808a;padding-top:28px;margin-top:8px}
.twm-agency-home-card p{max-width:680px}
.twm-agency-related-services{max-width:780px;margin:20px auto 0;padding-top:24px;border-top:1px solid var(--twm-border,#d9d9d9)}
.twm-agency-related-services h2{font-size:1.6rem;line-height:1.3}
.twm-agency-related-services li{margin-block:12px}
.twm-agency-editorial-link{margin-top:32px;padding:20px;border-left:3px solid var(--twm-brand-accent-action,#bc2531)}
@media(min-width:1001px) and (max-width:1279px){body .twm-header-inner{width:calc(100% - 48px);gap:16px}body .twm-header .twm-navigation{gap:16px}body .twm-header .twm-menu{gap:16px}}

/* Keep the services introduction in view while the service list scrolls. */
@media(min-width:1001px){
 .twm-home .twm-services-layout{align-items:start}
 .twm-home .twm-services-intro{position:sticky;top:calc(clamp(140px,23vh,240px) + var(--twm-header-offset,0px));align-self:start}
 .twm-home .twm-services-intro h2{font-size:clamp(36px,3.3vw,56px);line-height:1.12}
}
@media(min-width:1001px) and (max-height:650px){.twm-home .twm-services-intro{position:static}}

/* Desktop project sites at a real 1920px viewport, scaled into wide thumbnails. */
.twm-home #proyectos .twm-carousel-track > .twm-project-card{flex-basis:clamp(280px,20vw,340px);max-width:340px}
.twm-home #proyectos .twm-project-image{aspect-ratio:16/9;height:auto;min-height:0}
.twm-home #proyectos .twm-project-image img{width:100%;height:100%;object-fit:contain;object-position:top center}
.twm-home #proyectos .twm-project-link:hover img{transform:none}
.twm-home #proyectos .twm-project-editorial{padding:20px}
@media(min-width:768px) and (max-width:1100px){.twm-home #proyectos .twm-carousel-track > .twm-project-card{flex-basis:36vw;max-width:340px}}
@media(max-width:767px){.twm-home #proyectos .twm-carousel-track > .twm-project-card{flex-basis:78vw;max-width:320px}}

/* Show the complete brand mark on the dark footer, including the home page. */
body .twm-footer :is(.twm-brand,.custom-logo-link){width:190px;max-width:100%;padding:0;background:transparent;border-radius:0;overflow:visible}
body .twm-footer :is(.twm-brand img,.custom-logo){display:block;width:190px;max-width:100%;height:auto;transform:none;filter:brightness(0) invert(1);mix-blend-mode:normal}
