/* ── REH 3D Viewer Section 2743 ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

.rv3d-2743-hero {
    --rv3d-bg-start: #0F172A;
    --rv3d-bg-end:   #1C1008;
    --rv3d-accent:   #DCA54A;
    --rv3d-cream:    #FAF5E5;
    --rv3d-muted:    #C8B99A;
    --rv3d-ease:     cubic-bezier(0.4, 0, 0.2, 1);

    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--rv3d-bg-start) 0%, #16100A 50%, var(--rv3d-bg-end) 100%);
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    /* CRITICAL: overflow visible so viewer is never clipped */
    overflow: visible;
}

/* ── Ambient Orbs — pointer-events: none, z-index: 0 ── */
.rv3d-2743-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: rv3d-float-2743 8s ease-in-out infinite;
}
.rv3d-2743-orb--1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(220,165,74,0.12) 0%, transparent 70%);
    top: -150px; right: -100px;
    animation-delay: 0s;
}
.rv3d-2743-orb--2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(240,201,122,0.08) 0%, transparent 70%);
    bottom: -100px; left: 10%;
    animation-delay: -3s;
}
.rv3d-2743-orb--3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(200,185,154,0.06) 0%, transparent 70%);
    top: 40%; left: 45%;
    animation-delay: -5s;
}
@keyframes rv3d-float-2743 {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-30px) scale(1.05); }
}

/* ── Grid — pointer-events: none, z-index: 0 ── */
.rv3d-2743-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(220,165,74,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220,165,74,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* ── Inner Layout ── */
.rv3d-2743-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* ── LEFT: Content ── */
.rv3d-2743-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    animation: rv3d-fadeup-2743 1s var(--rv3d-ease) both;
}
@keyframes rv3d-fadeup-2743 {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rv3d-2743-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
}
.rv3d-2743-eyebrow__line {
    display: block;
    width: 40px; height: 1px;
    background: linear-gradient(90deg, var(--rv3d-accent), transparent);
}
.rv3d-2743-eyebrow__text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--rv3d-accent);
}

.rv3d-2743-headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--rv3d-cream);
    margin: 0;
}

.rv3d-2743-desc {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--rv3d-muted);
    max-width: 480px;
    margin: 0;
}

/* ── CTAs ── */
.rv3d-2743-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.rv3d-2743-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.35s var(--rv3d-ease);
    position: relative;
    overflow: hidden;
}
.rv3d-2743-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    transform: translateX(-100%);
    transition: transform 0.4s var(--rv3d-ease);
}
.rv3d-2743-btn:hover::before { transform: translateX(0); }

.rv3d-2743-btn-primary {
    background: var(--rv3d-accent);
    color: #0F172A;
    box-shadow: 0 8px 32px rgba(220,165,74,0.35), 0 2px 8px rgba(0,0,0,0.3);
}
.rv3d-2743-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(220,165,74,0.5), 0 4px 16px rgba(0,0,0,0.4);
    text-decoration: none;
}
.rv3d-2743-btn__arrow {
    width: 18px; height: 18px;
    transition: transform 0.3s var(--rv3d-ease);
}
.rv3d-2743-btn-primary:hover .rv3d-2743-btn__arrow { transform: translateX(4px); }

.rv3d-2743-btn-secondary {
    background: transparent;
    color: var(--rv3d-cream);
    border: 1px solid rgba(250,245,229,0.3);
    backdrop-filter: blur(8px);
}
.rv3d-2743-btn-secondary:hover {
    border-color: var(--rv3d-accent);
    color: var(--rv3d-accent);
    transform: translateY(-3px);
    text-decoration: none;
}

/* ── Stats ── */
.rv3d-2743-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 8px;
}
.rv3d-2743-stat { display: flex; flex-direction: column; gap: 4px; }
.rv3d-2743-stat__num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--rv3d-accent);
    line-height: 1;
}
.rv3d-2743-stat__label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--rv3d-muted);
}
.rv3d-2743-stat__divider {
    width: 1px; height: 36px;
    background: rgba(220,165,74,0.25);
}

/* ── RIGHT: Viewer Wrap ── */
.rv3d-2743-viewer-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* CRITICAL: no overflow hidden, no pointer-event blocking */
    overflow: visible;
    z-index: 2;
}

/* Decorative glow — BEHIND viewer, pointer-events: none */
.rv3d-2743-viewer-glow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%; height: 80px;
    background: radial-gradient(ellipse, rgba(220,165,74,0.2) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
    z-index: 1;
    animation: rv3d-glow-2743 3s ease-in-out infinite;
}
@keyframes rv3d-glow-2743 {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scaleX(1); }
    50%       { opacity: 1;   transform: translateX(-50%) scaleX(1.15); }
}

/* Decorative ring — BEHIND viewer, pointer-events: none */
.rv3d-2743-viewer-ring {
    position: absolute;
    width: 108%; height: 108%;
    border-radius: 50%;
    border: 1px solid rgba(220,165,74,0.1);
    animation: rv3d-spin-2743 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}
.rv3d-2743-viewer-ring::before {
    content: '';
    position: absolute;
    top: -3px; left: 50%;
    transform: translateX(-50%);
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--rv3d-accent);
    box-shadow: 0 0 12px var(--rv3d-accent);
}
@keyframes rv3d-spin-2743 {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── VIEWER FRAME — the stable shortcode container ── */
.rv3d-2743-viewer-frame {
    position: relative;
    /* CRITICAL z-index: above all decorative layers */
    z-index: 10;
    width: 100%;
    border: 1px solid rgba(220,165,74,0.2);
    border-radius: 20px;
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        0 32px 80px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.05);
    /* CRITICAL: no overflow hidden — never clip the viewer */
    overflow: visible;
    /* CRITICAL: allow all pointer events through to the viewer */
    pointer-events: auto;
}

/* ── SHORTCODE AREA — the actual render zone ── */
.rv3d-2743-shortcode-area {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 520px;
    border-radius: 18px;
    /* CRITICAL: overflow visible so 3D canvas is never clipped */
    overflow: visible;
    /* CRITICAL: pointer events fully enabled */
    pointer-events: auto;
    display: flex;
    align-items: stretch;
}

/* Make any direct child of the shortcode area fill the space */
.rv3d-2743-shortcode-area > * {
    width: 100%;
    min-height: inherit;
    border-radius: 18px;
}

/* ── Empty / Editor State ── */
.rv3d-2743-empty-state,
.rv3d-2743-editor-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 32px;
    text-align: center;
    min-height: 520px;
    width: 100%;
}

.rv3d-2743-empty-state p,
.rv3d-2743-editor-notice p {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(200,185,154,0.7);
    max-width: 280px;
    line-height: 1.7;
    margin: 0;
}

.rv3d-2743-empty-state code,
.rv3d-2743-editor-notice code {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--rv3d-accent);
    background: rgba(220,165,74,0.08);
    border: 1px solid rgba(220,165,74,0.2);
    padding: 6px 14px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    word-break: break-all;
    max-width: 100%;
}

.rv3d-2743-editor-notice p {
    color: rgba(200,185,154,0.9);
}

/* ── Viewer Badge ── */
.rv3d-2743-viewer-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(15,23,42,0.75);
    border: 1px solid rgba(220,165,74,0.25);
    border-radius: 100px;
    backdrop-filter: blur(12px);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rv3d-accent);
    pointer-events: none;
}
.rv3d-2743-viewer-badge svg { stroke: var(--rv3d-accent); }

/* ── Scroll Hint ── */
.rv3d-2743-scroll-hint {
    position: absolute;
    bottom: 32px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 3;
    pointer-events: none;
}
.rv3d-2743-scroll-hint span {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(200,185,154,0.5);
}
.rv3d-2743-scroll-hint__mouse {
    width: 22px; height: 34px;
    border: 1px solid rgba(200,185,154,0.3);
    border-radius: 11px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.rv3d-2743-scroll-hint__wheel {
    width: 3px; height: 6px;
    background: var(--rv3d-accent);
    border-radius: 2px;
    animation: rv3d-wheel-2743 1.8s ease-in-out infinite;
}
@keyframes rv3d-wheel-2743 {
    0%   { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .rv3d-2743-inner {
        grid-template-columns: 1fr;
        padding: 60px 40px;
        gap: 40px;
        text-align: center;
    }
    .rv3d-2743-eyebrow  { justify-content: center; }
    .rv3d-2743-desc     { max-width: 100%; }
    .rv3d-2743-ctas     { justify-content: center; }
    .rv3d-2743-stats    { justify-content: center; }
    .rv3d-2743-shortcode-area { min-height: 400px; }
    .rv3d-2743-empty-state,
    .rv3d-2743-editor-notice  { min-height: 400px; }
}
@media (max-width: 768px) {
    .rv3d-2743-inner    { padding: 40px 24px; }
    .rv3d-2743-headline { font-size: clamp(32px, 8vw, 52px); }
    .rv3d-2743-ctas     { flex-direction: column; align-items: center; }
    .rv3d-2743-btn      { width: 100%; justify-content: center; max-width: 320px; }
    .rv3d-2743-scroll-hint { display: none; }
    .rv3d-2743-shortcode-area { min-height: 320px; }
    .rv3d-2743-empty-state,
    .rv3d-2743-editor-notice  { min-height: 320px; }
}
@media (max-width: 480px) {
    .rv3d-2743-stats    { gap: 16px; }
    .rv3d-2743-stat__num { font-size: 22px; }
    .rv3d-2743-shortcode-area { min-height: 260px; }
}
