:root {
    color-scheme: dark;
    --bg: #050707;
    --bg-2: #0a1010;
    --surface: #0f1717;
    --surface-2: #121d1d;
    --panel: rgba(14, 23, 23, 0.92);
    --panel-strong: #131f1f;
    --line: rgba(111, 255, 224, 0.18);
    --line-strong: rgba(111, 255, 224, 0.44);
    --text: #edf7f6;
    --muted: #9eb3b2;
    --soft: #d1e2df;
    --cyan: #69dbff;
    --teal: #20f0d0;
    --green: #a8ff7a;
    --amber: #ffce6c;
    --red: #ff5d73;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
    --radius: 8px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(105, 219, 255, 0.04) 1px, transparent 1px),
        linear-gradient(180deg, rgba(105, 219, 255, 0.035) 1px, transparent 1px),
        linear-gradient(145deg, #050707 0%, #081010 42%, #101311 100%);
    background-size: 72px 72px, 72px 72px, auto;
    color: var(--text);
    font-family: "DM Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.028) 0,
            rgba(255, 255, 255, 0.028) 1px,
            transparent 1px,
            transparent 4px
        );
    opacity: 0.42;
}

body::after {
    content: "";
    position: fixed;
    inset: -35% 0 auto;
    height: 34%;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(32, 240, 208, 0.08), transparent);
    animation: scanSweep 9s linear infinite;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(5, 9, 9, 0.86);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
}

.system-bar,
.nav-inner,
.page-shell,
.footer-inner {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

.system-bar {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    letter-spacing: 0;
}

.console-id {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.status-light {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(168, 255, 122, 0.8);
}

.system-readout {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.system-readout span {
    color: var(--muted);
}

.system-readout strong {
    color: var(--green);
    font-weight: 600;
}

.nav-wrap {
    background: linear-gradient(180deg, rgba(12, 21, 21, 0.96), rgba(6, 10, 10, 0.96));
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 70px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    min-width: 180px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    color: var(--teal);
    font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 700;
    box-shadow: inset 0 0 18px rgba(32, 240, 208, 0.13);
}

.brand-text {
    display: grid;
    gap: 1px;
}

.brand-text strong {
    font-size: 15px;
    line-height: 1.2;
}

.brand-text span {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: wrap;
}

.nav-links a {
    position: relative;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    border-color: var(--line);
    background: rgba(105, 219, 255, 0.07);
}

.nav-links a.active::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 5px;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
}

.page-shell {
    padding: 58px 0 76px;
}

.home-shell {
    padding-top: 34px;
}

.hero-console {
    min-height: min(680px, calc(100vh - 210px));
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 42px;
    align-items: center;
    padding-bottom: 34px;
}

.kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--green);
    font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.kicker::before,
.section-kicker::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--green);
    box-shadow: 0 0 10px rgba(168, 255, 122, 0.65);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero-copy h1,
.page-title h1 {
    margin: 18px 0 18px;
    font-size: clamp(46px, 8vw, 112px);
    line-height: 0.92;
    letter-spacing: 0;
    font-weight: 800;
}

.page-title h1 {
    font-size: clamp(40px, 6vw, 76px);
}

.hero-subtitle,
.page-intro {
    max-width: 680px;
    color: var(--soft);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.45;
}

.hero-subtitle strong {
    color: var(--white);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.035);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
    border-color: rgba(32, 240, 208, 0.8);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.button.primary {
    background: linear-gradient(135deg, rgba(32, 240, 208, 0.96), rgba(105, 219, 255, 0.86));
    color: #03100f;
    border-color: transparent;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 30px;
    max-width: 650px;
}

.metric-tile {
    min-height: 96px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        var(--surface);
}

.metric-tile strong {
    display: block;
    color: var(--cyan);
    font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 20px;
    line-height: 1;
    margin-bottom: 10px;
}

.metric-tile span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.scanner-stack {
    position: relative;
}

.scanner-stack::before,
.scanner-stack::after {
    content: "";
    position: absolute;
    inset: 9%;
    border: 1px solid rgba(105, 219, 255, 0.18);
    border-radius: 50%;
    pointer-events: none;
}

.scanner-stack::after {
    inset: 19%;
    border-color: rgba(168, 255, 122, 0.15);
}

.viewer-window {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: #070b0b;
    box-shadow: var(--shadow), inset 0 0 40px rgba(32, 240, 208, 0.07);
}

.viewer-window::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 49.7%, rgba(32, 240, 208, 0.38) 50%, transparent 50.3%),
        linear-gradient(0deg, transparent 49.7%, rgba(32, 240, 208, 0.26) 50%, transparent 50.3%);
    mix-blend-mode: screen;
    opacity: 0.42;
}

.viewer-top,
.viewer-bottom {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 16px;
    color: var(--muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    letter-spacing: 0;
}

.viewer-top span {
    color: var(--green);
}

.viewer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 0;
}

.image-stage {
    position: relative;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.image-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, transparent, rgba(32, 240, 208, 0.22), transparent);
    transform: translateX(-110%);
    animation: imageScan 4.8s ease-in-out infinite;
}

.image-stage::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    pointer-events: none;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(0.88) contrast(1.13) brightness(0.86);
}

.scan-label {
    position: absolute;
    left: 18px;
    top: 18px;
    z-index: 4;
    display: grid;
    gap: 4px;
    color: var(--green);
    font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    letter-spacing: 0;
}

.scan-badge {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 4;
    color: #06100f;
    background: var(--amber);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    font-weight: 800;
}

.corner {
    position: absolute;
    z-index: 4;
    width: 34px;
    height: 34px;
    border-color: var(--teal);
    border-style: solid;
    filter: drop-shadow(0 0 8px rgba(32, 240, 208, 0.65));
}

.corner.tl {
    top: 16px;
    left: 16px;
    border-width: 2px 0 0 2px;
}

.corner.tr {
    top: 16px;
    right: 16px;
    border-width: 2px 2px 0 0;
}

.corner.bl {
    bottom: 16px;
    left: 16px;
    border-width: 0 0 2px 2px;
}

.corner.br {
    right: 16px;
    bottom: 16px;
    border-width: 0 2px 2px 0;
}

.affiliation-strip {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 14px;
    align-items: stretch;
    margin: 8px 0 58px;
}

.logo-tile {
    display: flex;
    align-items: center;
    min-height: 92px;
    padding: 18px 22px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #f7fbff;
}

.logo-tile img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 62px;
    object-fit: contain;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 38px;
    align-items: start;
}

.page-title {
    margin-bottom: 44px;
}

.page-title.compact {
    margin-bottom: 30px;
}

.section-block {
    margin-bottom: 54px;
}

.section-block:last-child {
    margin-bottom: 0;
}

h2 {
    margin-bottom: 20px;
    color: var(--text);
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.12;
    letter-spacing: 0;
}

h3 {
    color: var(--text);
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 8px;
}

p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 18px;
}

.lead {
    color: var(--soft);
    font-size: 18px;
}

.narrative-stack {
    max-width: 860px;
}

.tag-cloud,
.guidance-grid,
.skills-grid,
.interest-grid,
.trial-grid,
.stats-row,
.contact-grid {
    display: grid;
    gap: 14px;
}

.tag-cloud {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.tag,
.skill-item,
.contact-card,
.stat-box,
.pub-card,
.conf-card,
.guidance-card,
.chatbot-panel,
.interest-card,
.trial-card,
.timeline-item,
.quick-link,
.side-module,
.location-band {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.014)),
        var(--panel);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.tag {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: var(--soft);
    font-size: 13px;
    font-weight: 800;
}

.tag::before,
.skill-item::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 10px;
    flex: 0 0 auto;
    background: var(--teal);
    box-shadow: 0 0 12px rgba(32, 240, 208, 0.72);
}

.guidance-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 24px 0 18px;
}

.guidance-card {
    min-height: 188px;
    padding: 20px;
    border-top: 3px solid rgba(105, 219, 255, 0.48);
    transition: transform 160ms ease, border-color 160ms ease;
}

.guidance-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
}

.chatbot-panel {
    margin-top: 18px;
    padding: 18px;
    border-color: rgba(168, 255, 122, 0.3);
    background:
        linear-gradient(135deg, rgba(168, 255, 122, 0.08), rgba(105, 219, 255, 0.04)),
        var(--panel);
}

.chatbot-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.chatbot-header h2,
.chatbot-header h3 {
    margin: 8px 0 0;
    font-size: 28px;
}

.chatbot-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(168, 255, 122, 0.38);
    border-radius: 4px;
    color: var(--green);
    font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    font-weight: 800;
}

.chat-window {
    max-height: 320px;
    overflow: auto;
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.018) 0,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px,
            transparent 5px
        ),
        rgba(3, 8, 8, 0.72);
}

.chat-message {
    display: grid;
    gap: 6px;
    max-width: 88%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--soft);
    background: rgba(255, 255, 255, 0.035);
    font-size: 14px;
    line-height: 1.55;
}

.chat-message strong {
    color: var(--teal);
    font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    text-transform: uppercase;
}

.chat-message.user {
    justify-self: end;
    border-color: rgba(105, 219, 255, 0.32);
    background: rgba(105, 219, 255, 0.08);
}

.chat-message.user strong {
    color: var(--cyan);
}

.prompt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

.prompt-chips button,
.chat-submit {
    appearance: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    background: rgba(255, 255, 255, 0.035);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.prompt-chips button {
    min-height: 38px;
    padding: 0 12px;
}

.prompt-chips button:hover,
.chat-submit:hover {
    border-color: var(--line-strong);
    color: var(--white);
}

.chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 10px;
}

.chat-input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.22);
    color: var(--text);
    font: inherit;
    font-size: 15px;
    padding: 0 14px;
    outline: 0;
}

.chat-input:focus {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 3px rgba(32, 240, 208, 0.08);
}

.chat-submit {
    min-height: 48px;
    background: linear-gradient(135deg, rgba(32, 240, 208, 0.94), rgba(105, 219, 255, 0.84));
    color: #03100f;
    border-color: transparent;
}

.side-rail {
    position: sticky;
    top: 136px;
    display: grid;
    gap: 14px;
}

.side-module {
    padding: 18px;
}

.side-module h3 {
    color: var(--green);
    font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 10px 12px;
    margin-bottom: 10px;
    color: var(--soft);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

.quick-link:last-child {
    margin-bottom: 0;
}

.quick-link:hover {
    transform: translateX(3px);
    border-color: var(--line-strong);
    color: var(--white);
}

.quick-link span {
    color: var(--teal);
    font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
}

.mini-monitor {
    padding: 14px;
    border: 1px solid rgba(168, 255, 122, 0.22);
    border-radius: var(--radius);
    background: rgba(5, 12, 10, 0.7);
    font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: var(--muted);
}

.mini-monitor div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mini-monitor div:last-child {
    border-bottom: 0;
}

.mini-monitor strong {
    color: var(--green);
    font-weight: 700;
}

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

.interest-card {
    min-height: 176px;
    padding: 20px;
    transition: transform 160ms ease, border-color 160ms ease;
}

.interest-card:hover,
.trial-card:hover,
.pub-card:hover,
.conf-card:hover,
.timeline-item:hover,
.contact-card:hover,
.stat-box:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
}

.card-code,
.pub-num,
.conf-num {
    color: var(--teal);
    font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 18px;
}

.interest-card p,
.trial-card p,
.timeline-body,
.pub-authors,
.pub-meta,
.conf-meta,
.contact-label,
.location-subtitle {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

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

.trial-card {
    min-height: 190px;
    padding: 22px;
    border-left: 3px solid var(--amber);
}

.trial-tag,
.pub-year,
.conf-venue {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 4px;
    background: rgba(255, 206, 108, 0.12);
    border: 1px solid rgba(255, 206, 108, 0.28);
    color: var(--amber);
    font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    font-weight: 800;
}

.skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.skill-item {
    min-height: 56px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    color: var(--soft);
    font-size: 14px;
    font-weight: 800;
}

.timeline {
    position: relative;
    display: grid;
    gap: 18px;
    padding-left: 28px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--teal), var(--amber), var(--red));
}

.timeline-item {
    position: relative;
    padding: 22px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 28px;
    width: 12px;
    height: 12px;
    background: var(--teal);
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 3px rgba(32, 240, 208, 0.22), 0 0 16px rgba(32, 240, 208, 0.7);
}

.timeline-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 10px;
}

.timeline-org {
    color: var(--amber);
    font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    font-weight: 800;
    text-align: right;
    max-width: 280px;
}

.stats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 40px;
}

.stat-box {
    min-height: 110px;
    display: grid;
    align-content: center;
    justify-items: start;
    padding: 18px;
}

.stat-number {
    color: var(--green);
    font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.pub-card,
.conf-card {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
    margin-bottom: 14px;
}

.pub-title,
.conf-title {
    color: var(--text);
    font-size: 16px;
    line-height: 1.45;
    font-weight: 800;
    margin-bottom: 10px;
}

.pub-authors strong {
    color: var(--white);
}

.pub-meta,
.conf-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pub-journal,
.conf-journal {
    color: var(--muted);
    font-style: italic;
}

.pub-doi {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 800;
}

.pub-doi:hover {
    color: var(--white);
}

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

.contact-card {
    min-height: 102px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 18px;
    color: var(--text);
    text-decoration: none;
}

.contact-card.resume-download {
    grid-column: 1 / -1;
    min-height: 112px;
    border-color: rgba(168, 255, 122, 0.34);
    background:
        linear-gradient(135deg, rgba(168, 255, 122, 0.10), rgba(32, 240, 208, 0.06)),
        var(--panel);
}

.contact-card.resume-download .contact-icon {
    border-color: rgba(168, 255, 122, 0.42);
    color: var(--green);
    background: rgba(168, 255, 122, 0.08);
}

.contact-card.resume-download .contact-arrow {
    color: var(--green);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(105, 219, 255, 0.3);
    border-radius: var(--radius);
    color: var(--teal);
    background: rgba(105, 219, 255, 0.07);
    font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    font-weight: 800;
}

.contact-value {
    color: var(--soft);
    font-size: 15px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.contact-arrow {
    color: var(--teal);
    font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.location-band {
    margin-top: 20px;
    padding: 26px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    border-color: rgba(255, 206, 108, 0.28);
}

.location-pin {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 206, 108, 0.36);
    border-radius: var(--radius);
    color: var(--amber);
    font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 800;
}

.location-title {
    color: var(--text);
    font-size: 19px;
    font-weight: 800;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(5, 9, 9, 0.9);
}

.footer-inner {
    min-height: 128px;
    display: grid;
    grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
    gap: 20px;
    align-items: center;
}

.footer-logo {
    justify-self: start;
    max-width: 330px;
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius);
    background: #f7fbff;
}

.footer-logo:last-child {
    justify-self: end;
    max-width: 230px;
}

.footer-logo img {
    display: block;
    width: 100%;
    max-height: 54px;
    object-fit: contain;
}

.footer-copy {
    color: var(--muted);
    font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    text-align: center;
}

@keyframes scanSweep {
    0% { transform: translateY(-110%); }
    100% { transform: translateY(420%); }
}

@keyframes imageScan {
    0%, 28% { transform: translateX(-115%); opacity: 0; }
    42% { opacity: 1; }
    72% { transform: translateX(115%); opacity: 1; }
    100% { transform: translateX(115%); opacity: 0; }
}

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

@media (max-width: 980px) {
    .system-bar,
    .nav-inner,
    .page-shell,
    .footer-inner {
        width: min(100% - 28px, var(--max));
    }

    .hero-console,
    .content-layout {
        grid-template-columns: 1fr;
    }

    .hero-console {
        min-height: auto;
        padding-top: 26px;
    }

    .scanner-stack {
        max-width: 560px;
    }

    .side-rail {
        position: static;
    }

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

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

@media (max-width: 760px) {
    .system-bar {
        align-items: flex-start;
        flex-direction: column;
        padding: 10px 0;
    }

    .nav-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

    .nav-links {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        width: 100%;
    }

    .nav-links a {
        flex: 0 0 auto;
        padding: 9px 10px;
    }

    .page-shell {
        padding-top: 38px;
    }

    .hero-copy h1,
    .page-title h1 {
        font-size: clamp(40px, 15vw, 64px);
    }

    .metric-strip,
    .affiliation-strip,
    .trial-grid,
    .stats-row,
    .contact-grid,
    .guidance-grid,
    .interest-grid {
        grid-template-columns: 1fr;
    }

    .chatbot-header {
        display: block;
    }

    .chatbot-status {
        margin-top: 10px;
    }

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

    .chat-message {
        max-width: 100%;
    }

    .timeline-header {
        display: block;
    }

    .timeline-org {
        text-align: left;
        max-width: none;
        margin-top: 8px;
    }

    .pub-card,
    .conf-card {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        padding: 24px 0;
    }

    .footer-logo,
    .footer-logo:last-child {
        justify-self: stretch;
        max-width: none;
    }
}
