/* Motion owns its controls and a viewport-sized still-image atmosphere. */
@font-face {font-family:'HTB Motion';src:url('/fonts/barlow-condensed-700.woff2') format('woff2');font-style:normal;font-weight:700;font-display:swap}
#htb-site[data-view="motion"] {container-type:normal;isolation:isolate}
#htb-site[data-view="motion"] > .htb-site {container-type:inline-size;transition:background-color .4s ease}
#htb-site .htb-motion-backdrop {display:none;position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;opacity:0;background:var(--htb-bg);transition:opacity .4s ease}
#htb-site[data-view="motion"] > .htb-motion-backdrop {display:block}
#htb-site .htb-motion-backdrop img {width:100%;height:100%;max-width:none;object-fit:cover;filter:blur(14px);transform:scale(1.05)}
#htb-site .htb-motion-backdrop::after {content:"";position:absolute;inset:0;background:light-dark(#ffffffb8,#101010b8)}
#htb-site[data-motion-atmosphere="true"] > .htb-motion-backdrop {opacity:1}
#htb-site[data-motion-atmosphere="true"] > .htb-site {background:transparent}
#htb-site[data-view="motion"] .htb-header,
#htb-site[data-view="motion"] .htb-footer,
#htb-site[data-view="motion"] .htb-motion-project {transition:filter .35s ease,opacity .35s ease}
#htb-site[data-motion-atmosphere="true"] .htb-header,
#htb-site[data-motion-atmosphere="true"] .htb-footer {filter:brightness(.82);opacity:.88}
#htb-site[data-motion-atmosphere="true"] .htb-motion-project:not([data-motion-focused="true"]) {filter:brightness(.69)}
#htb-site .htb-motion-player {pointer-events:none}
#htb-site .htb-motion-grid {--htb-motion-columns:2;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px;padding:10px 0 40px;position:relative}
#htb-site .htb-motion-grid[data-motion-masonry] {display:block}
#htb-site .htb-motion-project {position:relative}
#htb-site .htb-motion-grid[data-motion-masonry] > .htb-motion-project {position:absolute;left:var(--htb-motion-x);top:var(--htb-motion-y);width:var(--htb-motion-width)}
#htb-site .htb-motion-project .htb-project-meta {position:absolute;z-index:3;left:22px;right:22px;bottom:20px;margin:0;padding:0;display:block;color:#fff;opacity:0;pointer-events:none;font-family:'HTB Motion', 'Arial Narrow',Arial,sans-serif;font-weight:700;font-size:clamp(24px,3.4vw,54px);line-height:1;letter-spacing:.2px;text-transform:uppercase;text-shadow:0 2px 16px #000b;transition:opacity .22s ease}
#htb-site .htb-motion-project:is(:hover,:focus-within) .htb-project-meta {opacity:1}
#htb-site .htb-motion-project:is([data-motion-state="loading"],[data-motion-state="playing"]) .htb-project-meta {opacity:0}
#htb-site .htb-motion-project:is([data-motion-state="idle"],[data-motion-state="ended"],[data-motion-state="error"]) .htb-motion-player {visibility:hidden}
#htb-site .htb-motion-poster {position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;pointer-events:none;user-select:none}
#htb-site .htb-motion-project:is([data-motion-state="loading"],[data-motion-state="playing"],[data-motion-state="paused"]) .htb-motion-poster {visibility:hidden}
#htb-site .htb-motion-toggle {position:absolute;inset:0;z-index:2;width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#fff;cursor:pointer;outline:none}
#htb-site .htb-motion-toggle:focus-visible .htb-motion-glyph {outline:2px solid #fff;outline-offset:4px}
#htb-site .htb-motion-glyph {display:flex;align-items:center;justify-content:center;width:44px;height:44px;filter:drop-shadow(0 2px 5px #000b);transition:opacity .12s ease}
#htb-site .htb-motion-glyph::before {content:"";display:block;margin-left:4px;border-top:12px solid transparent;border-bottom:12px solid transparent;border-left:19px solid #fff}
#htb-site .htb-motion-project:is([data-motion-state="idle"],[data-motion-state="paused"],[data-motion-state="error"]) .htb-motion-glyph {opacity:0}
#htb-site .htb-motion-project:is([data-motion-state="idle"],[data-motion-state="paused"],[data-motion-state="error"]) .htb-motion-toggle:focus-visible .htb-motion-glyph {opacity:1}
#htb-site .htb-motion-project[data-motion-state="playing"] .htb-motion-glyph {opacity:0}
#htb-site .htb-motion-project[data-motion-state="playing"] .htb-motion-toggle:is(:hover,:focus-visible) .htb-motion-glyph {opacity:1}
#htb-site .htb-motion-project[data-motion-state="playing"] .htb-motion-glyph::before {width:18px;height:24px;margin:0;border:0;border-left:6px solid #fff;border-right:6px solid #fff}
#htb-site .htb-motion-project[data-motion-state="loading"] .htb-motion-glyph::before {width:18px;height:18px;margin:0;border:2px solid #ffffff5e;border-top-color:#fff;border-radius:50%;animation:htb-motion-loading .8s linear infinite}
#htb-site .htb-motion-project[data-motion-state="ended"] .htb-motion-glyph {opacity:1}
#htb-site .htb-motion-fullscreen {position:absolute;z-index:3;right:12px;bottom:10px;min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;color:#fff;cursor:pointer;opacity:0;transition:opacity .12s ease;filter:drop-shadow(0 2px 5px #000b)}
#htb-site .htb-motion-fullscreen svg {display:block;width:22px;height:22px;pointer-events:none}
#htb-site .htb-motion-fullscreen .htb-fullscreen-exit {display:none}
#htb-site .htb-motion-fullscreen[data-motion-fullscreen="true"] .htb-fullscreen-enter {display:none}
#htb-site .htb-motion-fullscreen[data-motion-fullscreen="true"] .htb-fullscreen-exit {display:block}
#htb-site .htb-motion-project:is([data-motion-state="playing"],[data-motion-state="paused"]):is(:hover,:focus-within) .htb-motion-fullscreen {opacity:1}
#htb-site .htb-motion-project:not(:is([data-motion-state="playing"],[data-motion-state="paused"])) .htb-motion-fullscreen {display:none}
#htb-site .htb-motion-fullscreen:focus-visible {opacity:1;outline:2px solid #fff;outline-offset:2px}
#htb-site .htb-motion-status {position:absolute;z-index:3;bottom:14px;left:20px;right:20px;text-align:center;color:#fff;font-size:11px;pointer-events:none}
#htb-site .htb-motion-status:empty {display:none}
#htb-site .htb-motion-status:not(:empty) {padding:10px;background:#101010bd}
#htb-site .htb-motion-media:fullscreen {width:100%;height:100%;aspect-ratio:auto!important;background:#000;color-scheme:dark;border:0;outline:none}
#htb-site .htb-motion-media:fullscreen::backdrop {background:#000}
#htb-site .htb-motion-media:fullscreen .htb-motion-poster {object-fit:contain}
#htb-site .htb-motion-media:-webkit-full-screen {width:100%;height:100%;aspect-ratio:auto!important;background:#000;color-scheme:dark;border:0;outline:none}
#htb-site .htb-motion-media:-webkit-full-screen .htb-motion-poster {object-fit:contain}
/* A stationary or touch pointer may still match :hover. Playback inactivity wins. */
#htb-site .htb-motion-project[data-motion-state="playing"] .htb-motion-media:fullscreen[data-motion-controls="hidden"],
#htb-site .htb-motion-project[data-motion-state="playing"] .htb-motion-media:fullscreen[data-motion-controls="hidden"] .htb-motion-toggle {cursor:none}
#htb-site .htb-motion-project[data-motion-state="playing"] .htb-motion-media:-webkit-full-screen[data-motion-controls="hidden"],
#htb-site .htb-motion-project[data-motion-state="playing"] .htb-motion-media:-webkit-full-screen[data-motion-controls="hidden"] .htb-motion-toggle {cursor:none}
#htb-site .htb-motion-project[data-motion-state="playing"] .htb-motion-media[data-motion-controls="hidden"] .htb-motion-glyph,
#htb-site .htb-motion-project[data-motion-state="playing"] .htb-motion-media[data-motion-controls="hidden"] .htb-motion-fullscreen {opacity:0;pointer-events:none}
#htb-site .htb-motion-no-script {font-size:12px}
#htb-site .htb-motion-no-script a {text-decoration:underline}
@keyframes htb-motion-loading {to{transform:rotate(360deg)}}
@media(hover:hover) {
  #htb-site .htb-motion-project:is([data-motion-state="idle"],[data-motion-state="paused"],[data-motion-state="error"]):hover .htb-motion-glyph {opacity:1}
  @container(min-width:651px) {
    #htb-site .htb-motion-project[data-motion-state="playing"]:hover .htb-project-meta {opacity:1}
  }
}
@media(hover:none) {
  #htb-site .htb-motion-project .htb-project-meta {opacity:1}
  #htb-site .htb-motion-project:is([data-motion-state="loading"],[data-motion-state="playing"]) .htb-project-meta {opacity:0}
  #htb-site .htb-motion-project:is([data-motion-state="playing"],[data-motion-state="paused"]) .htb-motion-fullscreen {opacity:1}
}
@container(max-width:650px) {
  #htb-site .htb-motion-grid {--htb-motion-columns:1;grid-template-columns:1fr}
  #htb-site .htb-motion-project .htb-project-meta {left:18px;right:18px;bottom:16px;font-size:clamp(24px,7vw,36px);opacity:1}
  #htb-site .htb-motion-project:is([data-motion-state="loading"],[data-motion-state="playing"]) .htb-project-meta {opacity:0}
}
@media(prefers-reduced-motion:reduce) {
  #htb-site .htb-motion-project[data-motion-state="loading"] .htb-motion-glyph::before {animation:none}
}
