/**
 * Watlow Refinery 3D Web UI - Option 1 Sci-Fi HUD Stylesheet
 */

/* Baseline Reset, Content Safe Boundaries & Typography */
:root {
    --content-top: calc(6.3vh + 0.9rem);
    --content-left: clamp(3.5rem, 5.5vw, 7.5rem);
    --content-right: clamp(2.75rem, 4.5vw, 5.5rem);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background-color: var(--hud-dark);
    color: #e5e7eb;
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(10, 15, 25, 0.8);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--watlow-red);
}

/* ==========================================================================
   Background Video & Media Layers
   ========================================================================== */
.bg-video-wrapper {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7) contrast(1.1);
}
.bg-overlay-tint {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(10, 16, 28, 0.3) 0%, rgba(5, 8, 15, 0.88) 100%);
    pointer-events: none;
}

/* ==========================================================================
   Option 1 Header Notch & Bezel
   ========================================================================== */
.watlow-header-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 2.5rem 0.75rem;
    background: linear-gradient(180deg, rgba(20, 28, 45, 0.95) 0%, rgba(10, 15, 26, 0.85) 100%);
    border-bottom: 2px solid var(--watlow-red);
    clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 15px var(--watlow-red-glow);
    min-width: 320px;
}
.watlow-header-notch .logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
}
.watlow-header-notch .tagline {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #94a3b8;
    text-transform: uppercase;
    margin-top: 3px;
}

/* ==========================================================================
   Option 1 Chamfered Glassmorphic Card
   ========================================================================== */
.hud-glass-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.85) 0%, rgba(10, 15, 25, 0.92) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    position: relative;
}
.hud-glass-card.chamfered {
    clip-path: polygon(
        16px 0, 
        calc(100% - 16px) 0, 
        100% 16px, 
        100% calc(100% - 16px), 
        calc(100% - 16px) 100%, 
        16px 100%, 
        0 calc(100% - 16px), 
        0 16px
    );
}

/* ==========================================================================
   Metallic Buttons & Controls (Pure CSS Silvery Reflective Design)
   ========================================================================== */
.btn-watlow-primary,
.btn-watlow-glossy {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        #f8fafc 0%,
        #e2e8f0 22%,
        #cbd5e1 48%,
        #dae2ec 78%,
        #f1f5f9 100%
    );
    color: #1e293b !important;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-transform: none;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.78rem 2.25rem;
    min-height: 50px;
    min-width: 240px;
    cursor: pointer;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
    box-shadow:
        inset 0 2px 2px rgba(255, 255, 255, 0.95),
        inset 0 -2px 4px rgba(148, 163, 184, 0.45),
        0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.25s ease,
                background 0.25s ease,
                border-color 0.25s ease;
    z-index: 1;
}
.btn-watlow-primary::before,
.btn-watlow-glossy::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 2px;
    right: 2px;
    height: 46%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.12) 100%);
    border-radius: 5px 5px 20px 20px;
    pointer-events: none;
    z-index: -1;
}
.btn-watlow-primary::after,
.btn-watlow-glossy::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -65%;
    width: 45%;
    height: 200%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.75) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 0;
}
.btn-watlow-primary > *,
.btn-watlow-glossy > * {
    position: relative;
    z-index: 2;
}
.btn-watlow-primary:hover,
.btn-watlow-glossy:hover {
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #eef2f6 24%,
        #d8e1eb 50%,
        #e5ebf3 78%,
        #ffffff 100%
    );
    color: #0f172a !important;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, 1),
        inset 0 -2px 4px rgba(148, 163, 184, 0.35),
        0 6px 20px rgba(0, 0, 0, 0.32),
        0 0 15px rgba(255, 255, 255, 0.5);
}
.btn-watlow-primary:hover::after,
.btn-watlow-glossy:hover::after {
    left: 125%;
}
.btn-watlow-primary:active,
.btn-watlow-glossy:active {
    transform: translateY(1px);
    box-shadow:
        inset 0 1px 2px rgba(148, 163, 184, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.25);
}

.btn-watlow-metallic {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        #f1f5f9 0%,
        #cbd5e1 45%,
        #e2e8f0 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: #1e293b !important;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.9),
        0 3px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.btn-watlow-metallic::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    transition: left 0.5s ease;
    pointer-events: none;
}
.btn-watlow-metallic:hover {
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #dde5ef 45%,
        #f1f5f9 100%
    );
    border-color: #ffffff;
    color: #0f172a !important;
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 1),
        0 5px 14px rgba(0, 0, 0, 0.35),
        0 0 10px rgba(255, 255, 255, 0.4);
}
.btn-watlow-metallic:hover::after {
    left: 130%;
}

/* ==========================================================================
   Telemetry Stream Readouts (Digital-7)
   ========================================================================== */
.telemetry-display {
    font-family: var(--font-telemetry);
    color: #34d399;
    letter-spacing: 0.08em;
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}
.telemetry-display.cyan {
    color: var(--hud-cyan);
    text-shadow: 0 0 10px var(--hud-cyan-glow);
}
.telemetry-display.amber {
    color: var(--hud-amber);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}
.telemetry-bar {
    background: rgba(10, 16, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.4rem 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.95rem;
}

/* ==========================================================================
   Refinery Diagram Stage & Interactive Hot-Spot Node Pins (Screen 05)
   ========================================================================== */
.refinery-diagram-stage {
    position: absolute;
    left: 12.14%;
    top: 10.53%;
    width: 76.28%;
    height: 80.48%;
    z-index: 20;
    pointer-events: none;
}
.refinery-diagram-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    pointer-events: none;
    user-select: none;
}

.hotspot-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    padding: 0;
    z-index: 30;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), filter 0.22s ease, opacity 0.22s ease;
    text-decoration: none;
    color: inherit;
}

/* 1. Active Hotspot Pins (Only the 7 Products with 3D Models) */
.hotspot-pin-active {
    cursor: pointer;
}
.hotspot-pin-active:hover,
.hotspot-pin-active:focus-visible {
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 55;
    filter: drop-shadow(0 0 14px rgba(74, 222, 128, 0.85)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
    outline: none;
    text-decoration: none;
    color: inherit;
}
.hotspot-pin-active .hotspot-pin-icon {
    filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.6));
    animation: hotspot-active-pulse 3s ease-in-out infinite;
}
@keyframes hotspot-active-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 4px rgba(74, 222, 128, 0.55));
    }
    50% {
        filter: drop-shadow(0 0 11px rgba(74, 222, 128, 0.9)) drop-shadow(0 0 3px rgba(255, 255, 255, 0.7));
    }
}

/* 2. Disabled Hotspot Pins (Non-3D / Other Refinery Units) */
.hotspot-pin-disabled {
    cursor: not-allowed !important;
    opacity: 0.38;
    z-index: 22;
}
.hotspot-pin-disabled .hotspot-pin-icon {
    filter: grayscale(100%) brightness(0.65) contrast(0.85);
    opacity: 0.85;
}
.hotspot-pin-disabled:hover,
.hotspot-pin-disabled:focus-visible {
    transform: translate(-50%, -50%) !important; /* Strictly no scale-up */
    opacity: 0.75;
    z-index: 45;
    filter: drop-shadow(0 0 6px rgba(148, 163, 184, 0.4)) !important; /* Desaturated gray shadow, strictly no green */
    outline: none;
}
.hotspot-pin-disabled:hover .hotspot-pin-icon {
    filter: grayscale(100%) brightness(0.8);
}

.hotspot-pin-icon {
    width: clamp(24px, 2.46vw, 63px);
    height: clamp(24px, 2.46vw, 63px);
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.hotspot-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(8, 14, 26, 0.96);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #f3f4f6;
    font-size: 0.76rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 12px rgba(56, 189, 248, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    text-align: center;
    min-width: auto;
}
.hotspot-pin:hover .hotspot-tooltip,
.hotspot-pin:focus-visible .hotspot-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}
.hotspot-tooltip-unit {
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 2px;
}
.hotspot-tooltip-equip {
    font-size: 0.76rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}
.hotspot-tooltip-product {
    font-size: 0.76rem;
    font-weight: 600;
    color: #38bdf8;
    letter-spacing: 0.02em;
    display: inline-block;
}
.hotspot-tooltip .tooltip-label {
    color: #94a3b8;
    font-weight: 500;
    margin-right: 3px;
}

/* Active 3D CTA Action in Tooltip */
.hotspot-tooltip-action {
    margin-top: 6px;
    padding-top: 5px;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.68rem;
}
.tooltip-action-tag {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.45);
    border-radius: 3px;
    padding: 1px 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.6rem;
}
.tooltip-action-hint {
    color: #38bdf8;
    font-weight: 600;
}

/* Disabled Status in Tooltip */
.hotspot-tooltip-status {
    margin-top: 6px;
    padding-top: 5px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}
.badge-no-model {
    display: inline-flex;
    align-items: center;
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ==========================================================================
   Application Value Modal (Screen 05)
   ========================================================================== */
.app-value-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(4, 7, 13, 0.75);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.app-value-modal.active {
    display: flex;
}
.modal-content-panel {
    max-width: 680px;
    width: 100%;
    background: linear-gradient(135deg, rgba(16, 24, 40, 0.96) 0%, rgba(9, 14, 25, 0.98) 100%);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-top: 2px solid var(--watlow-red);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 229, 255, 0.15);
    position: relative;
}
.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: color 0.2s ease;
}
.modal-close-btn:hover {
    color: #ffffff;
}

/* ==========================================================================
   Global Viewport White Frame & Logo Lockup
   ========================================================================== */
.global-viewport-frame {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}
.global-viewport-frame .frame-graphic {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}
.frame-brand-link {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28vw;
    width: 28dvw;
    max-width: 480px;
    height: 10.16vh;
    height: 10.16dvh;
    z-index: 105;
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
    padding: 0 1rem;
}
.frame-brand-logo {
    height: 55%;
    max-height: 58%;
    width: auto;
    max-width: 100%;
    aspect-ratio: 364.62 / 81.15;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity 0.2s ease;
}
.frame-brand-link:hover .frame-brand-logo {
    opacity: 0.85;
}

/* ==========================================================================
   Screen 01: Dark Chamfered Login Panel (Matching Reference Screenshot 1 & 3)
   ========================================================================== */
.login-dark-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 2px;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 48%, #dc2626 100%);
    clip-path: polygon(
        24px 0,
        100% 0,
        100% calc(100% - 24px),
        calc(100% - 24px) 100%,
        0 100%,
        0 24px
    );
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
}
.login-dark-card-inner {
    background: rgba(6, 10, 20, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.75rem 3.1rem 2.85rem;
    clip-path: polygon(
        23px 0,
        100% 0,
        100% calc(100% - 23px),
        calc(100% - 23px) 100%,
        0 100%,
        0 23px
    );
}
.login-heading {
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -0.01em;
    margin: 0 0 0.35rem 0;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}
.input-container-chamfer {
    position: relative;
    width: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}
.login-input {
    background-color: #d1d5db !important;
    border: none !important;
    color: #1e293b !important;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.78rem 1.15rem;
    min-height: 48px;
    border-radius: 0 !important;
    clip-path: polygon(
        12px 0,
        100% 0,
        100% calc(100% - 12px),
        calc(100% - 12px) 100%,
        0 100%,
        0 12px
    );
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.login-input::placeholder {
    color: #1e293b;
    opacity: 0.85;
    font-weight: 400;
}
.login-input:focus {
    background-color: #e5e7eb !important;
    box-shadow: inset 0 0 0 2px #f59e0b !important;
    outline: none;
}
.login-helper-link,
.login-helper-text {
    display: inline-block;
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 400;
    text-decoration: none;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
}
.login-helper-link:hover {
    color: #f8fafc;
    text-decoration: underline;
}

/* ==========================================================================
   Navigation & Top Bar Elements
   ========================================================================== */
.top-nav-bar {
    position: absolute;
    top: var(--content-top);
    left: var(--content-left);
    right: var(--content-right);
    z-index: 95;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
}
.top-nav-bar-right {
    position: absolute;
    top: var(--content-top);
    right: var(--content-right);
    z-index: 95;
    pointer-events: auto;
}
.demo-account-tag {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.38rem 0.85rem;
    border-radius: 9999px;
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* ==========================================================================
   Screen 05 & 06: Refinery Overview Info Panel, Legend & Showcase Safe Area
   ========================================================================== */
.refinery-overview-back-nav {
    position: absolute;
    top: var(--content-top);
    left: var(--content-left);
    z-index: 105;
    pointer-events: auto;
}
.refinery-overview-info-panel {
    position: absolute;
    left: var(--content-left);
    bottom: 6.9%;
    z-index: 90;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 3.6vh, 3.25rem);
}
.refinery-overview-header {
    display: flex;
    flex-direction: column;
}
.refinery-overview-title {
    color: #e9bf5e;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.35rem, 2.15vw, 3.45rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin: 0 0 clamp(0.45rem, 1.1vh, 1rem) 0;
}
.refinery-overview-subtitle {
    color: #ffffff;
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: clamp(0.78rem, 1.12vw, 1.8rem);
    line-height: 1.38;
    margin: 0;
}

.refinery-overview-legend {
    display: flex;
    align-items: stretch;
    gap: clamp(0.85rem, 1.4vw, 2.25rem);
}
.refinery-overview-legend .legend-title {
    color: #e2e8f0;
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: clamp(0.95rem, 1.38vw, 2.2rem);
    line-height: 1;
    display: flex;
    align-items: flex-end;
    padding-bottom: clamp(0.25rem, 0.7vh, 0.65rem);
}
.refinery-overview-legend .legend-divider {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
}
.refinery-overview-legend .legend-items {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(0.32rem, 0.75vh, 0.7rem);
    padding: clamp(0.1rem, 0.25vh, 0.25rem) 0;
}
.refinery-overview-legend .legend-item {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 0.75vw, 1.2rem);
}
.refinery-overview-legend .legend-icon {
    width: clamp(16px, 1.25vw, 32px);
    height: clamp(16px, 1.25vw, 32px);
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}
.refinery-overview-legend .legend-label {
    color: #cbd5e1;
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: clamp(0.72rem, 1.02vw, 1.62rem);
    line-height: 1.2;
    white-space: nowrap;
}

/* Screen 05: Project Reference & White Papers CTA Buttons (50% scaled down) */
.refinery-overview-ctas {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(0.5rem, 0.75vw, 0.85rem);
    flex-wrap: wrap;
}

.project-ref-cta-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.btn-project-reference.active .btn-project-reference-card {
    background: #f1f5f9;
}

.btn-project-reference.active {
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 12px rgba(56, 189, 248, 0.45));
}

.project-ref-menu-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    margin: 0.25rem 0;
    opacity: 1;
}

.btn-project-reference {
    position: relative;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    margin-top: 0;
    pointer-events: auto;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.4)) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), filter 0.25s ease;
}
.btn-project-reference:hover {
    transform: translateY(-2px) scale(1.02);
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5)) drop-shadow(0 2px 6px rgba(56, 189, 248, 0.25));
}
.btn-project-reference:active {
    transform: translateY(0) scale(0.99);
}

.btn-project-reference-card {
    background: #ffffff;
    /* Scaled down chamfered polygon: cut top-left (20px), cut bottom-right (26px/32px) */
    clip-path: polygon(
        20px 0,
        calc(100% - 3px) 0,
        100% 3px,
        100% calc(100% - 26px),
        calc(100% - 32px) 100%,
        3px 100%,
        0 calc(100% - 3px),
        0 18px
    );
    width: clamp(155px, 12vw, 205px);
    min-height: clamp(56px, 5.5vh, 76px);
    padding: clamp(0.65rem, 1vh, 0.95rem) clamp(0.6rem, 0.85vw, 0.95rem);
    padding-left: clamp(0.85rem, 1.15vw, 1.3rem);
    display: flex;
    align-items: center;
    gap: clamp(0.48rem, 0.62vw, 0.75rem);
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.btn-project-reference .btn-ref-thumb-box {
    width: clamp(32px, 2.65vw, 44px);
    height: clamp(32px, 2.65vw, 44px);
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
    background: #0f172a;
}
.btn-project-reference .btn-ref-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.btn-project-reference .btn-ref-text-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
}
.btn-project-reference .btn-ref-title {
    color: #1e293b;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(0.58rem, 0.68vw, 0.74rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.btn-project-reference .btn-ref-subtitle {
    color: #475569;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: clamp(0.46rem, 0.52vw, 0.58rem);
    line-height: 1.15;
}

.hud-safe-overlay-showcase {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 100; /* Above 3D scrubber hud controls (z-index: 60) so product switcher menu overlays cleanly above toolbar */
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--content-top) var(--content-right) calc(3.5vh + 0.65rem) var(--content-left);
}
.hud-showcase-top-bar {
    pointer-events: auto;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-top: max(1.6rem, calc(4vh + 0.2rem)); /* Displaces title and top-right close button safely below protruding top frame notch */
}
.hud-showcase-bottom-bar {
    pointer-events: none; /* Transparent container passes pointer events to underlying 3D toolbar */
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 75;
    margin-bottom: max(1.8rem, calc(3vh + 0.5rem)); /* Displaces bottom buttons safely above bottom frame and gold corner ribbon */
}
.hud-showcase-bottom-left {
    display: flex;
    align-items: center;
    pointer-events: auto;
}
.hud-showcase-bottom-center {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
    z-index: 110;
}
.hud-showcase-bottom-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(0.6rem, 0.8vw, 1.1rem);
    pointer-events: auto;
    z-index: 80;
}

/* Products Pop-up / Upward Slide-out Dropdown (Horizontally aligned to entire viewport) */
.products-slideout-menu {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    width: clamp(320px, 28vw, 450px);
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 2px solid var(--watlow-red);
    border-radius: 8px;
    padding: 0.85rem;
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.85),
        0 0 20px rgba(56, 189, 248, 0.15);
    z-index: 120;
    
    /* Smooth upwards slide transition */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(14px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.25s;
}

.products-slideout-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

/* Project Reference Dropdown Menu overrides (placed after .products-slideout-menu so cascade wins) */
.products-slideout-menu.project-ref-slideout-menu {
    width: clamp(320px, 28vw, 450px);
}

.products-slideout-menu.project-ref-slideout-menu--overview,
.products-slideout-menu.project-ref-slideout-menu--bottom-left {
    left: 0;
    right: auto;
    bottom: calc(100% + 14px);
    transform-origin: bottom left;
    transform: translateX(0) translateY(14px) scale(0.98);
}

.products-slideout-menu.project-ref-slideout-menu--overview.active,
.products-slideout-menu.project-ref-slideout-menu--bottom-left.active {
    transform: translateX(0) translateY(0) scale(1);
}

.products-slideout-menu::-webkit-scrollbar {
    width: 5px;
}
.products-slideout-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 3px;
}
.products-slideout-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);
    border-radius: 3px;
}
.products-slideout-menu::-webkit-scrollbar-thumb:hover {
    background: var(--watlow-red);
}

.products-slideout-item {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.products-slideout-item.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(14, 165, 233, 0.14)) !important;
    border: 1px solid rgba(56, 189, 248, 0.7) !important;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.4), inset 0 0 10px rgba(56, 189, 248, 0.2) !important;
}

.products-slideout-item.active .product-item-name {
    color: #38bdf8 !important;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.products-slideout-item.active .product-item-equip {
    color: #bae6fd !important;
}

.product-item-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
    text-align: left;
}

.product-item-equip {
    font-size: 0.67rem;
    color: #94a3b8;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-item-active-pill {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.5);
    padding: 0.12rem 0.42rem;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.3);
}

/* Screen 06: Action Card Buttons (Watch Video & Scan QR, Bottom-Right Chamfered Cards) */
.btn-qr-scan,
.btn-video-watch {
    position: relative;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    margin-top: 0;
    pointer-events: auto;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), filter 0.25s ease;
    background: transparent;
    border: none;
    padding: 0;
    font-family: inherit;
    outline: none;
    width: clamp(190px, 13.5vw, 260px);
    box-sizing: border-box;
}

button.btn-qr-scan,
button.btn-video-watch {
    background: transparent;
    border: none;
    padding: 0;
    font-family: inherit;
    outline: none;
}

.btn-qr-scan:hover,
.btn-video-watch:hover {
    transform: translateY(-2px) scale(1.01);
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.55)) drop-shadow(0 4px 12px rgba(56, 189, 248, 0.25));
}

.btn-qr-scan:active,
.btn-video-watch:active {
    transform: translateY(0) scale(0.99);
}

.btn-qr-scan-card,
.btn-video-watch-card {
    background: #ffffff;
    /* Chamfered geometry: top-left cut, top-right soft, bottom-right cut, bottom-left soft */
    clip-path: polygon(
        26px 0,
        calc(100% - 6px) 0,
        100% 6px,
        100% calc(100% - 26px),
        calc(100% - 28px) 100%,
        6px 100%,
        0 calc(100% - 6px),
        0 24px
    );
    width: 100%;
    height: clamp(74px, 5.2vw, 88px);
    min-height: clamp(74px, 5.2vw, 88px);
    padding: clamp(0.7rem, 1vh, 0.95rem) clamp(0.9rem, 1.2vw, 1.3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.6rem, 0.9vw, 1.1rem);
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.btn-qr-scan:hover .btn-qr-scan-card,
.btn-video-watch:hover .btn-video-watch-card {
    background: #f8fafc;
}

.btn-qr-text-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.3;
    gap: 2px;
}

.btn-qr-title,
.btn-qr-subtitle {
    color: #1e293b;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(0.82rem, 0.92vw, 1rem);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.btn-qr-code-box {
    width: clamp(48px, 3.2vw, 56px);
    height: clamp(48px, 3.2vw, 56px);
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 2px;
    box-sizing: border-box;
}

.btn-qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Watch Video Button Text & Thumbnail */
.btn-video-text-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
    gap: 2px;
}

.btn-video-title,
.btn-video-subtitle {
    color: #1e293b;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(0.82rem, 0.92vw, 1rem);
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-align: center;
    display: block;
    width: 100%;
}

.btn-video-thumb-box {
    height: clamp(42px, 3vw, 52px);
    aspect-ratio: 16 / 9;
    width: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

.btn-video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Screen 06: Product Video Modal (Native <dialog> with Cloudflare Stream Embed) */
dialog.product-video-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    padding: 0;
    border: none;
    background: transparent;
    max-width: 96vw;
    max-height: 92vh;
    width: min(92vw, calc((90vh - 58px) * 16 / 9), 1400px);
    display: none;
    flex-direction: column;
    z-index: 220;
    outline: none;
    overflow: visible;
}

dialog.product-video-dialog[open] {
    display: flex;
}

dialog.product-video-dialog:modal {
    overscroll-behavior: contain;
}

dialog.product-video-dialog::backdrop {
    background: rgba(4, 7, 13, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    overscroll-behavior: contain;
}

.product-video-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(9, 14, 25, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-top: 3px solid var(--watlow-red);
    border-radius: 12px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(56, 189, 248, 0.2);
    overflow: hidden;
    transform: scale(0.96) translateY(12px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    opacity: 0;
    box-sizing: border-box;
}

dialog.product-video-dialog[open] .product-video-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.product-video-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: rgba(10, 16, 29, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.product-video-identity {
    display: flex;
    flex-direction: column;
}

.product-video-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #38bdf8;
    margin-bottom: 2px;
}

.product-video-title {
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(0.95rem, 1.2vw, 1.2rem);
    letter-spacing: -0.01em;
    margin: 0;
}

.product-video-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.product-video-close-btn:hover {
    color: #ffffff;
    transform: scale(1.15);
}

.product-video-player-wrap {
    position: relative;
    width: 100%;
    background: #000000;
}

.product-video-embed {
    position: relative;
    padding-top: 56.25%; /* 16:9 widescreen ratio (eliminates letterbox) */
    width: 100%;
}

/* Screen 06: Enlarged QR Code Modal Window */
.qr-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200; /* Overlays viewport frame and all showcase layers */
    background: rgba(4, 7, 13, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.qr-modal-backdrop.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.qr-modal-window {
    position: relative;
    max-width: 440px;
    width: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(9, 14, 25, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid var(--watlow-red);
    border-radius: 12px;
    padding: clamp(1.6rem, 2.5vw, 2.4rem);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.9),
        0 0 35px rgba(56, 189, 248, 0.2);
    transform: scale(0.95) translateY(12px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.qr-modal-backdrop.active .qr-modal-window {
    transform: scale(1) translateY(0);
}

.qr-modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.qr-modal-close-btn:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.qr-modal-header {
    margin-bottom: 1.25rem;
}

.qr-modal-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #38bdf8;
    margin-bottom: 0.35rem;
    display: block;
}

.qr-modal-title {
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.25rem, 1.5vw, 1.55rem);
    letter-spacing: -0.015em;
    margin: 0 0 0.5rem 0;
}

.qr-modal-desc {
    color: #94a3b8;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    line-height: 1.45;
    margin: 0;
}

.qr-modal-code-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.qr-modal-code-card {
    background: #ffffff;
    padding: clamp(1rem, 1.5vw, 1.35rem);
    border-radius: 12px;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.qr-modal-code-img {
    width: clamp(190px, 18vw, 240px);
    height: clamp(190px, 18vw, 240px);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
}

.qr-modal-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.qr-modal-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.5rem 1.4rem;
}

.qr-modal-url-hint {
    font-size: 0.72rem;
    color: #64748b;
    font-family: monospace;
    word-break: break-all;
}

.product-header-identity {
    pointer-events: auto;
    padding-left: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.product-header-branded {
    color: #0f172a;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.45rem, 1.8vw, 1.95rem);
    letter-spacing: -0.015em;
    line-height: 1.15;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}
.product-header-equip {
    color: #0369a1;
    font-size: clamp(0.78rem, 0.9vw, 0.98rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.25;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
.product-header-unit {
    color: #475569;
    font-weight: 600;
    text-transform: none;
}

.products-toggle-btn {
    cursor: pointer;
    font-family: inherit;
    user-select: none;
    line-height: inherit;
}
button.btn-watlow-metallic {
    cursor: pointer;
    font-family: inherit;
    line-height: inherit;
}
button.btn-watlow-metallic:focus {
    outline: none;
}

.products-toggle-chevron {
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    font-weight: 900;
}

.products-toggle-btn.active .products-toggle-chevron {
    transform: rotate(180deg);
}

/* ==========================================================================
   Screen 02: Choose Industry Irregular Translucent Cards
   ========================================================================== */
.industries-dashboard-stage {
    position: relative;
    z-index: 20;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(10.5vh + 1rem) clamp(2.5rem, 4vw, 4.5rem) calc(3.6vh + 1rem);
}
.industry-tile-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
}
.industry-tile-card:hover {
    transform: translateY(-4px);
    background: rgba(30, 41, 59, 0.78);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}
.industry-tile-card .thumb-box {
    width: 100%;
    aspect-ratio: 1.15;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.25);
    margin: 0;
    padding: 0;
}
.industry-tile-card .industry-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}
.industry-tile-card:hover .industry-thumb-img {
    transform: scale(1.05);
}
.industry-tile-card .label-box {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 0.5rem;
    background: rgba(8, 14, 26, 0.75);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 54px;
}
.industry-tile-card .label-box .title {
    color: #ffffff;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.82rem;
    line-height: 1.25;
    letter-spacing: 0.01em;
}
/* Active Oil & Gas Card - Seamless, Borderless, Full-Bleed Image */
.industry-tile-card.active-industry {
    border: none !important;
    outline: none !important;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}
.industry-tile-card.active-industry:hover {
    transform: translateY(-4px);
    background: #ffffff;
    border: none !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.7);
}
.industry-tile-card.active-industry .thumb-box {
    background: transparent;
    border: none;
}
.industry-tile-card.active-industry .industry-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}
.industry-tile-card.active-industry .label-box {
    background: #ffffff;
    border-top: none;
}
.industry-tile-card.active-industry .label-box .title {
    color: #334155;
    font-weight: 700;
    font-size: 0.88rem;
}

/* ==========================================================================
   Screen 03: Reliable Thermal Solutions Direct Hero Overlay
   ========================================================================== */
.hero-direct-overlay {
    position: absolute;
    top: clamp(8.5rem, 18vh, 13rem);
    left: var(--content-left);
    z-index: 20;
    max-width: 650px;
    pointer-events: auto;
}
.hero-direct-overlay .hero-heading {
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2.4rem, 3.8vw, 3.6rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}
.hero-direct-overlay .hero-text {
    color: #1e293b;
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    line-height: 1.5;
    max-width: 560px;
    margin-bottom: 2.25rem;
}
.hero-cta-wrapper {
    display: inline-block;
}

/* ==========================================================================
   Screen 04: Watlow Refinery Solutions Explorer Overlay, Trapezoid Slab & Card
   ========================================================================== */
.explorer-hero-overlay {
    position: absolute;
    top: clamp(8rem, 18vh, 12.5rem);
    left: var(--content-left);
    z-index: 20;
    max-width: clamp(720px, 64vw, 1280px);
    pointer-events: auto;
}
.explorer-hero-overlay .hero-heading {
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.85rem, 2.5vw, 2.7rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 1.15rem;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}
.explorer-hero-overlay .hero-subhead {
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.15rem, 1.45vw, 1.4rem);
    line-height: 1.28;
    margin-bottom: 1.15rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    letter-spacing: -0.01em;
    max-width: 680px;
}
.explorer-hero-overlay .hero-text {
    color: #1e293b;
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: clamp(0.95rem, 1.22vw, 1.17rem);
    line-height: 1.48;
    max-width: 540px;
}

/* Bottom-Left Trapezoid Frame Extension Slab (#f0f0ee matching global frame) */
.explorer-frame-trapezoid {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 98;
    display: block;
}

/* Wrapper holds drop-shadow around the clipped white card */
.explorer-feature-card-wrapper {
    position: fixed;
    bottom: 4.8vh;
    left: 4.1vw;
    z-index: 102;
    width: clamp(360px, 36.5vw, 680px);
    filter: drop-shadow(0 8px 24px rgba(15, 23, 42, 0.18)) drop-shadow(0 2px 6px rgba(15, 23, 42, 0.1));
    pointer-events: auto;
}
.explorer-feature-card {
    background: #ffffff;
    /* Chamfered geometry with subtle rounded top-left and bottom-right corners */
    clip-path: polygon(
        0 8px,
        8px 0,
        calc(100% - 64px) 0,
        100% 58px,
        100% calc(100% - 8px),
        calc(100% - 8px) 100%,
        56px 100%,
        0 calc(100% - 50px)
    );
    padding: clamp(1.6rem, 2.8vh, 2.5rem) clamp(2rem, 3.2vw, 3.25rem);
}
.explorer-feature-card .card-heading {
    color: #e5b344;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.25rem, 1.55vw, 1.65rem);
    letter-spacing: -0.01em;
    margin-bottom: 0.55rem;
}
.explorer-feature-card .card-body-text {
    color: #1e293b;
    font-family: var(--font-primary);
    font-size: clamp(0.88rem, 1vw, 1.02rem);
    line-height: 1.5;
    margin-bottom: 0.85rem;
}
.explorer-feature-card .card-body-tagline {
    color: #1e293b;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: clamp(0.88rem, 1vw, 1.02rem);
    line-height: 1.5;
    margin-bottom: 1.35rem;
}
.explorer-feature-card .btn-watlow-glossy {
    min-width: 280px;
}


/* ==========================================================================
   3D VIEWER & 300-FRAME SEQUENCE SCRUBBER CONTROLS
   ========================================================================== */
.product-viewport-chamber {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.product-stage-canvas-box {
    position: relative;
    max-width: 1400px;
    width: 85%;
    height: 75%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#optimax-sequence-canvas,
.product-stage-sequence-full {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: grab;
    user-select: none;
    touch-action: none;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.85));
    transition: filter 0.3s ease;
    z-index: 10;
}

#optimax-sequence-canvas:active,
.product-stage-sequence-full:active {
    cursor: grabbing;
}

#webgl-3d-viewport,
.product-stage-webgl-full {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 15;
    overflow: hidden;
    touch-action: none;
}

.scrubber-hud-controls {
    position: absolute;
    bottom: calc(3.5vh + 0.65rem + max(1.8rem, calc(3vh + 0.5rem)) + 3.5rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    padding: 0.35rem 0.85rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.scrubber-hud-controls.collapsed {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.scrubber-close-btn {
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-left: 0.5rem !important;
    margin-left: 0.25rem !important;
    color: #94a3b8;
}

.scrubber-close-btn:hover {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.15) !important;
}

/* 3D Viewer Control Bar Collapsed Trigger (Positioned at bottom on left side of Explore Solutions) */
.viewer-controls-trigger {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 105;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #e2e8f0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.2s ease, 
                border-color 0.2s ease, 
                box-shadow 0.2s ease, 
                color 0.2s ease;
}

.viewer-controls-trigger:hover {
    background: rgba(30, 41, 59, 0.95);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 14px rgba(56, 189, 248, 0.4);
    transform: translateY(-50%) scale(1.08);
}

.viewer-controls-trigger:active {
    transform: translateY(-50%) scale(0.96);
}

.scrubber-btn-icon {
    background: transparent;
    border: none;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.45rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.scrubber-btn-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.scrubber-btn-icon.active {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.scrubber-telemetry-tag {
    font-family: var(--font-telemetry, 'Courier New', monospace);
    font-size: 0.72rem;
    color: #38bdf8;
    letter-spacing: 0.05em;
    padding: 0 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
}

.product-status-pill {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 0.3rem 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    color: #94a3b8;
    font-family: var(--font-primary);
}

.product-status-pill .indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.product-status-pill.status-in-production .indicator-dot {
    background: #eab308;
    box-shadow: 0 0 6px #eab308;
}

/* 3D Viewport Controls & Angle Presets */
#controls-3d-angles .scrubber-btn-icon {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.25rem 0.55rem;
}

#controls-3d-angles .scrubber-btn-icon.active {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

#btn-3d-reset:hover {
    background: rgba(204, 21, 38, 0.25);
    color: #f87171;
}

#btn-3d-reset:active {
    transform: scale(0.95);
}

/* Material Mode Switcher Dropdown Toggle */
#controls-material-mode {
    position: relative;
    display: inline-flex;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0 0.35rem;
    margin: 0 0.2rem;
}

.material-mode-trigger {
    gap: 0.15rem;
    white-space: nowrap;
}

.material-mode-trigger[data-mode="enhanced"] {
    background: rgba(56, 189, 248, 0.22);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
}

.material-mode-trigger[data-mode="raw"] {
    background: rgba(245, 158, 11, 0.22);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.45);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.25);
}

.material-mode-trigger .mat-dropdown-chevron {
    transition: transform 0.2s ease;
    opacity: 0.85;
}

.material-mode-dropdown.open .material-mode-trigger .mat-dropdown-chevron {
    transform: rotate(180deg);
}

.material-mode-dropdown-menu {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 118px;
    padding: 0.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
    z-index: 80;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.material-mode-dropdown.open .material-mode-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.material-mode-dropdown-menu .scrubber-btn-icon {
    width: 100%;
    justify-content: flex-start;
    padding: 0.35rem 0.55rem;
    white-space: nowrap;
}

#btn-mat-raw.active {
    background: rgba(245, 158, 11, 0.25);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

#btn-mat-enhanced.active {
    background: rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

/* 3D WebGL Model Loading Indicator Card & Spinner */
.webgl-loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    padding: 1.6rem 2.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    z-index: 35;
    pointer-events: none;
    color: #f8fafc;
    min-width: 270px;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.webgl-loading-indicator.fade-out {
    opacity: 0;
    visibility: hidden;
}

.webgl-loading-spinner-ring {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 3.5px solid rgba(56, 189, 248, 0.16);
    border-top-color: #38bdf8;
    border-right-color: #0284c7;
    animation: webglSpinRing 0.85s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

@keyframes webglSpinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.webgl-loading-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e2e8f0;
}

.webgl-loading-subtitle {
    font-size: 0.72rem;
    color: #94a3b8;
    letter-spacing: 0.04em;
    font-family: monospace;
}

/* 3D WebGL Load Error Notice Overlay */
.webgl-error-notice {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(239, 68, 68, 0.15);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    max-width: 90%;
    width: 420px;
    text-align: center;
    color: #f8fafc;
    z-index: 50;
    pointer-events: auto;
    animation: fadeInErrorNotice 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInErrorNotice {
    from {
        opacity: 0;
        transform: translate(-50%, -46%) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* =========================================================================
   3D WEBGL MATERIAL & LIGHTING TUNING HUD PANEL
   ========================================================================= */
.watlow-3d-tuner-panel {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    width: 330px;
    max-width: calc(100vw - 2.5rem);
    max-height: calc(100vh - 2.5rem);
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 1px rgba(255, 255, 255, 0.2);
    padding: 1.1rem;
    color: #f8fafc;
    font-family: var(--font-primary, system-ui, -apple-system, sans-serif);
    z-index: 150; /* Above viewport frame (100), brand link (105), showcase HUD & CTAs (100), and 3D toolbar (60); below modals (200+) */
    pointer-events: auto;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    display: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.watlow-3d-tuner-panel.open {
    display: block;
}

.watlow-3d-tuner-toggle-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    border-radius: 9999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    pointer-events: auto;
}

.watlow-3d-tuner-toggle-btn:hover {
    background: rgba(30, 41, 59, 0.95);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.4);
}

.tuner-slider-row {
    margin-bottom: 0.85rem;
}

.tuner-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
    font-size: 0.72rem;
}

.tuner-slider-label {
    color: #cbd5e1;
    font-weight: 500;
}

.tuner-slider-badge {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
}

.tuner-slider-input {
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.tuner-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #38bdf8;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
    border: 2px solid #0f172a;
    transition: transform 0.1s ease;
}

.tuner-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.tuner-slider-input::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #38bdf8;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
    border: 2px solid #0f172a;
}

/* ==========================================================================
   Screen 07: Project Reference (MV Case Study) Page
   ========================================================================== */
.project-reference-stage {
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 100vh;
    padding-top: max(calc(var(--content-top) + 1.8rem), calc(11.5vh + 0.8rem));
    padding-left: calc(1.81vw + clamp(2rem, 4.2vw, 5rem));
    padding-right: calc(1.70vw + clamp(2rem, 4.2vw, 5rem));
    padding-bottom: clamp(2.5rem, 6.5vh, 4.8rem);
    box-sizing: border-box;
    overflow-y: auto;
    position: relative;
    z-index: 10;
}
.project-reference-header {
    margin-bottom: clamp(0.85rem, 1.8vh, 1.5rem);
    flex-shrink: 0;
}
.project-reference-title {
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.65rem, 2.6vw, 2.75rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
}

.project-reference-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1rem, 2vw, 2.5rem);
    align-items: stretch;
    flex: 0 0 auto;
    min-height: 0;
    margin-bottom: clamp(0.75rem, 1.8vh, 1.4rem);
}

/* Left Column: MV Case Study Key Specs Card */
.mv-case-study-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.15);
    height: 100%;
    min-height: 0;
}
.mv-case-study-banner {
    background: #dfb14e;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(0.95rem, 1.22vw, 1.3rem);
    padding: clamp(0.45rem, 0.9vh, 0.75rem) clamp(0.85rem, 1.3vw, 1.5rem);
    letter-spacing: 0.01em;
    flex-shrink: 0;
}
.mv-case-study-banner--blue {
    background: #58a0e3;
}
.mv-case-study-banner--accent-only {
    min-height: clamp(2.1rem, 3.6vh, 3rem);
    padding: 0;
}
.mv-case-study-card--soft,
.mv-case-study-card--soft .mv-case-study-table,
.mv-case-study-card--soft .mv-case-study-value {
    background: #f1f0f0;
}
.mv-case-study-card--soft .mv-case-study-row {
    border-bottom-color: #ffffff;
}
.mv-case-study-card--compact {
    height: auto;
    flex: 0 0 auto;
}
.mv-case-study-card--compact .mv-case-study-row {
    flex: 0 0 auto;
}
.mv-case-study-paragraphs {
    display: flex;
    flex-direction: column;
    gap: clamp(0.45rem, 0.8vh, 0.75rem);
}
.mv-case-study-paragraphs p {
    margin: 0;
}
.mv-case-study-bullets {
    margin: 0;
    padding-left: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}
.mv-case-study-bullets li {
    margin: 0;
}
.mv-case-study-table {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    flex: 1 1 0;
    min-height: 0;
}
.mv-case-study-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #e5e7eb;
    font-family: var(--font-primary);
    font-size: clamp(0.74rem, 0.92vw, 1.05rem);
    line-height: 1.25;
    flex: 1 1 0;
    min-height: 0;
}
.mv-case-study-row:last-child {
    border-bottom: none;
}
.mv-case-study-label {
    width: 36%;
    flex: 0 0 36%;
    min-width: 130px;
    padding: clamp(0.32rem, 0.7vh, 0.75rem) clamp(0.65rem, 1vw, 1.25rem);
    font-weight: 600;
    color: #374151;
    background: transparent;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}
.mv-case-study-value {
    width: 64%;
    flex: 1 1 0;
    padding: clamp(0.32rem, 0.7vh, 0.75rem) clamp(0.65rem, 1vw, 1.25rem);
    color: #111827;
    font-weight: 400;
    background: #ffffff;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* Right Column: Visual Case Study Infographic Card */
.project-visual-card {
    background: transparent;
    border-radius: 16px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    border: none;
    min-height: 0;
}
.project-visual-card picture {
    width: 100%;
    display: block;
}
.project-visual-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1296 / 990;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    display: block;
}
.project-visual-img--updated {
    aspect-ratio: 2044 / 1568;
}

/* Vertically centered client panel PNG layouts for Pages 2–5 */
.project-reference-grid--bitumen,
.project-reference-grid--ngl,
.project-reference-grid--soec,
.project-reference-fullpanel-wrap {
    margin-top: auto;
    margin-bottom: auto;
    align-items: center;
}
.project-reference-stage--dual_panels_bitumen .project-reference-actions,
.project-reference-stage--dual_panels_ngl .project-reference-actions,
.project-reference-stage--dual_panels_soec .project-reference-actions,
.project-reference-stage--full_panel_waste .project-reference-actions {
    margin-top: 0;
    padding-top: clamp(0.75rem, 1.5vh, 1.25rem);
}

.project-panel-img {
    width: 100%;
    height: auto;
    max-height: 62vh;
    object-fit: contain;
    display: block;
}
.project-panel-card--shadow .project-panel-img {
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

/* Page 2: Hot Oil System for Bitumen */
.project-reference-grid--bitumen {
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.85fr);
    gap: clamp(1.25rem, 2.8vw, 3.5rem);
}
.project-panel-img--bitumen-left {
    aspect-ratio: 2576 / 1842;
}
.project-panel-card--outcomes {
    align-items: center;
    justify-content: center;
}
.project-panel-img--bitumen-right {
    width: auto;
    max-width: min(100%, 420px);
    max-height: 58vh;
    aspect-ratio: 1357 / 1743;
    margin: 0 auto;
}

/* Page 3: Medium Voltage Reliability at NGL Facility */
.project-reference-grid--ngl {
    grid-template-columns: minmax(0, 1.26fr) minmax(0, 1fr);
    align-items: start;
}
.project-panel-img--ngl-left {
    aspect-ratio: 2576 / 1570;
}
.project-panel-img--ngl-right {
    aspect-ratio: 2044 / 1635;
}

/* Page 4: Solid Oxide Electrolyzer Cell (SOEC) */
.project-reference-grid--soec {
    grid-template-columns: minmax(0, 1.26fr) minmax(0, 1fr);
    align-items: start;
}
.project-panel-img--soec-left {
    aspect-ratio: 2576 / 1445;
}
.project-panel-img--soec-right {
    aspect-ratio: 2044 / 1621;
}

/* Page 5: Converting Waste into H2 (Full-Width Client Panel PNG) */
.project-reference-fullpanel-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}
.project-panel-img--waste-full {
    width: 100%;
    max-height: 64vh;
    aspect-ratio: 4736 / 1769;
    object-fit: contain;
}

/* Bottom Action Navigation (Bottom-Left Pair: Back to Overview + Project References) */
.project-reference-actions {
    position: relative;
    z-index: 110;
    flex-shrink: 0;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: clamp(0.65rem, 1vw, 1rem);
}
.project-reference-actions .btn-watlow-glossy {
    min-width: clamp(200px, 16vw, 260px);
}
.project-reference-actions .project-ref-action-btn {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    padding: 0.5rem 1.25rem;
    min-height: 2.3rem;
    min-width: 192px;
    justify-content: center;
    box-sizing: border-box;
}
.project-reference-switcher {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 115;
}

@media (max-width: 991.98px) {
    .project-reference-stage {
        height: auto;
        min-height: 100vh;
    }
    .project-reference-grid,
    .project-reference-grid--bitumen,
    .project-reference-grid--ngl,
    .project-reference-grid--soec {
        grid-template-columns: 1fr;
        height: auto;
        flex: none;
        margin-top: 0;
        margin-bottom: clamp(0.75rem, 1.8vh, 1.4rem);
    }
    .project-reference-fullpanel-wrap {
        margin-top: 0;
        margin-bottom: clamp(0.75rem, 1.8vh, 1.4rem);
    }
    .project-panel-img {
        max-height: none;
    }
    .mv-case-study-card {
        height: auto;
    }
    .mv-case-study-row {
        flex: none;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .project-visual-card {
        height: auto;
    }
    .project-visual-img {
        height: auto;
    }
    .project-reference-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .project-reference-switcher .project-ref-slideout-menu {
        width: min(360px, 85vw);
    }
}

/* ==========================================================================
   Screen 08: White Papers Collection (4x2 Responsive Grid)
   ========================================================================== */
.white-papers-stage {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    background-color: #07162e;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    z-index: 10;
}

.white-papers-content-area {
    width: 100%;
    max-width: 1350px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 clamp(1.5rem, 3vw, 4rem);
    box-sizing: border-box;
    margin: 0 auto;
    z-index: 20;
}

.white-papers-grid {
    display: grid;
    grid-template-columns: repeat(4, auto);
    grid-template-rows: repeat(2, auto);
    gap: clamp(1rem, 2.5vh, 2.6rem);
    justify-content: center;
    align-content: center;
    justify-items: center;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

.white-paper-card {
    text-decoration: none;
    display: block;
    width: clamp(145px, 14.5vw, 250px);
    cursor: pointer;
    user-select: none;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), filter 0.25s ease;
}

.white-paper-card:hover {
    transform: translateY(-5px) scale(1.03);
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 16px rgba(233, 191, 94, 0.35));
}

.white-paper-card:active {
    transform: translateY(-1px) scale(0.99);
}

.white-paper-card-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Bottom Action Navigation: Matching Project Reference size & position */
.white-papers-actions {
    position: absolute;
    bottom: clamp(2.5rem, 6.5vh, 4.8rem);
    left: calc(1.81vw + clamp(2rem, 4.2vw, 5rem));
    z-index: 50;
    pointer-events: auto;
}

.white-papers-actions .btn-watlow-glossy {
    min-width: clamp(200px, 16vw, 260px);
}

@media (max-width: 991.98px) {
    .white-papers-stage {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        padding: calc(var(--content-top) + 2rem) 1rem 5rem 1rem;
    }
    .white-papers-grid {
        grid-template-columns: repeat(2, auto);
        gap: 1.5rem;
    }
}

/* ==========================================================================
   Screen 07A: Project Reference Overview (Single Row of 5 Tiles)
   Exact same tile footprint & visual language as White Papers cards
   ========================================================================== */
.project-references-content-area {
    width: 100%;
    max-width: 1580px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 clamp(1.5rem, 3vw, 4rem);
    box-sizing: border-box;
    margin: 0 auto;
    z-index: 20;
}

.project-references-grid {
    display: grid;
    grid-template-columns: repeat(5, auto);
    grid-template-rows: auto;
    gap: clamp(0.85rem, 2.2vh, 2.2rem);
    justify-content: center;
    align-content: center;
    justify-items: center;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

/* Exact same outer dimensions (316:376 aspect & clamp(145px, 14.5vw, 250px) width) as .white-paper-card */
.project-ref-tile {
    width: clamp(145px, 14.5vw, 250px);
    aspect-ratio: 316 / 376;
    padding: 1.3% 4.1% 4.3% 5.7%;
    box-sizing: border-box;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.project-ref-tile:hover {
    transform: translateY(-5px) scale(1.03);
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 16px rgba(233, 191, 94, 0.35));
}

.project-ref-tile:focus-visible {
    outline: 2px solid #e9bf5e;
    outline-offset: 4px;
    border-radius: 6px;
}

/* Chamfered card body matching White Paper PNG artwork geometry (286x356 inner card) */
.project-ref-tile-surface {
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    clip-path: polygon(
        10.5% 0,
        100% 0,
        100% 92.4%,
        90.5% 100%,
        0 100%,
        0 7.9%
    );
}

.project-ref-tile-media {
    position: relative;
    flex: 0 0 70.5%;
    width: 100%;
    min-height: 0;
    padding: 2.8% 2.8% 0 2.8%;
    background-color: #eceff2;
    box-sizing: border-box;
    overflow: hidden;
}

.project-ref-tile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    clip-path: polygon(
        9.6% 0,
        100% 0,
        100% 100%,
        0 100%,
        0 10.1%
    );
}

.project-ref-tile-caption {
    flex: 1 1 29.5%;
    width: 100%;
    min-height: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(0.35rem, 0.55vw, 0.7rem) clamp(0.5rem, 0.8vw, 0.95rem);
    box-sizing: border-box;
    box-shadow: 0 -2px 6px rgba(15, 23, 42, 0.08);
    position: relative;
    z-index: 2;
}

.project-ref-tile-title {
    color: #5b5b5a;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(0.72rem, 0.96vw, 1.12rem);
    line-height: 1.18;
    letter-spacing: -0.01em;
    text-wrap: balance;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-references-overview-actions .btn-watlow-glossy {
    min-width: clamp(240px, 19vw, 310px);
    padding: 0.78rem 1.85rem;
}

@media (max-width: 991.98px) {
    .project-references-overview-stage {
        flex-direction: column;
    }
    .project-references-grid {
        grid-template-columns: repeat(2, auto);
        gap: 1.5rem;
    }
    .project-references-overview-actions {
        position: static;
        margin-top: 2rem;
    }
}

/* ==========================================================================
   Screen 08: White Paper PDF Modal Overlay Viewer
   Seamlessly overlays directly on top of the UI
   ========================================================================== */
dialog.whitepaper-modal-dialog {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    z-index: 2000; /* Overlays viewport frame lockup, logo & all UI elements */
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), display 0.25s allow-discrete, overlay 0.25s allow-discrete;
}

dialog.whitepaper-modal-dialog:modal,
dialog.whitepaper-modal-dialog[open],
dialog.whitepaper-modal-dialog.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 2vw, 1.75rem);
    opacity: 1;
    pointer-events: auto;
    overscroll-behavior: contain;
}

dialog.whitepaper-modal-dialog::backdrop {
    background: rgba(3, 8, 20, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    overscroll-behavior: contain;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), display 0.25s allow-discrete, overlay 0.25s allow-discrete;
}

dialog.whitepaper-modal-dialog:modal::backdrop {
    opacity: 1;
}

@starting-style {
    dialog.whitepaper-modal-dialog:modal {
        opacity: 0;
    }
    dialog.whitepaper-modal-dialog:modal::backdrop {
        opacity: 0;
    }
}

.whitepaper-modal-window {
    position: relative;
    width: clamp(320px, 92vw, 1360px);
    height: clamp(520px, 88vh, 920px);
    max-width: 96vw;
    max-height: 92vh;
    background: linear-gradient(135deg, rgba(11, 23, 44, 0.98) 0%, rgba(6, 14, 28, 0.99) 100%);
    border: 1px solid rgba(0, 210, 255, 0.35);
    border-top: 3px solid var(--watlow-red);
    border-radius: 12px;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.95),
        0 0 45px rgba(0, 210, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    transform: scale(0.96) translateY(12px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

dialog.whitepaper-modal-dialog:modal .whitepaper-modal-window,
dialog.whitepaper-modal-dialog[open] .whitepaper-modal-window,
dialog.whitepaper-modal-dialog.active .whitepaper-modal-window {
    transform: scale(1) translateY(0);
}

@starting-style {
    dialog.whitepaper-modal-dialog:modal .whitepaper-modal-window {
        transform: scale(0.96) translateY(12px);
    }
}

.whitepaper-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(0.85rem, 1.8vh, 1.25rem) clamp(1rem, 2vw, 1.8rem);
    background: rgba(4, 11, 24, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
    box-sizing: border-box;
}

.whitepaper-modal-header-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
}

.whitepaper-modal-title {
    margin: 0;
    font-family: var(--font-heading, 'Aileron', sans-serif);
    font-size: clamp(1.25rem, 1.85vw, 1.75rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.whitepaper-modal-actions {
    display: flex;
    align-items: center;
    gap: clamp(0.4rem, 0.8vw, 0.75rem);
    flex-shrink: 0;
}

.whitepaper-modal-pager {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 0.2rem 0.4rem;
    margin-right: 0.25rem;
}

.whitepaper-modal-pager-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.3rem 0.45rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.whitepaper-modal-pager-btn:hover:not(:disabled) {
    color: #ffffff;
    background: rgba(0, 210, 255, 0.25);
}

.whitepaper-modal-pager-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.whitepaper-modal-pager-text {
    font-size: 0.72rem;
    color: #cbd5e1;
    font-family: var(--font-mono, monospace);
    padding: 0 0.35rem;
    user-select: none;
    white-space: nowrap;
    font-weight: 600;
}

.btn-whitepaper-modal-action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-whitepaper-modal-action:hover {
    background: linear-gradient(180deg, rgba(0, 210, 255, 0.25) 0%, rgba(0, 210, 255, 0.08) 100%);
    border-color: var(--hud-cyan);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(0, 210, 255, 0.35);
    text-decoration: none;
}

.btn-whitepaper-modal-close {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 0;
    margin-left: 0.25rem;
    transition: all 0.2s ease;
}

.btn-whitepaper-modal-close:hover {
    color: #ffffff;
    background: rgba(218, 41, 28, 0.25);
    border-color: var(--watlow-red);
    transform: scale(1.05);
}

.whitepaper-modal-body {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #060e1c;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.whitepaper-modal-iframe {
    width: 100%;
    height: 100%;
    flex: 1;
    border: none;
    display: block;
    background: #0a1426;
    color-scheme: dark;
}

/* Loading spinner */
.whitepaper-modal-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(6, 14, 28, 0.92);
    z-index: 5;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.whitepaper-modal-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.whitepaper-modal-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(0, 210, 255, 0.15);
    border-top-color: var(--hud-cyan);
    border-right-color: var(--watlow-red);
    border-radius: 50%;
    animation: wpSpin 0.9s linear infinite;
}

@keyframes wpSpin {
    to { transform: rotate(360deg); }
}

.whitepaper-modal-loader-text {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Fallback for browsers that block or don't render iframe PDF */
.whitepaper-modal-fallback {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(6, 14, 28, 0.95);
    z-index: 4;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: #cbd5e1;
    gap: 1rem;
}

.whitepaper-modal-fallback.active {
    display: flex;
}

@media (max-width: 768px) {
    dialog.whitepaper-modal-dialog:modal,
    dialog.whitepaper-modal-dialog[open],
    dialog.whitepaper-modal-dialog.active {
        padding: 0.5rem;
    }
    .whitepaper-modal-window {
        width: 98vw;
        height: 94vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 8px;
    }
    .whitepaper-modal-header {
        padding: 0.6rem 0.8rem;
        gap: 0.5rem;
    }
    .btn-whitepaper-modal-action span {
        display: none; /* Icon-only on mobile */
    }
    .btn-whitepaper-modal-action {
        padding: 0.45rem 0.55rem;
    }
    .whitepaper-modal-pager {
        display: none; /* Hide pager on small screen */
    }
    .whitepaper-modal-title {
        font-size: 1.15rem;
    }
}

/* ==========================================================================
   Screen 09 & Modal: Standalone Mobile & In-Viewer Product Registration Form
   Matches Master Exhibition UI Specification
   ========================================================================== */

/* 1. Standalone Page Wrapper (Destination 1) */
.registration-page-wrapper {
    position: relative;
    z-index: 20;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(3.5rem, 7vh, 5rem) 1rem clamp(2rem, 5vh, 3.5rem);
    box-sizing: border-box;
    overflow-y: auto;
}

.registration-page-inner {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.frame-brand-static {
    pointer-events: none !important;
    cursor: default !important;
}

/* 2. Registration Card (Shared by Destination 1 and Destination 2 Modal) */
.registration-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 2px;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 48%, #dc2626 100%);
    clip-path: polygon(
        28px 0,
        100% 0,
        100% calc(100% - 28px),
        calc(100% - 28px) 100%,
        0 100%,
        0 28px
    );
    box-shadow: 
        0 0 35px rgba(234, 88, 12, 0.45),
        0 25px 60px rgba(0, 0, 0, 0.85);
    box-sizing: border-box;
}

.registration-card-inner {
    background: rgba(8, 14, 26, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: clamp(1.8rem, 3.2vw, 2.5rem) clamp(1.4rem, 2.8vw, 2.6rem) clamp(1.6rem, 2.8vw, 2.2rem);
    clip-path: polygon(
        26px 0,
        100% 0,
        100% calc(100% - 26px),
        calc(100% - 26px) 100%,
        0 100%,
        0 26px
    );
    box-sizing: border-box;
}

/* Modal Variant overrides */
.qr-modal-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 1rem auto;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.registration-modal-close {
    position: absolute;
    top: 8px;
    right: 14px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 60;
    padding: 0.25rem 0.5rem;
    transition: color 0.15s ease, transform 0.15s ease;
}

.registration-modal-close:hover {
    color: #ffffff;
    transform: scale(1.15);
}

/* 3. Typography & Form Layout */
.registration-title {
    color: #ffffff;
    font-family: var(--font-heading, 'Aileron', -apple-system, sans-serif);
    font-weight: 700;
    font-size: clamp(1.65rem, 2.4vw, 2.15rem);
    letter-spacing: -0.01em;
    margin: 0 0 0.4rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.registration-subtitle {
    color: #e2e8f0;
    font-family: var(--font-primary, -apple-system, sans-serif);
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    line-height: 1.45;
    margin: 0 auto 1.35rem auto;
    max-width: 380px;
    text-align: center;
}

/* 4. Form Inputs */
.registration-input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
}

.registration-input {
    width: 100%;
    background-color: #d1d5db !important;
    border: none !important;
    color: #0f172a !important;
    font-family: var(--font-primary, -apple-system, sans-serif);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.7rem 1.15rem;
    min-height: 44px;
    border-radius: 0 !important;
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - 12px),
        calc(100% - 12px) 100%,
        0 100%
    );
    outline: none !important;
    box-sizing: border-box;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.registration-input:focus {
    background-color: #ffffff !important;
    box-shadow: 0 0 0 2px #ea580c !important;
}

.registration-input::placeholder {
    color: #475569;
    font-weight: 500;
    opacity: 1;
}

.registration-required-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: right;
    margin-top: -0.25rem;
    margin-bottom: 0.85rem;
}

.registration-disclaimer {
    font-size: 0.82rem;
    color: #cbd5e1;
    text-align: center;
    line-height: 1.45;
    margin: 0 auto 0.95rem auto;
    max-width: 360px;
}

.registration-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    user-select: none;
    text-align: left;
}

.registration-checkbox {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: #ea580c;
    flex-shrink: 0;
    cursor: pointer;
}

.registration-checkbox-text {
    font-size: 0.82rem;
    color: #f1f5f9;
    line-height: 1.35;
}

/* 5. CTAs & Silvery Reflective Button */
.btn-registration-send {
    display: inline-block;
    background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 45%, #cbd5e1 55%, #f1f5f9 100%);
    color: #0f172a !important;
    font-family: var(--font-heading, sans-serif);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.65rem clamp(2.5rem, 5vw, 4rem);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px #ffffff,
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-registration-send:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(255, 255, 255, 0.35),
        inset 0 1px 1px #ffffff;
    color: #000000 !important;
}

.btn-registration-send:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-registration-send:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 6. Success View State */
.registration-success-content {
    padding: 0.5rem 0;
}

.registration-success-icon-badge {
    margin: 0 auto 1rem auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    border: 2px solid #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.registration-success-desc {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.registration-pdf-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 4px solid #ea580c;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.pdf-icon-wrapper {
    flex-shrink: 0;
}

.pdf-title-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.35;
}

.pdf-sub-text {
    color: #94a3b8;
    font-size: 0.78rem;
    margin-top: 2px;
}

.btn-registration-reset {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.5rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-registration-reset:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.btn-registration-close-link {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0.25rem;
}

.btn-registration-close-link:hover {
    color: #ffffff;
}

.registration-error-alert {
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid #dc2626;
    color: #fca5a5;
    border-radius: 6px;
    padding: 0.65rem 0.95rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
}

@media (max-width: 640px) {
    .registration-card {
        max-width: 95%;
    }
    .registration-card-inner {
        padding: 1.75rem 1.25rem 1.5rem;
    }
    .registration-title {
        font-size: 1.6rem;
    }
    .btn-registration-send {
        width: 100%;
        padding: 0.7rem 1.5rem;
    }
}

/* =============================================================================
 * HUD User Burger Menu & Dropdown Lockup
 * ============================================================================= */
.user-hud-menu {
    position: relative;
    z-index: 90;
}
.user-menu-trigger {
    cursor: pointer;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
}
.user-menu-trigger:hover, .user-menu-trigger:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: linear-gradient(180deg, rgba(51, 65, 85, 0.9) 0%, rgba(30, 41, 59, 1) 100%);
}
.user-menu-username {
    font-weight: 600;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f8fafc;
}
.user-hud-dropdown-menu {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 8px !important;
    min-width: 250px;
    padding: 0.5rem 0 !important;
    margin-top: 0.5rem !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7) !important;
}
.user-hud-profile-card {
    background: rgba(0, 0, 0, 0.25);
}
.user-hud-dropdown-item {
    color: #cbd5e1 !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    padding: 0.55rem 1rem !important;
    transition: all 0.15s ease;
    background: transparent !important;
}
.user-hud-dropdown-item:hover, .user-hud-dropdown-item:focus {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}
.user-hud-dropdown-item.text-danger:hover {
    color: #fca5a5 !important;
    background: rgba(220, 38, 38, 0.15) !important;
}


