@scope (#sequence-stage > .video-card) {
/* Smoke and Mirrors Styles */
.viewport {
    --sm-bg: #ffffff;
    --sm-panel: #121216;
    --sm-panel-strong: #121216;
    --sm-panel-soft: rgba(255, 255, 255, 0.04);
    --sm-border: rgba(255, 255, 255, 0.08);
    --sm-text-main: #f4f2ff;
    --sm-text-muted: #99dbf7;
    --sm-text-soft: #99dbf7;
    --sm-accent: #99dbf7;
    --sm-accent-warm: #99dbf7;
    --sm-accent-alert: #99dbf7;
    --sm-accent-soft: rgba(153, 219, 247, 0.08);
    --sm-accent-ring: rgba(153, 219, 247, 0.14);
    --sm-accent-ring-strong: rgba(153, 219, 247, 0.72);
    --sm-accent-glow: rgba(153, 219, 247, 0.22);
    --sm-bubble-surface: #303139;
    --sm-button-fill-dark: #121216;
    --sm-button-border-dark: rgba(255, 255, 255, 0.12);
    --sm-button-fill-light: #ffffff;
    --sm-button-border-light: #000000;
    --sm-button-text-dark: #ffffff;
    --sm-button-text-light: #000000;
    --sm-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    --sm-font-main: var(--font-google-sans-flex);
    --sm-font-alt: "JetBrains Mono", "IBM Plex Mono", monospace;

    font-family: var(--sm-font-main);
    color: var(--sm-text-main);
    background: var(--sm-bg);
}

* {
    box-sizing: border-box;
}

.viewport {
    display: grid;
    place-items: center;
}

.scene-card {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: grid;
    align-items: center;
    padding: 36px 34px;
    isolation: isolate;
}

.ambient {
    position: absolute;
    pointer-events: none;
    display: none;
}

.ambient-one {
    inset: auto auto 8% -10%;
}

.ambient-two {
    inset: 8% -12% auto auto;
}

.conversation {
    position: relative;
    z-index: 1;
}

.conversation {
    display: grid;
    gap: 16px;
    justify-items: stretch;
    width: min(100%, 612px);
    justify-self: center;
    transition: opacity 260ms ease;
}

.conversation.is-transitioning-out {
    pointer-events: none;
}

.conversation.is-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.message-card {
    position: relative;
    border-radius: 28px;
    padding: 18px 18px 16px;
    border: 1px solid var(--sm-border);
    backdrop-filter: none;
}

.message-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.message-card-user {
    background: var(--sm-panel);
    justify-self: end;
    width: fit-content;
    max-width: min(88%, 560px);
    margin-left: auto;
    overflow: visible;
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    transition:
        opacity 260ms ease,
        transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1.1);
}

.message-card-user.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.message-card-user::after {
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.message-card-agent {
    padding: 4px 0 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    min-height: 420px;
    transform: none;
    opacity: 1;
    transition: none;
}

.message-card-agent.is-visible {
    opacity: 1;
    transform: none;
}

.message-card-agent::after {
    display: none;
}

.message-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--sm-text-soft);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.prompt-line {
    min-height: 0;
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 400;
    text-align: right;
    transform: translateX(0);
    transition:
        opacity 220ms ease,
        transform 220ms ease;
}

.reply-lead {
    margin: 14px 0 0;
    min-height: 66px;
    color: #000000;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 400;
    white-space: pre-line;
    transform: translateX(0);
    transition:
        opacity 280ms ease,
        transform 280ms ease;
}

.metrics {
    display: grid;
    gap: 10px;
    margin-top: 0;
}

.metric-row {
    display: grid;
    gap: 6px;
    padding: 14px 14px 12px;
    border-radius: 18px;
    background: var(--sm-panel);
    border: 1px solid var(--sm-accent-ring);
    transform: translateY(12px);
    opacity: 0;
    transition:
        opacity 380ms ease,
        transform 380ms ease,
        border-color 380ms ease,
        background-color 380ms ease;
}

.metric-row.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.conversation.is-transitioning-out .message-card-user {
    opacity: 0;
    transform: translate3d(-52px, 0, 0) scale(0.98);
}

.conversation.is-transitioning-out .reply-lead {
    opacity: 0;
    transform: translate3d(-64px, 0, 0);
    transition-delay: 50ms;
}

.conversation.is-transitioning-out .metric-row {
    opacity: 0;
    transform: translate3d(-72px, 0, 0);
    transition-duration: 300ms;
}

.conversation.is-transitioning-out .metric-row:nth-child(1) {
    transition-delay: 90ms;
}

.conversation.is-transitioning-out .metric-row:nth-child(2) {
    transition-delay: 130ms;
}

.conversation.is-transitioning-out .metric-row:nth-child(3) {
    transition-delay: 170ms;
}

.conversation.is-transitioning-out .metric-row:nth-child(4) {
    transition-delay: 210ms;
}

.metric-row-alert {
    background: var(--sm-panel);
    border-color: var(--sm-accent-ring);
}

.metric-row-alert {
    position: relative;
    overflow: visible;
    grid-template-columns: minmax(0, 1fr) auto;
}

.metric-inline-row {
    display: contents;
}

.metric-row-alert > .metric-label,
.metric-inline-row > .metric-value {
    grid-column: 1;
}

.metric-inline-row > .metric-action-wrap {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    margin-left: 6px;
}

.metric-label,
.metric-value {
    display: block;
}

.metric-label {
    color: var(--sm-text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-value {
    color: var(--sm-text-main);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.1;
}

.metric-note {
    margin: 0;
    color: var(--sm-text-soft);
    font-size: 12px;
    line-height: 1.35;
}

.metric-action-wrap {
    position: relative;
    flex: 0 0 auto;
    width: fit-content;
}

.metric-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 34px;
    padding: 0 14px;
    border: none;
    border-radius: 3px;
    background: #4a4a50;
    color: #fff;
    clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
    isolation: isolate;
    font: inherit;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: normal;
    opacity: 0;
    transform: translateY(6px) scale(0.96);
    box-shadow: none;
    transition:
        opacity 260ms ease,
        transform 260ms ease,
        box-shadow 180ms ease;
}

.metric-action::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    background: var(--sm-button-fill-dark);
    clip-path: inherit;
    pointer-events: none;
}

.metric-action.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.metric-action.is-pressed {
    background: #4a4a50;
    color: #ffffff;
}

.metric-action.is-pressed::before {
    background: #222227;
}

#mounting01 .metric-action.is-pressed {
    transform: translateY(0) scale(1);
    animation: restock-button-click 380ms ease-out;
}

.metric-action-wrap:has(.is-pressed)::after {
    content: "";
    position: absolute;
    inset: -6px;
    border: 2px solid var(--sm-accent);
    border-radius: 8px;
    pointer-events: none;
    animation: restock-click-ring 600ms ease-out both;
}

@keyframes restock-button-click {
    0% { transform: translateY(2px) scale(.88); }
    55% { transform: translateY(0) scale(1.08); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes restock-click-ring {
    from { opacity: .9; transform: scale(.9); }
    to { opacity: 0; transform: scale(1.4); }
}

@media (prefers-reduced-motion: reduce) {
    #mounting01 .metric-action.is-pressed {
        animation: none;
    }
    .metric-action-wrap:has(.is-pressed)::after {
        content: none;
    }
}

.metric-cursor {
    position: absolute;
    right: -16px;
    bottom: -14px;
    width: 32px;
    height: 32px;
    color: #050505;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.42));
    opacity: 0;
    transform: translate3d(30px, 16px, 0) scale(0.84);
    transition:
        opacity 180ms ease,
        transform 760ms cubic-bezier(0.18, 0.88, 0.26, 1);
    pointer-events: none;
}

.metric-cursor svg {
    width: 100%;
    height: 100%;
}

.metric-cursor.is-visible {
    opacity: 1;
}

.metric-cursor.is-approaching {
    opacity: 1;
    transform: translate3d(-16px, -2px, 0) scale(1);
}

.metric-cursor.is-clicking {
    transform: translate3d(-12px, 0, 0) scale(0.92);
}

.next-sequence {
    position: absolute;
    inset: 36px 34px;
    z-index: 2;
    display: grid;
    align-items: center;
    opacity: 0;
    transform: translate3d(52px, 0, 0);
    pointer-events: none;
    transition:
        opacity 520ms ease,
        transform 520ms cubic-bezier(0.22, 0.82, 0.22, 1);
}

.next-sequence.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.next-sequence.is-transitioning-up {
    opacity: 0;
    transform: translate3d(0, -54px, 0);
}

.chat-shell {
    display: grid;
    gap: 14px;
    width: min(100%, 612px);
    justify-self: center;
    padding: 22px;
    border-radius: 28px;
    background: rgb(10, 15, 26);
    border: 0;
    box-shadow: none;
}

.chat-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
    padding: 8px 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.chat-contact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.chat-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgb(38, 124, 78);
    color: #eafff1;
    font-size: 16px;
    font-weight: 700;
}

.chat-contact-copy {
    display: grid;
    gap: 7px;
    padding-top: 3px;
}

.chat-name,
.chat-presence {
    margin: 0;
}

.chat-name {
    color: var(--sm-text-main);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
}

.chat-presence {
    color: #8db09a;
    font-size: 13px;
    line-height: 1.4;
}

.chat-channel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.16);
    border: 1px solid rgba(37, 211, 102, 0.18);
    color: #92f5b6;
    font-size: 12px;
    font-weight: 600;
}

.chat-thread {
    display: grid;
    gap: 12px;
    padding: 6px 2px 2px;
    min-height: 0;
    align-content: start;
}

.chat-bubble {
    display: grid;
    gap: 8px;
    max-width: 82%;
    padding: 14px 16px 12px;
    border-radius: 20px;
    opacity: 0;
    transition:
        opacity 320ms ease,
        transform 320ms ease;
}

.chat-bubble-agent {
    justify-self: end;
    min-height: 98px;
    background: rgb(27, 120, 76);
    color: #effff4;
    border: 1px solid transparent;
    border-bottom-right-radius: 8px;
    transform: translateY(12px);
    transition:
        opacity 320ms ease,
        transform 320ms ease,
        border-color 260ms ease,
        box-shadow 260ms ease;
}

.chat-bubble-agent.is-ai-composing {
    border: 1px solid var(--sm-accent);
    box-shadow:
        0 0 0 2px var(--sm-accent-ring),
        0 0 18px var(--sm-accent-glow);
}

.chat-bubble-supplier {
    justify-self: start;
    min-height: 68px;
    background: rgb(24, 31, 41);
    color: #eef3f7;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom-left-radius: 8px;
    transform: translateY(12px);
}

.chat-bubble.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.chat-bubble-text {
    margin: 0;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 400;
}

.chat-time {
    justify-self: end;
    color: rgba(239, 255, 244, 0.72);
    font-size: 11px;
    font-weight: 500;
}

.chat-meta {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 5px;
}

.chat-status {
    display: inline-flex;
    width: 20px;
    height: 12px;
    color: #99dbf7;
}

.chat-status svg {
    width: 100%;
    height: 100%;
}

.chat-bubble-supplier .chat-time {
    color: rgba(224, 231, 238, 0.62);
}

.third-sequence {
    position: absolute;
    inset: 36px 34px;
    z-index: 3;
    display: grid;
    align-items: center;
    opacity: 0;
    transform: translate3d(0, 0, 0);
    pointer-events: none;
    transition: opacity 520ms ease;
}

.third-sequence.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.update-shell {
    display: grid;
    gap: 12px;
    width: min(100%, 612px);
    min-height: 230px;
    justify-self: center;
    align-content: start;
}

.update-bubble {
    display: grid;
    align-items: start;
    min-height: 0;
    padding: 0;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 320ms ease,
        transform 320ms ease;
}

.update-bubble.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.update-text {
    display: block;
    margin: 0;
    color: #000000;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 400;
    white-space: pre-line;
}

.update-user-card {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    width: fit-content;
    max-width: min(72%, 220px);
    min-height: 0;
    padding: 12px 18px;
    opacity: 0;
    transform: translateY(10px) scale(0.96);
}

.update-user-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.update-user-text {
    min-height: 0;
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.35;
}

#update-text {
    min-height: 54px;
}

#update-followup-text {
    min-height: 27px;
}

#mounting01 {
    --scene-scale: 1;
    --scene-unit: calc(1px * var(--scene-scale));
}

@media (min-width: 631px) {
    #mounting01 {
        padding: calc(36 * var(--scene-unit)) calc(34 * var(--scene-unit));
    }

    #mounting01 .conversation {
        gap: calc(16 * var(--scene-unit));
        width: min(100%, calc(612 * var(--scene-unit)));
    }

    #mounting01 .message-card {
        border-radius: calc(28 * var(--scene-unit));
        padding: calc(18 * var(--scene-unit)) calc(18 * var(--scene-unit)) calc(16 * var(--scene-unit));
    }

    #mounting01 .message-card-user {
        max-width: min(88%, calc(560 * var(--scene-unit)));
        border-bottom-right-radius: calc(8 * var(--scene-unit));
        transform: translateY(calc(14 * var(--scene-unit))) scale(0.96);
    }

    #mounting01 .message-card-agent {
        padding-top: calc(4 * var(--scene-unit));
        min-height: calc(420 * var(--scene-unit));
    }

    #mounting01 .prompt-line,
    #mounting01 .reply-lead,
    #mounting01 .update-text,
    #mounting01 .update-user-text {
        font-size: calc(20 * var(--scene-unit));
    }

    #mounting01 .reply-lead {
        margin-top: calc(14 * var(--scene-unit));
        min-height: calc(66 * var(--scene-unit));
    }

    #mounting01 .metrics {
        gap: calc(10 * var(--scene-unit));
    }

    #mounting01 .metric-row {
        gap: calc(6 * var(--scene-unit));
        padding: calc(14 * var(--scene-unit)) calc(14 * var(--scene-unit)) calc(12 * var(--scene-unit));
        border-radius: calc(18 * var(--scene-unit));
        transform: translateY(calc(12 * var(--scene-unit)));
    }

    #mounting01 .conversation.is-transitioning-out .message-card-user {
        transform: translate3d(calc(-52 * var(--scene-unit)), 0, 0) scale(0.98);
    }

    #mounting01 .conversation.is-transitioning-out .reply-lead {
        transform: translate3d(calc(-64 * var(--scene-unit)), 0, 0);
    }

    #mounting01 .conversation.is-transitioning-out .metric-row {
        transform: translate3d(calc(-72 * var(--scene-unit)), 0, 0);
    }

    #mounting01 .metric-inline-row {
        gap: calc(12 * var(--scene-unit));
    }

    #mounting01 .metric-label {
        font-size: calc(11 * var(--scene-unit));
    }

    #mounting01 .metric-value {
        font-size: calc(18 * var(--scene-unit));
    }

    #mounting01 .metric-action {
        min-height: calc(34 * var(--scene-unit));
        padding: 0 calc(14 * var(--scene-unit));
        font-size: calc(18 * var(--scene-unit));
        transform: translateY(calc(6 * var(--scene-unit))) scale(0.96);
    }

    #mounting01 .metric-cursor {
        right: calc(-16 * var(--scene-unit));
        bottom: calc(-14 * var(--scene-unit));
        width: calc(32 * var(--scene-unit));
        height: calc(32 * var(--scene-unit));
        transform: translate3d(calc(30 * var(--scene-unit)), calc(16 * var(--scene-unit)), 0) scale(0.84);
    }

    #mounting01 .metric-cursor.is-approaching {
        transform: translate3d(calc(-16 * var(--scene-unit)), calc(-2 * var(--scene-unit)), 0) scale(1);
    }

    #mounting01 .metric-cursor.is-clicking {
        transform: translate3d(calc(-12 * var(--scene-unit)), 0, 0) scale(0.92);
    }

    #mounting01 .next-sequence,
    #mounting01 .third-sequence {
        inset: calc(36 * var(--scene-unit)) calc(34 * var(--scene-unit));
    }

    #mounting01 .next-sequence {
        transform: translate3d(calc(52 * var(--scene-unit)), 0, 0);
    }

    #mounting01 .next-sequence.is-visible {
        transform: translate3d(0, 0, 0);
    }

    #mounting01 .next-sequence.is-transitioning-up {
        transform: translate3d(0, calc(-54 * var(--scene-unit)), 0);
    }

    #mounting01 .chat-shell {
        gap: calc(14 * var(--scene-unit));
        width: min(100%, calc(612 * var(--scene-unit)));
        padding: calc(22 * var(--scene-unit));
        border-radius: calc(28 * var(--scene-unit));
    }

    #mounting01 .chat-topbar {
        gap: calc(12 * var(--scene-unit));
        min-height: calc(64 * var(--scene-unit));
        padding: calc(8 * var(--scene-unit)) 0 calc(18 * var(--scene-unit));
    }

    #mounting01 .chat-contact {
        gap: calc(12 * var(--scene-unit));
    }

    #mounting01 .chat-avatar {
        width: calc(42 * var(--scene-unit));
        height: calc(42 * var(--scene-unit));
        font-size: calc(16 * var(--scene-unit));
    }

    #mounting01 .chat-contact-copy {
        gap: calc(7 * var(--scene-unit));
        padding-top: calc(3 * var(--scene-unit));
    }

    #mounting01 .chat-name {
        font-size: calc(16 * var(--scene-unit));
    }

    #mounting01 .chat-presence {
        font-size: calc(13 * var(--scene-unit));
    }

    #mounting01 .chat-channel {
        min-height: calc(30 * var(--scene-unit));
        padding: 0 calc(12 * var(--scene-unit));
        font-size: calc(12 * var(--scene-unit));
    }

    #mounting01 .chat-thread {
        gap: calc(12 * var(--scene-unit));
        padding: calc(6 * var(--scene-unit)) calc(2 * var(--scene-unit)) calc(2 * var(--scene-unit));
    }

    #mounting01 .chat-bubble {
        gap: calc(8 * var(--scene-unit));
        padding: calc(14 * var(--scene-unit)) calc(16 * var(--scene-unit)) calc(12 * var(--scene-unit));
    }

    #mounting01 .chat-bubble-agent {
        min-height: calc(98 * var(--scene-unit));
        border-bottom-right-radius: calc(8 * var(--scene-unit));
        transform: translateY(calc(12 * var(--scene-unit)));
    }

    #mounting01 .chat-bubble-supplier {
        min-height: calc(68 * var(--scene-unit));
        border-bottom-left-radius: calc(8 * var(--scene-unit));
        transform: translateY(calc(12 * var(--scene-unit)));
    }

    #mounting01 .chat-bubble-text {
        font-size: calc(17 * var(--scene-unit));
    }

    #mounting01 .chat-time {
        font-size: calc(11 * var(--scene-unit));
    }

    #mounting01 .chat-meta {
        gap: calc(5 * var(--scene-unit));
    }

    #mounting01 .chat-status {
        width: calc(20 * var(--scene-unit));
        height: calc(12 * var(--scene-unit));
    }

    #mounting01 .update-shell {
        gap: calc(12 * var(--scene-unit));
        width: min(100%, calc(612 * var(--scene-unit)));
        min-height: calc(230 * var(--scene-unit));
        padding-top: calc(56 * var(--scene-unit));
    }

    #mounting01 .update-bubble {
        transform: translateY(calc(10 * var(--scene-unit)));
    }

    #mounting01 .update-user-card {
        max-width: min(72%, calc(220 * var(--scene-unit)));
        padding: calc(12 * var(--scene-unit)) calc(18 * var(--scene-unit));
        transform: translateY(calc(10 * var(--scene-unit))) scale(0.96);
    }

    #mounting01 #update-text {
        min-height: calc(54 * var(--scene-unit));
    }

    #mounting01 #update-followup-text {
        min-height: calc(27 * var(--scene-unit));
    }
}

#mounting01 .update-shell {
    align-content: start;
    padding-top: calc(56 * var(--scene-unit));
}

@media (max-width: 630px) {
    .scene-card {
        padding: 28px 24px;
    }

    .message-card {
        border-radius: 24px;
        padding: 16px;
    }

    .message-card-agent {
        padding-top: 4px;
        min-height: 380px;
    }

    .reply-lead {
        min-height: 78px;
        font-size: clamp(17px, 3vw, 20px);
    }

    .metric-value {
        font-size: clamp(17px, 3vw, 18px);
    }

    .next-sequence {
        inset: 28px 24px;
    }

    .third-sequence {
        inset: 28px 24px;
    }

    .chat-shell {
        width: 100%;
        padding: 18px;
        border-radius: 24px;
    }

    .chat-bubble {
        max-width: 88%;
    }

    .chat-thread {
        min-height: 0;
    }

    .chat-bubble-text {
        font-size: 15px;
    }

    .update-shell {
        width: 100%;
        min-height: 210px;
    }

    #mounting01 .update-shell {
        padding-top: 38px;
    }

    .update-bubble {
        min-height: 0;
    }

    .update-user-card {
        max-width: min(78%, 220px);
        min-height: 0;
        padding: 10px 16px;
    }

    .update-text {
        font-size: clamp(17px, 3vw, 20px);
    }

    .update-user-text {
        font-size: clamp(17px, 3vw, 20px);
    }

    #update-text {
        min-height: 46px;
    }

    #update-followup-text {
        min-height: 23px;
    }
}


}

/* Match the white border and glow of the home page's Master showcases. */
#sequence-stage > .video-card {
    order: 2;
}

#sequence-stage > .video-card::before,
#sequence-stage > .video-card::after,
.capability-section--offer > .receipt-showcase-card::before,
.capability-section--offer > .receipt-showcase-card::after {
    content: none;
}

/* Card placement belongs to capabilities-offer.css; canvas sizing belongs to
   intelligence-showcase-responsive.css. Keep shared frame styling here. */
#sequence-stage > .video-card .video-card-inner {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    background: #ffffff;
}

/* Use the same edge geometry and visible-state shadows as the Master frames. */
#sequence-stage > .video-card,
#capabilities-bridge .bridge-rect {
    border: 0;
    padding: 0;
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
    isolation: isolate;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.56),
        0 0 14px 2px rgba(255, 255, 255, 0.86),
        0 0 24px 5px rgba(255, 255, 255, 0.4);
}

#sequence-stage > .video-card .video-card-inner,
.capability-section--offer > .receipt-showcase-card .video-card-inner,
#capabilities-bridge .bridge-rect-inner {
    border-radius: inherit;
}

@media (orientation: portrait) and (max-width: 768px) {
    #sequence-stage > .video-card,
    #capabilities-bridge .bridge-rect {
        border-radius: 12px;
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 1),
            0 0 14px 1px rgba(255, 255, 255, 0.86),
            0 0 22px rgba(255, 255, 255, 0.46);
    }
}

/* Email composition scene, scaled with the existing showcase canvas. */
#mounting01 .mail-shell {
    width: min(88%, calc(540 * var(--scene-unit)));
    justify-self: center;
    overflow: hidden;
    background: var(--sm-panel);
    border: 2px solid #c9cdd2;
    border-radius: calc(48 * var(--scene-unit));
    padding-block: calc(24 * var(--scene-unit));
    box-shadow: 0 8px 24px rgba(32, 33, 36, 0.12);
    color: #f4f2ff;
    font-size: calc(20 * var(--scene-unit));
}

#mounting01 .mail-label {
    display: block;
    width: fit-content;
    margin: 0 calc(32 * var(--scene-unit)) calc(12 * var(--scene-unit));
    padding: calc(5 * var(--scene-unit)) calc(10 * var(--scene-unit));
    border: 1px solid #3b3b42;
    border-radius: calc(6 * var(--scene-unit));
    background: #1f1f24;
    color: #99dbf7;
    font-size: calc(13 * var(--scene-unit));
    font-weight: 500;
    letter-spacing: .04em;
}

#mounting01 .mail-field {
    display: flex;
    align-items: center;
    gap: calc(24 * var(--scene-unit));
    margin: 0 calc(32 * var(--scene-unit));
    padding: calc(12 * var(--scene-unit)) 0;
    border-bottom: 1px solid rgba(201, 205, 210, .28);
}

#mounting01 .mail-field > span {
    min-width: calc(64 * var(--scene-unit));
    color: #b0b0b8;
}

#mounting01 .mail-field strong {
    font-weight: 400;
}

#mounting01 .mail-body {
    min-height: calc(300 * var(--scene-unit));
    padding: calc(36 * var(--scene-unit)) calc(32 * var(--scene-unit));
    line-height: 1.35;
    font-weight: 400;
    opacity: 0;
    transition: opacity 320ms ease;
}

#mounting01 .mail-body.is-visible {
    opacity: 1;
}

#mounting01 .mail-body p {
    margin: 0;
}

#mounting01 .mail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(12 * var(--scene-unit));
    padding: calc(24 * var(--scene-unit)) calc(32 * var(--scene-unit));
    border-top: 1px solid rgba(201, 205, 210, .28);
}

#mounting01 .mail-send {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: calc(22 * var(--scene-unit));
    padding: calc(10 * var(--scene-unit)) calc(20 * var(--scene-unit));
    border-radius: 3px;
    border: none;
    background: #4a4a50;
    clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
    color: #ffffff;
    font: inherit;
    font-weight: 300;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 240ms ease, transform 180ms ease;
}

#mounting01 .mail-send::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -2;
    background: var(--sm-button-fill-dark);
    clip-path: inherit;
    pointer-events: none;
}

#mounting01 .mail-send.is-sent::before,
#mounting01 .mail-send.is-pressed::before {
    background: #222227;
}

#mounting01 .mail-send.is-sent {
    background: #4a4a50;
    animation: mail-send-click 380ms ease-out;
}

#mounting01 .mail-send.is-loading {
    background: #4a4a50;
}

#mounting01 .mail-send.is-loading::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    background: #121216;
    clip-path: inherit;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: left;
    animation: mail-loading-fill 1200ms linear forwards;
}

@keyframes mail-loading-fill {
    to { transform: scaleX(1); }
}

#mounting01 .mail-send.is-pressed {
    background: #4a4a50;
    transform: scale(.92);
}

@keyframes mail-send-click {
    0% { transform: scale(.92); box-shadow: 0 0 0 0 rgba(54, 54, 56, .3); }
    55% { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(54, 54, 56, .12); }
    100% { transform: scale(1); box-shadow: 0 0 0 10px rgba(54, 54, 56, 0); }
}

#mounting01 .mail-send-wrap {
    position: relative;
    flex: none;
}

#mounting01 .mail-send-cursor {
    position: absolute;
    left: 65%;
    top: 50%;
    width: calc(32 * var(--scene-unit));
    height: calc(32 * var(--scene-unit));
    z-index: 2;
    opacity: 0;
    transform: translate(80px, 50px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 600ms cubic-bezier(.22, 1, .36, 1);
}

#mounting01 .mail-send-cursor svg {
    width: 100%;
    height: 100%;
}

#mounting01 .mail-send-cursor.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

#mounting01 .mail-send-cursor.is-clicking {
    transform: scale(.8);
}

@media (prefers-reduced-motion: reduce) {
    #mounting01 .mail-send,
    #mounting01 .mail-send-cursor {
        transition: none;
    }
    #mounting01 .mail-send.is-loading,
    #mounting01 .mail-send.is-loading::after,
    #mounting01 .mail-send.is-sent {
        animation: none;
    }
    #mounting01 .mail-send.is-loading::after {
        transform: scaleX(1);
    }
}

#mounting01 .mail-delivery-status {
    opacity: 0;
    transition: opacity 240ms ease;
    color: #99dbf7;
    font-size: calc(12 * var(--scene-unit));
}

#mounting01 .mail-footer:has(.mail-send.is-sent) .mail-delivery-status {
    opacity: 1;
}

@media (max-width: 630px) {
    #mounting01 .mail-shell {
        font-size: clamp(17px, 3vw, 20px);
    }
}
