/* WordPress integration only; load after the original design and motion fixes. */
:root { --rz-admin-offset: 0px; }
body.admin-bar { --rz-admin-offset: 32px; }
.site-header { top: var(--rz-admin-offset); }
.hero-sticky { top: var(--rz-admin-offset); height: calc(100dvh - var(--rz-admin-offset)); }
.mobile-nav[hidden], [data-rz-card][hidden], [data-rz-empty][hidden], [data-rz-gallery-empty][hidden] { display: none !important; }
.form-status[hidden], .gallery-empty[hidden] { display: none !important; }
.menu-toggle [data-rz-menu-close] { display: none; }
.menu-toggle[aria-expanded="true"] [data-rz-menu-open] { display: none; }
.menu-toggle[aria-expanded="true"] [data-rz-menu-close] { display: block; }
.rz-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.rz-reveal-pending { opacity: 0; transform: translateY(20px); filter: none; }
.rz-reveal-pending:focus-within { opacity: 1; transform: none; }
[data-rz-reveal] { transition: opacity .7s ease, transform .7s ease; }
[data-rz-card] { min-width: 0; }
.project-gallery > a { display: block; min-width: 0; }
.project-gallery > a:nth-child(3n) { grid-column: span 2; }
[data-rz-search] { max-width: 100%; font-size: 16px; }
.portfolio-search { display: flex; flex-direction: column; gap: 10px; max-width: 420px; margin: 28px 0 0; color: #aaa; font-size: 11px; letter-spacing: .1em; }
.portfolio-search input { width: 100%; min-height: 52px; padding: 13px 16px; border: 1px solid #444447; border-radius: 0; background: #101011; color: #eee; line-height: 1.5; letter-spacing: normal; }
.portfolio-search input::placeholder { color: #aaa; }
[data-rz-sound][inert], [inert] [data-rz-sound] { visibility: hidden; }
.rz-modal { position: fixed; z-index: 100005; inset: 0; overflow-y: auto; display: flex; align-items: center; justify-content: center; padding: 70px 24px 40px; background: rgba(0,0,0,.94); overscroll-behavior: contain; }
.rz-modal-panel { position: relative; width: min(1100px, 100%); max-width: 100%; min-width: 0; margin: auto; color: #ececeb; }
.rz-modal-panel:focus { outline: none; }
.rz-modal-close { position: absolute; right: 0; top: -52px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: #171719; border: 1px solid #69696b; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.rz-modal-media { display: block; width: 100%; aspect-ratio: 16/9; max-height: calc(100dvh - 180px); border: 0; background: #080809; object-fit: contain; }
.rz-modal-video .rz-modal-panel { width: min(1100px, 100%, calc((100dvh - 180px) * 16 / 9)); min-width: min(250px, 100%); }
img.rz-modal-image { display: block; width: 100%; height: auto; max-height: calc(100dvh - 210px); object-fit: contain; }
.rz-modal-caption { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin: 16px 0 0; color: #c6c6c9; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.rz-modal-caption a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.rz-modal-message { padding: 40px 20px; background: #141416; font-size: 16px; line-height: 1.7; }
.rz-modal-controls { display: flex; justify-content: center; gap: 16px; margin-top: 16px; }
.rz-modal-controls button { min-width: 48px; min-height: 44px; border: 1px solid #69696b; color: #fff; background: #171719; font-size: 22px; }
.rz-modal :focus-visible { outline: 2px solid #e8b3bc; outline-offset: 4px; }
@media(max-width: 1100px) {
  .project-gallery > a:nth-child(3n) { grid-column: auto; }
  .mobile-nav { position: absolute; top: 100%; height: calc(100dvh - 68px - var(--rz-admin-offset)); }
  html:not(.rz-js) .site-header { position: relative; top: 0; height: auto; }
  html:not(.rz-js) .header-inner { height: 68px; }
  html:not(.rz-js) .menu-toggle { display: none; }
  html:not(.rz-js) .mobile-nav { position: static; height: auto; opacity: 1; visibility: visible; transform: none; padding-bottom: 25px; }
}
@media(max-width: 782px) { body.admin-bar { --rz-admin-offset: 46px; } }
@media(max-height: 560px) {
  .hero-sticky { top: 0; height: auto; min-height: calc(100svh - var(--rz-admin-offset)); }
  .hero-content { min-height: calc(100svh - var(--rz-admin-offset)); }
}
.hero-journey[data-motion-mode="static"] { height: auto; }
.hero-journey[data-motion-mode="static"] .hero-sticky { position: relative; top: 0; height: auto; min-height: calc(100svh - var(--rz-admin-offset)); }
.hero-journey[data-motion-mode="static"] .hero-content { position: relative; height: auto; min-height: calc(100svh - var(--rz-admin-offset)); padding-top: 100px; padding-bottom: 110px; }
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rz-reveal-pending { opacity: 1; transform: none; transition: none; }
  .hero-sticky { top: 0; height: auto; min-height: calc(100svh - var(--rz-admin-offset)); }
  [data-rz-cursor] { display: none !important; }
}
