:root {
    --primary-bg: #F9F8F6;
    --text-main: #2A2A2A;
    --accent-green: #0A4D3C;
    --accent-gold: #D4AF37;
    --chat-bg: #FFFFFF;
    --chat-user: #0A4D3C;
    --chat-bot: #F1F0ED;
    --paper-deep: #EEE9DF;
    --paper-line: rgba(42, 42, 42, 0.14);
    --ink-soft: rgba(42, 42, 42, 0.72);
    --white-soft: rgba(255, 255, 255, 0.86);
    --shadow-soft: 0 22px 70px rgba(42, 42, 42, 0.13);
    --font-display: "IvyPresto", "IvyPresto Display", Georgia, "Times New Roman", serif;
    --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
    --radius-card: 8px;
    --radius-control: 6px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    --mg-blue: var(--accent-green);
    --mg-red: #8F2633;
    --mg-white: #FFFFFF;
    --mg-paper: var(--primary-bg);
    --mg-ink: var(--text-main);
    --mg-muted: var(--ink-soft);
    --mg-line: var(--paper-line);
    --mg-panel: rgba(255, 255, 255, 0.82);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    --scroll-progress: 0;
    --hero-shift: 0px;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--primary-bg);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
textarea,
input {
    font: inherit;
}

button {
    color: inherit;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.hidden {
    display: none !important;
}

.report-page {
    background:
        linear-gradient(rgba(249, 248, 246, 0.82), rgba(249, 248, 246, 0.82)),
        repeating-linear-gradient(0deg, transparent 0, transparent 31px, rgba(42, 42, 42, 0.025) 32px);
}

.section-wrap {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 72px;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(249, 248, 246, 0.9);
    backdrop-filter: blur(18px);
    transition: min-height 220ms ease, background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-gold));
    transform: scaleX(var(--scroll-progress));
    transform-origin: left;
}

.is-scrolled .site-header {
    min-height: 64px;
    border-color: rgba(42, 42, 42, 0.08);
    background: rgba(249, 248, 246, 0.94);
    box-shadow: 0 14px 38px rgba(42, 42, 42, 0.08);
}

.site-mark {
    display: grid;
    gap: 0.08rem;
    min-width: 12rem;
}

.site-mark span,
.eyebrow,
.intro-kicker,
.section-kicker {
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.site-mark span {
    color: var(--accent-green);
}

.site-mark strong {
    font-family: var(--font-display);
    font-size: 1.16rem;
    font-weight: 400;
    line-height: 1;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: rgba(42, 42, 42, 0.76);
    font-size: 0.92rem;
    font-weight: 600;
}

.site-nav a {
    position: relative;
    padding: 0.35rem 0;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

.hero-editorial {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-height: 84svh;
    overflow: hidden;
    color: #FFFFFF;
}

.hero-media,
.hero-media img,
.hero-scrim {
    position: absolute;
    inset: 0;
}

.hero-media {
    z-index: -2;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.025) translateY(var(--hero-shift));
    will-change: transform;
}

.hero-scrim {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(6, 24, 19, 0.78) 0%, rgba(6, 24, 19, 0.54) 42%, rgba(6, 24, 19, 0.12) 100%),
        linear-gradient(180deg, rgba(6, 24, 19, 0.24) 0%, rgba(6, 24, 19, 0.5) 100%);
}

.hero-content {
    width: min(760px, calc(100% - 40px));
    margin-left: max(20px, calc((100vw - 1180px) / 2));
    padding: 5rem 0 7rem;
}

.hero-content .eyebrow {
    color: var(--accent-gold);
    margin: 0 0 1rem;
    animation: luxeFadeUp 480ms 20ms var(--ease-out) both;
}

.hero-content h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 5.8rem;
    font-weight: 400;
    line-height: 0.96;
    letter-spacing: 0;
    overflow-wrap: break-word;
    animation: luxeFadeUp 520ms 60ms var(--ease-out) both;
}

.hero-subtitle {
    max-width: 720px;
    margin: 1.35rem 0 0;
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.12;
    animation: luxeFadeUp 520ms 100ms var(--ease-out) both;
}

.hero-copy {
    max-width: 650px;
    margin: 1.45rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
    animation: luxeFadeUp 520ms 140ms var(--ease-out) both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.15rem;
    margin-top: 2rem;
    animation: luxeFadeUp 520ms 180ms var(--ease-out) both;
}

.text-button,
.ghost-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    font-weight: 700;
}

.text-button {
    gap: 0.55rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--accent-gold);
    color: #FFFFFF;
    position: relative;
}

.text-button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background: #FFFFFF;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
}

.text-button svg {
    transition: transform 180ms ease;
}

.text-button:hover::after {
    transform: scaleX(1);
}

.text-button:hover svg {
    transform: translateX(4px);
}

.ghost-link {
    color: rgba(255, 255, 255, 0.78);
}

.ghost-link:hover {
    color: #FFFFFF;
}

.hero-folio {
    position: absolute;
    right: max(20px, calc((100vw - 1180px) / 2));
    bottom: 1.5rem;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
    max-width: min(620px, calc(100% - 40px));
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
}

.hero-folio span {
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-control);
    background: rgba(6, 24, 19, 0.22);
    backdrop-filter: blur(10px);
    animation: luxeFadeUp 460ms var(--ease-out) both;
}

.hero-folio span:nth-child(1) {
    animation-delay: 220ms;
}

.hero-folio span:nth-child(2) {
    animation-delay: 260ms;
}

.hero-folio span:nth-child(3) {
    animation-delay: 300ms;
}

.editorial-intro {
    padding: 5rem 0 4rem;
}

.intro-kicker {
    color: var(--accent-green);
    margin-bottom: 1rem;
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.68fr);
    gap: 4rem;
    align-items: start;
}

.intro-grid h2,
.section-heading h2,
.chat-editorial h2,
.quote-section blockquote,
.feature-panel h3,
.stat-card h3,
.dashboard-header h1,
.admin-login h1,
.panel-heading h2 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0;
}

.intro-grid h2 {
    margin: 0;
    font-size: 3.25rem;
    line-height: 1.04;
    overflow-wrap: break-word;
}

.intro-copy {
    display: grid;
    gap: 1.15rem;
    color: var(--ink-soft);
    font-size: 1.04rem;
}

.intro-copy p {
    margin: 0;
}

.stat-band {
    padding: 4.5rem 0;
    background: #FFFFFF;
    border-top: 1px solid var(--paper-line);
    border-bottom: 1px solid var(--paper-line);
}

.section-heading {
    display: grid;
    gap: 0.85rem;
    max-width: 760px;
    margin-bottom: 2rem;
}

.section-heading.narrow {
    max-width: 840px;
}

.eyebrow,
.section-kicker {
    color: var(--accent-green);
}

.section-heading h2,
.chat-editorial h2 {
    margin: 0;
    color: var(--text-main);
    font-size: 3rem;
    line-height: 1.04;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.stat-card,
.feature-panel,
.chat-shell,
.panel,
.stat-card.admin-stat {
    border-radius: var(--radius-card);
}

.stat-card {
    display: grid;
    align-content: start;
    min-height: 19rem;
    padding: 1.25rem;
    border: 1px solid var(--paper-line);
    border-top: 4px solid var(--accent-gold);
    background: var(--primary-bg);
    position: relative;
    overflow: hidden;
    transition: transform 260ms var(--ease-out), box-shadow 260ms ease, border-color 260ms ease, background 260ms ease;
}

.stat-card::after {
    content: "";
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.1rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(10, 77, 60, 0.42), rgba(212, 175, 55, 0.78), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 360ms var(--ease-out);
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.46);
    background: #FFFFFF;
    box-shadow: 0 18px 44px rgba(42, 42, 42, 0.1);
}

.stat-card:hover::after {
    transform: scaleX(1);
}

.stat-value {
    display: block;
    margin-bottom: 1.4rem;
    color: var(--accent-green);
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 0.95;
    transition: color 220ms ease, transform 220ms var(--ease-out);
}

.stat-card:hover .stat-value {
    color: #083B2F;
    transform: translateY(-2px);
}

.stat-card h3 {
    margin: 0;
    font-size: 1.42rem;
    line-height: 1.12;
}

.stat-card p {
    margin: 1rem 0 0;
    color: var(--ink-soft);
}

.experience-section {
    padding: 5rem 0;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.feature-image,
.feature-panel {
    min-height: 22rem;
}

.feature-image {
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--paper-deep);
    box-shadow: 0 16px 44px rgba(42, 42, 42, 0.08);
}

.feature-image img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 900ms var(--ease-out), filter 500ms ease;
}

.feature-image:hover img {
    filter: saturate(1.04) contrast(1.03);
    transform: scale(1.06);
}

.feature-image-large {
    grid-column: span 2;
}

.feature-panel {
    display: grid;
    align-content: end;
    padding: 1.35rem;
    border: 1px solid var(--paper-line);
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
    transition: transform 260ms var(--ease-out), box-shadow 260ms ease, border-color 260ms ease;
}

.feature-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-left: 3px solid transparent;
    pointer-events: none;
    transition: border-color 240ms ease;
}

.feature-panel:hover {
    transform: translateY(-4px);
    border-color: rgba(10, 77, 60, 0.18);
    box-shadow: 0 16px 38px rgba(42, 42, 42, 0.08);
}

.feature-panel:hover::before {
    border-left-color: var(--accent-gold);
}

.feature-panel.accent {
    border-color: rgba(212, 175, 55, 0.55);
    background: var(--accent-green);
    color: #FFFFFF;
}

.feature-number {
    color: var(--accent-gold);
    font-size: 0.82rem;
    font-weight: 700;
}

.feature-panel h3 {
    margin: 0.9rem 0 0;
    font-size: 2rem;
    line-height: 1.05;
}

.feature-panel p {
    margin: 1rem 0 0;
    color: var(--ink-soft);
}

.feature-panel.accent p {
    color: rgba(255, 255, 255, 0.8);
}

.quote-section {
    padding: 4.5rem 0;
    background: var(--accent-green);
    color: #FFFFFF;
}

.quote-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
    gap: 3rem;
    align-items: end;
}

.quote-section blockquote {
    margin: 0;
    font-size: 3.4rem;
    line-height: 1.03;
    position: relative;
}

.quote-section blockquote span {
    color: var(--accent-gold);
}

.quote-section p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
}

.quote-grid::after {
    content: "";
    grid-column: 1 / -1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.74), transparent);
    transform: scaleX(0.68);
    transform-origin: center;
}

.chat-report {
    display: grid;
    gap: 1.5rem;
    align-items: start;
    width: min(1420px, calc(100% - 40px));
    padding: 5rem 0;
}

.chat-editorial {
    display: grid;
    gap: 1rem;
    max-width: 780px;
}

.chat-editorial p {
    margin: 0;
    color: var(--ink-soft);
}

.chat-editorial .eyebrow {
    color: var(--accent-green);
}

.chat-proof {
    display: grid;
    gap: 0.25rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--paper-line);
}

.chat-proof span {
    color: var(--ink-soft);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.chat-proof strong {
    color: var(--accent-green);
    font-size: 1.05rem;
}

.report-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr);
    gap: 1rem;
    align-items: stretch;
}

.report-reader,
.chat-shell {
    border-radius: var(--radius-card);
}

.report-reader {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 760px;
    max-height: calc(100svh - 6rem);
    min-height: 620px;
    overflow: hidden;
    border: 1px solid rgba(42, 42, 42, 0.16);
    background: #FFFFFF;
    box-shadow: var(--shadow-soft);
    transition: transform 260ms var(--ease-out), box-shadow 260ms ease, border-color 260ms ease;
}

.report-reader-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--paper-line);
    background: #FFFFFF;
}

.report-reader-header div {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.report-reader-header span {
    color: var(--accent-green);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.report-reader-header strong {
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 400;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#citation-status {
    flex: 0 0 auto;
    color: var(--ink-soft);
    text-align: right;
}

.report-reader-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.report-download {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(10, 77, 60, 0.22);
    border-radius: var(--radius-control);
    background: rgba(10, 77, 60, 0.06);
    color: var(--accent-green);
    transition: transform 180ms var(--ease-out), background 180ms ease, border-color 180ms ease;
}

.report-download:hover {
    border-color: rgba(212, 175, 55, 0.72);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-1px);
}

.report-reader-body {
    min-height: 0;
    overflow: hidden;
    padding: 0;
    background: #EDEBE6;
}

.pdf-viewer {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: 100%;
    height: 100%;
}

.pdf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid var(--paper-line);
    background: #FFFFFF;
}

.pdf-toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.pdf-tool-button {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(42, 42, 42, 0.16);
    border-radius: var(--radius-control);
    background: #FFFFFF;
    color: var(--accent-green);
    cursor: pointer;
    font-weight: 800;
    line-height: 1;
}

.pdf-tool-button:hover {
    border-color: rgba(212, 175, 55, 0.7);
    background: rgba(212, 175, 55, 0.08);
}

.pdf-tool-button:disabled {
    cursor: default;
    opacity: 0.42;
}

.pdf-page-label {
    min-width: 5.8rem;
    color: var(--ink-soft);
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

.pdf-stage {
    overflow: auto;
    padding: 1rem;
    background:
        linear-gradient(rgba(237, 235, 230, 0.92), rgba(237, 235, 230, 0.92)),
        repeating-linear-gradient(0deg, transparent 0, transparent 31px, rgba(42, 42, 42, 0.035) 32px);
}

.pdf-page-shell {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 0 16px 44px rgba(42, 42, 42, 0.22);
    transition: box-shadow 260ms ease;
}

.pdf-page-canvas {
    display: block;
}

.report-pdf-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #FFFFFF;
}

.report-fallback {
    margin: 0;
    padding: 1rem;
    color: var(--ink-soft);
}

.chat-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 760px;
    max-height: calc(100svh - 6rem);
    min-height: 620px;
    overflow: hidden;
    border: 1px solid rgba(42, 42, 42, 0.16);
    background: var(--chat-bg);
    box-shadow: var(--shadow-soft);
    transition: transform 260ms var(--ease-out), box-shadow 260ms ease, border-color 260ms ease;
}

.report-reader:hover,
.chat-shell:hover {
    border-color: rgba(212, 175, 55, 0.38);
    box-shadow: 0 24px 76px rgba(42, 42, 42, 0.16);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--paper-line);
    background: #FFFFFF;
}

.chat-header div {
    display: grid;
    gap: 0.15rem;
}

.chat-header span {
    color: var(--accent-green);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.chat-header strong {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 400;
}

.live-dot {
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 50%;
    background: var(--accent-gold);
    box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.16);
    animation: livePulse 2.8s ease-in-out infinite;
}

.chat-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem;
    background:
        linear-gradient(rgba(249, 248, 246, 0.88), rgba(249, 248, 246, 0.88)),
        repeating-linear-gradient(90deg, transparent 0, transparent 39px, rgba(42, 42, 42, 0.025) 40px);
}

.chat-intro {
    display: grid;
    gap: 1rem;
    margin: auto;
    width: min(100%, 39rem);
}

.chat-intro-gallery {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 0.55rem;
    min-height: 8.5rem;
}

.chat-intro-gallery img {
    width: 100%;
    height: 100%;
    min-height: 8.5rem;
    object-fit: cover;
    border-radius: var(--radius-control);
}

.chat-welcome {
    margin: 0;
    color: var(--accent-green);
    font-family: var(--font-display);
    font-size: 1.7rem;
    line-height: 1.1;
}

.chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.chip {
    min-height: 2.45rem;
    padding: 0.58rem 0.75rem;
    border: 1px solid rgba(10, 77, 60, 0.22);
    border-radius: var(--radius-control);
    background: #FFFFFF;
    color: var(--accent-green);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.chip:hover {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.08);
    transform: translateY(-1px);
}

.msg {
    max-width: min(88%, 42rem);
    padding: 0.9rem 1rem;
    border-radius: var(--radius-card);
    animation: msgIn 260ms var(--ease-out);
}

.msg-user {
    align-self: flex-end;
    background: var(--chat-user);
    color: #FFFFFF;
}

.msg-assistant {
    align-self: flex-start;
    border: 1px solid rgba(42, 42, 42, 0.12);
    background: var(--chat-bot);
    color: var(--text-main);
}

.msg-label {
    margin-bottom: 0.32rem;
    opacity: 0.72;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.msg-body {
    font-size: 0.96rem;
    line-height: 1.62;
}

.msg-user .msg-body {
    white-space: pre-wrap;
}

.msg-assistant .msg-body {
    white-space: normal;
}

.msg-body p,
.msg-body ul,
.msg-body h3 {
    margin: 0;
}

.msg-body p + p,
.msg-body p + h3,
.msg-body ul + h3,
.msg-body h3 + p,
.msg-body h3 + ul {
    margin-top: 0.82rem;
}

.msg-body h3 {
    color: var(--accent-green);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.35;
}

.msg-body ul {
    padding-left: 1.1rem;
}

.msg-body li + li {
    margin-top: 0.35rem;
}

.msg-body strong {
    color: rgba(42, 42, 42, 0.92);
    font-weight: 800;
}

.msg-citations {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.8rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(42, 42, 42, 0.12);
}

.msg-citations-label {
    color: var(--accent-green);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.msg-cite {
    display: flex;
    gap: 0.35rem;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(42, 42, 42, 0.78);
    cursor: pointer;
    font-size: 0.74rem;
    line-height: 1.35;
    text-align: left;
    text-decoration: underline;
    text-decoration-color: rgba(212, 175, 55, 0.72);
    text-underline-offset: 0.18em;
}

.msg-cite strong,
.msg-ref {
    color: var(--accent-green);
    font-weight: 700;
}

.msg-ref {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(212, 175, 55, 0.72);
    text-underline-offset: 0.18em;
}

@keyframes msgIn {
    from {
        opacity: 0;
        transform: translateY(0.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-indicator {
    align-self: flex-start;
    display: inline-flex;
    gap: 0.28rem;
    width: fit-content;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(42, 42, 42, 0.12);
    border-radius: var(--radius-card);
    background: var(--chat-bot);
}

.typing-indicator span {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--accent-green);
    animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.14s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.28s;
}

@keyframes typingBounce {
    0%,
    72%,
    100% {
        transform: translateY(0);
        opacity: 0.35;
    }
    36% {
        transform: translateY(-0.32rem);
        opacity: 1;
    }
}

.reveal-item {
    opacity: 0;
    transform: translateY(0.9rem);
    transition:
        opacity 520ms var(--ease-out) var(--reveal-delay, 0ms),
        transform 520ms var(--ease-out) var(--reveal-delay, 0ms);
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes luxeFadeUp {
    from {
        opacity: 0;
        transform: translateY(0.75rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes livePulse {
    0%,
    100% {
        box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.16);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.06);
    }
}

.chat-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.9rem;
    gap: 0.65rem;
    padding: 0.85rem;
    border-top: 1px solid var(--paper-line);
    background: #FFFFFF;
}

.chat-composer textarea {
    width: 100%;
    max-height: 8rem;
    min-height: 2.9rem;
    resize: none;
    border: 1px solid rgba(42, 42, 42, 0.16);
    border-radius: var(--radius-control);
    padding: 0.76rem 0.85rem;
    background: #FFFFFF;
    color: var(--text-main);
}

.chat-composer textarea::placeholder {
    color: rgba(42, 42, 42, 0.54);
}

.composer-send {
    width: 2.9rem;
    height: 2.9rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--accent-green);
    color: #FFFFFF;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(10, 77, 60, 0.18);
    transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.composer-send:hover {
    background: #073E31;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(10, 77, 60, 0.24);
}

.composer-send:disabled {
    cursor: progress;
    opacity: 0.58;
    transform: none;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--paper-line);
    background: #FFFFFF;
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.site-footer span:first-child {
    color: var(--accent-green);
    font-weight: 700;
}

.site-footer a {
    color: var(--accent-green);
    font-weight: 700;
}

/* Admin styles */
.admin-shell {
    background: var(--primary-bg);
}

.admin-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.48)),
        repeating-linear-gradient(90deg, transparent 0, transparent 47px, rgba(10, 77, 60, 0.025) 48px);
    pointer-events: none;
}

.ambient {
    display: none;
}

.admin-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 2rem 0;
}

.panel {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border: 1px solid var(--paper-line);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 54px rgba(42, 42, 42, 0.08);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.dashboard-header h1,
.admin-login h1 {
    margin: 0.6rem 0 0;
    font-size: 3.2rem;
    line-height: 1;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
}

.section-kicker::before {
    content: "";
    width: 1.4rem;
    height: 1px;
    background: rgba(10, 77, 60, 0.35);
}

.lede {
    max-width: 62ch;
    margin: 1rem 0 1.4rem;
    color: var(--ink-soft);
}

.ghost-button,
.primary-button {
    min-height: 2.75rem;
    border-radius: var(--radius-control);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.ghost-button {
    border: 1px solid rgba(10, 77, 60, 0.22);
    background: rgba(255, 255, 255, 0.74);
    padding: 0.65rem 0.9rem;
    color: var(--accent-green);
}

.primary-button {
    border: none;
    padding: 0.85rem 1.15rem;
    color: #FFFFFF;
    background: var(--accent-green);
}

.ghost-button:hover,
.primary-button:hover {
    transform: translateY(-1px);
}

.admin-login {
    max-width: 34rem;
    margin: 4rem auto 2rem;
}

.admin-form {
    display: grid;
    gap: 0.85rem;
}

.admin-form label {
    display: grid;
    gap: 0.45rem;
    color: var(--ink-soft);
    font-weight: 700;
}

.admin-form input {
    width: 100%;
    border: 1px solid rgba(42, 42, 42, 0.16);
    border-radius: var(--radius-control);
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-main);
}

.form-status {
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
    gap: 1rem;
}

.stats-grid .stat-card {
    min-height: 9rem;
    padding: 1rem;
}

.stats-grid .stat-card strong {
    display: block;
    margin-top: 0.5rem;
    color: var(--accent-green);
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 2.2vw, 2.3rem);
    font-weight: 400;
    line-height: 1;
    overflow-wrap: anywhere;
}

.stats-grid .stat-card small {
    display: block;
    margin-top: 0.75rem;
    color: var(--ink-soft);
    font-size: 0.78rem;
    line-height: 1.35;
}

.insight-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-heading h2 {
    margin: 0.6rem 0 0;
    font-size: 2.3rem;
    line-height: 1;
}

.guardrail-note {
    max-width: 16rem;
    margin: 0;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(212, 175, 55, 0.34);
    border-radius: var(--radius-control);
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-green);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: right;
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--paper-line);
    border-left: 1px solid var(--paper-line);
}

.signal-row {
    min-height: 10rem;
    padding: 1rem;
    border-right: 1px solid var(--paper-line);
    border-bottom: 1px solid var(--paper-line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(249, 248, 246, 0.52));
}

.signal-row span,
.question-signal {
    color: var(--accent-green);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.signal-row strong {
    display: block;
    margin-top: 0.65rem;
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 2vw, 2.2rem);
    font-weight: 400;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.signal-row p {
    margin: 0.65rem 0 0;
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.bar-list {
    display: grid;
    gap: 0.85rem;
}

.bar-row {
    display: grid;
    gap: 0.45rem;
}

.bar-row header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.bar-row small,
.empty-state {
    color: var(--ink-soft);
    font-size: 0.78rem;
}

.bar {
    height: 0.66rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(10, 77, 60, 0.09);
}

.bar > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-gold));
    transition: width 520ms var(--ease-out);
}

.activity-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: end;
}

.activity-day {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.activity-bar {
    position: relative;
    height: 8.5rem;
    overflow: hidden;
    border: 1px solid rgba(10, 77, 60, 0.1);
    border-radius: var(--radius-control);
    background: linear-gradient(180deg, rgba(10, 77, 60, 0.06), rgba(212, 175, 55, 0.08));
}

.activity-bar span {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 4px;
    background: linear-gradient(180deg, var(--accent-gold), var(--accent-green));
    transition: height 520ms var(--ease-out);
}

.activity-day strong {
    color: var(--accent-green);
    font-size: 0.82rem;
}

.activity-day small {
    color: var(--ink-soft);
    font-size: 0.76rem;
}

.table-shell {
    overflow: auto;
}

.insight-table {
    width: 100%;
    min-width: 62rem;
    border-collapse: collapse;
}

.insight-table th,
.insight-table td {
    padding: 0.9rem 0.75rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--paper-line);
}

.insight-table th {
    color: var(--ink-soft);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.6rem;
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius-control);
    font-size: 0.74rem;
    font-weight: 700;
}

.status-pill.ok {
    background: rgba(10, 77, 60, 0.1);
    color: var(--accent-green);
}

.status-pill.refusal {
    background: rgba(143, 38, 51, 0.1);
    color: var(--mg-red);
}

@media (max-width: 980px) {
    .site-header {
        align-items: flex-start;
        padding-inline: 1.25rem;
    }

    .site-nav {
        gap: 0.9rem;
    }

    .hero-content h1 {
        font-size: 4.4rem;
    }

    .hero-subtitle {
        font-size: 1.75rem;
    }

    .intro-grid,
    .quote-grid,
    .report-workbench {
        grid-template-columns: 1fr;
    }

    .stat-grid,
    .experience-grid,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-image-large {
        grid-column: span 2;
    }

    .report-reader,
    .chat-shell {
        max-height: none;
    }

    .insight-columns {
        grid-template-columns: 1fr;
    }

    .signal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .activity-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .hero-media img {
        transform: none;
    }

    .reveal-item {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 700px) {
    body {
        font-size: 15px;
    }

    .section-wrap,
    .admin-layout {
        width: calc(100% - 28px);
        max-width: 1180px;
    }

    .site-header {
        min-height: 64px;
        gap: 0.75rem;
        padding: 0.8rem 1rem;
    }

    .site-mark {
        min-width: 0;
    }

    .site-mark strong {
        font-size: 1rem;
    }

    .site-nav {
        display: none;
    }

    .hero-editorial {
        min-height: 82svh;
        align-items: end;
    }

    .hero-scrim {
        background:
            linear-gradient(180deg, rgba(6, 24, 19, 0.18) 0%, rgba(6, 24, 19, 0.78) 62%, rgba(6, 24, 19, 0.86) 100%);
    }

    .hero-content {
        width: calc(100% - 28px);
        max-width: 760px;
        margin-inline: auto;
        padding: 4.5rem 0 6.6rem;
    }

    .hero-content h1 {
        font-size: 3.35rem;
        line-height: 1;
        max-width: 11ch;
    }

    .hero-subtitle {
        font-size: 1.45rem;
        max-width: 100%;
    }

    .hero-copy {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-folio {
        left: 14px;
        right: 14px;
        bottom: 0.9rem;
        justify-content: flex-start;
        font-size: 0.72rem;
    }

    .editorial-intro,
    .experience-section,
    .chat-report {
        padding: 3.25rem 0;
    }

    .stat-band,
    .quote-section {
        padding: 3.25rem 0;
    }

    .intro-grid {
        gap: 1.5rem;
    }

    .intro-grid h2,
    .section-heading h2,
    .chat-editorial h2 {
        font-size: 2.25rem;
        max-width: calc(100vw - 28px);
        overflow-wrap: break-word;
    }

    .quote-section blockquote {
        font-size: 2.35rem;
        max-width: calc(100vw - 28px);
        overflow-wrap: break-word;
    }

    .stat-grid,
    .experience-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        min-height: 0;
    }

    .stat-value {
        font-size: 3rem;
    }

    .feature-image-large {
        grid-column: span 1;
    }

    .feature-image,
    .feature-panel {
        min-height: 18rem;
    }

    .chat-shell {
        height: 680px;
        min-height: 560px;
    }

    .report-reader {
        height: 560px;
        min-height: 420px;
    }

    .chat-intro-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .chat-intro-gallery img:first-child {
        grid-column: span 2;
    }

    .msg {
        max-width: 94%;
    }

    .site-footer {
        padding-inline: 1rem;
    }

    .dashboard-header {
        flex-direction: column;
    }

    .panel-heading {
        flex-direction: column;
    }

    .guardrail-note {
        max-width: none;
        text-align: left;
    }

    .signal-grid {
        grid-template-columns: 1fr;
    }

    .activity-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-header h1,
    .admin-login h1 {
        font-size: 2.35rem;
    }
}
