/* Vetro di precisione — the existing home chapters, on a quiet matte canvas.
   Loaded after radio-glass-home.css; chapter mechanics and media stay intact. */
body.precision-glass.rg-home {
    --glass-bg: #0d1b23;
    --glass-surface: #172c36;
    --glass-text: #f4f7f3;
    --glass-muted: #b4cbd0;
    --glass-edge: #3a535f;
    --glass-aqua: #48d9c7;
    --glass-coral: #ff8175;
    background: #0d1b23 !important;
    color: #f4f7f3;
}

body.precision-glass.rg-home .rg-home-scene { background: #0d1b23; }
body.precision-glass.rg-home .rg-home-scene:after,
body.precision-glass.rg-home .rg-home-scene[data-visual="webgl"]:after {
    background: linear-gradient(90deg, #0d1b23fa 0%, #0d1b23e8 29%, #0d1b2380 56%, #0d1b231c 85%), linear-gradient(0deg, #0d1b23c7, transparent 38%);
}
body.precision-glass.rg-home .rg-smoke-layer { opacity: .12; }

/* Preserve the photographic scene and its movement in the introduction.
   Reading chapters have their own opaque surface instead of tinted glass. */
body.precision-glass.rg-home :is(.public-section, .public-ecosystem, .public-manifesto) {
    background: #0d1b23;
    box-shadow: none;
}
body.precision-glass.rg-home .public-stage h1 {
    font-size: clamp(42px, 4.9vw, 70px);
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: -.035em;
}
body.precision-glass.rg-home .stage-copy > p {
    color: #b4cbd0;
    font-size: 17px;
    line-height: 1.7;
    margin-block: 26px 28px;
    max-width: 47ch;
}
body.precision-glass.rg-home :is(.public-section-head, .ecosystem-intro) h2,
body.precision-glass.rg-home .public-manifesto h2 {
    font-weight: 650;
    line-height: 1.14;
    font-size: clamp(32px, 3.3vw, 48px);
    letter-spacing: -.03em;
}
body.precision-glass.rg-home :is(.public-section-head, .ecosystem-intro) p,
body.precision-glass.rg-home :is(.public-record, .public-role-list, .public-community-columns, .public-story, .public-manifesto) p {
    color: #b4cbd0;
    line-height: 1.65;
}

/* One material per content surface; no inset rims or stacked elevation. */
body.precision-glass.rg-home :is(.stage-record, .public-record, .chart-portal, .public-community-columns > article, .glass-empty, .home-suong-inner) {
    background: #172c36;
    border: 0;
    border-radius: 12px;
    box-shadow: none;
    backdrop-filter: none;
}
body.precision-glass.rg-home .stage-record {
    overflow: hidden;
    transition: background-color .18s ease;
}
body.precision-glass.rg-home .stage-record > span { background: #172c36; }
body.precision-glass.rg-home .stage-record:hover { transform: none; background: #203641; }
body.precision-glass.rg-home .stage-record:hover > span { background: #203641; }
body.precision-glass.rg-home .stage-record strong { font-weight: 600; }
body.precision-glass.rg-home .stage-record small,
body.precision-glass.rg-home .public-record small { color: #b4cbd0; }
body.precision-glass.rg-home .public-record h3 { font-weight: 600; line-height: 1.35; }
body.precision-glass.rg-home .public-record { transition: background-color .18s ease; }
body.precision-glass.rg-home .public-record:hover { background: #203641; transform: none; }
body.precision-glass.rg-home .public-record:hover img { transform: none; }
body.precision-glass.rg-home .record-open {
    background: #172c36;
    color: #f4f7f3;
    border: 0;
    backdrop-filter: none;
    box-shadow: none;
}
body.precision-glass.rg-home .public-record:hover .record-open { background: #48d9c7; color: #0d1b23; }

body.precision-glass.rg-home .home-suong-callout { --suonaria-focus-accent: #48d9c7; }
body.precision-glass.rg-home .home-suong-inner { padding: 20px 24px; }
body.precision-glass.rg-home .home-suong-title,
body.precision-glass.rg-home .home-suong-title strong { font-weight: 600; color: #f4f7f3; }
body.precision-glass.rg-home .home-suong-copy { color: #b4cbd0; line-height: 1.65; }
body.precision-glass.rg-home .home-suong-link {
    background: #203641;
    border: 1px solid #526b76;
    border-radius: 999px;
    color: #f4f7f3;
    box-shadow: none;
}
body.precision-glass.rg-home .home-suong-link:hover { background: #2b4653; }

/* Discovery is teal; account actions are styled by the shared shell. */
body.precision-glass.rg-home .hj-home .glass-button {
    background: #48d9c7 !important;
    color: #0d1b23 !important;
    border: 0;
    border-radius: 999px;
    min-height: 44px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    box-shadow: none;
    transform: none;
    transition: background-color .18s ease;
}
body.precision-glass.rg-home .hj-home .glass-button:hover { background: #7ae6d8 !important; box-shadow: none; transform: none; }
body.precision-glass.rg-home .hj-home .glass-link {
    color: #f4f7f3 !important;
    text-decoration-color: #526b76;
    text-underline-offset: 5px;
}
body.precision-glass.rg-home .hj-home .glass-link:hover { color: #78e2d4 !important; text-decoration-color: currentColor; }

body.precision-glass.rg-home .ecosystem-statement { font-weight: 550; line-height: 1.4; }
body.precision-glass.rg-home .ecosystem-map picture { border-radius: 14px; box-shadow: none; background: #172c36; }
body.precision-glass.rg-home .ecosystem-map figcaption,
body.precision-glass.rg-home .ecosystem-pillars dd { color: #b4cbd0; }
body.precision-glass.rg-home .ecosystem-caption-trigger { color: #78e2d4; min-height: 44px; }
body.precision-glass.rg-home .ecosystem-pillars > div { border-color: #3a535f; }
body.precision-glass.rg-home .ecosystem-pillars dt { color: #f4f7f3; font-weight: 600; }
body.precision-glass.rg-home .chart-portal { transition: background-color .18s ease; }
body.precision-glass.rg-home .chart-portal:hover { background: #203641; transform: none; }
body.precision-glass.rg-home .chart-portal h3 { font-weight: 600; line-height: 1.3; }
body.precision-glass.rg-home .chart-portal > span { color: #78e2d4; }
body.precision-glass.rg-home .portal-wave i { background: #48d9c7; }
body.precision-glass.rg-home .portal-disc { box-shadow: none; }
body.precision-glass.rg-home .portal-portraits img { border-color: #3a535f; }
body.precision-glass.rg-home .public-people-grid h3 { font-weight: 600; }
body.precision-glass.rg-home .public-people-grid small { color: #b4cbd0; }

/* The role descriptions read as a single group rather than nested cards. */
body.precision-glass.rg-home .public-role-list { gap: 0; border-top: 1px solid #3a535f; }
body.precision-glass.rg-home .public-role-list > article {
    background: none;
    border: 0;
    border-bottom: 1px solid #3a535f;
    padding: 24px 0;
    border-radius: 0;
    box-shadow: none;
}
body.precision-glass.rg-home .public-role-list h3 { font-weight: 600; }
body.precision-glass.rg-home .public-community-columns h3 { font-weight: 600; }
body.precision-glass.rg-home .public-community-event { border-color: #3a535f; }
body.precision-glass.rg-home .public-community-event :is(small, time) { color: #b4cbd0; }
body.precision-glass.rg-home .public-story { gap: 0; }
body.precision-glass.rg-home .public-story > div:last-child { background: #172c36; padding: 24px; border-radius: 0 0 12px 12px; }
body.precision-glass.rg-home .public-story .news-preview-media { border-radius: 12px 12px 0 0; }
body.precision-glass.rg-home .public-story h3 { font-weight: 600; line-height: 1.3; }
body.precision-glass.rg-home .public-story time { margin-top: 0; color: #b4cbd0; }
body.precision-glass.rg-home .public-story > div:last-child > span { color: #78e2d4; }
body.precision-glass.rg-home .glass-empty { border: 1px solid #3a535f; }

/* Glass belongs to the navigation layer, above the matte reading canvas. */
body.precision-glass.rg-home-ready .hj-dock {
    background: #182e38eb;
    border-top: 1px solid #3a535f;
    box-shadow: none;
    backdrop-filter: blur(14px);
}
body.precision-glass.rg-home .hj-controls button { background: #203641; border-color: #526b76; border-radius: 999px; box-shadow: none; }
body.precision-glass.rg-home .hj-controls button:hover:not(:disabled) { background: #2b4653; border-color: #809ba5; }
body.precision-glass.rg-home .hj-controls .hj-motion { background: transparent; border-color: transparent; }
body.precision-glass.rg-home .hj-counter { color: #48d9c7; }
body.precision-glass.rg-home .hj-current-label { color: #f4f7f3; }
body.precision-glass.rg-home .hj-hint { color: #b4cbd0; }
body.precision-glass.rg-home-ready .hj-footer .glass-footer { background: #0d1b23 !important; box-shadow: none; }
body.precision-glass.rg-home .hj-home :is(a, button, summary, [tabindex]):focus-visible {
    outline: 2px solid #ff8175;
    outline-offset: 4px;
    box-shadow: none;
}
body.precision-glass.rg-home .hj-home :is(.hj-track, .hj-reading-panel):focus-visible { outline-offset: -4px; }
body.precision-glass.rg-home .hj-home ::selection { background: #48d9c7; color: #0d1b23; }

@media (max-width: 800px) {
    body.precision-glass.rg-home .public-stage h1 { font-size: clamp(38px, 7.5vw, 56px); line-height: 1.12; }
    body.precision-glass.rg-home .stage-copy > p { font-size: 16px; line-height: 1.65; margin-block: 22px; }
    body.precision-glass.rg-home :is(.public-section-head, .ecosystem-intro) h2,
    body.precision-glass.rg-home .public-manifesto h2 { font-size: clamp(30px, 6vw, 40px); }
    body.precision-glass.rg-home .rg-home-scene:after,
    body.precision-glass.rg-home .rg-home-scene[data-visual="webgl"]:after {
        background: linear-gradient(180deg, #0d1b23e8 0%, #0d1b23c7 34%, #0d1b2370 65%, #0d1b2380), linear-gradient(90deg, #0d1b2345, transparent);
    }
    body.precision-glass.rg-home .home-suong-inner { padding: 18px; }
    body.precision-glass.rg-home .public-story { grid-template-columns: .8fr 1fr; }
    body.precision-glass.rg-home .public-story .news-preview-media { border-radius: 12px 0 0 12px; }
    body.precision-glass.rg-home .public-story > div:last-child { border-radius: 0 12px 12px 0; padding: 20px; }
}
@media (max-width: 480px) {
    body.precision-glass.rg-home .public-stage h1 { font-size: 38px; }
    body.precision-glass.rg-home .public-record-grid { gap: 20px 12px; }
    body.precision-glass.rg-home .public-record > div { padding: 14px 12px; }
    body.precision-glass.rg-home .public-record h3 { font-size: 17px; }
    body.precision-glass.rg-home .ecosystem-map { margin-inline: 0; }
    body.precision-glass.rg-home .ecosystem-map picture { border-radius: 12px; }
    body.precision-glass.rg-home .ecosystem-map figcaption { padding-inline: 0; }
    body.precision-glass.rg-home .public-story { grid-template-columns: 1fr; }
    body.precision-glass.rg-home .public-story .news-preview-media { border-radius: 12px 12px 0 0; }
    body.precision-glass.rg-home .public-story > div:last-child { border-radius: 0 0 12px 12px; }
    body.precision-glass.rg-home .home-suong-link,
    body.precision-glass.rg-home .stage-actions .glass-button { min-height: 48px; }
}
@supports not (backdrop-filter: blur(14px)) {
    body.precision-glass.rg-home-ready .hj-dock { background: #182e38; }
}
@media (prefers-reduced-motion: reduce) {
    body.precision-glass.rg-home .hj-home :is(.stage-record, .public-record, .glass-button, .chart-portal) { transition: none; }
}
@media (forced-colors: active) {
    body.precision-glass.rg-home :is(.public-section, .public-ecosystem, .public-manifesto, .stage-record, .stage-record > span, .public-story > div:last-child, .public-role-list > article) { background: Canvas; color: CanvasText; }
    body.precision-glass.rg-home :is(.stage-record, .public-record, .public-story, .chart-portal, .public-community-columns > article, .glass-empty, .home-suong-inner, .hj-dock) { border: 1px solid CanvasText; }
    body.precision-glass.rg-home .hj-home .glass-button { background: ButtonFace !important; color: ButtonText !important; border: 1px solid ButtonText; }
    body.precision-glass.rg-home .hj-home :is(a, button, summary, [tabindex]):focus-visible { outline-color: Highlight; }
}
