/* ============================================================
   L90 · MODEL DOSSIER — "INTELLIGENCE FILE" deck (models/show)
   Standalone: loaded via @push('head') on the dossier page only.
   Namespace ds-*; additive over ember dark, prefers-reduced-motion safe.
   ============================================================ */

.ds-deck {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(14px, 3vw, 44px);
    color: #edf5ff;
}

/* ---------- HERO BAND ---------- */
.ds-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid #345069;
    border-radius: 26px;
    padding: clamp(22px, 4vw, 46px);
    background:
        radial-gradient(ellipse at 88% 10%, rgba(56, 189, 248, 0.14), transparent 55%),
        radial-gradient(ellipse at 10% 95%, rgba(129, 105, 255, 0.12), transparent 55%),
        #101a2b;
    box-shadow: 0 22px 70px rgba(2, 6, 23, 0.55);
}
@keyframes dsAurora {
    0%, 100% { transform: translateX(-12%) rotate(-9deg); opacity: 0.55; }
    50% { transform: translateX(14%) rotate(-5deg); opacity: 0.9; }
}
.ds-hero__aurora {
    position: absolute;
    inset: -40% 30% auto;
    z-index: -2;
    height: 120%;
    background: conic-gradient(from 120deg at 50% 0%, transparent 12%, rgba(56, 189, 248, 0.16) 26%, rgba(153, 102, 255, 0.12) 44%, transparent 60%);
    filter: blur(30px);
    animation: dsAurora 11s ease-in-out infinite;
}
.ds-hero__dots {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(125, 211, 252, 0.16) 1px, transparent 1.6px);
    background-size: 26px 26px;
    opacity: 0.35;
    mask-image: radial-gradient(ellipse at 70% 20%, #000 30%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 30%, transparent 78%);
}
.ds-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(18px, 3vw, 34px);
    align-items: center;
}
.ds-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 13px;
    border: 1px solid rgba(125, 211, 252, 0.32);
    border-radius: 999px;
    background: rgba(13, 22, 40, 0.72);
    color: #9addeb;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
}
.ds-kicker i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
    animation: dsPip 2.2s ease-in-out infinite;
}
@keyframes dsPip {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}
.ds-title {
    margin: 10px 0 6px;
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
    line-height: 1.04;
    letter-spacing: -0.055em;
    font-weight: 800;
    background: linear-gradient(102deg, #f4fbff 12%, #bfeaff 42%, #7dd3fc 78%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 6px 24px rgba(56, 189, 248, 0.22));
}
.ds-id {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
}
.ds-id b {
    color: #f1f5f9;
    font-weight: 600;
}
.ds-id .ds-id--soft { color: #64748b; font-style: italic; }
.ds-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0.9rem;
}
.ds-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 999px;
    background: rgba(13, 22, 40, 0.72);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
}
.ds-badge--ok {
    color: #b7f4c8;
    border-color: rgba(74, 222, 128, 0.38);
    box-shadow: 0 0 14px rgba(74, 222, 128, 0.16);
}
.ds-badge--warn {
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.35);
}
.ds-badge__pip {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 9px #4ade80;
    animation: dsPip 1.8s ease-in-out infinite;
}

/* brand tile + verify seal */
.ds-tile {
    position: relative;
    display: grid;
    place-items: center;
    gap: 12px;
    text-align: center;
}
.ds-tile__frame {
    position: relative;
    width: clamp(88px, 10vw, 128px);
    height: clamp(88px, 10vw, 128px);
    border-radius: 22px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(160deg, rgba(13, 22, 40, 0.92), rgba(20, 34, 58, 0.85));
    border: 1px solid rgba(125, 211, 252, 0.3);
    box-shadow: 0 0 0 1px rgba(2, 6, 23, 0.6), 0 18px 46px rgba(2, 6, 23, 0.55), 0 0 34px rgba(56, 189, 248, 0.16);
}
.ds-tile__frame::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 22px;
    background: linear-gradient(120deg, rgba(56, 189, 248, 0.3), transparent 45%, rgba(153, 102, 255, 0.22));
    z-index: -1;
    filter: blur(6px);
    opacity: 0.7;
}
.ds-tile__frame img {
    width: 58%;
    max-width: 76px;
    max-height: 76px;
    object-fit: contain;
}
.ds-tile--net .ds-tile__frame img {
    background: #f5f7fb;
    border-radius: 10px;
    padding: 5px;
}
.ds-mono {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(140deg, #7dd3fc, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ds-seal {
    margin-top: 8px;
    position: relative;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
}
.ds-seal__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.6px dashed rgba(125, 211, 252, 0.55);
    animation: dsSpin 14s linear infinite;
}
@keyframes dsSpin { to { transform: rotate(360deg); } }
.ds-seal__ring--bad {
    border-color: rgba(251, 191, 36, 0.5);
    animation-duration: 22s;
    animation-direction: reverse;
}
.ds-seal__core {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(13, 22, 40, 0.9);
    border: 1px solid rgba(125, 211, 252, 0.3);
    font-size: 15px;
    color: #7dd3fc;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
    text-transform: lowercase;
}
.ds-seal__core--bad { color: #fde68a; }
.ds-tile small {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---------- CTAS ---------- */
.ds-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: clamp(16px, 2.4vw, 26px);
}
.ds-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid rgba(125, 211, 252, 0.28);
    background: rgba(13, 22, 40, 0.7);
    color: #e2f5ff;
    font-weight: 650;
    font-size: 13.5px;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}
.ds-cta:hover { transform: translateY(-1px); border-color: rgba(125, 211, 252, 0.55); box-shadow: 0 12px 32px rgba(2, 6, 23, 0.55); }
.ds-cta--chat {
    background: linear-gradient(120deg, #0ea5e9, #2563eb);
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.35);
    color: #fff;
}
.ds-cta--chat:hover { box-shadow: 0 12px 40px rgba(14, 165, 233, 0.5); }
.ds-cta--ghost { color: #94a3b8; }
@media (max-width: 640px) { .ds-ctas > .ds-cta { flex: 1 1 auto; justify-content: center; } }

/* ---------- GAUGE INSTRUMENTS ---------- */
.ds-instruments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: clamp(18px, 2.6vw, 30px);
}
.ds-inst {
    position: relative;
    overflow: hidden;
    border: 1px solid #345069;
    border-radius: 18px;
    padding: 16px 18px;
    background: linear-gradient(165deg, rgba(16, 26, 43, 0.85), rgba(13, 22, 40, 0.92));
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.ds-inst:hover {
    transform: translateY(-2px);
    border-color: rgba(125, 211, 252, 0.4);
    box-shadow: 0 14px 40px rgba(2, 6, 23, 0.5);
}
.ds-inst small {
    display: block;
    color: #9addeb;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 650;
    margin-bottom: 6px;
}
.ds-inst b {
    display: block;
    color: #f4fbff;
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    font-weight: 750;
    letter-spacing: -0.02em;
}
.ds-inst em {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 11.5px;
    font-style: normal;
}
.ds-gauge {
    margin-top: 11px;
    height: 8px;
    border-radius: 999px;
    background: rgba(8, 15, 30, 0.9);
    border: 1px solid rgba(125, 211, 252, 0.14);
    overflow: hidden;
    position: relative;
}
.ds-gauge i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
    animation: dsFill 1.2s cubic-bezier(0.22, 0.8, 0.24, 1) both;
}
.ds-gauge--cyan i { background: linear-gradient(90deg, #22d3ee, #7dd3fc); }
.ds-gauge--violet i { background: linear-gradient(90deg, #818cf8, #c084fc); }
.ds-gauge--amber i { background: linear-gradient(90deg, #f5b23c, #f87f56); box-shadow: 0 0 12px rgba(245, 178, 60, 0.5); }
@keyframes dsFill { from { width: 0; } }
.ds-inst--duo i {
    float: left;
    height: 100%;
}
.ds-inst--none b { color: #64748b; font-style: italic; font-weight: 500; text-transform: lowercase; }

/* ---------- SECTIONS ---------- */
.ds-sec {
    margin-top: clamp(20px, 3vw, 34px);
}
.ds-sec > h2 {
    margin: 0 0 12px;
    font-size: 1.16rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #eaf5fd;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ds-sec > h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(125, 211, 252, 0.3), transparent);
}
.ds-brief {
    max-width: 82ch;
    color: #cbd5e1;
    font-size: 14.5px;
    line-height: 1.75;
    margin: 0;
}
.ds-brief--none {
    color: #64748b;
    font-style: italic;
    font-size: 13.5px;
    line-height: 1.65;
}
.ds-caps { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-cap {
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.24);
    background: rgba(13, 22, 40, 0.66);
    color: #bae6fd;
    font-size: 12.5px;
    font-weight: 600;
    box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.07);
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.ds-cap:hover { transform: translateY(-1px); border-color: rgba(125, 211, 252, 0.5); }
.ds-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}
.ds-spec {
    padding: 13px 15px;
    border: 1px solid #345069;
    border-radius: 14px;
    background: rgba(16, 26, 43, 0.7);
}
.ds-spec small {
    display: block;
    color: #9addeb;
    font-size: 10.5px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-weight: 650;
    margin-bottom: 3px;
}
.ds-spec b { color: #f1f5f9; font-size: 14.5px; font-weight: 650; line-height: 1.45; }
.ds-spec--none b { color: #64748b; font-style: italic; font-weight: 500; text-transform: lowercase; }

.ds-unknown {
    margin-top: 12px;
    padding: 11px 15px;
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: 13px;
    background: rgba(30, 24, 12, 0.4);
    color: #94a3b8;
    font-size: 12.5px;
    line-height: 1.6;
}
.ds-unknown b { color: #fde68a; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-right: 7px; }

/* provenance timeline */
.ds-prov {
    position: relative;
    padding: 18px 20px;
    border: 1px solid #345069;
    border-radius: 18px;
    background: rgba(16, 26, 43, 0.6);
}
.ds-prov p { margin: 0 0 8px; color: #94a3b8; font-size: 13px; line-height: 1.65; }
.ds-prov p b { color: #f1f5f9; }
.ds-prov__src { color: #64748b; font-size: 12px; }
.ds-prov__src a { color: #7dd3fc; }
.ds-prov__family { color: #64748b; font-style: italic; }
.ds-timeline {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    position: relative;
}
.ds-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 7px;
    bottom: 7px;
    width: 1.5px;
    background: linear-gradient(180deg, rgba(125, 211, 252, 0.45), transparent);
}
.ds-timeline li {
    position: relative;
    padding: 0 0 12px 24px;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.6;
}
.ds-timeline li:last-child { padding-bottom: 0; }
.ds-timeline li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1.6px solid #7dd3fc;
    background: #0d1628;
    box-shadow: 0 0 9px rgba(56, 189, 248, 0.4);
}
.ds-timeline a { color: #7dd3fc; }
.ds-timeline span { color: #64748b; font-size: 12px; }

/* ---------- SIBLINGS STRIP ---------- */
.ds-sib {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
    gap: 11px;
}
.ds-sib__card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid #345069;
    border-radius: 14px;
    background: rgba(16, 26, 43, 0.7);
    text-decoration: none;
    color: inherit;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.ds-sib__card:hover {
    transform: translateY(-2px);
    border-color: rgba(125, 211, 252, 0.45);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.5);
}
.ds-sib__tile {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, rgba(13, 22, 40, 0.92), rgba(20, 34, 58, 0.85));
    border: 1px solid rgba(125, 211, 252, 0.24);
}
.ds-sib__tile img { width: 60%; max-height: 60%; object-fit: contain; }
.ds-sib__tile small {
    font-size: 13px;
    font-weight: 800;
    background: linear-gradient(140deg, #7dd3fc, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ds-sib__meta { min-width: 0; }
.ds-sib__name {
    display: block;
    color: #f1f5f9;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ds-sib__meta span { color: #64748b; font-size: 11px; }

/* honesty footnote */
.ds-foot {
    margin-top: clamp(18px, 2.6vw, 26px);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    color: #64748b;
    font-size: 11.5px;
    letter-spacing: 0.02em;
}
.ds-foot b { color: #94a3b8; }

/* entrance stagger (decorative only) */
.ds-enter {
    animation: dsEnter 0.5s cubic-bezier(0.22, 0.8, 0.24, 1) both;
}
@keyframes dsEnter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}
.ds-d1 { animation-delay: 0.05s; }
.ds-d2 { animation-delay: 0.12s; }
.ds-d3 { animation-delay: 0.19s; }
.ds-d4 { animation-delay: 0.26s; }
.ds-d5 { animation-delay: 0.33s; }

@media (prefers-reduced-motion: reduce) {
    .ds-hero__aurora, .ds-hero .ds-kicker i, .ds-badge__pip, .ds-seal__ring, .ds-gauge i { animation: none; }
    .ds-enter, .ds-d1, .ds-d2, .ds-d3, .ds-d4, .ds-d5 { animation: none; }
}
@media (max-width: 720px) {
    .ds-hero__grid { grid-template-columns: 1fr; }
    .ds-tile { justify-items: start; }
}
