/* ==========================================================================
   MUKE STUDIO - HOME PAGE
   High-Contrast Futuristic Cyber-HUD Interface
   Exact Pixel-for-Pixel Reference Match
   ========================================================================== */

/* ===== CSS RESET & BOX MODEL ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color System (Reference Match) */
    --hud-frame-bg: #09090b;
    --hud-frame-border: #18181b;
    --canvas-bg: #ffffff;
    --canvas-subtle: #f8f9fa;

    --text-primary: #0a0a0c;
    --text-secondary: #555562;
    --text-muted: #8e8e99;
    --text-inverse: #ffffff;

    --border-subtle: rgba(10, 10, 12, 0.15);
    --border-strong: #0a0a0c;
    --border-card: rgba(10, 10, 12, 0.1);

    --current-accent: #0284c7;

    /* Typography */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Space Grotesk', monospace, sans-serif;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html,
body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--hud-frame-bg);
    color: var(--text-primary);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   FUTURISTIC HUD ENCLOSURE FRAME
   The defining black cyber-bezel from Reference
   ========================================================================== */
.viewport-frame {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    padding: 18px 24px 18px 24px;
    background-color: var(--hud-frame-bg);
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    z-index: 10;
}

@media (max-width: 768px) {
    .viewport-frame {
        padding: 8px;
    }
}

/* Inner Screen Canvas (Pure White Editorial Surface) */
.screen-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--canvas-bg);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Sticky Watermark Background Typography (Fixed Behind Canvas) */
.canvas-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.canvas-watermark .watermark-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 0.8;
}

.canvas-watermark .watermark-line {
    font-family: var(--font-primary, 'Outfit', sans-serif);
    font-size: clamp(6.5rem, 16vw, 17rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 0.82;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.05);
    text-transform: uppercase;
    white-space: nowrap;
    display: block;
}

/* ===== TOP BEZEL & LOGO TRAPEZOID ===== */
.top-bezel-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    pointer-events: none;
    z-index: 40;
}

.top-trapezoid-notch {
    position: relative;
    width: 280px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: none;
    text-decoration: none;
}

.trapezoid-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--hud-frame-bg);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

.top-logo-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2px;
    transform: translateY(-2px);
}

.top-logo-text {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    color: #ffffff;
    text-transform: capitalize;
}

.top-logo-dot {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--current-accent);
}

/* ===== SIDE HUD NOTCHES ===== */
.side-notch {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-notch.left-notch {
    left: 0;
    width: 44px;
    height: 130px;
}

.side-notch.right-notch {
    right: 0;
    width: 44px;
    height: 130px;
}

.side-notch-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: var(--hud-frame-bg);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.outer-arrow-btn {
    position: relative;
    z-index: 2;
    background: none;
    border: none;
    color: #ffffff;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 48px;
    text-decoration: none;
    transition: transform 0.25s var(--ease-in-out-smooth), color 0.25s;
    outline: none;
}

.side-notch.left-notch .outer-arrow-btn {
    transform: translateX(-4px);
}

.side-notch.right-notch .outer-arrow-btn {
    transform: translateX(4px);
}

.side-notch.left-notch .outer-arrow-btn:hover {
    transform: translateX(-7px) scale(1.15);
    color: var(--current-accent);
}

.side-notch.right-notch .outer-arrow-btn:hover {
    transform: translateX(7px) scale(1.15);
    color: var(--current-accent);
}

.side-edge-tag {
    position: absolute;
    left: 10px;
    bottom: 90px;
    font-family: var(--font-secondary);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    opacity: 0.45;
    pointer-events: none;
    z-index: 10;
}

/* ==========================================================================
   TOP CANVAS HEADER (Reference Clean Layout: Left aligned at 56px)
   ========================================================================== */
.canvas-header {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 56px 10px 56px;
    width: 100%;
    pointer-events: auto;
    background: var(--canvas-bg);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .canvas-header {
        padding: 12px 16px 10px 16px;
    }
}

.nav-pills-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pill-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 18px;
    font-family: var(--font-secondary);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-primary);
    background-color: var(--canvas-bg);
    border: 1.5px solid var(--border-strong);
    border-radius: 999px;
    transition: all 0.25s var(--ease-in-out-smooth);
}

.pill-link:hover {
    background-color: #f0f0f2;
    transform: translateY(-1px);
}

.pill-link.active {
    background-color: #0a0a0c;
    color: #ffffff;
    border-color: #0a0a0c;
    font-weight: 700;
}

.header-right-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-pill-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1.5px solid var(--border-strong);
    background-color: #ffffff;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: all 0.25s var(--ease-in-out-smooth);
    outline: none;
}

.icon-pill-btn:hover {
    background-color: #0a0a0c;
    color: #ffffff;
    transform: translateY(-1px);
}

/* (Scroll tab removed per user request) */
.hud-capsule-nav {
    display: none !important;
}

/* ==========================================================================
   SCROLLABLE CANVAS CONTENT & FULL-VIEWPORT SLIDES
   ========================================================================== */
.canvas-scroll-container {
    position: relative;
    width: 100%;
    flex: 1;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.canvas-scroll-container::-webkit-scrollbar {
    display: none;
}

.home-inner-content {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.exact-slide-section {
    width: 100%;
    height: var(--slide-height, calc(100vh - 124px));
    min-height: var(--slide-height, calc(100vh - 124px));
    max-height: var(--slide-height, calc(100vh - 124px));
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

@media (max-width: 860px) {
    .exact-slide-section {
        height: auto;
        min-height: calc(100vh - 120px);
        max-height: none;
        padding: 32px 20px;
    }
}

/* ==========================================================================
   SLIDE 0: HERO — STUDIO OVERVIEW & PROMINENT RTG (Exact Reference Photo 1)
   ========================================================================== */
.slide-hero-studio {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Top Centered Brand Typography */
.exact-brand-header {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    text-align: center;
    pointer-events: none;
    z-index: 8;
}

.exact-brand-title {
    font-family: var(--font-primary);
    font-size: clamp(5.2rem, 8.2vw, 7.8rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 0.9;
    color: #000000;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.exact-brand-subbar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-secondary);
    font-size: clamp(0.76rem, 1.1vw, 0.94rem);
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #0a0a0c;
}

.brand-studio-badge {
    background: #000000;
    color: #ffffff;
    font-family: var(--font-secondary);
    font-size: clamp(0.62rem, 0.8vw, 0.72rem);
    font-weight: 800;
    letter-spacing: 0.14em;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 6px;
}

/* Left Copy Column (Shifted right for balanced editorial breathing room) */
.exact-copy-col {
    position: absolute;
    left: clamp(80px, 5.8vw, 108px);
    top: 57%;
    transform: translateY(-50%);
    width: min(770px, 46vw);
    z-index: 10;
}

@media (max-width: 860px) {
    .exact-copy-col {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        width: 100%;
        margin-top: 140px;
    }
}

.exact-section-tag-row {
    display: flex;
    align-items: baseline;
    width: 100%;
    margin-bottom: 20px;
}

.tag-code-prefix {
    font-family: var(--font-secondary);
    font-size: 1.08rem;
    font-weight: 600;
    color: #8e8e99;
    margin-right: 8px;
}

.tag-code-name {
    font-family: var(--font-primary);
    font-size: 1.22rem;
    font-weight: 900;
    color: #000000;
    letter-spacing: 0.04em;
    margin-right: 16px;
}

.tag-horizontal-line {
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
}

.exact-body-lead {
    font-family: var(--font-primary);
    font-size: clamp(1.15rem, 1.34vw, 1.28rem);
    font-weight: 500;
    line-height: 1.6;
    color: #0a0a0c;
    margin-bottom: 16px;
}

.exact-body-secondary {
    font-family: var(--font-primary);
    font-size: clamp(1.04rem, 1.18vw, 1.14rem);
    font-weight: 400;
    line-height: 1.6;
    color: #666675;
    margin-bottom: 24px;
}

.exact-bottom-rule {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
    margin-bottom: 24px;
}

/* Right RTG Anchor (Extending from top right down to bottom) */
.exact-rtg-anchor {
    position: absolute;
    right: 24px;
    bottom: 0;
    width: 50%;
    height: 87%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
    z-index: 5;
}

@media (max-width: 860px) {
    .exact-rtg-anchor {
        position: relative;
        right: 0;
        width: 100%;
        height: 380px;
    }
}

.exact-rtg-image {
    height: 100%;
    max-height: 840px;
    width: auto;
    object-fit: contain;
    object-position: bottom right;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.16));
    user-select: none;
    transform: none !important;
    animation: none !important;
    pointer-events: none;
}

/* ==========================================================================
   SLIDE 1-5: CAPABILITY SLIDES (Exact Match to Reference Photo 2 - Wolf)
   ========================================================================== */
.slide-discipline-view {
    position: relative;
    width: 100%;
    height: 100%;
}

.exact-discipline-copy {
    position: absolute;
    left: clamp(80px, 5.8vw, 108px);
    top: 50%;
    transform: translateY(-50%);
    width: min(650px, 42vw);
    z-index: 10;
}

@media (max-width: 860px) {
    .exact-discipline-copy {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        width: 100%;
    }
}

.discipline-super-code {
    font-family: var(--font-secondary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8e8e99;
    margin-bottom: 16px;
}

.discipline-headline {
    font-family: var(--font-primary);
    font-size: clamp(2.4rem, 3.8vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1.08;
    color: #000000;
    text-transform: uppercase;
    margin: 0 0 24px 0;
}

.discipline-description {
    font-family: var(--font-primary);
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.65;
    color: #4a4a55;
    max-width: 560px;
    margin-bottom: 34px;
}

.discipline-cta-wrap {
    display: flex;
    align-items: center;
}

/* ==========================================================================
   MODEL LIVING DYNAMICS: FLOATING, BREATHING & INTERACTIVE 3D PARALLAX
   ========================================================================== */
@keyframes modelFloatA {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-16px) rotate(0.4deg);
    }
}

@keyframes modelFloatB {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-14px) rotate(-0.5deg);
    }
}

@keyframes modelFloatC {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-18px) rotate(0.6deg);
    }
}

.exact-character-anchor {
    position: absolute;
    right: 18px;
    top: 0;
    bottom: 0;
    width: 54%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
    perspective: 1000px;
}

@media (max-width: 860px) {
    .exact-character-anchor {
        position: relative;
        right: 0;
        width: 100%;
        height: 440px;
    }
}

.exact-character-image {
    height: 98%;
    max-height: 940px;
    width: auto;
    max-width: 98%;
    object-fit: contain;
    filter: drop-shadow(0 24px 45px rgba(0, 0, 0, 0.18));
    user-select: none;
    transform-origin: center bottom;
    transition: filter 0.35s ease, transform 0.18s cubic-bezier(0.2, 0, 0.2, 1);
    will-change: transform, filter;
    animation: modelFloatA 5.6s ease-in-out infinite;
    pointer-events: auto;
}

/* Stagger floating timing per slide for unique living presence */
#slideWeb .exact-character-image {
    animation: modelFloatA 5.4s ease-in-out infinite;
}

#slideSoftware .exact-character-image {
    animation: modelFloatB 5.8s ease-in-out 0.4s infinite;
}

#slideAndroid .exact-character-image {
    animation: modelFloatC 5.2s ease-in-out 0.8s infinite;
}

#slideDesign .exact-character-image {
    animation: modelFloatA 6.0s ease-in-out 0.2s infinite;
}

#slide3d .exact-character-image {
    animation: modelFloatB 5.5s ease-in-out 0.6s infinite;
}

#slideTerminal .exact-character-image {
    animation: modelFloatC 5.7s ease-in-out 0.3s infinite;
}

/* Tactile interactive lighting on hover (service models) */
.exact-character-anchor:hover .exact-character-image {
    filter: drop-shadow(0 32px 55px rgba(2, 132, 199, 0.35)) drop-shadow(0 0 18px rgba(0, 0, 0, 0.18));
}

/* Glitch flash animation when summoning / swapping operatives */
.exact-character-image.is-glitching {
    animation: holoGlitch 0.42s ease-out !important;
}

@keyframes holoGlitch {
    0% {
        opacity: 0.15;
        transform: scale(0.95) skewX(-4deg);
        filter: drop-shadow(0 0 35px #0284c7) invert(0.25);
    }

    30% {
        opacity: 0.9;
        transform: scale(1.03) skewX(2deg);
        filter: drop-shadow(0 0 25px #0284c7);
    }

    60% {
        opacity: 0.6;
        transform: scale(0.98) skewX(-1deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) skewX(0);
        filter: drop-shadow(0 24px 45px rgba(0, 0, 0, 0.18));
    }
}

/* ==========================================================================
   SLIDE 6: MISSION DISPATCH & CYPHER COMMAND TERMINAL (Finale)
   ========================================================================== */
.slide-terminal-view {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
}

.terminal-center-layout {
    position: relative;
    width: min(840px, 90vw);
    max-width: 840px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 10;
    margin: 0 auto;
}

.terminal-center-layout .discipline-super-code {
    margin-bottom: 12px;
}

.terminal-main-heading {
    font-family: var(--font-primary);
    font-size: clamp(2.3rem, 3.8vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1.06;
    color: #000000;
    text-transform: uppercase;
    margin: 0 0 12px 0;
}

.terminal-main-desc {
    max-width: 620px;
    margin: 0 auto 16px auto;
    font-family: var(--font-primary);
    font-size: clamp(1rem, 1.15vw, 1.12rem);
    line-height: 1.6;
    color: #555562;
}

.cyber-terminal-card {
    background: #0a0a0e;
    color: #e5e5ec;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 10px 0 20px 0;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 760px;
    text-align: left;
}

.cyber-terminal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #0284c7, transparent);
}

.terminal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
}

.terminal-lights {
    display: flex;
    align-items: center;
    gap: 6px;
}

.t-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.t-red {
    background: #ef4444;
}

.t-amber {
    background: #f59e0b;
}

.t-green {
    background: #10b981;
}

.terminal-status-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-secondary);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #a1a1aa;
}

.status-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulseGlow 1.8s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

.terminal-soundwave-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 14px;
}

.eq-bar {
    width: 3px;
    background: #0284c7;
    border-radius: 2px;
    animation: eqBounce 1.2s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) {
    height: 6px;
    animation-delay: 0.1s;
}

.eq-bar:nth-child(2) {
    height: 12px;
    animation-delay: 0.3s;
}

.eq-bar:nth-child(3) {
    height: 8px;
    animation-delay: 0.2s;
}

.eq-bar:nth-child(4) {
    height: 14px;
    animation-delay: 0.4s;
}

.eq-bar:nth-child(5) {
    height: 9px;
    animation-delay: 0.15s;
}

@keyframes eqBounce {
    0% {
        height: 4px;
    }

    100% {
        height: 14px;
    }
}

.terminal-screen {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.78rem;
    line-height: 1.6;
    color: #22c55e;
    background: #050507;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 14px;
    min-height: 74px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}

.terminal-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.35;
}

.t-line {
    margin-bottom: 3px;
}

.t-prompt {
    color: #38bdf8;
    font-weight: 600;
}

.t-sub {
    color: #94a3b8;
}

.t-ready {
    color: #4ade80;
    font-weight: 500;
}

.t-log {
    color: #e2e8f0;
}

.terminal-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.term-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    padding: 7px 14px;
    font-family: var(--font-secondary);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #f1f5f9;
    cursor: none;
    transition: all 0.2s ease;
    user-select: none;
    pointer-events: auto;
    position: relative;
    z-index: 20;
}

.term-chip-svg {
    display: inline-block;
    vertical-align: middle;
    color: var(--accent-cyan);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.term-chip-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #0284c7;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.term-chip-btn:hover .term-chip-svg {
    transform: scale(1.15);
}

.term-chip-btn:active,
.term-chip-btn.is-active {
    transform: translateY(0);
    background: rgba(2, 132, 199, 0.25);
    border-color: #0284c7;
}

.terminal-brief-panel {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.brief-chips-group {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.scope-pill-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
    font-family: var(--font-secondary);
    font-size: 0.64rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: none;
    transition: all 0.2s ease;
}

.scope-pill-btn.active,
.scope-pill-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.brief-input-row {
    display: flex;
    gap: 8px;
}

.brief-msg-input {
    flex: 1;
    background: #050507;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    padding: 8px 12px;
    font-family: var(--font-primary);
    font-size: 0.82rem;
    color: #ffffff;
    outline: none;
    cursor: none;
}

.brief-msg-input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);
}

.brief-send-btn {
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0 16px;
    font-family: var(--font-secondary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: none;
    transition: all 0.2s ease;
}

.brief-send-btn:hover {
    background: #0369a1;
    transform: translateY(-1px);
}

.brief-feedback-msg {
    margin-top: 6px;
    font-size: 0.72rem;
    color: #38bdf8;
    font-family: var(--font-secondary);
}

.terminal-cta-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
}

/* ==========================================================================
   SIGNATURE INTERACTIVE BUTTON (—○ EXPLORE STUDIO / INQUIRE SERVICE)
   ========================================================================== */
.order-interactive-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    cursor: none;
    background: none;
    border: none;
    padding: 4px 0;
    transition: transform 0.25s var(--ease-in-out-smooth);
    outline: none;
}

.order-btn-graphic {
    display: flex;
    align-items: center;
}

.order-line {
    width: 22px;
    height: 1.5px;
    background-color: #0a0a0c;
    transition: all 0.25s ease;
}

.order-circle-node {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid #0a0a0c;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -1px;
    transition: all 0.25s ease;
}

.order-inner-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #0a0a0c;
    transition: all 0.25s ease;
}

.order-label-text {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 1.15vw, 1.12rem);
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0a0a0c;
    transition: color 0.25s ease;
}

.order-interactive-btn:hover .order-line {
    width: 32px;
    background-color: var(--current-accent);
}

.order-interactive-btn:hover .order-circle-node {
    border-color: var(--current-accent);
    transform: scale(1.15);
}

.order-interactive-btn:hover .order-inner-dot {
    background-color: var(--current-accent);
}

.order-interactive-btn:hover .order-label-text {
    color: var(--current-accent);
}

/* ==========================================================================
   CANVAS FOOTER (Exact Reference Match)
   ========================================================================== */
.canvas-footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 56px 16px 56px;
    width: 100%;
    background: var(--canvas-bg);
    border-top: 1px solid rgba(10, 10, 12, 0.04);
    z-index: 20;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .canvas-footer {
        padding: 8px 16px 12px 16px;
    }
}

.footer-left-col {
    flex: 1;
}

.footer-center-col {
    display: flex;
    justify-content: center;
}

.footer-right-col {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.footer-contact-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 24px;
    font-family: var(--font-secondary);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
    background: #ffffff;
    border: 1px solid rgba(10, 10, 12, 0.25);
    border-radius: 999px;
    text-decoration: none;
    cursor: none;
    transition: all 0.25s ease;
}

.footer-contact-pill:hover {
    background: #0a0a0c;
    color: #ffffff;
    border-color: #0a0a0c;
    transform: translateY(-1px);
}

.footer-text-meta {
    font-family: var(--font-secondary);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ==========================================================================
   CHARACTER ROSTER MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-overlay.is-open {
    display: flex;
}

.tech-modal {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 14px;
    padding: 24px;
    width: 90%;
    max-width: 680px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    animation: modal-pop 0.25s var(--ease-out-expo);
}

@keyframes modal-pop {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.modal-title {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #000000;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #000000;
    cursor: none;
    padding: 0 4px;
}

.character-roster-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 14px;
}

@media (max-width: 550px) {
    .character-roster-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.roster-item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: var(--canvas-subtle);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    cursor: none;
    transition: all 0.25s ease;
}

.roster-item-card:hover {
    border-color: var(--current-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.roster-thumb-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 8px;
}

.roster-meta-title {
    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-weight: 800;
    color: #000000;
}

.roster-meta-role {
    font-family: var(--font-secondary);
    font-size: 0.52rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ==========================================================================
   DARK MODE THEME SYSTEM (User Toggleable via Theme Button)
   ========================================================================== */
body.dark-mode {
    --hud-frame-bg: #030304;
    --hud-frame-border: #181820;
    --canvas-bg: #090a0d;
    --canvas-subtle: #0f1015;

    --text-primary: #f8f9fa;
    --text-secondary: #a0a2b0;
    --text-muted: #6b7280;
    --text-inverse: #090a0d;

    --border-subtle: rgba(255, 255, 255, 0.12);
    --border-strong: #f8f9fa;
    --border-card: rgba(255, 255, 255, 0.1);

    --pill-border: rgba(255, 255, 255, 0.25);
    --pill-bg: rgba(255, 255, 255, 0.05);
    --pill-hover-bg: #ffffff;
    --pill-hover-text: #090a0d;
}

body.dark-mode .screen-canvas {
    background-color: var(--canvas-bg);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.dark-mode .canvas-header {
    background: var(--canvas-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.dark-mode .canvas-footer {
    background: var(--canvas-bg) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .pill-link {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
}

body.dark-mode .pill-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

body.dark-mode .pill-link.active {
    background-color: #ffffff;
    color: #090a0d;
    border-color: #ffffff;
}

body.dark-mode .icon-pill-btn {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
}

body.dark-mode .icon-pill-btn:hover {
    background-color: #ffffff;
    color: #090a0d;
    border-color: #ffffff;
}

body.dark-mode .footer-contact-pill {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
}

body.dark-mode .footer-contact-pill:hover {
    background: #ffffff;
    color: #090a0d;
    border-color: #ffffff;
}

body.dark-mode .footer-text-meta {
    color: var(--text-muted);
}

body.dark-mode .side-edge-tag {
    color: rgba(255, 255, 255, 0.25);
}

body.dark-mode .watermark-line,
body.dark-mode .canvas-watermark .watermark-line {
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.04) !important;
}

body.dark-mode .cyber-terminal-card {
    background: #111218;
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .tech-modal {
    background: #14151b;
    border-color: rgba(255, 255, 255, 0.15);
    color: #f8f9fa;
}

body.dark-mode .roster-item-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .roster-meta-title {
    color: #f8f9fa;
}

body.dark-mode .exact-brand-title {
    color: #f8f9fa;
}

body.dark-mode .exact-body-lead,
body.dark-mode .exact-body-secondary,
body.dark-mode .discipline-description {
    color: #a0a2b0;
}

body.dark-mode .discipline-headline {
    color: #f8f9fa;
}

body.dark-mode .tag-code-name {
    color: #f8f9fa;
}

body.dark-mode .tag-horizontal-line,
body.dark-mode .exact-bottom-rule {
    background: rgba(255, 255, 255, 0.15);
}

body.dark-mode .order-label-text {
    color: #f8f9fa;
}

body.dark-mode .order-circle-node {
    stroke: #f8f9fa;
}

body.dark-mode .order-line {
    stroke: #f8f9fa;
}

body.dark-mode .term-chip-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f8f9fa;
}

body.dark-mode .brief-msg-input {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f8f9fa;
}