/* Add / Edit an outside investment — "gold observatory" form (owner-approved design, 2026-10-18; kit
   Investor_Hive_Add_Outside_Investment_Developer_Kit). Extends the Portfolio Monitoring look. Every rule starts from the
   page root so global input, heading and button rules can't reach in. The app header is the layout's own; the kit's
   header and nav are not rebuilt here. */

.aoi-page {
    --aoi-text: #f7f8fc;
    --aoi-muted: #bccdeb;
    --aoi-label: #e2eafb;
    --aoi-input-border: #4a6890;   /* kit #294568 lifted to 3:1 against the panel (WCAG 1.4.11) */
    --aoi-gold: #ffdb62;
    --aoi-focus: #c9e7ff;
    --aoi-error: #ffb7ba;
    --aoi-gold-face:
        linear-gradient(115deg, #ffffc755, transparent 38%, #c2861510 74%, #ffe88244),
        linear-gradient(180deg, #fff7b1 0%, #ffe373 18%, #f5ca45 62%, #e9ad21 89%, #ffdf81 100%);
    --aoi-gold-shadow: inset 0 2px 3px #ffffcd, inset 0 -2px 3px #bb7d14, 0 0 2px #fff6c3, 0 0 14px #f5b33980, 0 3px 7px #0009;
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    padding: 0 0 3rem;
    container-type: inline-size;
    container-name: aoi;
    font-family: 'DM Sans', Arial, sans-serif;
    line-height: 1.4;
    color: var(--aoi-text);
}

.aoi-page *, .aoi-page *::before, .aoi-page *::after { box-sizing: border-box; }
.aoi-page button, .aoi-page input, .aoi-page select, .aoi-page textarea { font-family: inherit; }
.aoi-page button:focus-visible, .aoi-page input:focus-visible, .aoi-page select:focus-visible,
.aoi-page textarea:focus-visible, .aoi-page a:focus-visible {
    outline: 3px solid var(--aoi-focus);
    outline-offset: 3px;
}
/* On its own: a browser without :has() drops only this rule, not the one above. */
.aoi-page label:has(:focus-visible) { outline: 3px solid var(--aoi-focus); outline-offset: 3px; }

/* Keeps a control focusable and in the tab order while hiding it (display:none would remove both). */
.aoi-page .aoi-visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Hero: the 880 × 288 observatory canvas. Its top 45 rows were the kit's header strip, so the art is lifted by
   that much and the hero is sized to what remains; the left 59% is transparent and the copy sits there. ── */
.aoi-page .aoi-hero {
    position: relative;
    isolation: isolate;
    min-height: 27.6cqw;
    padding: 6.2cqw 0 22px;
    margin-bottom: 4px;
    overflow: clip;
}

.aoi-page .aoi-hero-art {
    position: absolute;
    z-index: -1;
    top: -5.1cqw;
    left: 0;
    width: 100%;
    height: auto;
    max-width: none;
    pointer-events: none;
    user-select: none;
    /* The gold horizon along the bottom, added to the sculpture side (soft left seam and top edge). */
    -webkit-mask-image: linear-gradient(0deg, #000 0, #000 9%, transparent 13%), linear-gradient(90deg, transparent 56%, #000 63%, #000 97%, transparent 100%), linear-gradient(180deg, transparent 15%, #000 30%);
    -webkit-mask-composite: source-over, source-in;
    mask-image: linear-gradient(0deg, #000 0, #000 9%, transparent 13%), linear-gradient(90deg, transparent 56%, #000 63%, #000 97%, transparent 100%), linear-gradient(180deg, transparent 15%, #000 30%);
    mask-composite: add, intersect;
}

.aoi-page .aoi-hero-content { position: relative; max-width: 58%; }

.aoi-page .aoi-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 4px;
    font-size: clamp(12px, 1.42cqw, 17px);
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
    line-height: 1.4;
    color: #ffe069;
}

.aoi-page .aoi-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 20px;
    background: linear-gradient(#846020, #584117);
    color: #fff4cc;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    line-height: 1.4;
}

.aoi-page .aoi-title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(30px, 3.7cqw, 50px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
    text-transform: none;
    white-space: nowrap;   /* one line, as in the design; phones wrap (below) */
    color: #f9f9fc;
    text-shadow: 0 2px 1px #fff1, 0 3px 9px #0008;
}

.aoi-page .aoi-title span {
    background: linear-gradient(#fff6c8 5%, #ffe578 34%, #ffdf66 51%, #dba12b 79%, #ffe891 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: #ffe277;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 1px #9f6d1955);
}

.aoi-page .aoi-sub {
    max-width: 31em;
    margin: 8px 0 0;
    font-size: clamp(14px, 1.6cqw, 18px);
    line-height: 1.45;
    color: #ccdbf3;
    text-shadow: 0 1px 2px #000, 0 0 12px #000c;
}

/* ── Notices ── */
.aoi-page .aoi-advisory {
    max-width: 1080px;
    margin: 0 auto 14px;
    padding: 12px 16px;
    border: 1px solid #a8812f;
    border-radius: 10px;
    background: #1d1708d9;
    color: #ffe5a0;
    font-size: 14px;
    line-height: 1.5;
}
.aoi-page .aoi-advisory a { color: #ffe48c; font-weight: 700; }

.aoi-page .aoi-error {
    margin: 16px 0 0;
    padding: 13px 16px;
    border: 1px solid #c75e6c;
    border-radius: 9px;
    background: #361425;
    color: #fff0f0;
    font-size: 14px;
    line-height: 1.5;
}

.aoi-page .aoi-status { margin: 0; color: var(--aoi-muted); font-size: 13px; line-height: 1.5; }
.aoi-page .aoi-status:not(:empty) { margin-top: 14px; }

/* ── Form frame ── */
.aoi-page .aoi-form {
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px 24px 14px;
    border: 1px solid #bd8c28;
    border-radius: 10px;
    background: linear-gradient(112deg, #041429d9, #031126e8 65%, #020f1de0);
    box-shadow: inset 0 1px #ffdc6012, 0 12px 40px #0006;
}

/* ── Talk to Nova + import ── */
.aoi-page .aoi-nova {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 22px;
    padding: 14px 22px;
    border: 1px solid #243f63;
    border-radius: 9px;
    background: linear-gradient(105deg, #031024, #051a37 55%, #020e20);
    box-shadow: inset 0 1px #30436520;
}

.aoi-page .aoi-nova-trigger,
.aoi-page .aoi-nova-avatar-static {
    position: relative;
    display: block;
    width: 84px;
    height: 84px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
}
.aoi-page .aoi-nova-trigger { cursor: pointer; transition: filter .15s; }
.aoi-page .aoi-nova-trigger:hover:not(:disabled) { filter: brightness(1.1); }
.aoi-page .aoi-nova-trigger:disabled { cursor: default; }
.aoi-page .aoi-nova-trigger img,
.aoi-page .aoi-nova-avatar-static img {
    position: absolute;
    left: -10%;
    top: -10%;
    width: 120%;
    height: 120%;
    max-width: none;
    object-fit: contain;
    pointer-events: none;
}

/* Recording: a red pulsing ring and a stop badge over the avatar. Processing: a gold spinner ring. */
.aoi-page .aoi-nova-trigger.rec { box-shadow: 0 0 0 3px #ef4444cc; animation: aoi-rec-pulse 1.4s ease-in-out infinite; }
@keyframes aoi-rec-pulse { 0%, 100% { box-shadow: 0 0 0 3px #ef4444cc, 0 0 0 0 #ef444473; } 50% { box-shadow: 0 0 0 3px #ef4444cc, 0 0 0 13px #ef444400; } }
.aoi-page .aoi-nova-state {
    position: absolute;
    right: -2px;
    bottom: -2px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #031024;
    background: #dc2626;
    color: #fff;
}
.aoi-page .aoi-nova-spin {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 3px solid #ffdb6233;
    border-top-color: #ffdb62;
    animation: aoi-spin .8s linear infinite;
}
@keyframes aoi-spin { to { transform: rotate(360deg); } }

/* These deliberately overhang their box; the global phone rule (* { max-width: 100% !important }) would clamp them. */
.aoi-page .aoi-nova-trigger img, .aoi-page .aoi-nova-avatar-static img,
.aoi-page .aoi-nova-spin, .aoi-page .aoi-band { max-width: none !important; }

.aoi-page .aoi-nova-copy { min-width: 0; max-width: 34em; }
.aoi-page .aoi-nova-live { margin: 0 0 3px; font-size: 13px; font-weight: 700; color: #ffe5a0; }
.aoi-page .aoi-nova-title {
    margin: 0 0 3px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
    color: var(--aoi-text);
}
.aoi-page .aoi-nova-hint { margin: 0; font-size: 14px; line-height: 1.4; color: var(--aoi-muted); }
.aoi-page .aoi-deck-msg { grid-column: 1 / -1; margin: 0; font-size: 13.5px; line-height: 1.45; color: #ffe5a0; }

/* ── Buttons ── */
.aoi-page .aoi-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: filter .15s, background .15s;
}
.aoi-page .aoi-btn:disabled, .aoi-page .aoi-btn.busy { opacity: .62; filter: saturate(.75); cursor: default; }
.aoi-page .aoi-btn:active:not(:disabled) { transform: translateY(1px); }

/* Primary: the kit's raised gold (house gold, in the observatory material). */
.aoi-page .aoi-btn-gold {
    border-color: #fff0a0;
    background-color: #f9cc4d;
    background-image: url('../images/portfolio/add/gold-button-surface-strip.png'), var(--aoi-gold-face);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    box-shadow: var(--aoi-gold-shadow);
    color: #0b0903;
}
.aoi-page .aoi-btn-gold:hover:not(:disabled) { filter: brightness(1.05); }

/* Row-level controls inside the form (Remove, + Add founder, Add to founders). */
.aoi-page .aoi-btn-blue {
    border-color: #3b6bc5;
    background: linear-gradient(120deg, #102c67, #091637 72%, #102552);
    box-shadow: inset 0 1px #6d8bd144, 0 2px 4px #0005;
    color: #f7f8ff;
}
.aoi-page .aoi-btn-blue:hover:not(:disabled) { background: linear-gradient(120deg, #1b3b77, #12254b); }

/* Secondary uses the house brown (.nea-brown-btn), sized to sit beside the gold one. */
.aoi-page .nea-brown-btn { min-height: 40px; padding: 9px 18px; border-radius: 8px; font-size: 14px; }

.aoi-page .aoi-import { min-height: 50px; padding: 10px 20px; font-size: 15px; }
.aoi-page .aoi-import img { width: 17px; height: 19px; }

/* ── Fields ── */
.aoi-page .aoi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.aoi-page .aoi-basic { margin-top: 14px; padding: 0 3px; }
.aoi-page .aoi-field { min-width: 0; }
.aoi-page .aoi-field.full { grid-column: 1 / -1; }

.aoi-page .aoi-label {
    display: block;
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--aoi-label);
}
.aoi-page .aoi-req { margin-left: 2px; color: #ffd561; }
.aoi-page .aoi-optional { font-weight: 400; color: var(--aoi-muted); }

.aoi-page .aoi-input,
.aoi-page .aoi-select,
.aoi-page .aoi-area {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    margin: 0;
    padding: 9px 13px;
    border: 1px solid var(--aoi-input-border);
    border-radius: 7px;
    background: linear-gradient(115deg, #031021, #031326aa);
    box-shadow: inset 0 1px 3px #01040a99;
    color: #f0f4fe;
    font-size: 15px;
    line-height: 1.35;
    color-scheme: dark;
}
.aoi-page .aoi-input::placeholder, .aoi-page .aoi-area::placeholder { color: #8794ab; opacity: 1; }
.aoi-page .aoi-input:focus, .aoi-page .aoi-select:focus, .aoi-page .aoi-area:focus { border-color: #a8caee; }
.aoi-page .aoi-input[aria-invalid="true"] { border-color: #e47f88; }
.aoi-page .aoi-select { padding-right: 10px; }
.aoi-page .aoi-select option { background: #091a30; color: #f7f8ff; }
.aoi-page .aoi-input[type="date"]::-webkit-calendar-picker-indicator { opacity: .85; cursor: pointer; }
.aoi-page .aoi-area { min-height: 64px; resize: vertical; font-size: 14px; line-height: 1.45; }

.aoi-page .aoi-hint { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--aoi-muted); }
.aoi-page .aoi-hint.fine { font-size: 12.5px; }
.aoi-page .aoi-hint.warn { color: #f0c987; }
.aoi-page .aoi-field-error { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--aoi-error); }

/* Current valuation keeps a half-width input on a full row, as in the design. */
.aoi-page .aoi-current .aoi-input { width: calc((100% - 22px) / 2); }

/* ── Gold-banded sections ── */
.aoi-page .aoi-section {
    margin-top: 18px;
    border: 1px solid #765c28;
    border-radius: 10px;
    background: linear-gradient(120deg, #051831c4, #031328c9 74%);
}

.aoi-page .aoi-band {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 11px;
    min-height: 44px;
    margin: -1px -1px 0;
    padding: 5px 16px;
    border: 1px solid #f2d174;
    border-radius: 10px;
    background-color: #efbd3e;
    background-image: url('../images/portfolio/add/gold-band-surface-strip.png'), var(--aoi-gold-face);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    box-shadow: inset 0 2px 2px #fff7b8, inset 0 -2px 2px #b17a17, 0 0 12px #f2b13466, 0 3px 6px #0006;
    color: #0b0a04;
}
.aoi-page .aoi-band-icon { flex: none; width: 30px; height: 30px; object-fit: contain; }
.aoi-page .aoi-band h2 {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
    color: #090903;
}
.aoi-page .aoi-lock {
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid #7a5a12;
    background: #2a1f07e6;
    color: #ffe5a0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.aoi-page .aoi-section-body { padding: 13px 16px 15px; }
.aoi-page .aoi-section-body > .aoi-hint:first-child { margin-top: 0; }
.aoi-page .aoi-section-body > .aoi-hint + .aoi-hint { margin-top: 8px; }
.aoi-page .aoi-section-body > .aoi-grid,
.aoi-page .aoi-section-body > .aoi-field { margin-top: 12px; }
.aoi-page .aoi-stack > .aoi-field + .aoi-field { margin-top: 12px; }

.aoi-page .aoi-website { margin-top: 16px; padding: 0 3px; }

/* Founders and the closing block read as one panel: the section's bottom edge joins the tail's top edge. */
.aoi-page .aoi-section--founders { border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.aoi-page .aoi-section--founders .aoi-section-body { padding-bottom: 4px; }
.aoi-page .aoi-tail {
    padding: 10px 16px 16px;
    border: 1px solid #765c28;
    border-top: 0;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(120deg, #051831c4, #031328c9 74%);
}

/* ── Founder rows ── */
.aoi-page .aoi-founder { min-width: 0; margin: 14px 0 0; padding: 0; border: 0; }
.aoi-page .aoi-founder + .aoi-founder { margin-top: 16px; padding-top: 12px; border-top: 1px solid #263c59; }
.aoi-page .aoi-founder legend {
    float: none;
    width: auto;
    margin: 0 0 6px;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #f0f4fe;
}
.aoi-page .aoi-founder-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 12px 16px;
}
.aoi-page .aoi-founder-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 14px;
}
.aoi-page .aoi-contact { margin-top: 16px; }

/* ── Baseline-change confirmation (edit mode) ── */
.aoi-page .aoi-confirm {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #a8812f;
    border-radius: 9px;
    background: #1d1708d9;
    color: #ffe5a0;
    font-size: 14px;
    line-height: 1.5;
}
.aoi-page .aoi-confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* ── Bottom actions ── */
.aoi-page .aoi-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.aoi-page .aoi-actions .aoi-btn,
.aoi-page .aoi-actions .nea-brown-btn { min-height: 44px; padding: 10px 20px; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.aoi-page .aoi-submit { min-width: 180px; }

/* ── Tablet and narrow containers (kit: 541–800 px). Fixed readable sizes replace the canvas proportions. ── */
@container aoi (max-width: 800px) {
    /* The hero art swaps on the viewport (<picture>), but the copy follows the container: with Nova docked the page
       can be narrow on a wide screen. */
    .aoi-page .aoi-title { white-space: normal; }
    .aoi-page .aoi-hero-content { max-width: 64%; }
    .aoi-page .aoi-form { padding: 16px 16px 14px; }
    .aoi-page .aoi-nova { grid-template-columns: 64px minmax(0, 1fr); gap: 12px 16px; padding: 16px; }
    .aoi-page .aoi-nova-trigger, .aoi-page .aoi-nova-avatar-static { width: 64px; height: 64px; }
    .aoi-page .aoi-nova-state { width: 24px; height: 24px; }
    .aoi-page .aoi-import { grid-column: 1 / -1; width: 100%; }
    .aoi-page .aoi-label { font-size: 14px; }
    .aoi-page .aoi-input, .aoi-page .aoi-select, .aoi-page .aoi-area { min-height: 46px; font-size: 16px; }
    .aoi-page .aoi-area { min-height: 88px; }
    .aoi-page .aoi-band { min-height: 48px; }
    .aoi-page .aoi-founder-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aoi-page .aoi-founder-row .aoi-btn { justify-self: start; min-height: 46px; }
    .aoi-page .aoi-btn { min-height: 46px; }
}

/* ── Phones (kit: 540 px and below): everything stacks; Add to Portfolio sits above Cancel. ── */
@container aoi (max-width: 540px) {
    .aoi-page .aoi-hero-content { max-width: none; }
    .aoi-page .aoi-form { padding: 14px 11px 12px; }
    .aoi-page .aoi-nova { grid-template-columns: 58px minmax(0, 1fr); gap: 12px 13px; padding: 14px 12px; }
    .aoi-page .aoi-nova-trigger, .aoi-page .aoi-nova-avatar-static { width: 58px; height: 58px; }
    .aoi-page .aoi-nova-title { font-size: 17px; }
    .aoi-page .aoi-nova-hint { font-size: 13.5px; line-height: 1.5; }
    .aoi-page .aoi-grid { grid-template-columns: 1fr; gap: 16px; }
    .aoi-page .aoi-current .aoi-input { width: 100%; }
    .aoi-page .aoi-section-body { padding: 13px 11px 14px; }
    .aoi-page .aoi-tail { padding: 10px 11px 14px; }
    .aoi-page .aoi-band { padding: 7px 11px; }
    .aoi-page .aoi-band h2 { font-size: 17px; }
    .aoi-page .aoi-lock { margin-left: 0; flex-basis: 100%; text-align: center; }
    .aoi-page .aoi-founder-row { grid-template-columns: 1fr; }
    .aoi-page .aoi-founder-row .aoi-btn { min-width: 110px; }
    .aoi-page .aoi-founder-actions > .aoi-btn { width: 100%; }
    .aoi-page .aoi-actions { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
    .aoi-page .aoi-actions .aoi-btn, .aoi-page .aoi-actions .nea-brown-btn { width: 100%; min-height: 50px; }
    .aoi-page .aoi-confirm-actions > * { width: 100%; }
}

/* ── Phone hero: the focused sculpture crop sits below the copy (kit's narrow layout). The global phone rule caps
   every element at 100% width, so the art opts out explicitly. ── */
@media (max-width: 768px) {
    .aoi-page .aoi-hero { min-height: 0; padding: 22px 0 0; overflow: visible; }
    .aoi-page .aoi-hero-content { max-width: none; }
    .aoi-page .aoi-title { font-size: clamp(30px, 9cqw, 42px); white-space: normal; }
    .aoi-page .aoi-hero-art {
        position: static;
        display: block;
        width: min(100%, 460px);
        max-width: none !important;
        margin: 10px 0 0 auto;
        -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%), linear-gradient(90deg, transparent 0, #000 10%, #000 92%, transparent 100%);
        -webkit-mask-composite: source-in;
        mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%), linear-gradient(90deg, transparent 0, #000 10%, #000 92%, transparent 100%);
        mask-composite: intersect;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aoi-page .aoi-nova-trigger.rec { animation: none; }
    .aoi-page .aoi-nova-spin { animation-duration: 2.4s; }
    .aoi-page .aoi-btn:active:not(:disabled) { transform: none; }
}

@media (forced-colors: active) {
    .aoi-page .aoi-title span { -webkit-text-fill-color: CanvasText; background: none; filter: none; }
    .aoi-page .aoi-btn-gold, .aoi-page .aoi-band { background: ButtonFace; color: ButtonText; border: 2px solid ButtonText; }
    .aoi-page .aoi-band h2 { color: ButtonText; }
}

/* Pitch-deck read window (owner request 2026-10-20): replaces the inline "Reading deck…" status while Nova reads. */
.aoi-page .aoi-read-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(3, 6, 18, 0.78);
    backdrop-filter: blur(3px);
}
.aoi-page .aoi-read-modal {
    width: min(100%, 440px);
    padding: 30px 28px 26px;
    border: 1px solid rgba(255, 229, 160, 0.45);
    border-radius: 18px;
    background: linear-gradient(180deg, #121a33 0%, #0a0f22 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    text-align: center;
    color: #eef2fb;
}
.aoi-page .aoi-read-modal:focus { outline: none; }
.aoi-page .aoi-read-modal:focus-visible { outline: 2px solid #ffe5a0; outline-offset: 3px; }
.aoi-page .aoi-read-orb { position: relative; width: 96px; height: 96px; margin: 0 auto 16px; display: grid; place-items: center; }
.aoi-page .aoi-read-orb img { position: relative; z-index: 1; border-radius: 50%; }
.aoi-page .aoi-read-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 229, 160, 0.25);
    border-top-color: #ffe5a0;
    animation: aoi-read-spin 1.4s linear infinite;
}
.aoi-page .aoi-read-modal h2 { margin: 0 0 8px; font-size: 19px; font-weight: 700; color: #fff4d2; text-transform: none; letter-spacing: 0; }
.aoi-page .aoi-read-stage { margin: 0 0 16px; font-size: 14.5px; color: #c9d3ea; min-height: 1.4em; }
.aoi-page .aoi-read-bar { position: relative; height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.aoi-page .aoi-read-bar span {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35%;
    border-radius: 999px;
    background: linear-gradient(90deg, #d4a849, #ffe5a0);
    animation: aoi-read-slide 1.6s ease-in-out infinite;
}
.aoi-page .aoi-read-time { margin: 12px 0 0; font-size: 12.5px; color: #9aa6c2; font-variant-numeric: tabular-nums; }
@keyframes aoi-read-spin { to { transform: rotate(360deg); } }
@keyframes aoi-read-slide { 0% { left: -35%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) {
    .aoi-page .aoi-read-ring, .aoi-page .aoi-read-bar span { animation: none; }
    .aoi-page .aoi-read-bar span { left: 0; width: 100%; opacity: 0.6; }
}

/* "How outside investments work" guide (2026-10-20), under the hero, on a new investment only. */
.aoi-page .aoi-guide { max-width: 1080px; margin: 0 auto 16px; }
