.page-gallery {
    display: grid;
    gap: 2rem;
    padding-top: 2rem;
}

.feature-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.feature-metric {
    padding: 1.2rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: linear-gradient(180deg, var(--panel), rgba(255, 255, 255, 0.01));
}

.feature-metric .metric-value-inline {
    margin-top: 0.65rem;
    font-family: var(--font-ui);
    font-size: var(--fs-body-sm);
    line-height: 1.8;
    letter-spacing: 0.03em;
    color: var(--text);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.project-list,
.text-columns {
    display: grid;
    gap: 1.5rem;
}

.project-card,
.text-panel {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--panel), rgba(255, 255, 255, 0.01));
    border-radius: 1.2rem;
    padding: 1.5rem;
    overflow: hidden;
}

.project-card h3,
.text-panel h3 {
    margin: 0;
    font-family: var(--font-ui);
    font-size: var(--fs-card-title);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.06em;
}

.project-card p,
.text-panel p {
    margin: 0.9rem 0 0;
    font-size: var(--fs-body-sm);
    line-height: 1.92;
    letter-spacing: 0.028em;
    color: var(--text-soft);
}

.page-block {
    padding-top: clamp(2.4rem, 4vw, 3.6rem);
}

.page-block h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.28rem, 2.2vw, 1.8rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--text);
    text-align: center;
}

.page-block .poem-block {
    margin-top: 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.page-block .poem-block p {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(0.9rem, 1.4vw, 1.15rem);
    line-height: 2;
    letter-spacing: 0.24em;
    color: var(--accent);
    text-align: center;
    font-weight: 300;
}

.work-entry {
    margin-top: clamp(4rem, 7vw, 6rem);
}

.work-media {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.work-media video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
}

.work-caption {
    margin-top: 2.4rem;
    text-align: center;
}

.work-label {
    margin: 0 0 1.6rem;
    font-size: var(--fs-kicker);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.work-poem {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.work-poem p {
    margin: 0;
    font-size: clamp(0.9rem, 1.4vw, 1.1rem);
    line-height: 2;
    letter-spacing: 0.22em;
    color: var(--text-soft);
}

.workflow-showcase-section {
    margin-top: 3.5rem;
}

/* Digital Human Dashboard Grid Styling */
.digital-human-dashboard {
    display: grid;
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.08fr);
    gap: 2rem;
    align-items: start;
    margin-top: 1.35rem;
}


.dashboard-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.dashboard-info-panel .panel-kicker {
    font-size: 0.65rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.dashboard-info-panel .panel-title-premium {
    margin: 0.1rem 0 0.5rem 0;
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.2vw, 1.82rem);
    font-weight: 500;
    letter-spacing: 0.12em;
    background: linear-gradient(135deg, #ffffff 40%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.35;
}

.dashboard-info-panel .panel-lead-text {
    font-size: 0.88rem;
    line-height: 1.85;
    letter-spacing: 0.08em;
    color: var(--text-soft);
    margin: 0 0 1rem 0;
    border-left: 2px solid rgba(78, 165, 127, 0.35); /* Green signature left line accent */
    padding-left: 0.85rem;
}



/* Blueprint Card Styling with Green Accents */
.tech-blueprint-card {
    padding: 0.95rem 1.15rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.012);
    border: 1px dashed rgba(78, 165, 127, 0.15); /* Green dashed border */
    margin-bottom: 0.4rem;
    position: relative;
    overflow: hidden;
}

.tech-blueprint-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #4ea57f, transparent); /* Green vertical line fade */
    opacity: 0.5;
}

.blueprint-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
}

.blueprint-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981; /* Green status indicator dot */
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
    display: inline-block;
}

.blueprint-header h4 {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #4ea57f; /* Green header */
    text-transform: uppercase;
}

.blueprint-desc {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.8;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.52);
}

.dashboard-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.5rem;
    margin-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.15rem;
}

.dashboard-specs-grid .spec-card {
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
}

.dashboard-specs-grid .spec-card-label {
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 0.35rem;
    display: block;
}

.dashboard-specs-grid .spec-card-value {
    font-size: 0.76rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-soft);
    line-height: 1.45;
}

.dashboard-media-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.main-video-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1.82 / 1;
    background: #000;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.main-video-viewport video,
.main-video-viewport img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.3, 1);
}

.main-video-viewport.lightbox-trigger:hover img {
    transform: scale(1.03);
}

.main-video-viewport .viewport-label {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    font-size: 0.54rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #4ea57f;
    background: rgba(5, 5, 5, 0.72);
    padding: 0.3rem 0.62rem;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 500;
}

.evidence-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.evidence-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    cursor: pointer;
}

.evidence-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1.5;
    border-radius: 0.85rem;
    overflow: hidden;
    border: 1px solid rgba(227, 214, 195, 0.08);
    background: #050505;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.evidence-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.3, 1);
}

.evidence-card:hover .evidence-img-wrap img {
    transform: scale(1.06);
}

.evidence-card .img-zoom-icon {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.1rem;
    opacity: 0;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}

.evidence-card:hover .img-zoom-icon {
    opacity: 1;
}

.evidence-card .evidence-label {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--text-soft);
    transition: color 0.3s ease;
}

.evidence-card:hover .evidence-label {
    color: var(--accent);
}

.xhs-output-stage {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
}

.xhs-output-row {
    display: grid;
    grid-template-columns: 7.2rem minmax(0, 1fr);
    gap: 1.1rem;
    align-items: center;
    min-height: 5.8rem;
}

.xhs-output-row.is-secondary {
    opacity: 0.84;
}

.xhs-card-stack {
    position: relative;
    width: 5.2rem;
    height: 5.8rem;
    perspective: 800px;
    transform-style: preserve-3d;
}

.xhs-stack-card {
    position: absolute;
    inset: 0;
    border-radius: 1.1rem;
    overflow: visible;
    transition: transform 450ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 300ms ease, box-shadow 450ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.xhs-stack-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.15) 100%);
    pointer-events: none;
    z-index: 5;
    mix-blend-mode: overlay;
}

.xhs-stack-back {
    transform: translate3d(1.1rem, -0.08rem, -15px) rotateY(-10deg) rotateX(4deg) rotateZ(4deg) scale(0.9);
    opacity: 0.45;
    z-index: 1;
    box-shadow: -2px 4px 10px rgba(0, 0, 0, 0.3);
}

.xhs-stack-mid {
    transform: translate3d(0.55rem, -0.04rem, 0px) rotateY(-12deg) rotateX(5deg) rotateZ(1deg) scale(0.95);
    opacity: 0.7;
    z-index: 2;
    box-shadow: -3px 5px 15px rgba(0, 0, 0, 0.35);
}

.xhs-stack-front {
    transform: translate3d(0, 0, 15px) rotateY(-14deg) rotateX(6deg) rotateZ(-2deg);
    opacity: 1;
    z-index: 3;
    box-shadow: -4px 6px 20px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(255, 255, 255, 0.1) inset;
}

/* Hover interactions for fanning out card stack */
.xhs-output-row:hover .xhs-stack-front {
    transform: translate3d(-0.1rem, -0.1rem, 30px) rotateY(-10deg) rotateX(6deg) rotateZ(-3deg);
    box-shadow: -8px 12px 30px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(255, 255, 255, 0.15) inset;
}

.xhs-output-row:hover .xhs-stack-mid {
    transform: translate3d(1.2rem, 0.05rem, 15px) rotateY(-8deg) rotateX(4deg) rotateZ(3deg) scale(0.96);
    opacity: 0.85;
    box-shadow: -6px 10px 22px rgba(0, 0, 0, 0.4);
}

.xhs-output-row:hover .xhs-stack-back {
    transform: translate3d(2.2rem, 0.15rem, 0px) rotateY(-6deg) rotateX(2deg) rotateZ(9deg) scale(0.92);
    opacity: 0.65;
    box-shadow: -4px 8px 16px rgba(0, 0, 0, 0.35);
}

/* Individual card hover to pop out and enlarge */
.xhs-card-stack .xhs-stack-card:hover {
    z-index: 10 !important;
    opacity: 1 !important;
}

.xhs-card-stack .xhs-stack-front:hover {
    transform: translate3d(-0.2rem, -0.4rem, 50px) rotateY(-2deg) rotateX(2deg) rotateZ(0deg) scale(1.22);
    box-shadow: -15px 22px 45px rgba(0, 0, 0, 0.7), 0 2px 4px rgba(255, 255, 255, 0.25) inset;
}

.xhs-card-stack .xhs-stack-mid:hover {
    transform: translate3d(1.2rem, -0.4rem, 50px) rotateY(-2deg) rotateX(2deg) rotateZ(0deg) scale(1.22);
    box-shadow: -15px 22px 45px rgba(0, 0, 0, 0.7), 0 2px 4px rgba(255, 255, 255, 0.25) inset;
}

.xhs-card-stack .xhs-stack-back:hover {
    transform: translate3d(2.2rem, -0.4rem, 50px) rotateY(-2deg) rotateX(2deg) rotateZ(0deg) scale(1.22);
    box-shadow: -15px 22px 45px rgba(0, 0, 0, 0.7), 0 2px 4px rgba(255, 255, 255, 0.25) inset;
}

/* Disable grey zoom overlay and image scaling inside the card stack */
.xhs-stack-card .evidence-card:hover .img-zoom-icon {
    opacity: 0 !important;
    pointer-events: none !important;
    backdrop-filter: none !important;
    background: transparent !important;
}

.xhs-stack-card .evidence-card:hover .evidence-img-wrap img {
    transform: none !important;
}

.xhs-stack-card .evidence-card {
    gap: 0;
}

.xhs-stack-card .evidence-img-wrap {
    height: 100%;
    aspect-ratio: auto;
    border-radius: 1rem;
    border: 1px solid rgba(227, 214, 195, 0.12);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.xhs-stack-back .evidence-img-wrap,
.xhs-stack-mid .evidence-img-wrap {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.xhs-stack-card .evidence-label {
    display: none;
}

.xhs-copy-flow {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.35rem 0.8rem 0.35rem 0.4rem;
    min-width: 0;
    cursor: pointer;
    transition: transform 300ms ease, box-shadow 300ms ease;
    border-radius: 0.85rem;
}

.xhs-copy-flow:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.xhs-copy-flow::before {
    content: "";
    position: absolute;
    inset: 0.1rem 0 0.1rem -0.28rem;
    border-radius: 1.3rem;
    background:
        linear-gradient(90deg, rgba(215, 190, 147, 0.09) 0%, rgba(215, 190, 147, 0.03) 34%, rgba(255, 255, 255, 0) 100%);
    filter: blur(0.2px);
    z-index: 0;
    transition: background 300ms ease;
}

.xhs-copy-flow:hover::before {
    background:
        linear-gradient(90deg, rgba(215, 190, 147, 0.14) 0%, rgba(215, 190, 147, 0.05) 45%, rgba(255, 255, 255, 0) 100%);
}

.xhs-copy-flow > * {
    position: relative;
    z-index: 1;
}

.xhs-copy-kicker {
    font-size: 0.56rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(215, 190, 147, 0.88);
}

.xhs-copy-flow h3 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(0.85rem, 1.15vw, 0.98rem);
    line-height: 1.32;
    letter-spacing: 0.04em;
    color: var(--text);
}

.xhs-copy-flow p {
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.6;
    letter-spacing: 0.035em;
    color: var(--text-soft);
}

.xhs-copy-flow .xhs-copy-meta {
    font-size: 0.55rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* Expand indicator styling */
.xhs-copy-flow .expand-indicator {
    position: absolute;
    top: 0.55rem;
    right: 0.65rem;
    font-size: 0.72rem;
    color: rgba(215, 190, 147, 0.38);
    transition: color 250ms ease, transform 250ms ease;
    pointer-events: none;
    z-index: 5;
}

.xhs-copy-flow:hover .expand-indicator {
    color: rgba(215, 190, 147, 0.95);
    transform: scale(1.15);
}

/* Expanded Text Lightbox Modal Overlay */
.xhs-text-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms cubic-bezier(0.25, 1, 0.3, 1);
}

.xhs-text-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.xhs-text-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 3, 3, 0.88);
    backdrop-filter: blur(12px);
    z-index: -1;
}

.xhs-text-lightbox-content {
    position: relative;
    width: min(90vw, 560px);
    max-height: 80vh;
    transform: scale(0.95);
    transition: transform 300ms cubic-bezier(0.25, 1, 0.3, 1);
}

.xhs-text-lightbox.active .xhs-text-lightbox-content {
    transform: scale(1);
}

.xhs-text-lightbox-close {
    position: absolute;
    top: -2.8rem;
    right: 0;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 200ms ease, transform 200ms ease;
    padding: 0 0.5rem;
    z-index: 10;
}

.xhs-text-lightbox-close:hover {
    color: #fff;
    transform: scale(1.1);
}

/* Expanded Text Box Style matching normal style but larger and scrollable */
.xhs-copy-flow-expanded {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    padding: 2.2rem 2.5rem;
    border-radius: 1.5rem;
    background: #0f0f0f;
    border: 1px solid rgba(215, 190, 147, 0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.xhs-copy-flow-expanded::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(215, 190, 147, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 0;
}

.xhs-copy-flow-expanded > * {
    position: relative;
    z-index: 1;
}

.xhs-copy-flow-expanded h3 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    line-height: 1.45;
    letter-spacing: 0.05em;
    color: var(--text);
}

.xhs-copy-body-full {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-height: 48vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Scrollbar styling for expanded text box */
.xhs-copy-body-full::-webkit-scrollbar {
    width: 4px;
}

.xhs-copy-body-full::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 99px;
}

.xhs-copy-body-full::-webkit-scrollbar-thumb {
    background: rgba(215, 190, 147, 0.25);
    border-radius: 99px;
}

.xhs-copy-body-full::-webkit-scrollbar-thumb:hover {
    background: rgba(215, 190, 147, 0.45);
}

.xhs-copy-flow-expanded p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.85;
    letter-spacing: 0.04em;
    color: var(--text-soft);
}

.xhs-copy-flow-expanded .xhs-copy-meta {
    margin-top: 0.35rem;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-faint);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.85rem;
}

/* Lightbox Modal Overlay */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 3, 3, 0.95);
    z-index: 9999;
    display: grid;
    place-items: center;
    opacity: 0;
    backdrop-filter: blur(15px);
    transition: opacity 300ms cubic-bezier(0.25, 1, 0.3, 1);
    pointer-events: auto;
}

.lightbox-overlay.active {
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.96);
    transition: transform 300ms cubic-bezier(0.25, 1, 0.3, 1);
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.85);
    border-radius: 0.6rem;
}

.lightbox-close {
    position: absolute;
    top: -2.8rem;
    right: 0;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 2.3rem;
    cursor: pointer;
    line-height: 1;
    transition: color 200ms ease, transform 200ms ease;
    padding: 0 0.5rem;
}

.lightbox-close:hover {
    color: #fff;
    transform: scale(1.1);
}

.lightbox-caption {
    margin-top: 1.1rem;
    color: var(--text-soft);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
}

@media (max-width: 1100px) {
    .digital-human-dashboard {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .dashboard-specs-grid {
        grid-template-columns: 1fr;
    }
    .xhs-output-row {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    .xhs-card-stack {
        width: 6.6rem;
        height: 7rem;
    }
    .xhs-copy-flow {
        padding: 0.2rem 0;
    }
    .xhs-copy-flow::before {
        inset: 0;
        border-radius: 1.2rem;
    }
}

@media (max-width: 500px) {
    .xhs-output-stage {
        gap: 1.1rem;
    }
    .xhs-card-stack {
        width: 6.4rem;
        height: 6.9rem;
    }
}

/* Staggered Floating Video Deck Section Styling */
.video-deck-container {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    width: 100%;
}

.video-deck-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}

.deck-header-left .deck-kicker {
    font-size: 0.65rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-faint);
    display: block;
    margin-bottom: 0.6rem;
}

.deck-header-left h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.4vw, 2.1rem);
    font-weight: 400;
    letter-spacing: 0.14em;
    color: var(--text);
}

.deck-header-right {
    max-width: 32rem;
}

.deck-header-right p {
    margin: 0;
    font-size: var(--fs-body-sm);
    line-height: 1.8;
    color: var(--text-soft);
}

.deck-showcase-box {
    position: relative;
    width: 100%;
    min-height: 580px;
    background: #080808;
    border: 1px solid rgba(227, 214, 195, 0.08);
    border-radius: 2rem;
    padding: 3rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.deck-watermark {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-ui);
    font-size: clamp(4rem, 10vw, 8.5rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.02);
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
}

.deck-intro-text {
    position: absolute;
    left: 3rem;
    top: 5rem;
    max-width: 15rem;
    z-index: 10;
}

.deck-intro-text p {
    margin: 0;
    font-size: 0.76rem;
    line-height: 2;
    letter-spacing: 0.06em;
    color: var(--text-faint);
}

.deck-cards-wrap {
    position: relative;
    width: 100%;
    height: 340px;
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    transform-style: preserve-3d;
}

.deck-card {
    position: absolute;
    width: 175px;
    aspect-ratio: 0.72;
    border-radius: 1.15rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform-origin: center center;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.3, 1),
                opacity 0.8s cubic-bezier(0.25, 1, 0.3, 1),
                filter 0.8s cubic-bezier(0.25, 1, 0.3, 1);
    cursor: pointer;
}

.deck-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.deck-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.1rem;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.deck-card:hover .deck-card-overlay {
    opacity: 1;
}

.deck-card-overlay .card-tag {
    font-size: 0.58rem;
    letter-spacing: 0.15em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.deck-card-overlay h4 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.05em;
}

/* Staggered positions matching the jewelry fan styling */

/* Left Outer - Card 1 (Tilted Right, Higher) */
.deck-pos-l2 {
    transform: translate3d(calc(-50% - 395px), calc(-50% + 15px), -60px) rotateY(38deg);
    opacity: 0.45;
    filter: blur(0.8px);
    z-index: 2;
}

/* Left Inner - Card 2 (Tilted Right, Middle) */
.deck-pos-l1 {
    transform: translate3d(calc(-50% - 205px), calc(-50% + 45px), -20px) rotateY(20deg);
    opacity: 0.78;
    filter: blur(0.2px);
    z-index: 4;
}

/* Center Active - Card 3 (Straight, Centered/Lowest) */
.deck-pos-center {
    transform: translate3d(-50%, calc(-50% + 75px), 20px) rotateY(0deg) scale(1.05);
    opacity: 1;
    filter: none;
    z-index: 10;
    border-color: var(--accent);
}

/* Right Inner - Card 4 (Tilted Left, Middle) */
.deck-pos-r1 {
    transform: translate3d(calc(-50% + 205px), calc(-50% + 45px), -20px) rotateY(-20deg);
    opacity: 0.78;
    filter: blur(0.2px);
    z-index: 4;
}

/* Right Outer - Card 5 (Tilted Left, Higher) */
.deck-pos-r2 {
    transform: translate3d(calc(-50% + 395px), calc(-50% + 15px), -60px) rotateY(-38deg);
    opacity: 0.45;
    filter: blur(0.8px);
    z-index: 2;
}

/* Center position helper */
.deck-card {
    left: 50%;
    top: 50%;
}

/* Bottom Controls */
.deck-controls {
    align-self: center;
    display: flex;
    gap: 1.2rem;
    margin-top: 2.5rem;
    z-index: 10;
}

.deck-arrow {
    width: 2.8rem;
    height: 2.8rem;
    border: 1px solid rgba(227, 214, 195, 0.22);
    background: transparent;
    border-radius: 999px;
    color: var(--text-soft);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.deck-arrow:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(215, 190, 147, 0.05);
    transform: scale(1.05);
}

@media (max-width: 1100px) {
    .deck-showcase-box {
        min-height: 520px;
        padding: 2.2rem;
    }
    
    .deck-intro-text {
        position: static;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .deck-card {
        width: 140px;
    }
    
    .deck-pos-l2 {
        transform: translate3d(calc(-50% - 315px), calc(-50% + 15px), -50px) rotateY(38deg);
    }
    .deck-pos-l1 {
        transform: translate3d(calc(-50% - 162px), calc(-50% + 35px), -15px) rotateY(20deg);
    }
    .deck-pos-center {
        transform: translate3d(-50%, calc(-50% + 55px), 10px) rotateY(0deg) scale(1.05);
    }
    .deck-pos-r1 {
        transform: translate3d(calc(-50% + 162px), calc(-50% + 35px), -15px) rotateY(-20deg);
    }
    .deck-pos-r2 {
        transform: translate3d(calc(-50% + 315px), calc(-50% + 15px), -50px) rotateY(-38deg);
    }
}

@media (max-width: 768px) {
    .video-deck-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .deck-showcase-box {
        min-height: 460px;
        padding: 1.5rem;
    }
    .deck-card {
        width: 90px;
    }
    .deck-pos-l2 {
        transform: translate3d(calc(-50% - 206px), calc(-50% + 10px), -40px) rotateY(35deg);
        opacity: 0.35;
    }
    .deck-pos-l1 {
        transform: translate3d(calc(-50% - 106px), calc(-50% + 25px), -10px) rotateY(20deg);
        opacity: 0.75;
    }
    .deck-pos-center {
        transform: translate3d(-50%, calc(-50% + 40px), 10px) rotateY(0deg) scale(1.05);
        opacity: 1;
    }
    .deck-pos-r1 {
        transform: translate3d(calc(-50% + 106px), calc(-50% + 25px), -10px) rotateY(-20deg);
        opacity: 0.75;
    }
    .deck-pos-r2 {
        transform: translate3d(calc(-50% + 206px), calc(-50% + 10px), -40px) rotateY(-35deg);
        opacity: 0.35;
    }
}

@media (max-width: 500px) {
    .deck-showcase-box {
        min-height: 380px;
        padding: 1rem;
    }
    .deck-card {
        width: 70px;
    }
    .deck-pos-l2 {
        transform: translate3d(calc(-50% - 158px), calc(-50% + 10px), -30px) rotateY(32deg);
        opacity: 0.25;
    }
    .deck-pos-l1 {
        transform: translate3d(calc(-50% - 82px), calc(-50% + 20px), -10px) rotateY(18deg);
        opacity: 0.65;
    }
    .deck-pos-center {
        transform: translate3d(-50%, calc(-50% + 30px), 10px) rotateY(0deg) scale(1.05);
        opacity: 1;
    }
    .deck-pos-r1 {
        transform: translate3d(calc(-50% + 82px), calc(-50% + 20px), -10px) rotateY(-18deg);
        opacity: 0.65;
    }
    .deck-pos-r2 {
        transform: translate3d(calc(-50% + 158px), calc(-50% + 10px), -30px) rotateY(-32deg);
        opacity: 0.25;
    }
}

/* ==========================================================================
   Page Entry & Section Reveal Animations
   ========================================================================== */

/* 1. Curtain Transition Curtain on Load */
.page-transition-curtain {
    position: fixed;
    inset: 0;
    background: #050505;
    z-index: 10000;
    transform: translateY(0);
    transition: transform 900ms cubic-bezier(0.86, 0, 0.07, 1);
    pointer-events: none;
}

body.page-ready .page-transition-curtain {
    transform: translateY(-100%);
}

.page-transition-curtain::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 2;
}

/* Left Inner - Card 2 (Tilted Right, Middle) */
.deck-pos-l1 {
    transform: translate3d(calc(-50% - 205px), calc(-50% + 45px), -20px) rotateY(20deg);
    opacity: 0.78;
    filter: blur(0.2px);
    z-index: 4;
}

/* Center Active - Card 3 (Straight, Centered/Lowest) */
.deck-pos-center {
    transform: translate3d(-50%, calc(-50% + 75px), 20px) rotateY(0deg) scale(1.05);
    opacity: 1;
    filter: none;
    z-index: 10;
    border-color: var(--accent);
}

/* Right Inner - Card 4 (Tilted Left, Middle) */
.deck-pos-r1 {
    transform: translate3d(calc(-50% + 205px), calc(-50% + 45px), -20px) rotateY(-20deg);
    opacity: 0.78;
    filter: blur(0.2px);
    z-index: 4;
}

/* Right Outer - Card 5 (Tilted Left, Higher) */
.deck-pos-r2 {
    transform: translate3d(calc(-50% + 395px), calc(-50% + 15px), -60px) rotateY(-38deg);
    opacity: 0.45;
    filter: blur(0.8px);
    z-index: 2;
}

/* Center position helper */
.deck-card {
    left: 50%;
    top: 50%;
}

/* Bottom Controls */
.deck-controls {
    align-self: center;
    display: flex;
    gap: 1.2rem;
    margin-top: 2.5rem;
    z-index: 10;
}

.deck-arrow {
    width: 2.8rem;
    height: 2.8rem;
    border: 1px solid rgba(227, 214, 195, 0.22);
    background: transparent;
    border-radius: 999px;
    color: var(--text-soft);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.deck-arrow:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(215, 190, 147, 0.05);
    transform: scale(1.05);
}

@media (max-width: 1100px) {
    .deck-showcase-box {
        min-height: 520px;
        padding: 2.2rem;
    }
    
    .deck-intro-text {
        position: static;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .deck-card {
        width: 140px;
    }
    
    .deck-pos-l2 {
        transform: translate3d(calc(-50% - 315px), calc(-50% + 15px), -50px) rotateY(38deg);
    }
    .deck-pos-l1 {
        transform: translate3d(calc(-50% - 162px), calc(-50% + 35px), -15px) rotateY(20deg);
    }
    .deck-pos-center {
        transform: translate3d(-50%, calc(-50% + 55px), 10px) rotateY(0deg) scale(1.05);
    }
    .deck-pos-r1 {
        transform: translate3d(calc(-50% + 162px), calc(-50% + 35px), -15px) rotateY(-20deg);
    }
    .deck-pos-r2 {
        transform: translate3d(calc(-50% + 315px), calc(-50% + 15px), -50px) rotateY(-38deg);
    }
}

@media (max-width: 768px) {
    .video-deck-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .deck-showcase-box {
        min-height: 460px;
        padding: 1.5rem;
    }
    .deck-card {
        width: 90px;
    }
    .deck-pos-l2 {
        transform: translate3d(calc(-50% - 206px), calc(-50% + 10px), -40px) rotateY(35deg);
        opacity: 0.35;
    }
    .deck-pos-l1 {
        transform: translate3d(calc(-50% - 106px), calc(-50% + 25px), -10px) rotateY(20deg);
        opacity: 0.75;
    }
    .deck-pos-center {
        transform: translate3d(-50%, calc(-50% + 40px), 10px) rotateY(0deg) scale(1.05);
        opacity: 1;
    }
    .deck-pos-r1 {
        transform: translate3d(calc(-50% + 106px), calc(-50% + 25px), -10px) rotateY(-20deg);
        opacity: 0.75;
    }
    .deck-pos-r2 {
        transform: translate3d(calc(-50% + 206px), calc(-50% + 10px), -40px) rotateY(-35deg);
        opacity: 0.35;
    }
}

@media (max-width: 500px) {
    .deck-showcase-box {
        min-height: 380px;
        padding: 1rem;
    }
    .deck-card {
        width: 70px;
    }
    .deck-pos-l2 {
        transform: translate3d(calc(-50% - 158px), calc(-50% + 10px), -30px) rotateY(32deg);
        opacity: 0.25;
    }
    .deck-pos-l1 {
        transform: translate3d(calc(-50% - 82px), calc(-50% + 20px), -10px) rotateY(18deg);
        opacity: 0.65;
    }
    .deck-pos-center {
        transform: translate3d(-50%, calc(-50% + 30px), 10px) rotateY(0deg) scale(1.05);
        opacity: 1;
    }
    .deck-pos-r1 {
        transform: translate3d(calc(-50% + 82px), calc(-50% + 20px), -10px) rotateY(-18deg);
        opacity: 0.65;
    }
    .deck-pos-r2 {
        transform: translate3d(calc(-50% + 158px), calc(-50% + 10px), -30px) rotateY(-32deg);
        opacity: 0.25;
    }
}

/* ==========================================================================
   Page Entry & Section Reveal Animations
   ========================================================================== */

/* 1. Curtain Transition Curtain on Load */
.page-transition-curtain {
    position: fixed;
    inset: 0;
    background: #050505;
    z-index: 10000;
    transform: translateY(0);
    transition: transform 900ms cubic-bezier(0.86, 0, 0.07, 1);
    pointer-events: none;
}

body.page-ready .page-transition-curtain {
    transform: translateY(-100%);
}

.page-transition-curtain::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4ea57f;
    box-shadow: 0 0 15px rgba(78, 165, 127, 0.85), 0 0 5px rgba(78, 165, 127, 0.4);
}

/* 2. Directional staggered reveal animations for the Xiaohongshu Dashboard grid */
/* Override parent containers to prevent compound animations */
.dashboard-info-panel.reveal,
.dashboard-media-panel.reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
}

/* --- Left Side: Info Panel Staggered Children --- */
.dashboard-info-panel > * {
    opacity: 0;
    transform: perspective(1000px) translate3d(-120px, 0, -80px) rotateY(15deg);
    filter: blur(16px);
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

/* Delay cascades when parent container is visible */
.dashboard-info-panel.is-visible > .panel-kicker {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateY(0);
    filter: blur(0);
    transition-delay: 100ms;
}

.dashboard-info-panel.is-visible > .panel-title-premium {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateY(0);
    filter: blur(0);
    transition-delay: 200ms;
}

.dashboard-info-panel.is-visible > .panel-lead-text {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateY(0);
    filter: blur(0);
    transition-delay: 320ms;
}

.dashboard-info-panel.is-visible > .tech-blueprint-card {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateY(0);
    filter: blur(0);
    transition-delay: 440ms;
}

.dashboard-info-panel.is-visible > .dashboard-specs-grid {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateY(0);
    filter: blur(0);
    transition-delay: 560ms;
}

/* Force stay hidden when body not page-ready */
body:not(.page-ready) .dashboard-info-panel > * {
    opacity: 0 !important;
    transform: perspective(1000px) translate3d(-120px, 0, -80px) rotateY(15deg) !important;
    filter: blur(16px) !important;
    transition: none !important;
}


/* --- Right Side: Media Panel Staggered Children --- */
.dashboard-media-panel > .main-video-viewport,
.dashboard-media-panel > .evidence-row {
    opacity: 0;
    transform: perspective(1000px) translate3d(120px, 0, -80px) rotateY(-15deg);
    filter: blur(16px);
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.xhs-output-row {
    opacity: 0;
    transform: perspective(1000px) translate3d(120px, 0, -80px) rotateY(-15deg);
    filter: blur(16px);
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.dashboard-media-panel.is-visible > .main-video-viewport {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateY(0);
    filter: blur(0);
    transition-delay: 200ms;
}

/* Stagger xhs-output-stage rows */
.dashboard-media-panel.is-visible .xhs-output-row:nth-child(1) {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateY(0);
    filter: blur(0);
    transition-delay: 450ms;
}

.dashboard-media-panel.is-visible .xhs-output-row:nth-child(2) {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateY(0);
    filter: blur(0);
    transition-delay: 680ms;
}

/* Fallback for unenhanced evidence row */
.dashboard-media-panel.is-visible > .evidence-row {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateY(0);
    filter: blur(0);
    transition-delay: 450ms;
}

/* Force stay hidden when body not page-ready */
body:not(.page-ready) .dashboard-media-panel > .main-video-viewport,
body:not(.page-ready) .xhs-output-row,
body:not(.page-ready) .dashboard-media-panel > .evidence-row {
    opacity: 0 !important;
    transform: perspective(1000px) translate3d(120px, 0, -80px) rotateY(-15deg) !important;
    filter: blur(16px) !important;
    transition: none !important;
}


/* --- 3D Fan out Card Dealing Animation --- */
.xhs-stack-card {
    transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease, box-shadow 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Before reveal (parent .dashboard-media-panel is not visible) */
.dashboard-media-panel:not(.is-visible) .xhs-stack-card {
    transform: translate3d(0, 0, 0) rotateY(0) rotateX(0) rotateZ(0) scale(0.9) !important;
    opacity: 0 !important;
}

/* When active, fan out with staggered transition delays */
.dashboard-media-panel.is-visible .xhs-output-row:nth-child(1) .xhs-stack-back {
    transition-delay: 820ms !important;
}

.dashboard-media-panel.is-visible .xhs-output-row:nth-child(1) .xhs-stack-mid {
    transition-delay: 680ms !important;
}

.dashboard-media-panel.is-visible .xhs-output-row:nth-child(1) .xhs-stack-front {
    transition-delay: 550ms !important;
}

.dashboard-media-panel.is-visible .xhs-output-row:nth-child(2) .xhs-stack-back {
    transition-delay: 1050ms !important;
}

.dashboard-media-panel.is-visible .xhs-output-row:nth-child(2) .xhs-stack-mid {
    transition-delay: 920ms !important;
}

.dashboard-media-panel.is-visible .xhs-output-row:nth-child(2) .xhs-stack-front {
    transition-delay: 800ms !important;
}

/* Reset transition delay on hover to keep interaction responsive */
.xhs-output-row:hover .xhs-stack-card,
.xhs-card-stack .xhs-stack-card:hover {
    transition-delay: 0s !important;
}

/* --- Video Deck Cards Entry Animations (One by one from bottom) --- */
.deck-card {
    transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Initial state: Pushed down, scale down, blur */
.template-showcase-section:not(.is-visible) .deck-card {
    transform: translate3d(-50%, calc(-50% + 380px), -240px) rotateY(0deg) scale(0.65) !important;
    opacity: 0 !important;
    filter: blur(16px) !important;
}

/* Stagger delays on load for the cards as they fly up from bottom */
.template-showcase-section.is-visible .deck-card.deck-pos-l2 {
    transition-delay: 200ms !important;
}

.template-showcase-section.is-visible .deck-card.deck-pos-l1 {
    transition-delay: 350ms !important;
}

.template-showcase-section.is-visible .deck-card.deck-pos-center {
    transition-delay: 500ms !important;
}

.template-showcase-section.is-visible .deck-card.deck-pos-r1 {
    transition-delay: 650ms !important;
}

.template-showcase-section.is-visible .deck-card.deck-pos-r2 {
    transition-delay: 800ms !important;
}

/* When hover or active, instantly clear delay so rotation remains snappy and interactive */
.video-deck-container:hover .deck-card,
.video-deck-container:focus-within .deck-card {
    transition-delay: 0s !important;
}

/* Tech Specs List - Top Header 2-Column Split Layout */
.video-deck-header {
    align-items: flex-start !important; /* Align left and right columns to top */
    gap: 3.5rem !important;
}

.deck-header-left .deck-desc-new {
    margin-top: 1.2rem;
    font-size: 0.82rem;
    line-height: 1.8;
    color: var(--text-soft);
    max-width: 25rem;
}

.tech-specs-header-list {
    max-width: 32rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding-top: 0.5rem; /* Align top with h2 */
}

.tech-specs-header-list .header-spec-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.tech-specs-header-list .header-spec-dot {
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    margin-top: 0.45rem;
    box-shadow: 0 0 6px var(--accent);
    flex-shrink: 0;
}

.tech-specs-header-list .header-spec-item p {
    margin: 0;
    font-size: 0.74rem;
    line-height: 1.65;
    letter-spacing: 0.04em;
    color: var(--text-soft);
}

.tech-specs-header-list .header-spec-item p strong {
    color: var(--text);
    font-weight: 600;
}

/* Mobile responsive fixes */
@media (max-width: 900px) {
    .video-deck-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.5rem !important;
    }
    .tech-specs-header-list {
        max-width: 100%;
        padding-top: 0;
    }
}

