.detail-trigger {
    cursor: pointer;
}

.detail-trigger:focus-visible {
    outline: 1px solid var(--orange);
    outline-offset: 4px;
}

.ship-sprite-wrap::before {
    content: none !important;
    display: none !important;
}

body.detail-panel-open {
    overflow: hidden;
}

.detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 17000;
    visibility: hidden;
    pointer-events: none;
}

.detail-overlay.is-open {
    visibility: visible;
    pointer-events: auto;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    backdrop-filter: blur(3px);
    transition: opacity 0.35s ease;
}

.detail-overlay.is-open .detail-backdrop {
    opacity: 1;
}

.detail-panel {
    width: min(720px, calc(100vw - 40px));
    height: calc(100vh - 40px);
    position: absolute;
    right: 20px;
    top: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--text);
    background: #101012;
    border: 1px solid rgba(255, 255, 255, 0.14);
    clip-path: polygon(
        0 0,
        calc(100% - 20px) 0,
        100% 20px,
        100% 100%,
        20px 100%,
        0 calc(100% - 20px)
    );
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
    transform: translateX(calc(100% + 40px));
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-overlay.is-open .detail-panel {
    transform: translateX(0);
}

.detail-panel::before {
    content: "";
    width: 520px;
    height: 520px;
    position: absolute;
    right: -300px;
    bottom: -230px;
    border: 1px solid rgba(255, 101, 0, 0.08);
    transform: rotate(45deg);
    pointer-events: none;
}

.detail-accent {
    height: 5px;
    display: grid;
    grid-template-columns: 1fr 0.48fr 1.3fr;
    gap: 7px;
}

.detail-accent span {
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-overlay.is-open .detail-accent span {
    transform: scaleX(1);
}

.detail-overlay.is-open .detail-accent span:nth-child(2) {
    transition-delay: 70ms;
}

.detail-overlay.is-open .detail-accent span:nth-child(3) {
    transition-delay: 140ms;
}

.detail-header {
    min-height: 78px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid var(--border);
}

.detail-index {
    color: var(--orange);
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.detail-close {
    min-height: 38px;
    padding: 0 11px 0 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    color: var(--muted);
    font-family: "Manrope", sans-serif;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.detail-close strong {
    color: var(--orange);
    font-size: 21px;
    font-weight: 500;
    line-height: 1;
}

.detail-close:hover {
    border-color: var(--orange);
    background: var(--orange);
    color: var(--black);
}

.detail-close:hover strong {
    color: var(--black);
}

.detail-video-shell {
    aspect-ratio: 16 / 9;
    margin: 30px 30px 0;
    position: relative;
    overflow: hidden;
    background: #080809;
    border: 1px solid rgba(255, 255, 255, 0.12);
    clip-path: polygon(
        0 0,
        calc(100% - 16px) 0,
        100% 16px,
        100% 100%,
        16px 100%,
        0 calc(100% - 16px)
    );
}

.detail-video-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0.14;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 69px,
            rgba(255, 255, 255, 0.06) 70px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 69px,
            rgba(255, 255, 255, 0.06) 70px
        );
}

.detail-video {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 2;
    object-fit: cover;
    background: #080809;
}

.detail-video-placeholder {
    position: absolute;
    inset: 0;
    z-index: 4;
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background:
        radial-gradient(
            circle at center,
            rgba(255, 101, 0, 0.12),
            transparent 40%
        ),
        #09090b;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.detail-video-placeholder.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-video-placeholder span {
    color: var(--orange);
    font-family: "IBM Plex Mono", monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.detail-video-placeholder strong {
    max-width: 100%;
    margin-top: 9px;
    color: var(--text);
    font-family: "IBM Plex Mono", monospace;
    font-size: clamp(15px, 2vw, 21px);
    font-weight: 500;
    overflow-wrap: anywhere;
}

.detail-video-placeholder small {
    margin-top: 8px;
    color: rgba(241, 238, 231, 0.36);
    font-family: "IBM Plex Mono", monospace;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-copy {
    padding: 45px 40px 70px;
    position: relative;
    z-index: 5;
}

.detail-type {
    display: block;
    margin-bottom: 13px;
    color: var(--orange);
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.detail-copy h2 {
    font-family: "Bricolage Grotesque", Arial, sans-serif;
    font-size: clamp(58px, 7vw, 104px);
    font-weight: 800;
    line-height: 0.87;
    letter-spacing: -0.07em;
}

.detail-copy p {
    max-width: 520px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.detail-number {
    position: absolute;
    right: 24px;
    bottom: -12px;
    color: rgba(255, 255, 255, 0.025);
    font-family: "Bricolage Grotesque", Arial, sans-serif;
    font-size: 190px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.09em;
    pointer-events: none;
}

@media (pointer: fine) {
    .detail-trigger,
    .detail-close,
    .detail-backdrop {
        cursor: none;
    }
}

@media (max-width: 700px) {
    .detail-panel {
        width: calc(100vw - 20px);
        height: calc(100vh - 20px);
        right: 10px;
        top: 10px;
    }

    .detail-header {
        padding: 0 18px;
    }

    .detail-video-shell {
        margin: 20px 18px 0;
    }

    .detail-video-placeholder {
        padding: 22px;
    }

    .detail-copy {
        padding: 35px 22px 70px;
    }

    .detail-copy h2 {
        font-size: clamp(52px, 18vw, 86px);
    }

    .detail-number {
        font-size: 130px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .detail-panel,
    .detail-backdrop,
    .detail-accent span {
        transition-duration: 0.01ms;
        transition-delay: 0ms !important;
    }
}

.hero-topline-project-only {
    justify-content: flex-end;
}

.core-video-card {
    perspective: 900px;
}

.core-video-frame {
    width: 100%;
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background: #080809;
    border: 1px solid rgba(255, 255, 255, 0.12);
    clip-path: polygon(
        0 0,
        calc(100% - 20px) 0,
        100% 20px,
        100% 100%,
        20px 100%,
        0 calc(100% - 20px)
    );
}

.core-video-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0.12;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 69px,
            rgba(255, 255, 255, 0.06) 70px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 69px,
            rgba(255, 255, 255, 0.06) 70px
        );
}

.core-video-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(8, 8, 9, 0.2),
            transparent 45%,
            rgba(8, 8, 9, 0.12)
        ),
        linear-gradient(
            0deg,
            rgba(8, 8, 9, 0.26),
            transparent 48%
        );
}

.core-mechanic-video {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 1;
    object-fit: cover;
    background: #080809;
    filter: saturate(1.12) contrast(1.08) brightness(0.9);
    transform: scale(1.01);
    transition:
        transform 0.45s ease,
        filter 0.35s ease;
}

.core-video-card:hover .core-mechanic-video {
    transform: scale(1.035);
    filter: saturate(1.18) contrast(1.1) brightness(0.98);
}

.core-video-placeholder {
    position: absolute;
    inset: 0;
    z-index: 4;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background:
        radial-gradient(
            circle at center,
            rgba(64, 220, 255, 0.08),
            transparent 34%
        ),
        radial-gradient(
            circle at center,
            rgba(255, 101, 0, 0.1),
            transparent 58%
        ),
        #09090b;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.core-video-placeholder.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.core-video-placeholder span {
    color: var(--orange);
    font-family: "IBM Plex Mono", monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.core-video-placeholder strong {
    max-width: 100%;
    margin-top: 9px;
    color: var(--text);
    font-family: "IBM Plex Mono", monospace;
    font-size: clamp(15px, 1.6vw, 20px);
    font-weight: 500;
    overflow-wrap: anywhere;
}

.core-video-placeholder small {
    margin-top: 8px;
    color: rgba(241, 238, 231, 0.36);
    font-family: "IBM Plex Mono", monospace;
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.core-video-label {
    position: absolute;
    left: 24px;
    top: 22px;
    z-index: 5;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(8, 8, 9, 0.62);
    color: rgba(241, 238, 231, 0.72);
    font-family: "IBM Plex Mono", monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

@media (max-width: 650px) {
    .core-video-placeholder {
        padding: 22px;
    }

    .core-video-label {
        left: 16px;
        top: 15px;
    }
}


.detail-stats {
    margin-top: 34px;
    max-width: 540px;
}

.detail-stats-title {
    display: block;
    margin-bottom: 18px;
    color: #47dfff;
    font-family: "Bricolage Grotesque", Arial, sans-serif;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.detail-stats-list {
    display: grid;
    gap: 16px;
}

.detail-stat-row {
    display: grid;
    grid-template-columns: minmax(110px, 1.2fr) minmax(110px, 160px) auto;
    align-items: center;
    gap: 18px;
}

.detail-stat-label {
    color: rgba(241, 238, 231, 0.76);
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.detail-stat-meter {
    height: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.detail-stat-meter span {
    display: block;
    height: 100%;
    background: rgba(71, 223, 255, 0.18);
    clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 50%, calc(100% - 4px) 100%, 0 100%);
}

.detail-stat-meter span.is-active {
    background: linear-gradient(90deg, #4fe7ff 0%, #2ec5f2 100%);
    box-shadow: 0 0 12px rgba(64, 220, 255, 0.18);
}

.detail-stat-value {
    color: var(--text);
    font-family: "Bricolage Grotesque", Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

@media (max-width: 700px) {
    .detail-stats {
        margin-top: 28px;
    }

    .detail-stat-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .detail-stat-meter {
        max-width: 180px;
    }
}


.detail-index[hidden] {
    display: none !important;
}

.detail-panel.is-ship-detail .detail-header {
    min-height: 70px;
}

.detail-panel.is-ship-detail .detail-close {
    margin-left: auto;
}

.detail-panel.is-ship-detail .detail-ship-shell {
    height: clamp(300px, 42vh, 390px);
    margin: 4px 30px 0;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(
            circle at 50% 48%,
            rgba(65, 224, 255, 0.11) 0,
            rgba(65, 224, 255, 0.045) 28%,
            transparent 60%
        );
}

.detail-ship-shell[hidden] {
    display: none !important;
}

.detail-panel.is-ship-detail .detail-ship-shell::before {
    content: "";
    width: clamp(170px, 34%, 230px);
    aspect-ratio: 1;
    position: absolute;
    left: 50%;
    top: 49%;
    z-index: 0;
    border: 1px solid rgba(255, 101, 0, 0.22);
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow:
        0 0 42px rgba(255, 101, 0, 0.025),
        inset 0 0 42px rgba(255, 101, 0, 0.015);
}

.detail-panel.is-ship-detail .detail-ship-shell::after {
    content: "";
    width: clamp(235px, 48%, 320px);
    aspect-ratio: 1;
    position: absolute;
    left: 50%;
    top: 49%;
    z-index: 0;
    border: 1px solid rgba(67, 220, 255, 0.08);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.detail-panel.is-ship-detail .detail-ship-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 1;
    background: none;
    pointer-events: none;
}

.detail-panel.is-ship-detail .detail-ship-grid::before,
.detail-panel.is-ship-detail .detail-ship-grid::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(67, 220, 255, 0.1) 22%,
        rgba(67, 220, 255, 0.1) 78%,
        transparent
    );
}

.detail-panel.is-ship-detail .detail-ship-grid::before {
    top: 34%;
}

.detail-panel.is-ship-detail .detail-ship-grid::after {
    bottom: 30%;
}

.detail-panel.is-ship-detail .detail-ship-image {
    width: auto;
    height: auto;
    max-width: 58%;
    max-height: 78%;
    position: relative;
    z-index: 2;
    object-fit: contain;
    filter:
        drop-shadow(0 0 9px rgba(255, 255, 255, 0.2))
        drop-shadow(0 0 24px rgba(67, 220, 255, 0.14))
        drop-shadow(0 22px 28px rgba(0, 0, 0, 0.35));
    transform: scale(1);
    transition:
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.35s ease;
}

.detail-panel.is-ship-detail .detail-ship-shell:hover .detail-ship-image {
    transform: translateY(-4px) scale(1.045);
    filter:
        drop-shadow(0 0 11px rgba(255, 255, 255, 0.24))
        drop-shadow(0 0 34px rgba(67, 220, 255, 0.19))
        drop-shadow(0 25px 32px rgba(0, 0, 0, 0.38));
}

.detail-panel.is-ship-detail .detail-copy {
    padding-top: 18px;
}

@media (max-width: 700px) {
    .detail-panel.is-ship-detail .detail-ship-shell {
        height: 260px;
        margin: 0 18px;
    }

    .detail-panel.is-ship-detail .detail-ship-image {
        max-width: 72%;
        max-height: 78%;
    }

    .detail-panel.is-ship-detail .detail-copy {
        padding-top: 12px;
    }
}
