/* Landing video: independent of the legacy template bundle. */
.projectOne .card {
    gap: 18px;
    padding: 22px;
}
.projectOne .card .card__logo { width: 105px; height: 90px; flex-shrink: 0; }
.projectOne .card .card__name { font-size: 18px; margin: 0; transform: none; }
.project-video-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 50%;
    background: #e77205;
    color: #fff;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
    -webkit-tap-highlight-color: transparent;
}
.project-video-button svg { margin-left: 3px; }
@media (hover: hover) {
    .project-video-button:hover { background: #b95500; transform: scale(1.06); }
}
.project-video-button:focus-visible,
.project-video-dialog button:focus-visible,
.project-video-dialog a:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.project-video-mobile { display: none; }
html.project-video-open { overflow: hidden; }
.project-video-dialog {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 24px;
    border: 0;
    background: transparent;
    color: #fff;
    font: 16px/1.4 Arial, sans-serif;
    overflow: auto;
    overscroll-behavior: contain;
}
.project-video-dialog:not([open]) { display: none; }
.project-video-dialog[open] { display: flex; align-items: center; justify-content: center; }
.project-video-dialog::backdrop { background: rgba(10, 10, 15, .94); }
.project-video-panel { position: relative; width: min(1120px, 100%, calc((100dvh - 144px) * 16 / 9)); min-width: 0; margin: auto; }
.project-video-close {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #666;
    border-radius: 50%;
    color: #fff;
    background: #25252a;
    cursor: pointer;
}
.project-video-close:hover { background: #45454b; }
.project-video-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.project-video-player { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.project-video-loading, .project-video-error {
    position: absolute;
    inset: 0 0 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px;
    text-align: center;
    background: rgba(0, 0, 0, .8);
}
.project-video-loading { pointer-events: none; }
.project-video-loading[hidden], .project-video-error[hidden] { display: none; }
.project-video-spinner { width: 28px; height: 28px; border: 2px solid #666; border-top-color: #f69a44; border-radius: 50%; animation: project-video-spin 1s linear infinite; }
.project-video-error { inset: 0; gap: 12px; }
.project-video-error p { margin: 0; font-size: 20px; }
.project-video-error span { color: #ddd; }
.project-video-retry { padding: 10px 22px; border: 1px solid #f69a44; border-radius: 4px; background: #e77205; color: #fff; font: inherit; cursor: pointer; }
.project-video-error a { color: #fff; font-size: 14px; text-underline-offset: 4px; }
@keyframes project-video-spin { to { transform: rotate(360deg); } }
@media (max-width: 1000px) {
    .project-video-mobile { display: flex; position: absolute; top: 57%; left: 0; width: 100%; justify-content: center; }
    .project-video-button { width: 52px; height: 52px; }
    .project-video-dialog { padding: 16px; }
    .project-video-panel { width: 100%; }
    .project-video-error { gap: 8px; }
    .project-video-error p { font-size: 17px; }
    .project-video-error span { font-size: 13px; }
}
@media (max-height: 500px) and (orientation: landscape) {
    .project-video-dialog { padding: 12px 20px; }
    .project-video-panel { width: min(100%, calc((100dvh - 32px) * 16 / 9)); }
    .project-video-close { width: 40px; height: 40px; bottom: auto; top: 0; right: -52px; }
    .project-video-panel { max-width: calc(100% - 104px); }
}
@media (prefers-reduced-motion: reduce) {
    .project-video-button { transition: none; }
    .project-video-spinner { animation: none; }
}
