/* G-ID Labs — Shared Subpage Design System */

/* ===== PAGE HERO ===== */
.page-hero {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    padding-top: 5.5rem !important;
    padding-bottom: 1rem !important;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(4,47,46,.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(4,47,46,.02) 1px, transparent 1px);
    background-size: 3rem 3rem;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 100%);
}
.page-hero .hero-glow-1 {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200,155,148,.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.page-hero .hero-glow-2 {
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45,212,191,.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.page-hero > .relative {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.72fr);
    align-items: center;
    column-gap: clamp(2rem, 5vw, 4rem);
    row-gap: 0.25rem;
    padding-block: clamp(1.125rem, 2.2vw, 1.75rem);
    isolation: isolate;
}
.page-hero > .relative > * {
    grid-column: 1;
    position: relative;
    z-index: 1;
    max-width: 40rem;
}
.page-hero > .relative > .hero-image-wrapper {
    grid-column: 2;
    grid-row: 1 / span 6;
    align-self: stretch;
    min-height: 240px;
    border-radius: 999px;
    overflow: hidden;
    max-width: none;
    position: relative;
    z-index: 1;
}
.page-hero > .relative > .hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.page-hero.has-image > .relative::after {
    display: none;
}
.page-hero > .relative::after {
    content: '';
    display: block;
    grid-column: 2;
    grid-row: 1 / span 6;
    align-self: stretch;
    min-height: 240px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 28% 30%, rgba(200,155,148,.38) 0%, transparent 24%),
        radial-gradient(circle at 72% 70%, rgba(45,212,191,.24) 0%, transparent 22%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 58%),
        linear-gradient(150deg, rgba(4,47,46,.2) 0%, rgba(15,118,110,.12) 100%);
    filter: blur(0.2px);
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* ===== SECTION SPACING ===== */
.page-section { padding: 4rem 0; }
.page-section-sm { padding: 3rem 0; }
.page-section-lg { padding: 5rem 0; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(4,47,46,.45);
}
.breadcrumb a { color: rgba(4,47,46,.45); transition: color .2s; }
.breadcrumb a:hover { color: #C89B94; }
.breadcrumb .sep { opacity: .3; }

/* ===== CONTENT CARDS ===== */
.content-card {
    background: white;
    border: 1px solid rgba(4,47,46,.08);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all .3s;
}
.content-card:hover {
    border-color: rgba(200,155,148,.35);
    box-shadow: 0 8px 30px rgba(4,47,46,.06);
    transform: translateY(-2px);
}

/* ===== PROCESS TIMELINE ===== */
.process-timeline { position: relative; padding-left: 2.5rem; }
.process-timeline::before {
    content: '';
    position: absolute;
    left: 0.875rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #C89B94 0%, rgba(4,47,46,.08) 100%);
}
.process-step { position: relative; padding-bottom: 2rem; }
.process-step:last-child { padding-bottom: 0; }
.process-step .step-dot {
    position: absolute;
    left: -2.125rem;
    top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: white;
    border: 2px solid #C89B94;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: #C89B94;
    z-index: 1;
}
.process-step .step-dot.active {
    background: #C89B94;
    color: white;
}

/* ===== DATA TABLES ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}
.data-table thead {
    background: #f8fafc;
    border-bottom: 2px solid rgba(4,47,46,.08);
}
.data-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(4,47,46,.5);
}
.data-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(4,47,46,.06);
    color: #042f2e;
}
.data-table tbody tr { transition: background .2s; }
.data-table tbody tr:hover { background: rgba(200,155,148,.04); }

/* ===== ACCORDION ===== */
.gid-accordion details {
    border: 1px solid rgba(4,47,46,.08);
    border-radius: 1rem;
    overflow: hidden;
    transition: all .3s;
    margin-bottom: 0.5rem;
}
.gid-accordion details[open] {
    border-color: rgba(200,155,148,.3);
    box-shadow: 0 4px 20px rgba(4,47,46,.04);
}
.gid-accordion summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.875rem;
    color: #042f2e;
    transition: color .2s;
}
.gid-accordion summary:hover { color: #C89B94; }
.gid-accordion .acc-body { padding: 0 1.25rem 1.25rem; }

/* ===== TABS ===== */
.gid-tabs { display: flex; gap: 0.25rem; border-bottom: 2px solid rgba(4,47,46,.06); }
.gid-tab {
    padding: 0.625rem 1rem;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(4,47,46,.5);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all .2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}
.gid-tab:hover { color: #042f2e; }
.gid-tab.active {
    color: #042f2e;
    border-bottom-color: #C89B94;
}

/* ===== CTA SECTION ===== */
.page-cta {
    background: #042f2e;
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(224,191,184,.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* ===== STATS GRID ===== */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}
.stat-value {
    font-size: 2rem;
    font-weight: 300;
    color: #042f2e;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(4,47,46,.45);
}

/* ===== BADGE/TAG ===== */
.gid-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(4,47,46,.1);
    background: rgba(255,255,255,.5);
    backdrop-filter: blur(12px);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(4,47,46,.65);
}
.gid-badge-accent {
    border-color: rgba(200,155,148,.3);
    color: #C89B94;
}

/* ===== ANALYTICAL MODE PILLS ===== */
.ml-pill-panel {
    margin-top: 0.25rem;
    max-width: 58rem;
}
.ml-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}
.ml-pill {
    position: relative;
    overflow: hidden;
    display: flex;
    min-height: 8.5rem;
    padding: 1.15rem 1.15rem 1rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(255,255,255,.14);
    background:
        linear-gradient(180deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.03) 100%);
    color: rgba(255,255,255,.78);
    transition: transform .25s ease, border-color .25s ease, color .25s ease, background .25s ease, box-shadow .25s ease;
    text-align: left;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.ml-pill::before {
    content: '';
    position: absolute;
    top: 0.95rem;
    bottom: 0.95rem;
    left: 0.8rem;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(224,191,184,.18) 0%, rgba(224,191,184,.85) 50%, rgba(255,255,255,.15) 100%);
    opacity: 0.45;
    transition: opacity .25s ease, box-shadow .25s ease;
}
.ml-pill:hover {
    transform: translateY(-3px);
    border-color: rgba(224,191,184,.35);
    color: #fff;
    background: linear-gradient(180deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.04) 100%);
}
.ml-pill:hover::before,
.ml-pill.is-active::before {
    opacity: 1;
    box-shadow: 0 0 16px rgba(224,191,184,.32);
}
.ml-pill.is-active {
    background:
        radial-gradient(circle at top right, rgba(224,191,184,.16) 0%, transparent 48%),
        linear-gradient(180deg, rgba(255,255,255,.11) 0%, rgba(255,255,255,.05) 100%);
    border-color: rgba(224,191,184,.42);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(224,191,184,.12), 0 8px 24px rgba(4,47,46,.18);
}
.ml-pill__title {
    display: block;
    padding-left: 0.9rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.ml-pill__detail {
    display: block;
    padding-left: 0.9rem;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255,255,255,.44);
    max-width: 13rem;
}
.ml-pill.is-active .ml-pill__detail,
.ml-pill:hover .ml-pill__detail {
    color: rgba(255,255,255,.64);
}
.ml-pill-helper {
    margin-top: 0.95rem;
    padding: 0 0.2rem;
    font-size: 12px;
    line-height: 1.7;
    color: rgba(255,255,255,.54);
    min-height: 2.75rem;
}

/* ===== SECTION LABEL ===== */
.section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #C89B94;
    margin-bottom: 0.75rem;
}

/* ===== SCROLL REVEAL ANIMATION ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== INTERACTIVE REPORT PREVIEW ===== */
.interactive-report-wrapper {
    position: relative;
    width: 100%;
    max-width: 24rem;
    margin: 0 auto;
    perspective: 1500px;
}

.report-flip-container {
    width: 100%;
    position: relative;
    z-index: 10;
}

.report-flipper {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.report-front, .report-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    backface-visibility: hidden;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(200, 155, 148, 0.15);
    overflow: hidden;
    background: white;
}

.report-front {
    position: relative;
    z-index: 2;
    transform: rotateY(0deg);
}

.report-back {
    transform: rotateY(180deg);
}

/* ===== E-BOOK BIFOLD ===== */
.bifold-container {
    width: 100%;
    max-width: 24rem; /* Closed width */
    aspect-ratio: 156 / 214; /* 156mm x 214mm physical cover dimensions */
    margin: 0 auto 5rem; /* 5rem bottom margin to make space for absolute controls */
    position: relative;
    perspective: 2500px;
    z-index: 10;
    transition: transform 0.5s ease-out; /* For jumping to center smoothly if possible */
}

/* Lightbox Modal / Opened State styles are injected via JS transforms */

.bifold-flap-right {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #fff;
    border-radius: 0 1rem 1rem 0;
    box-shadow: inset 1px 0 5px rgba(0,0,0,0.05), 10px 10px 25px rgba(0,0,0,0.15);
    z-index: 10;
    padding: 1rem 1rem 1rem 0; /* protective margin */
    transition: box-shadow 0.4s ease;
}

.bifold-flap-left {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    transform-origin: left center;
    transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
    transform-style: preserve-3d;
    z-index: 30;
    cursor: pointer;
}

.bifold-container.is-open .bifold-flap-left {
    transform: rotateY(-180deg);
    pointer-events: none;
}

.bifold-front-face {
    position: absolute;
    inset: 0;
    transform: rotateY(0deg);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 0 1rem 1rem 0;
    background: white;
}

.bifold-back-face {
    position: absolute;
    inset: 0;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: #fff;
    border-radius: 1rem 0 0 1rem;
    box-shadow: inset -1px 0 5px rgba(0,0,0,0.05), -10px 10px 25px rgba(0,0,0,0.15);
    padding: 1rem 0 1rem 1rem;
    pointer-events: auto; /* Re-enable pointer events since parent gets pointer-events: none when open */
    transition: box-shadow 0.4s ease;
}

/* Option B: Hide center fold shadows dynamically when panning */
.interactive-report-wrapper.is-zoomed .bifold-flap-right,
.interactive-report-wrapper.is-zoomed .bifold-back-face {
    box-shadow: inset 0 0 0 transparent, 0 0 0 transparent !important;
}

.image-slice-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0.25rem;
}

.slice-left {
    position: absolute;
    top: 0; left: 0;
    width: 200%;
    height: 100%;
}

.slice-right {
    position: absolute;
    top: 0; right: 0;
    width: 200%;
    height: 100%;
}

/* Hover effects for inactive covers */
.interactive-report-wrapper:not(.is-open) .cover-design,
.interactive-report-wrapper:not(.is-open) .envelope-front {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease, filter 0.6s ease;
}
.interactive-report-wrapper:not(.is-open):hover .cover-design,
.interactive-report-wrapper:not(.is-open):hover .envelope-front {
    transform: scale(1.02) translateY(-6px);
    filter: brightness(1.06) drop-shadow(0 15px 25px rgba(4, 47, 46, 0.2));
}

.cover-design {
    width: 100%;
    height: 100%;
    background-image: url('https://ngg-web-jew.s3.ap-southeast-1.amazonaws.com/web/GID/img/Premium_Cover_Gem.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 3px 1rem 1rem 3px;
    position: relative;
    box-shadow: 
        inset 4px 0 10px rgba(0,0,0,0.7), /* darker spine shadow */
        inset -1.5px 0 3px rgba(255,255,255,0.5), /* stronger right edge highlight */
        -3px 5px 5px rgba(172, 172, 172, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Base metallic shine (passive) */
.cover-design::after {
    content: '';
    position: absolute;
    top: 0; left: -150%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    animation: metallicShine 6s infinite;
    z-index: 10;
    pointer-events: none;
}
@keyframes metallicShine {
    0% { left: -150%; }
    20% { left: 250%; }
    100% { left: 250%; }
}

/* Dynamic Page-Flip Lighting overlay */
.cover-design::before {
    content: '';
    position: absolute;
    inset: 0;
    /* This gradient simulates a dramatic reflection and deep shadow */
    background: linear-gradient(
        105deg,
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(0, 0, 0, 0.0) 25%, 
        rgba(255, 255, 255, 0.6) 45%, 
        rgba(255, 255, 255, 0.0) 65%, 
        rgba(0, 0, 0, 0.7) 100%
    );
    background-size: 300% 100%;
    /* Start with the reflection on the far right (closed state) */
    background-position: 95% 0%;
    transition: background-position 1s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 1s cubic-bezier(0.645, 0.045, 0.355, 1);
    z-index: 11;
    pointer-events: none;
}

/* When the cover rotates open (-180deg), shift the gradient across the surface */
.bifold-container.is-open .bifold-flap-left .cover-design::before {
    background-position: 0% 0%; /* Moves shadow over the surface */
}

.report-pan-area {
    position: relative;
    width: 100%;
    transform-origin: center center;
    transition: transform 0.2s ease-out;
    touch-action: none; 
}

.spotlight-overlay {
    position: absolute;
    border-radius: 4px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, top 0.3s ease, left 0.3s ease, width 0.3s ease, height 0.3s ease;
    z-index: 5;
}

.hotspot-marker {
    position: absolute;
    /* Dimensions and position mapped directly via inline styles now */
    border: 1.5px solid transparent; /* Invisible by default */
    background: transparent;
    color: #C89B94; /* Pink outline color for SVG */
    cursor: crosshair;
    z-index: 10;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
}

.hotspot-marker:hover, .hotspot-marker:active {
    border: 1.5px solid rgba(200, 155, 148, 0.4);
    background: transparent;
    border-radius: 4px;
}

.hotspot-tooltip {
    display: none !important; /* Managed globally via JS now to prevent overflow */
}

/* Global tooltip container */
:root {
    --tooltip-offset-length: 64px;
}

.hotspot-tooltip-global {
    position: fixed;
    z-index: 350;
    pointer-events: none;
    transform: translateY(-50%);
    transition: top 0.1s ease, left 0.1s ease;
}

/* Base style for leader line (hidden at width: 0 initially) */
.hotspot-tooltip-global::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 1px;
    width: 0;
    background: rgba(255, 255, 255, 0.8);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Draw the line active state */
.hotspot-tooltip-global.is-drawing-active::before {
    width: var(--tooltip-offset-length);
}

/* Line anchors relative to the box */
/* If box is left of marker -> anchor line to its right side to draw back towards left */
.hotspot-tooltip-global[data-align="left"]::before {
    right: calc(var(--tooltip-offset-length) * -1);
    left: auto;
}
/* If box is right of marker -> anchor line to its left side to draw back towards right */
.hotspot-tooltip-global[data-align="right"]::before {
    left: calc(var(--tooltip-offset-length) * -1);
    right: auto;
}

/* Inner content block (holds visual box style) */
.hotspot-tooltip-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    color: #334155;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.02em;
    white-space: normal;
    width: max-content;
    max-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1), inset 0 0 0 1px rgba(255,255,255,0.5);
    
    /* Initially hidden and shrunk for pop effect */
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Slight slide direction based on alignment */
.hotspot-tooltip-global[data-align="right"] .hotspot-tooltip-content {
    transform: scale(0.95) translateX(-8px);
}
.hotspot-tooltip-global[data-align="left"] .hotspot-tooltip-content {
    transform: scale(0.95) translateX(8px);
}

/* Full visibility when active, occurs AFTER the line draws (0.3s delay) */
.hotspot-tooltip-global.is-drawing-active .hotspot-tooltip-content {
    opacity: 1;
    transform: scale(1) translateX(0);
    transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s, 
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
}

.report-controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(4,47,46,0.1);
    color: rgba(4,47,46,0.7);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.2s;
    outline: none;
}

.report-controls button:hover {
    color: #042f2e;
    border-color: rgba(4,47,46,0.2);
    transform: translateY(-2px);
}

/* ===== REPORT PREVIEW CARD ===== */
.report-preview {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 1rem;
    border: 1px solid rgba(200,155,148,.25);
    background: linear-gradient(135deg, white 0%, #fdf8f7 100%);
    overflow: hidden;
    padding: 1.5rem;
    transition: all .5s;
}
.report-preview:hover {
    box-shadow: 0 20px 50px rgba(200,155,148,.15);
    transform: translateY(-4px);
}
.report-preview .corner-mark {
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
}
.report-preview .corner-mark.tl { top: 1rem; left: 1rem; border-top: 1.5px solid rgba(200,155,148,.4); border-left: 1.5px solid rgba(200,155,148,.4); }
.report-preview .corner-mark.tr { top: 1rem; right: 1rem; border-top: 1.5px solid rgba(200,155,148,.4); border-right: 1.5px solid rgba(200,155,148,.4); }
.report-preview .corner-mark.bl { bottom: 1rem; left: 1rem; border-bottom: 1.5px solid rgba(200,155,148,.4); border-left: 1.5px solid rgba(200,155,148,.4); }
.report-preview .corner-mark.br { bottom: 1rem; right: 1rem; border-bottom: 1.5px solid rgba(200,155,148,.4); border-right: 1.5px solid rgba(200,155,148,.4); }

/* ===== ANALYTICAL INTELLIGENCE VISUAL ===== */
@keyframes mlPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.72; }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}
@keyframes mlSweep {
    0% { transform: translateY(-110%); }
    100% { transform: translateY(220%); }
}
@keyframes mlBarFill {
    0% { width: 0; opacity: 0.6; }
    100% { width: var(--ml-bar); opacity: 1; }
}
.ml-visual {
    position: relative;
    overflow: hidden;
    min-height: 29rem;
    border-radius: 1.75rem;
    border: 1px solid rgba(255,255,255,.14);
    background:
        radial-gradient(circle at 50% 32%, rgba(200,155,148,.16) 0%, transparent 24%),
        linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.03) 100%);
    padding: 1.75rem;
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.ml-visual[data-ml-active="multi"] {
    background:
        radial-gradient(circle at 50% 32%, rgba(45,212,191,.18) 0%, transparent 24%),
        linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.03) 100%);
}
.ml-visual[data-ml-active="human"] {
    background:
        radial-gradient(circle at 50% 32%, rgba(255,255,255,.12) 0%, transparent 24%),
        linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.03) 100%);
}
.ml-visual__grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 1.4rem 1.4rem;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 92%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 92%);
    opacity: 0.28;
}
.ml-visual__scan {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 0;
    height: 7rem;
    background: linear-gradient(180deg, rgba(200,155,148,0), rgba(200,155,148,.18), rgba(200,155,148,0));
    filter: blur(10px);
    opacity: 0.75;
    animation: mlSweep 5.6s linear infinite;
    pointer-events: none;
}
.ml-visual__halo {
    position: relative;
    width: 13rem;
    height: 13rem;
    margin: 0 auto 2rem;
}
.ml-visual__ring {
    position: absolute;
    inset: 50%;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255,255,255,.12);
}
.ml-visual__ring--outer {
    width: 100%;
    height: 100%;
    box-shadow:
        0 0 0 1px rgba(200,155,148,.08),
        0 0 40px rgba(200,155,148,.12);
    animation: mlPulse 4.2s ease-in-out infinite;
}
.ml-visual[data-ml-active="multi"] .ml-visual__ring--outer,
.ml-visual[data-ml-active="multi"] .ml-visual__ring--inner {
    border-color: rgba(45,212,191,.28);
    box-shadow: 0 0 0 1px rgba(45,212,191,.08), 0 0 40px rgba(45,212,191,.12);
}
.ml-visual[data-ml-active="human"] .ml-visual__ring--outer,
.ml-visual[data-ml-active="human"] .ml-visual__ring--inner {
    border-color: rgba(255,255,255,.2);
    box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 0 40px rgba(255,255,255,.08);
}
.ml-visual__ring--inner {
    width: 74%;
    height: 74%;
    border-color: rgba(224,191,184,.28);
    animation: mlPulse 3.2s ease-in-out infinite reverse;
}
.ml-visual__core {
    position: absolute;
    inset: 50%;
    width: 8.25rem;
    height: 8.25rem;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.12), rgba(4,47,46,.88));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 0 30px rgba(4,47,46,.28);
}
.ml-visual__eyebrow {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255,255,255,.44);
}
.ml-visual__core strong {
    display: block;
    margin-top: 0.45rem;
    font-size: 2.1rem;
    line-height: 1;
    font-weight: 300;
    color: #fff;
}
.ml-visual__subcopy {
    margin-top: 0.4rem;
    font-size: 10px;
    line-height: 1.45;
    color: rgba(255,255,255,.52);
}
.ml-visual__metrics {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.9rem;
}
.ml-visual__metric {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.045);
}
.ml-visual__metric-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.55rem;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
}
.ml-visual__metric-head span:last-child {
    color: #E0BFB8;
    letter-spacing: 0.16em;
}
.ml-visual[data-ml-active="multi"] .ml-visual__metric-head span:last-child {
    color: #7fe6da;
}
.ml-visual[data-ml-active="human"] .ml-visual__metric-head span:last-child {
    color: #f2ede8;
}
.ml-visual__bar {
    position: relative;
    overflow: hidden;
    height: 0.42rem;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
}
.ml-visual__bar span {
    display: block;
    height: 100%;
    width: var(--ml-bar);
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(224,191,184,.55) 0%, #E0BFB8 75%, rgba(255,255,255,.95) 100%);
    box-shadow: 0 0 18px rgba(224,191,184,.28);
    animation: mlBarFill 1.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.ml-visual[data-ml-active="multi"] .ml-visual__bar span {
    background: linear-gradient(90deg, rgba(45,212,191,.45) 0%, rgba(125,251,239,.92) 70%, rgba(255,255,255,.95) 100%);
    box-shadow: 0 0 18px rgba(45,212,191,.24);
}
.ml-visual[data-ml-active="human"] .ml-visual__bar span {
    background: linear-gradient(90deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,.9) 78%, rgba(224,191,184,.92) 100%);
    box-shadow: 0 0 18px rgba(255,255,255,.16);
}
.ml-visual__note {
    position: relative;
    z-index: 1;
    margin-top: 1rem;
    font-size: 11px;
    line-height: 1.65;
    color: rgba(255,255,255,.44);
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 1024px) {
    .page-hero { min-height: 220px; }
    .page-hero > .relative {
        grid-template-columns: 1fr;
        row-gap: 1rem;
    }
    .page-hero > .relative > * { max-width: 100%; }
    .page-hero > .relative::after {
        grid-column: 1;
        grid-row: auto;
        min-height: 140px;
        max-width: 320px;
        width: 100%;
        justify-self: start;
    }
    .ml-visual { min-height: 25rem; }
    .ml-pill { min-height: 7.8rem; }
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 220px;
        padding-top: 5rem !important;
        padding-bottom: 0.875rem !important;
    }
    .page-hero > .relative {
        padding-block: 1rem;
    }
    .page-hero > .relative::after {
        min-height: 110px;
        border-radius: 999px;
    }
    .page-section { padding: 2.5rem 0; }
    .page-cta { padding: 2rem 1.5rem; }
    .stat-value { font-size: 1.5rem; }
    .ml-visual {
        min-height: 0;
        padding: 1.25rem;
    }
    .ml-visual__halo {
        width: 10.5rem;
        height: 10.5rem;
        margin-bottom: 1.5rem;
    }
    .ml-visual__core {
        width: 6.9rem;
        height: 6.9rem;
    }
    .ml-visual__core strong { font-size: 1.7rem; }
    .ml-visual__metric { padding: 0.85rem 0.9rem; }
    .ml-pills {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .ml-pill {
        min-height: 2.9rem;
        padding: 0.9rem 1rem 0.85rem;
    }
    .ml-pill-panel {
        max-width: 100%;
    }
    .ml-pill-helper {
        min-height: 0;
        font-size: 11px;
        line-height: 1.6;
    }
    .ml-pill__title {
        font-size: 10px;
        letter-spacing: 0.18em;
    }
    .ml-pill__detail {
        font-size: 11px;
        max-width: none;
    }
}

/* ===== PULL-OUT ENVELOPE ===== */
.pullout-container {
    width: 100%;
    margin: 0 auto 5rem;
    position: relative;
    z-index: 10;
    transition: transform 0.5s ease-out;
    perspective: 2500px;
}

.pullout-container.is-gemfolio {
    aspect-ratio: 2 / 3;
    max-width: 20rem;
}

.pullout-container.is-precious-metal {
    aspect-ratio: 1 / 1.4142;
    max-width: 24rem;
}

/* Pullout Lightbox scales and translates are managed dynamically via JS */

.document-insert {
    position: absolute;
    top: -12%; /* Peeking out vertically */
    left: 4%;
    right: 4%;
    bottom: 5%;
    background: white;
    border-radius: 6px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 10;
    overflow: hidden;
}

.pullout-container.is-open .document-insert {
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

.envelope-front {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    z-index: 20;
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pullout-container.is-open .envelope-front {
    transform: translateY(110%) rotateX(-15deg) scale(0.9);
    opacity: 0;
    pointer-events: none;
}

.pullout-container:hover .envelope-front {
    transform: translateY(2%); /* Subtle hover drop to reveal more document */
}

