/*
 * Homepage (investor story). Everything is scoped under .iv-* so it cannot disturb the rest of the site.
 * The hero is always dark; the sections below follow the site theme (html.dark-mode).
 */
:root {
    --iv-bg: #ffffff;
    --iv-alt: #f4f6fb;
    --iv-card: #ffffff;
    --iv-line: rgba(15, 23, 42, 0.1);
    --iv-text: #0f172a;
    --iv-muted: #475569;
    --iv-accent: #5b78c4;
    --iv-accent-2: #8b7bd8;
    --iv-glow: rgba(91, 120, 196, 0.18);
}

html.dark-mode {
    --iv-bg: #0b0d14;
    --iv-alt: #10131c;
    --iv-card: #151926;
    --iv-line: rgba(255, 255, 255, 0.09);
    --iv-text: #f1f5f9;
    --iv-muted: #a5b0c3;
    --iv-glow: rgba(139, 123, 216, 0.22);
}

/* ---------- Hero ---------- */
.iv-hero {
    position: relative;
    overflow: hidden;
    background: #090b12;
    color: #f8fafc;
    padding: clamp(6.5rem, 12vh, 9rem) 0 clamp(5rem, 9vh, 7rem);
    isolation: isolate;
    /* Fill the first screen, whatever the window height, and centre the content in it. */
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
}
.iv-hero > .iv-hero-inner { width: 100%; }

.iv-hero-bg { position: absolute; inset: 0; z-index: -1; }
.iv-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.iv-orb-a { width: 540px; height: 540px; background: #5b78c4; top: -180px; left: -120px; }
.iv-orb-b { width: 460px; height: 460px; background: #7c5cd6; bottom: -200px; right: -100px; opacity: 0.4; }
.iv-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}

.iv-hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.iv-eyebrow {
    display: inline-flex; align-items: center; gap: 0.55rem;
    padding: 0.4rem 0.9rem; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06);
    font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: #cbd5e1;
}
.iv-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2); }

.iv-title { font-family: var(--font-heading, inherit); font-size: clamp(2.1rem, 4.3vw, 3.5rem); line-height: 1.1; margin: 1.2rem 0 1.1rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.iv-gradient { background: linear-gradient(100deg, #8fb0ff 0%, #b79cff 55%, #7fe0d0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.iv-lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.65; color: #cbd5e1; max-width: 38em; margin: 0 0 0.9rem; }
.iv-stage { font-size: 0.95rem; color: #94a3b8; max-width: 38em; margin: 0 0 1.8rem; border-left: 2px solid #5b78c4; padding-left: 0.9rem; }

.iv-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.iv-cta-center { justify-content: center; }
.iv-btn {
    display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.5rem; border-radius: 12px;
    font-weight: 600; font-size: 0.98rem; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.iv-btn:focus-visible { outline: 3px solid #b79cff; outline-offset: 3px; }
.iv-btn-primary { background: linear-gradient(135deg, #5b78c4, #7c5cd6); color: #fff; box-shadow: 0 10px 30px -10px rgba(124, 92, 214, 0.7); }
.iv-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(124, 92, 214, 0.85); color: #fff; }
.iv-btn-ghost { color: #e2e8f0; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.04); }
.iv-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; transform: translateY(-2px); }

.iv-facts { display: flex; flex-wrap: wrap; gap: 2.2rem; margin: 2.4rem 0 0; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.iv-facts dt { font-size: 2rem; font-weight: 700; color: #fff; line-height: 1; font-family: var(--font-heading, inherit); }
.iv-facts dd { margin: 0.35rem 0 0; font-size: 0.85rem; color: #94a3b8; }

.iv-frame-bar { display: flex; gap: 6px; padding: 0.7rem 0.9rem; background: rgba(255, 255, 255, 0.05); }
.iv-frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.iv-frame img { display: block; width: 100%; height: auto; }

/* ---------- Traction strip ---------- */
.iv-strip { background: var(--iv-alt); border-bottom: 1px solid var(--iv-line); }
.iv-strip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; padding-top: 2.2rem; padding-bottom: 2.2rem; text-align: center; }
.iv-strip strong { display: block; font-size: 2.2rem; color: var(--iv-text); font-family: var(--font-heading, inherit); }
.iv-strip span { color: var(--iv-muted); }
.iv-strip small { display: block; color: var(--iv-muted); opacity: 0.8; }

/* ---------- Sections ---------- */
.iv-section { background: var(--iv-bg); color: var(--iv-text); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.iv-alt { background: var(--iv-alt); }
.iv-head { max-width: 46rem; margin: 0 auto clamp(2rem, 5vw, 3.4rem); text-align: center; }
.iv-kicker { display: inline-block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--iv-accent); margin-bottom: 0.8rem; }
.iv-h2 { font-family: var(--font-heading, inherit); font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.9rem; color: var(--iv-text); }
.iv-sub { color: var(--iv-muted); font-size: 1.05rem; line-height: 1.65; margin: 0; }

.iv-cols, .iv-assure, .iv-domains, .iv-bento { display: grid; gap: 1.2rem; }
.iv-cols { grid-template-columns: repeat(3, 1fr); }
.iv-assure { grid-template-columns: repeat(4, 1fr); }
.iv-domains { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.iv-bento { grid-template-columns: repeat(4, 1fr); }

.iv-card, .iv-tile, .iv-domain {
    background: var(--iv-card); border: 1px solid var(--iv-line); border-radius: 16px; padding: 1.5rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.iv-card:hover, .iv-tile:hover, .iv-domain:hover { transform: translateY(-4px); border-color: var(--iv-accent); box-shadow: 0 18px 40px -22px var(--iv-glow), 0 0 0 1px var(--iv-glow); }
.iv-card h3, .iv-tile h3, .iv-domain h3 { font-size: 1.08rem; margin: 0.9rem 0 0.45rem; color: var(--iv-text); }
.iv-tile h3 { margin-top: 0; }
.iv-card p, .iv-tile p, .iv-domain p { margin: 0; color: var(--iv-muted); line-height: 1.6; font-size: 0.95rem; }
.iv-ico { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(135deg, rgba(91, 120, 196, 0.18), rgba(139, 123, 216, 0.18)); color: var(--iv-accent); font-size: 1.15rem; }
.iv-domain { display: flex; flex-direction: column; }
.iv-domain p { flex: 1; }

.iv-chip { align-self: flex-start; margin-top: 1rem; padding: 0.22rem 0.7rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; border: 1px solid transparent; }
.iv-chip-live { color: #047857; background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.35); }
.iv-chip-building { color: #b45309; background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.35); }
.iv-chip-planned { color: var(--iv-muted); background: rgba(148, 163, 184, 0.14); border-color: rgba(148, 163, 184, 0.35); }
html.dark-mode .iv-chip-live { color: #6ee7b7; }
html.dark-mode .iv-chip-building { color: #fcd34d; }

/* ---------- Timeline ---------- */
.iv-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; position: relative; }
.iv-step { position: relative; background: var(--iv-card); border: 1px solid var(--iv-line); border-radius: 16px; padding: 1.5rem; }
.iv-step h3 { margin: 0.5rem 0 0.4rem; font-size: 1.08rem; color: var(--iv-text); }
.iv-step p { margin: 0; color: var(--iv-muted); font-size: 0.95rem; line-height: 1.6; }
.iv-step-when { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--iv-muted); }
.iv-step-done .iv-step-when { color: #10b981; }
.iv-step-now { border-color: var(--iv-accent); box-shadow: 0 0 0 1px var(--iv-glow), 0 18px 40px -24px var(--iv-glow); }
.iv-step-now .iv-step-when { color: var(--iv-accent); }

/* ---------- Final call ---------- */
.iv-final { position: relative; overflow: hidden; background: #090b12; color: #f8fafc; padding: clamp(3.5rem, 8vw, 6rem) 0; text-align: center; isolation: isolate; }
.iv-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 50% 0%, rgba(124, 92, 214, 0.45), transparent 70%), radial-gradient(40% 70% at 90% 100%, rgba(91, 120, 196, 0.35), transparent 70%); }
.iv-final h2 { font-family: var(--font-heading, inherit); font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 0.9rem; color: #fff; }
.iv-final p { max-width: 40rem; margin: 0 auto 1.8rem; color: #cbd5e1; font-size: 1.08rem; line-height: 1.65; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .iv-bento { grid-template-columns: repeat(3, 1fr); }
    .iv-assure, .iv-timeline { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .iv-hero-inner { grid-template-columns: minmax(0, 1fr); }
    .iv-frame { transform: none; }
    .iv-cols { grid-template-columns: 1fr; }
    .iv-bento { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .iv-bento, .iv-assure, .iv-timeline { grid-template-columns: 1fr; }
    .iv-facts { gap: 1.4rem; }
    .iv-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .iv-card, .iv-tile, .iv-domain, .iv-btn { transition: none; }
    .iv-card:hover, .iv-tile:hover, .iv-domain:hover, .iv-btn:hover { transform: none; }
}

/* ---------- Product console (hero) ---------- */
.iv-console { position: relative; --px: 0px; --py: 0px; overflow-anchor: none; }
.iv-console .iv-dash { transform: none; }
.iv-frame { border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); background: linear-gradient(180deg, #11152a, #0b0e1c); box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.85), 0 0 120px -30px rgba(124, 92, 214, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.iv-frame-bar { display: flex; align-items: center; gap: 6px; padding: 0.7rem 0.9rem; background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.iv-frame-bar > span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.iv-frame-bar > span:nth-child(1) { background: #ff6b6b; opacity: 0.8; } .iv-frame-bar > span:nth-child(2) { background: #fcd34d; opacity: 0.8; } .iv-frame-bar > span:nth-child(3) { background: #34d399; opacity: 0.8; }
.iv-frame-url { margin-left: 0.6rem; font-style: normal; font-size: 0.72rem; color: #94a3b8; background: rgba(255, 255, 255, 0.06); padding: 0.15rem 0.8rem; border-radius: 999px; }
.iv-sample { margin-left: auto; font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: #fcd34d; border: 1px solid rgba(252, 211, 77, 0.4); border-radius: 999px; padding: 0.1rem 0.6rem; }
.iv-dash-body { display: block; color: #e2e8f0; }
.iv-dash-nav { display: flex; flex-direction: row; align-items: center; gap: 0.3rem; padding: 0.55rem 0.8rem; background: rgba(255, 255, 255, 0.025); border-bottom: 1px solid rgba(255, 255, 255, 0.06); overflow-x: auto; }
.iv-dash-brand { display: flex; align-items: center; gap: 0.5rem; margin-right: auto; font-weight: 700; font-size: 0.78rem; color: #fff; white-space: nowrap; }
.iv-dash-brand i { color: #b79cff; }
.iv-dash-nav button { display: flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.75rem; border-radius: 999px; white-space: nowrap; border: 0; background: transparent; color: #94a3b8; font: inherit; font-size: 0.8rem; text-align: left; cursor: pointer; transition: background 0.2s, color 0.2s; }
.iv-dash-nav button:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.iv-dash-nav button[aria-selected="true"] { background: linear-gradient(135deg, rgba(91, 120, 196, 0.5), rgba(124, 92, 214, 0.5)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.iv-dash-nav button:focus-visible, .iv-periods button:focus-visible, .iv-chart:focus-visible { outline: 2px solid #b79cff; outline-offset: 2px; }
.iv-dash-main { padding: 0.9rem 1rem 1rem; min-width: 0; }
.iv-dash-main.is-in { animation: iv-in 0.45s ease both; }
@keyframes iv-in { from { opacity: 0.4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.iv-topbar { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.8rem; }
.iv-topbar h3 { margin: 0; font-size: 0.98rem; color: #fff; font-family: var(--font-heading, inherit); }
.iv-live { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.68rem; color: #94a3b8; }
.iv-live i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: iv-pulse 2s infinite; }
@keyframes iv-pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.iv-periods { margin-left: auto; display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.iv-periods button { border: 0; background: transparent; color: #94a3b8; font: inherit; font-size: 0.7rem; padding: 0.25rem 0.7rem; border-radius: 999px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.iv-periods button[aria-pressed="true"] { background: #fff; color: #11152a; font-weight: 700; }
.iv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.iv-kpi { background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px; padding: 0.65rem 0.8rem; display: flex; flex-direction: column; gap: 0.12rem; }
.iv-kpi-l { font-size: 0.68rem; color: #94a3b8; }
.iv-kpi-v { font-size: 1.2rem; font-family: var(--font-heading, inherit); color: #fff; line-height: 1.2; font-variant-numeric: tabular-nums; }
.iv-kpi-d { font-size: 0.7rem; font-weight: 700; }
.iv-kpi-d.is-up { color: #34d399; }
.iv-split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 0.7rem; margin-top: 0.7rem; }
.iv-chart { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px; padding: 0.7rem 0.8rem 0.5rem; min-width: 0; cursor: crosshair; }
.iv-chart-head { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.7rem; color: #94a3b8; min-height: 1.1rem; }
.iv-chart-read { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.iv-svg { width: 100%; height: auto; aspect-ratio: 560 / 260; display: block; margin-top: 0.3rem; overflow: visible; }
.iv-gridline { stroke: rgba(255, 255, 255, 0.07); stroke-dasharray: 3 5; }
.iv-tick { fill: #64748b; font-size: 10px; font-family: inherit; }
.iv-line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.iv-dash.is-live .iv-line { animation: iv-draw 1s cubic-bezier(0.3, 0.7, 0.2, 1) both; }
.iv-dash.is-live .iv-area { animation: iv-fade 1s ease both; }
@keyframes iv-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes iv-fade { from { opacity: 0; } to { opacity: 1; } }
.iv-cross { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; transition: opacity 0.15s; }
.iv-dot { fill: #fff; stroke: #8fb0ff; stroke-width: 3; opacity: 0; transition: opacity 0.15s; }
.iv-side { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.iv-mix, .iv-feedbox { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px; padding: 0.65rem 0.75rem; }
.iv-mix-title { display: block; font-size: 0.68rem; color: #94a3b8; margin-bottom: 0.45rem; }
.iv-mix-title em { font-style: normal; opacity: 0.7; margin-left: 0.3rem; }
.iv-mix-body { display: flex; align-items: center; gap: 0.7rem; }
.iv-donut { width: 74px; height: 74px; flex: none; }
.iv-seg { transition: stroke-width 0.2s; }
.iv-dash.is-live .iv-seg { animation: iv-fade 0.9s ease both; }
.iv-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.22rem; font-size: 0.7rem; color: #cbd5e1; min-width: 0; flex: 1; }
.iv-legend li { display: flex; align-items: center; gap: 0.4rem; }
.iv-legend i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.iv-legend b { margin-left: auto; color: #fff; font-variant-numeric: tabular-nums; }
.iv-feedbox { flex: 1; }
.iv-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.38rem; font-size: 0.7rem; color: #cbd5e1; overflow: hidden; }
.iv-feed li { display: flex; align-items: center; gap: 0.45rem; min-width: 0; }
.iv-feed li > i { width: 6px; height: 6px; border-radius: 50%; background: #8fb0ff; flex: none; }
.iv-feed li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-feed li > small { margin-left: auto; color: #64748b; white-space: nowrap; }
.iv-feed li.is-new { animation: iv-feed-in 0.5s ease both; }
@keyframes iv-feed-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.iv-note { margin: 0.9rem 0 0; text-align: center; font-size: 0.72rem; color: #64748b; }

/* Floating notification cards around the console */
.iv-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.85rem; border-radius: 14px; background: rgba(20, 24, 44, 0.78); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.8); color: #e2e8f0; font-size: 0.75rem; opacity: 0; animation: iv-float 12s ease-in-out infinite; pointer-events: none; }
.iv-float i { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(91, 120, 196, 0.55), rgba(124, 92, 214, 0.55)); color: #fff; font-size: 0.85rem; }
.iv-float b { display: block; color: #fff; font-size: 0.76rem; }
.iv-float small { color: #94a3b8; font-size: 0.68rem; }
.iv-float-1 { left: -34px; top: 18%; animation-delay: 0s; }
.iv-float-2 { right: -22px; top: 6%; animation-delay: 4s; }
.iv-float-3 { left: 8%; bottom: 1.2rem; animation-delay: 8s; }
@keyframes iv-float { 0%, 6% { opacity: 0; translate: 0 14px; } 12%, 30% { opacity: 1; translate: 0 0; } 36%, 100% { opacity: 0; translate: 0 -10px; } }

/* Hero background: slow aurora, perspective grid, fade to the page */
.iv-hero-bg::before { content: ""; position: absolute; inset: -20%; background: conic-gradient(from 200deg at 70% 40%, rgba(91, 120, 196, 0.0), rgba(124, 92, 214, 0.28), rgba(127, 224, 208, 0.16), rgba(91, 120, 196, 0.0) 70%); filter: blur(70px); animation: iv-spin 40s linear infinite; }
@keyframes iv-spin { to { transform: rotate(360deg); } }
.iv-grid { mask-image: radial-gradient(ellipse at 60% 40%, #000 25%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 25%, transparent 75%); }

@media (max-width: 1100px) { .iv-float-1 { left: -10px; } .iv-float-2 { right: -6px; } }
@media (max-width: 900px) {
    .iv-console .iv-dash { transform: none; }
    .iv-float { display: none; }
}
@media (max-width: 640px) {
    .iv-dash-brand { display: none; }
    .iv-frame-url { display: none; }
    .iv-kpi-v { font-size: 1rem; }
    .iv-split { grid-template-columns: 1fr; }
    .iv-topbar { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    .iv-console .iv-dash { transform: none; transition: none; }
    .iv-hero-bg::before, .iv-float, .iv-live i, .iv-dash-main.is-in, .iv-dash.is-live .iv-line, .iv-dash.is-live .iv-area, .iv-dash.is-live .iv-seg, .iv-feed li.is-new { animation: none; }
    .iv-float { display: none; }
}

/* Hero: background glow */
.iv-orb-a { animation: iv-drift 18s ease-in-out infinite alternate; }
.iv-orb-b { animation: iv-drift 22s ease-in-out infinite alternate-reverse; }
@keyframes iv-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(60px, 40px, 0) scale(1.12); } }
.iv-hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 55% at 50% 100%, rgba(9, 11, 18, 0.95), transparent 70%), radial-gradient(50% 40% at 85% 10%, rgba(143, 176, 255, 0.12), transparent 70%); }
@media (max-width: 900px) { .iv-hero { align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { .iv-orb-a, .iv-orb-b { animation: none; } }

/* Phones: every hero column may shrink below its content, so nothing pushes the page wider than the screen. */
.iv-hero-copy, .iv-hero-visual, .iv-console, .iv-dash, .iv-dash-body, .iv-dash-main, .iv-kpi, .iv-chart, .iv-mix, .iv-feedbox { min-width: 0; max-width: 100%; }
.iv-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.iv-split { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
@media (max-width: 900px) {
    .iv-hero-inner { grid-template-columns: minmax(0, 1fr); }
    .iv-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .iv-hero { overflow-x: clip; }
    .iv-kpis { gap: 0.4rem; }
    .iv-kpi { padding: 0.5rem 0.55rem; }
    .iv-kpi-l { font-size: 0.62rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .iv-kpi-v { font-size: 0.95rem; }
    .iv-topbar { flex-wrap: wrap; row-gap: 0.5rem; }
    .iv-periods { margin-left: 0; }
    .iv-facts { gap: 1.2rem; flex-wrap: wrap; }
    .iv-dash-main { padding: 0.75rem; }
    .iv-title, .iv-lead { overflow-wrap: anywhere; }
}

.iv-dash-nav { scrollbar-width: none; }
.iv-dash-nav::-webkit-scrollbar { display: none; }

/* Stability: the console is the same size on every tab and nothing in it moves unless the visitor asks. */
.iv-topbar { min-height: 2rem; }
.iv-topbar h3 { white-space: nowrap; }
.iv-kpi { min-height: 4.7rem; }
.iv-kpi-v { white-space: nowrap; }
.iv-chart-head { height: 1.2rem; overflow: hidden; white-space: nowrap; }
.iv-mix { height: 8.6rem; overflow: hidden; }
.iv-mix-body { min-height: 5.6rem; }
.iv-feedbox { height: 9.4rem; flex: none; overflow: hidden; }
.iv-feed { height: 6.6rem; }
.iv-feed li { height: 1.25rem; }
@media (max-width: 900px) { .iv-feedbox { height: 9.4rem; } }@media (max-width: 640px) {
    /* Same two rows on every tab: the title, then the period buttons. A longer title used to push them onto a new line. */
    .iv-topbar { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 0.5rem; min-height: 0; }
    .iv-live { display: none; }
    .iv-periods { justify-self: start; }
}
