@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&display=swap');
* {
    box-sizing:border-box
}
html {
    scroll-behavior:smooth
}
body {
    margin:0;
    background:#0d1115;
    color:#e7eceb;
    font-family:Manrope,sans-serif
}
.shell {
    display:grid;
    grid-template-columns:220px 1fr;
    min-height:100vh
}
.sidebar {
    height:100vh;
    position:sticky;
    top:0;
    border-right:1px solid #293238;
    padding:30px 20px;
    display:flex;
    flex-direction:column;
    background:#10161b
}
.brand {
    font:600 17px 'IBM Plex Mono';
    letter-spacing:.08em;
    color:#eff4f1;
    text-decoration:none;
    margin-bottom:70px
}
.brand span {
    color:#5dd6c0
}
.side-label,.overline,.topbar,.side-bottom,.metric span,.system-stage small,.system-foot,.detail-top,.detail-stack,.project-detail>a,.profile-facts span,footer small {
    font:10px 'IBM Plex Mono';
    letter-spacing:.08em
}
.side-label {
    color:#687780;
    margin-bottom:15px
}
.side-link {
    padding:13px 10px;
    color:#9ba8ad;
    text-decoration:none;
    font-size:12px;
    border-radius:5px;
    margin:2px 0
}
.side-link b {
    margin-right:12px;
    color:#5dd6c0
}
.side-link.active {
    background:#1c2b2c;
    color:#f0f7f4
}
.side-bottom {
    margin-top:auto;
    color:#92a3a5;
    font-size:9px;
    line-height:2
}
.side-bottom small {
    display:block;
    color:#637178;
    margin-top:10px
}
.status-dot,.clock-label i {
    display:inline-block;
    width:7px;
    height:7px;
    border-radius:50%;
    background:#5dd6a4;
    margin-right:7px;
    box-shadow:0 0 10px #5dd6a477
}
.main {
    min-width:0
}
.topbar {
    height:65px;
    border-bottom:1px solid #293238;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 5vw;
    color:#77878c
}
.clock-label {
    color:#a8b7b5
}
.overview {
    padding:70px 5vw 65px;
    display:grid;
    grid-template-columns:1.5fr .7fr;
    gap:8vw;
    align-items:center;
    background:radial-gradient(ellipse at 70% 20%,#193331 0,transparent 48%)
}
.overline {
    color:#5dd6c0
}
.intro h1 {
    font-size:clamp(58px,8vw,105px);
    letter-spacing:-.08em;
    line-height:.95;
    margin:20px 0 24px
}
.intro h1 em {
    font-weight:400;
    color:#5dd6c0
}
.intro-copy {
    max-width:550px;
    color:#a7b4b7;
    line-height:1.8;
    font-size:15px
}
.intro-actions {
    display:flex;
    gap:28px;
    margin-top:30px
}
.intro-actions a {
    font:10px 'IBM Plex Mono';
    color:#dce8e3;
    text-decoration:none;
    border-bottom:1px solid #4c6964;
    padding-bottom:8px
}
.intro-actions span {
    margin-left:20px;
    color:#5dd6c0
}
.identity-card {
    border:1px solid #30403f;
    background:#131d20;
    padding:25px;
    display:grid;
    grid-template-columns:52px 1fr;
    gap:15px;
    align-items:center
}
.avatar {
    width:50px;
    height:50px;
    border:1px solid #5dd6c0;
    color:#5dd6c0;
    display:grid;
    place-items:center;
    font:16px 'IBM Plex Mono'
}
.identity-card strong,.identity-card span {
    display:block
}
.identity-card strong {
    font-size:14px
}
.identity-card span {
    font:9px 'IBM Plex Mono';
    color:#6d9990;
    margin-top:5px
}
.identity-line {
    grid-column:1/-1;
    height:1px;
    background:#30403f;
    margin:8px 0
}
.identity-card small {
    grid-column:1/-1;
    color:#7e8f92;
    font:9px 'IBM Plex Mono'
}
.chips {
    grid-column:1/-1;
    display:flex;
    flex-wrap:wrap;
    gap:7px
}
.chips span,.detail-stack span {
    border:1px solid #344a47;
    padding:7px 9px;
    color:#9bcfc3;
    font:9px 'IBM Plex Mono'
}
.metrics {
    margin:0 5vw;
    border:1px solid #29383b;
    display:grid;
    grid-template-columns:repeat(4,1fr)
}
.metric {
    padding:21px 18px;
    border-right:1px solid #29383b
}
.metric:last-child {
    border:0
}
.metric span,.metric small {
    display:block;
    color:#718287
}
.metric strong {
    display:block;
    font-size:21px;
    margin:16px 0 7px;
    letter-spacing:-.04em
}
.metric small {
    font-size:10px
}
.systems,.projects,.profile {
    padding:85px 5vw
}
.section-top {
    display:flex;
    justify-content:space-between;
    align-items:end;
    margin-bottom:30px
}
.section-top h2,.profile h2 {
    font-size:clamp(30px,4vw,48px);
    letter-spacing:-.06em;
    margin:10px 0 0
}
.muted {
    font:10px 'IBM Plex Mono';
    color:#73848a
}
.system-map {
    display:grid;
    grid-template-columns:1fr 25px 1fr 25px 1fr 25px 1fr;
    align-items:center;
    gap:8px
}
.system-stage {
    min-height:130px;
    padding:18px;
    border:1px solid #2b3c40;
    background:#121b20;
    display:flex;
    flex-direction:column;
    justify-content:space-between
}
.system-stage small {
    color:#5dd6c0
}
.system-stage b {
    font-size:19px
}
.system-stage span {
    font-size:10px;
    color:#839397
}
.connector {
    color:#5dd6c0;
    text-align:center
}
.system-foot {
    display:flex;
    justify-content:space-between;
    color:#66787c;
    margin-top:18px
}
.projects {
    background:#11181d;
    border-top:1px solid #263238;
    border-bottom:1px solid #263238
}
.project-layout {
    display:grid;
    grid-template-columns:.65fr 1.35fr;
    gap:25px
}
.project-tabs {
    display:flex;
    flex-direction:column;
    gap:8px
}
.project-tab {
    padding:20px 15px;
    background:#151f24;
    border:1px solid #2a3b40;
    color:#a9b7b9;
    text-align:left;
    font:12px Manrope;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:13px
}
.project-tab span {
    font:10px 'IBM Plex Mono';
    color:#5dd6c0
}
.project-tab b {
    margin-left:auto
}
.project-tab.selected {
    border-color:#5dd6c0;
    background:#1a302f;
    color:#fff
}
.project-detail {
    border:1px solid #334346;
    padding:28px;
    min-height:420px;
    position:relative;
    overflow:hidden;
    background:linear-gradient(145deg,#162326,#10171b)
}
.detail-top {
    display:flex;
    justify-content:space-between;
    color:#7d9893
}
.project-detail h3 {
    font-size:clamp(34px,4vw,53px);
    line-height:1;
    letter-spacing:-.06em;
    margin:38px 0 18px
}
.project-detail p {
    color:#a5b3b5;
    line-height:1.75;
    max-width:680px;
    font-size:13px
}
.detail-stack {
    display:flex;
    gap:7px;
    flex-wrap:wrap;
    margin:25px 0
}
.project-detail>a {
    display:inline-block;
    color:#5dd6c0;
    text-decoration:none;
    margin-top:8px
}
.detail-visual {
    position:absolute;
    right:0;
    bottom:0;
    width:35%;
    height:95px;
    border-top:1px solid #34514d;
    border-left:1px solid #34514d;
    padding:15px;
    background:repeating-linear-gradient(0deg,transparent,transparent 19px,#233b38 20px),repeating-linear-gradient(90deg,transparent,transparent 19px,#233b38 20px)
}
.detail-visual span {
    font:8px 'IBM Plex Mono';
    color:#6d9c91
}
.pulse-line {
    height:35px;
    margin-bottom:7px;
    background:linear-gradient(160deg,transparent 0 8%,#5dd6c0 8.5% 9%,transparent 9.5% 28%,#5dd6c0 28.5% 29%,transparent 29.5% 45%,#5dd6c0 45.5% 46%,transparent 46.5% 68%,#5dd6c0 68.5% 69%,transparent 69.5%)
}
.profile {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10vw
}
.profile-copy p {
    color:#a6b3b6;
    line-height:1.8;
    font-size:13px
}
.profile-facts {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    margin-top:30px;
    border-top:1px solid #2b393e;
    padding-top:20px
}
.profile-facts span {
    color:#6d8985
}
.profile-facts strong {
    display:block;
    color:#dbe4e0;
    font:12px Manrope;
    margin-top:10px
}
footer {
    padding:35px 5vw;
    background:#162326;
    border-top:1px solid #30413f;
    display:grid;
    grid-template-columns:1fr 1fr auto;
    gap:20px;
    align-items:center
}
footer strong {
    font-size:18px
}
footer p {
    color:#829394;
    font:11px Manrope
}
.footer-links {
    display:flex;
    gap:18px
}
.footer-links a {
    font:9px 'IBM Plex Mono';
    color:#5dd6c0;
    text-decoration:none
}
footer small {
    color:#728184
}
@media(max-width:850px) {
    .shell {
        grid-template-columns:1fr
    }
    .sidebar {
        height:auto;
        position:relative;
        padding:16px 5vw;
        display:grid;
        grid-template-columns:1fr auto;
        gap:10px
    }
    .brand {
        margin:0
    }
    .side-label,.side-bottom {
        display:none
    }
    .side-link {
        padding:8px;
        font-size:10px
    }
    .sidebar .side-link:first-of-type {
        margin-top:8px
    }
    .sidebar {
        grid-template-columns:repeat(3,1fr)
    }
    .brand {
        grid-column:1/-1
    }
    .side-link {
        white-space:nowrap
    }
    .main {
        width:100%
    }
    .overview {
        grid-template-columns:1fr;
        gap:35px
    }
    .identity-card {
        max-width:420px
    }
    .system-map {
        grid-template-columns:1fr 20px 1fr
    }
    .system-stage:nth-of-type(5),.system-stage:nth-of-type(7) {
        margin-top:10px
    }
    .connector:nth-of-type(6) {
        display:none
    }
    .metrics {
        grid-template-columns:1fr 1fr
    }
    .metric:nth-child(2) {
        border-right:0
    }
    .metric:nth-child(-n+2) {
        border-bottom:1px solid #29383b
    }
    .project-layout,.profile {
        grid-template-columns:1fr
    }
    .project-tabs {
        display:grid;
        grid-template-columns:1fr 1fr
    }
    .detail-visual {
        width:42%
    }
    footer {
        grid-template-columns:1fr 1fr
    }
    .footer-links {
        flex-wrap:wrap
    }
}
@media(max-width:560px) {
    .topbar {
        padding:0 5vw;
        font-size:8px
    }
    .overview,.systems,.projects,.profile {
        padding:55px 5vw
    }
    .intro h1 {
        font-size:61px
    }
    .metrics {
        margin:0 5vw
    }
    .metric {
        padding:14px 10px
    }
    .metric strong {
        font-size:16px
    }
    .metric small {
        font-size:9px
    }
    .system-map {
        grid-template-columns:1fr
    }
    .connector {
        transform:rotate(90deg);
        height:12px
    }
    .system-foot {
        flex-wrap:wrap;
        gap:12px;
        font-size:8px
    }
    .section-top {
        align-items:start;
        gap:15px;
        flex-direction:column
    }
    .project-tabs {
        grid-template-columns:1fr
    }
    .project-detail {
        padding:20px
    }
    .project-detail h3 {
        font-size:37px
    }
    .detail-visual {
        position:relative;
        width:100%;
        margin-top:25px
    }
    .profile-facts {
        grid-template-columns:1fr
    }
    footer {
        grid-template-columns:1fr
    }
    .footer-links {
        gap:15px
    }
}
.location-label {
    display:block!important;
    font:8px 'IBM Plex Mono'!important;
    color:#81918f!important;
    margin-top:7px!important;
    line-height:1.5
}
.toolkit {
    padding:65px 5vw 75px;
    border-top:1px solid #263238
}
.toolkit-grid {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px
}
.toolkit-group,.toolkit-learning {
    padding:22px;
    border:1px solid #2b3c40;
    background:#121b20;
    min-height:115px
}
.toolkit-label {
    display:block;
    font:9px 'IBM Plex Mono';
    letter-spacing:.08em;
    color:#6f9690;
    margin-bottom:18px
}
.toolkit-tags {
    display:flex;
    flex-wrap:wrap;
    gap:8px
}
.toolkit-tags b {
    font:11px 'IBM Plex Mono';
    font-weight:400;
    color:#e0e9e5;
    border:1px solid #344a47;
    padding:8px 10px
}
.toolkit-learning {
    grid-column:1/-1;
    background:#172522;
    border-color:#41645b
}
.toolkit-learning>b {
    font-size:22px;
    color:#5dd6c0
}
.toolkit-learning p {
    font-size:11px;
    color:#9cacab;
    margin:7px 0 0;
    line-height:1.6
}
@media(max-width:850px) {
    .toolkit {
        padding:55px 5vw
    }
}
@media(max-width:560px) {
    .toolkit-grid {
        grid-template-columns:1fr
    }
    .toolkit-learning {
        grid-column:auto
    }
    .location-label {
        font-size:7px!important
    }
}


/* Expanded project case studies */
.cv-link { color:#5dd6c0 !important; }
.case-studies { padding:85px 5vw; border-top:1px solid #263238; }
.case-study { border:1px solid #2b3c40; background:#121b20; padding:28px; margin:18px 0; }
.case-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.case-index,.case-label { display:block; font:9px 'IBM Plex Mono'; letter-spacing:.08em; color:#6faaa0; }
.case-heading h3,.evidence-panel h3,.cv-panel h3 { margin:12px 0 0; font-size:clamp(22px,3vw,34px); letter-spacing:-.05em; }
.case-status { white-space:nowrap; font:9px 'IBM Plex Mono'; color:#e2c58c; border:1px solid #66583a; padding:8px 10px; }
.case-status.complete { color:#75d9b9; border-color:#356c5c; }
.case-lead { max-width:850px; color:#aab8b8; line-height:1.8; font-size:13px; margin:18px 0 26px; }
.case-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.case-grid > div,.analysis-period > div { border:1px solid #293b3e; padding:18px; background:#10181d; }
.case-grid p { color:#9eadaf; font-size:12px; line-height:1.75; margin:10px 0 0; }
.case-bottom { display:flex; justify-content:space-between; align-items:center; gap:18px; flex-wrap:wrap; margin-top:22px; padding-top:18px; border-top:1px solid #2b3c40; }
.case-tags { display:flex; flex-wrap:wrap; gap:7px; }
.case-tags span { border:1px solid #344a47; padding:7px 9px; color:#9bcfc3; font:9px 'IBM Plex Mono'; }
.case-bottom a { color:#5dd6c0; text-decoration:none; font:9px 'IBM Plex Mono'; }
.case-note { color:#708184; font-size:10px; line-height:1.6; margin:14px 0 0; }
.analysis-period { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:22px 0 12px; }
.analysis-period strong { display:block; margin-top:12px; font-size:13px; }
.evidence-panel,.cv-panel { display:grid; grid-template-columns:1fr 1fr; gap:25px; align-items:center; padding:28px; margin-top:18px; border:1px solid #344a47; background:#142321; }
.evidence-panel p,.cv-panel p { color:#9eadaf; font-size:12px; line-height:1.7; }
.evidence-panel ul { margin:0; padding-left:18px; color:#c4d0cc; font-size:12px; line-height:2; }
.cv-panel { grid-template-columns:1fr auto; background:#121b20; border-color:#2b3c40; }
.cv-panel small { grid-column:1/-1; color:#718287; font-size:10px; }
.cv-button { display:inline-flex; gap:28px; align-items:center; padding:14px 18px; background:#5dd6c0; color:#0d1717; text-decoration:none; font:11px 'IBM Plex Mono'; font-weight:600; }
.cv-button span { font-size:17px; }
@media(max-width:700px) { .case-studies { padding:55px 5vw; } .case-study { padding:20px; } .case-grid,.analysis-period,.evidence-panel,.cv-panel { grid-template-columns:1fr; } .case-heading { flex-direction:column; } .cv-button { justify-content:space-between; } .cv-panel small { grid-column:auto; } }

/* Evidence-led Ethereum network analysis case study */
.analysis-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:22px 0 12px; }
.analysis-metrics > div { padding:18px; border:1px solid #2b4545; background:linear-gradient(145deg,#142422,#10181d); }
.analysis-metrics strong { display:block; margin:12px 0 5px; color:#e7f3ed; font-size:clamp(23px,3vw,34px); letter-spacing:-.05em; }
.analysis-metrics small { color:#819396; font-size:10px; line-height:1.5; }
.analysis-insights { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:12px 0; }
.analysis-insights > div { padding:18px; border:1px solid #293b3e; background:#10181d; }
.analysis-insights strong { display:block; margin:10px 0 5px; color:#dce9e3; font-size:16px; }
.analysis-insights p,.analysis-method p { margin:6px 0 0; color:#9eadaf; font-size:11px; line-height:1.7; }
.analysis-method { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px; }
.analysis-method > div { padding:18px; border-left:2px solid #47796e; background:#121d20; }
.analysis-resources { display:flex; flex-wrap:wrap; gap:10px 22px; padding:18px 0 4px; }
.analysis-resources a { color:#5dd6c0; text-decoration:none; font:9px 'IBM Plex Mono'; }
.analysis-resources a:hover,.case-bottom a:hover { color:#b5f3e5; }
@media(max-width:700px) { .analysis-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .analysis-insights,.analysis-method { grid-template-columns:1fr; } }
@media(max-width:420px) { .analysis-metrics { grid-template-columns:1fr; } }


/* Separate Inside the Work page */
.inside-work-cta { margin-top:28px; padding:22px 24px; border:1px solid #34514d; background:linear-gradient(120deg,#142522,#11191d); display:flex; justify-content:space-between; align-items:center; gap:24px; }
.inside-work-cta span { display:block; color:#6faaa0; font:9px 'IBM Plex Mono'; letter-spacing:.08em; margin-bottom:10px; }
.inside-work-cta strong { display:block; font-size:17px; }
.inside-work-cta p { margin:7px 0 0; color:#9eadaf; font-size:11px; line-height:1.6; }
.inside-work-cta a { flex-shrink:0; color:#0d1717; background:#5dd6c0; padding:13px 16px; text-decoration:none; font:10px 'IBM Plex Mono'; font-weight:600; }
.inside-work-cta a b { margin-left:16px; }
.back-home { color:#8ea39f; text-decoration:none; font:9px 'IBM Plex Mono'; letter-spacing:.06em; }
.work-page-intro { padding:70px 5vw 28px; background:radial-gradient(ellipse at 70% 20%,#193331 0,transparent 48%); }
.work-page-intro h1 { margin:15px 0; font-size:clamp(48px,7vw,82px); letter-spacing:-.07em; line-height:1; }
.work-page-intro h1 em { color:#5dd6c0; font-weight:400; }
.work-page-intro > p:last-child { color:#a7b4b7; max-width:650px; line-height:1.7; font-size:13px; }
.work-page .case-studies { padding-top:35px; }
@media(max-width:850px) { .inside-work-cta { align-items:flex-start; flex-direction:column; } .work-page-intro { padding:55px 5vw 20px; } }


/* Interactive polish: tool logos, hover states and scroll reveals */
.toolkit-grid { align-items:stretch; }
.toolkit-group { transition:transform .28s ease,border-color .28s ease,background .28s ease,box-shadow .28s ease; }
.toolkit-group:hover { transform:translateY(-4px); border-color:#47786f; background:#142321; box-shadow:0 14px 34px #0003,0 0 0 1px #5dd6c01a; }
.toolkit-tags { gap:9px; }
.tool-card { position:relative; display:flex; align-items:center; gap:9px; min-height:46px; padding:9px 11px; border:1px solid #344a47; background:#10181d; color:#dfe9e5; font:10px 'IBM Plex Mono'; cursor:default; transition:transform .22s ease,border-color .22s ease,background .22s ease,box-shadow .22s ease; }
.tool-card img { width:20px; height:20px; object-fit:contain; flex:0 0 20px; filter:drop-shadow(0 0 5px #ffffff10); }
.tool-card:hover,.tool-card:focus-visible { transform:translateY(-4px) scale(1.035); border-color:#5dd6c0; background:#1a302f; box-shadow:0 8px 20px #0005,0 0 18px #5dd6c01c; outline:none; }
.tool-monogram { width:20px; height:20px; display:grid; place-items:center; flex:0 0 20px; font:700 8px 'IBM Plex Mono'; border-radius:4px; }
.sql-mark { color:#fff; background:#527b9b; }
.google-mark { color:#fff; background:linear-gradient(135deg,#4285f4,#34a853 55%,#fbbc05); font:700 13px Manrope; }
.side-link,.intro-actions a,.footer-links a,.project-tab,.inside-work-cta a,.cv-button { transition:color .2s ease,background .2s ease,border-color .2s ease,transform .2s ease,box-shadow .2s ease; }
.side-link:hover { color:#effff9; background:#1a292b; transform:translateX(3px); }
.intro-actions a:hover,.footer-links a:hover { color:#b5f3e5; border-color:#5dd6c0; }
.project-tab:hover { border-color:#5dd6c0; transform:translateX(4px); }
.metric { transition:background .25s ease,transform .25s ease; }
.metric:hover { background:#142321; transform:translateY(-3px); }
.system-stage { transition:transform .25s ease,border-color .25s ease,background .25s ease; }
.system-stage:hover { transform:translateY(-5px); border-color:#5dd6c0; background:#172725; }
.case-study,.analysis-metrics > div,.analysis-insights > div,.analysis-method > div,.evidence-panel,.cv-panel { transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease; }
.case-study:hover,.analysis-metrics > div:hover,.analysis-insights > div:hover,.analysis-method > div:hover { transform:translateY(-3px); border-color:#47786f; box-shadow:0 12px 28px #0003; }
.cv-button:hover,.inside-work-cta a:hover { transform:translateY(-3px); box-shadow:0 9px 22px #5dd6c033; background:#8be8d7; }
.scroll-progress { position:fixed; z-index:1000; top:0; left:0; width:100%; height:2px; pointer-events:none; background:transparent; }
.scroll-progress span { display:block; width:0; height:100%; background:#5dd6c0; box-shadow:0 0 9px #5dd6c0; }
.js-reveal { opacity:0; transform:translateY(18px); transition:opacity .65s ease,transform .65s ease; }
.js-reveal.is-visible { opacity:1; transform:translateY(0); }
@media(max-width:560px) { .tool-card { min-height:44px; padding:8px 9px; font-size:9px; } .tool-card img,.tool-monogram { width:18px; height:18px; flex-basis:18px; } }
@media(hover:none) { .toolkit-group:hover,.tool-card:hover,.metric:hover,.system-stage:hover,.case-study:hover,.analysis-metrics > div:hover,.analysis-insights > div:hover { transform:none; box-shadow:none; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; } .js-reveal { opacity:1; transform:none; } }


/* Theme control, light theme, navigation state and page transitions */
.topbar-actions { display:flex; align-items:center; gap:18px; }
.theme-toggle { display:inline-flex; align-items:center; gap:8px; border:1px solid #344a47; background:#14201f; color:#a9d9ce; padding:8px 10px; cursor:pointer; font:9px 'IBM Plex Mono'; letter-spacing:.06em; transition:background .2s ease,border-color .2s ease,transform .2s ease; }
.theme-toggle:hover,.theme-toggle:focus-visible { border-color:#5dd6c0; background:#1a302f; transform:translateY(-1px); outline:2px solid transparent; }
.theme-icon { font-size:14px; line-height:1; }
.side-link[aria-current="location"],.side-link[aria-current="page"] { color:#f0fff9; background:#1a302f; box-shadow:inset 2px 0 #5dd6c0; }
body { animation:page-enter .35s ease both; }
body.page-leaving { opacity:0; transform:translateY(5px); transition:opacity .14s ease,transform .14s ease; }
@keyframes page-enter { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:translateY(0); } }
.system-stage { animation:stage-arrive .65s both; }
.system-stage:nth-of-type(1) { animation-delay:.05s; }
.system-stage:nth-of-type(3) { animation-delay:.16s; }
.system-stage:nth-of-type(5) { animation-delay:.27s; }
.system-stage:nth-of-type(7) { animation-delay:.38s; }
.connector { position:relative; overflow:hidden; }
.connector::after { content:""; position:absolute; top:50%; left:0; width:6px; height:2px; border-radius:2px; background:#b5f3e5; box-shadow:0 0 8px #5dd6c0; transform:translateY(-50%); animation:data-pulse 2.2s ease-in-out infinite; }
.connector:nth-of-type(4)::after { animation-delay:.45s; }
.connector:nth-of-type(6)::after { animation-delay:.9s; }
@keyframes data-pulse { 0% { left:0; opacity:0; } 15% { opacity:1; } 85% { opacity:1; } 100% { left:calc(100% - 6px); opacity:0; } }
@keyframes stage-arrive { from { opacity:.35; transform:translateY(9px); } to { opacity:1; transform:translateY(0); } }

/* Light theme: same identity, brighter surfaces and restrained contrast */
html[data-theme="light"] body { background:#f1f5f2; color:#182522; }
html[data-theme="light"] .sidebar { background:#e7eeea; border-color:#d1ddd7; }
html[data-theme="light"] .brand,html[data-theme="light"] .intro h1,html[data-theme="light"] .section-top h2,html[data-theme="light"] .profile h2,html[data-theme="light"] .project-detail h3,html[data-theme="light"] .case-heading h3,html[data-theme="light"] .evidence-panel h3,html[data-theme="light"] .cv-panel h3,html[data-theme="light"] footer strong { color:#172522; }
html[data-theme="light"] .side-label,html[data-theme="light"] .muted,html[data-theme="light"] .topbar,html[data-theme="light"] .side-bottom,html[data-theme="light"] .metric span,html[data-theme="light"] .metric small,html[data-theme="light"] .system-stage span,html[data-theme="light"] .system-foot,html[data-theme="light"] footer small { color:#64756e; }
html[data-theme="light"] .side-link { color:#53645e; }
html[data-theme="light"] .side-link:hover,html[data-theme="light"] .side-link[aria-current="location"],html[data-theme="light"] .side-link[aria-current="page"] { color:#164c40; background:#d8e9e2; }
html[data-theme="light"] .topbar { border-color:#d5dfd9; }
html[data-theme="light"] .overview,html[data-theme="light"] .work-page-intro { background:radial-gradient(ellipse at 70% 20%,#d7eae2 0,transparent 55%); }
html[data-theme="light"] .intro-copy,html[data-theme="light"] .profile-copy p,html[data-theme="light"] .project-detail p,html[data-theme="light"] .case-lead,html[data-theme="light"] .case-grid p,html[data-theme="light"] .analysis-insights p,html[data-theme="light"] .analysis-method p,html[data-theme="light"] .evidence-panel p,html[data-theme="light"] .cv-panel p { color:#52635c; }
html[data-theme="light"] .identity-card,html[data-theme="light"] .system-stage,html[data-theme="light"] .toolkit-group,html[data-theme="light"] .toolkit-learning,html[data-theme="light"] .project-tab,html[data-theme="light"] .project-detail,html[data-theme="light"] .case-study,html[data-theme="light"] .case-grid > div,html[data-theme="light"] .analysis-period > div,html[data-theme="light"] .analysis-insights > div,html[data-theme="light"] .analysis-method > div,html[data-theme="light"] .cv-panel { background:#fbfdfb; border-color:#d5e0da; }
html[data-theme="light"] .metrics { border-color:#d5dfd9; }
html[data-theme="light"] .metric { border-color:#d5dfd9; }
html[data-theme="light"] .metric strong,html[data-theme="light"] .system-stage b,html[data-theme="light"] .profile-facts strong { color:#1b3029; }
/* Darker accent text in light mode */
html[data-theme="light"] .overline,
html[data-theme="light"] .intro h1 em,
html[data-theme="light"] .identity-card span,
html[data-theme="light"] .system-stage small,
html[data-theme="light"] .toolkit-label,
html[data-theme="light"] .case-index,
html[data-theme="light"] .case-label {
    color: #176B58;
}
html[data-theme="light"] .system-foot { color:#64756e; }
html[data-theme="light"] .projects { background:#e9efeb; border-color:#d5dfd9; }
html[data-theme="light"] .project-tab { color:#42564e; }
html[data-theme="light"] .project-tab.selected { background:#dceee6; border-color:#368b77; color:#17382f; }
html[data-theme="light"] .detail-stack span,html[data-theme="light"] .case-tags span { color:#246b5a; border-color:#c4dcd2; }
html[data-theme="light"] .tool-card { color:#273b33; background:#f5f9f6; border-color:#d1ded7; }
html[data-theme="light"] .toolkit-tags b { color:#30453c; border-color:#d1ded7; }
html[data-theme="light"] .toolkit-group:hover { background:#edf7f1; border-color:#83b9a8; }
html[data-theme="light"] .metric:hover,html[data-theme="light"] .system-stage:hover,html[data-theme="light"] .tool-card:hover,html[data-theme="light"] .tool-card:focus-visible { background:#e8f4ee; }
html[data-theme="light"] .analysis-metrics > div { background:linear-gradient(145deg,#e6f2ec,#fbfdfb); border-color:#d0e0d7; }
html[data-theme="light"] .analysis-metrics strong,html[data-theme="light"] .analysis-insights strong { color:#1c4034; }
html[data-theme="light"] .analysis-metrics small,html[data-theme="light"] .case-note,html[data-theme="light"] .cv-panel small { color:#64756e; }
html[data-theme="light"] .evidence-panel { background:#e3f0e9; border-color:#c6ddd1; }
html[data-theme="light"] .evidence-panel ul { color:#30483e; }
html[data-theme="light"] .inside-work-cta { background:linear-gradient(120deg,#e2f1e9,#f8fbf9); border-color:#c5ddd1; }
html[data-theme="light"] .inside-work-cta p { color:#52635c; }
html[data-theme="light"] .inside-work-cta strong { color:#1b3029; }
html[data-theme="light"] footer { background:#e3eee8; border-color:#cbdad2; }
html[data-theme="light"] footer p { color:#52635c; }
html[data-theme="light"] .theme-toggle { background:#f8fbf9; color:#285c4e; border-color:#c5d8ce; }
html[data-theme="light"] .theme-toggle:hover { background:#e1f0e8; border-color:#4b9b83; }
html[data-theme="light"] .analysis-period strong { color:#1b3029; }
html[data-theme="light"] .back-home { color:#46645a; }

@media(max-width:560px) { .topbar-actions { gap:9px; } .theme-toggle { padding:7px 8px; } .theme-label { display:none; } .clock-label { font-size:8px; } }
@media(prefers-reduced-motion:reduce) { body { animation:none; } .system-stage { animation:none; } .connector::after { animation:none; display:none; } }

/* Screenshot fixes: readable links in light mode and resilient tool marks */
.powerbi-mark { background:#f2c811; color:#252525; border-radius:4px; font-size:7px; letter-spacing:-.08em; }
.dbt-mark { background:#ff694b; color:#fff; border-radius:4px; font-size:8px; letter-spacing:-.05em; }
.sql-mark { background:#527c9b; color:#fff; }
.google-mark { background:linear-gradient(135deg,#4285f4,#34a853 55%,#fbbc05); color:#fff; }
html[data-theme="light"] .intro-actions a,
html[data-theme="light"] .footer-links a,
html[data-theme="light"] .project-detail>a,
html[data-theme="light"] .inside-work-cta a,
html[data-theme="light"] .cv-button,
html[data-theme="light"] .cv-link { color:#245f50; border-color:#6c9f8e; }
html[data-theme="light"] .intro-actions a:hover,
html[data-theme="light"] .footer-links a:hover,
html[data-theme="light"] .project-detail>a:hover,
html[data-theme="light"] .inside-work-cta a:hover,
html[data-theme="light"] .cv-button:hover,
html[data-theme="light"] .cv-link:hover { color:#123e32; border-color:#287c66; background:#e2f0e8; }
html[data-theme="light"] .intro-actions span { color:#287665; }
html[data-theme="light"] .tool-card { color:#203b32; }
