/* Shared interaction rhythm for ATARA, portfolio and private brand portals. */
:root{--motion-fast:180ms;--motion-ui:280ms;--motion-image:500ms;--motion-ease:cubic-bezier(.22,1,.36,1)}
.ui-arrow{display:inline-block;vertical-align:-.12em;flex-shrink:0;overflow:visible;pointer-events:none}
.button-arrow .ui-arrow,.gallery-zoom .ui-arrow,.wine-circle-arrow .ui-arrow,.back-top .ui-arrow{display:block;vertical-align:initial}
:where(a,button,summary){transition:color var(--motion-ui) ease,background-color var(--motion-ui) ease,border-color var(--motion-ui) ease,opacity var(--motion-fast) ease,box-shadow var(--motion-ui) ease,transform var(--motion-ui) var(--motion-ease),outline-color var(--motion-fast) ease}
.button,.wine-circle,.back-top,.lightbox button,.pin-toggle,.logout,.languages button,.language-switcher a{
 transition:color var(--motion-ui) ease,background-color var(--motion-ui) ease,border-color var(--motion-ui) ease,opacity var(--motion-fast) ease,box-shadow var(--motion-ui) ease,transform var(--motion-ui) var(--motion-ease)
}
.button-arrow,.button>.icon,.hero-bottom a>span:last-child,.nav-contact>span:last-child,.project-card-arrow,.wine-circle-arrow,.next-project>span:last-child,.wine-print-shortcut>span:last-child,.wine-hub-nav a>span:last-child,.wine-home-preview>span:last-child,.card-links .icon,.atara-credit .icon{
 transition:transform var(--motion-ui) var(--motion-ease),color var(--motion-ui) ease
}
.project-card,.gallery-item,.wine-home-preview,.project-collaboration>a,.wine-print-partner,.atara-credit,.brand{transition:color var(--motion-ui) ease,opacity var(--motion-ui) ease,box-shadow var(--motion-ui) ease}
.project-thumb img{transition:transform var(--motion-image) var(--motion-ease)}
.gallery-zoom{transition:transform var(--motion-ui) var(--motion-ease),background-color var(--motion-ui) ease}
.gallery-item:hover .gallery-zoom{transform:none}
.detail-icon:after{transition:transform var(--motion-ui) var(--motion-ease)}
.service-list summary{transition:color var(--motion-ui) ease,background-color var(--motion-ui) ease}
.header nav>a{position:relative}
.header nav>a:after{content:'';position:absolute;left:0;right:0;bottom:-8px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform var(--motion-ui) var(--motion-ease)}
.languages button,.language-switcher a{border-radius:3px}
:where(a,button,summary):focus-visible{outline-style:solid;outline-width:2px;outline-offset:6px}
.button:focus-visible,.wine-circle:focus-visible,.back-top:focus-visible,.lightbox button:focus-visible{box-shadow:0 0 0 4px #80808020}
:where(a,button):active{opacity:.78}
.button:active,.wine-circle:active,.back-top:active,.lightbox button:active{transform:translateY(0) scale(.98)}
button:disabled{cursor:not-allowed;opacity:.5}

@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 .button:hover{transform:translateY(-2px);box-shadow:0 6px 18px #00000018}
 .button:hover .button-arrow,.nav-contact:hover>span:last-child,.project-card:hover .project-card-arrow,.wine-circle:hover .wine-circle-arrow,.wine-print-shortcut:hover>span:last-child,.wine-home-preview:hover>span:last-child{transform:translate(2px,-2px)}
 .button:hover>.icon,.card-links a:hover .icon,.atara-credit:hover .icon{transform:translate(2px,-2px)}
 .hero-bottom a:hover>span:last-child,.wine-hub-nav a:hover>span:last-child{transform:translateY(3px)}
 .next-project:hover>span:last-child{transform:translate(4px,-3px)}
 .header nav>a:hover:after{transform:scaleX(1)}
 .wine-circle:hover{transform:translateY(-3px);box-shadow:0 8px 20px #00000020}
 .back-top:hover{transform:translateY(-2px)}
 .lightbox button:hover{background:#ffffff18;border-color:#ffffff80;transform:scale(1.04)}
 .languages button:hover,.language-switcher a:hover{background:#80808018}
 .pin-toggle:hover{background:#80808012}
 .logout:hover{opacity:.75}
 .service-list summary:hover{color:#7463ac}
 .gallery-item:hover .gallery-zoom{transform:translate(2px,-2px);background:#fff}
 .brand:hover{opacity:.82}
}
/* Keyboard feedback does not depend on a mouse or cause content movement. */
.header nav>a:focus-visible:after{transform:scaleX(1)}
.gallery-item:focus-visible .gallery-zoom{background:#fff}
.button:active:not(:disabled),.wine-circle:active,.back-top:active,.lightbox button:active{transform:translateY(0) scale(.98);box-shadow:none}
.button:disabled{transform:none;box-shadow:none}
.wine-hub-return:hover,.project-end-bottom>a:not(.button):hover,.footer-contact a:hover{opacity:.75}

@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto!important}
 *,*:before,*:after{transition:none!important;animation:none!important}
 .button:hover,.button:active:not(:disabled),.wine-circle:hover,.wine-circle:active,.back-top:hover,.back-top:active,.lightbox button:hover,.lightbox button:active,.gallery-item:hover .gallery-zoom{transform:none!important}
 .project-card:hover .project-thumb img{transform:none}
}
