/* ── Blazor infrastructure (keep) ── */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}
.blazor-error-boundary::after {
    content: "An error has occurred."
}
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}
.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}
.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}
.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}
.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* ── Self-hosted fonts ── */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300 500;
    font-display: swap;
    src: url('../fonts/CormorantGaramond-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300 500;
    font-display: swap;
    src: url('../fonts/CormorantGaramond-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 300 400;
    font-display: swap;
    src: url('../fonts/CormorantGaramond-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 300 400;
    font-display: swap;
    src: url('../fonts/CormorantGaramond-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Karla';
    font-style: normal;
    font-weight: 300 500;
    font-display: swap;
    src: url('../fonts/Karla-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Karla';
    font-style: normal;
    font-weight: 300 500;
    font-display: swap;
    src: url('../fonts/Karla-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Karla';
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/Karla-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Karla';
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/Karla-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Design system ── */
:root {
    --bg:        #edf2f4;
    --panel:     #dde6ea;
    --surface:   #f6f9fa;
    --card:      #ffffff;
    --border:    #c4d2d8;
    --line:      #d4e0e5;

    --glacier:   #9bbfcc;
    --river:     #5a8fa0;
    --deep:      #3a6272;
    --steel:     #4d6e7a;
    --pine:      #3d5c50;
    --stone:     #6a8a96;
    --mist:      #8aaab6;

    --ink:       #1a2d35;
    --body-text: #3d5560;
    --dim:       #7a9aaa;
    --faint:     #aac0c8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

#app {
    flex: 1 1 auto;
    width: 100%;
    min-height: 100vh;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Karla', sans-serif;
    font-weight: 300;
    display: flex;
    align-items: stretch;
    height: 100vh;
    overflow: hidden;
}

/* subtle noise grain */
body::after {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    pointer-events: none;
    z-index: 1;
}

/* ══════════════════════════════════════
   LEFT PANEL
══════════════════════════════════════ */
.left-panel {
    width: 300px;
    min-width: 300px;
    flex-shrink: 0;
    background: var(--panel);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10;
}

.panel-scene {
    width: 100%;
    height: 160px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.panel-scene svg {
    width: 100%; height: 100%;
    display: block;
}

@keyframes mistDrift {
    0%   { transform: translateX(0) scaleX(1); opacity: 0.18; }
    50%  { transform: translateX(12px) scaleX(1.04); opacity: 0.28; }
    100% { transform: translateX(0) scaleX(1); opacity: 0.18; }
}
.mist-layer   { animation: mistDrift 8s ease-in-out infinite; transform-origin: center; }
.mist-layer-2 { animation: mistDrift 11s ease-in-out 2s infinite reverse; transform-origin: center; }

.panel-body {
    padding: 1.8rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.panel-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 300;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: 0.01em;
    margin-bottom: 0.2rem;
}
.panel-tagline {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: 0.75rem;
}

.panel-auth {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.panel-user {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    color: var(--stone);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-signout {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dim);
    cursor: pointer;
    transition: color 0.2s;
    flex-shrink: 0;
    margin-left: 0.75rem;
}
.nav-signout:hover { color: var(--deep); }

.panel-greeting {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 300;
    color: var(--deep);
    line-height: 1.15;
    margin-bottom: 0.5rem;
    animation: fadeUp 0.9s ease both;
}
.panel-greeting em { font-style: italic; color: var(--river); }

.panel-date {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 0.6rem;
}
.panel-sub {
    font-size: 0.78rem;
    color: var(--stone);
    line-height: 1.75;
    margin-bottom: 2rem;
    font-style: italic;
    max-width: 220px;
}

.panel-nav { display: flex; flex-direction: column; margin-bottom: auto; }
.panel-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--stone);
    text-decoration: none;
    padding: 0.58rem 0;
    border-bottom: 1px solid rgba(196,210,216,0.6);
    transition: color 0.2s, padding-left 0.2s;
}
.panel-nav a:last-child { border-bottom: none; }
.panel-nav a:hover { color: var(--deep); padding-left: 4px; }
.panel-nav a:hover .nav-tick { background: var(--river); }
.nav-tick {
    width: 14px; height: 1px;
    background: var(--faint);
    flex-shrink: 0;
    transition: background 0.2s;
}

.panel-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1.8rem;
}
.panel-stat {
    background: rgba(255,255,255,0.45);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.65rem 0.8rem;
    text-align: center;
}
.panel-stat-n {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--deep);
    line-height: 1;
}
.panel-stat-l {
    font-size: 0.56rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dim);
    margin-top: 0.15rem;
}

.panel-footer {
    margin-top: 1.5rem;
    font-size: 0.6rem;
    color: var(--faint);
    letter-spacing: 0.1em;
    font-style: italic;
    line-height: 1.7;
}

/* ══════════════════════════════════════
   RIGHT CONTENT
══════════════════════════════════════ */
.right-content {
    flex: 1;
    background: var(--surface);
    overflow-y: auto;
    height: 100vh;
    padding: 2.5rem 2.8rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-left: 300px;
}

.section-label {
    font-size: 0.62rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--line), transparent);
}

/* ── Project cards ── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.proj-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.4rem 1.3rem 1.3rem;
    transition: transform 0.22s, box-shadow 0.22s;
    animation: fadeUp 0.8s ease both;
    position: relative;
    overflow: hidden;
}
.proj-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2.5px;
    border-radius: 2px 2px 0 0;
}
.proj-card.c-river::before  { background: var(--river); }
.proj-card.c-pine::before   { background: var(--pine); }
.proj-card.c-steel::before  { background: var(--steel); }
.proj-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(58,98,114,0.1);
}
.proj-kicker {
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 0.4rem;
}
.proj-card h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--steel);
    margin-bottom: 0.45rem;
    line-height: 1.2;
}
.proj-card p {
    font-size: 0.76rem;
    color: var(--body-text);
    line-height: 1.72;
}
.proj-prog-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
}
.proj-prog-label { font-size: 0.6rem; letter-spacing: 0.08em; color: var(--dim); }
.prog-track { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.prog-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--glacier), var(--river)); }
.proj-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--river);
    text-decoration: none;
    border-bottom: 1px solid var(--glacier);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}
.proj-link:hover { color: var(--deep); border-color: var(--river); }

/* ── Two-col section ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* ── Notes ── */
.note-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    animation: fadeUp 0.8s ease both;
}
.note-item:first-child { padding-top: 0; }
.note-item:last-child { border-bottom: none; padding-bottom: 0; }
.note-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--steel);
    margin-bottom: 0.25rem;
}
.note-excerpt {
    font-size: 0.76rem;
    color: var(--body-text);
    line-height: 1.7;
    font-style: italic;
}
.note-date {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--faint);
    margin-top: 0.4rem;
}

/* ── Quick links ── */
.quick-links { display: flex; flex-direction: column; gap: 0.5rem; }
.quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 0.68rem 1rem;
    text-decoration: none;
    color: var(--body-text);
    font-size: 0.78rem;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    animation: fadeUp 0.8s ease both;
}
.quick-link:hover {
    background: var(--panel);
    border-color: var(--glacier);
    color: var(--deep);
}
.quick-link-arrow {
    color: var(--faint);
    font-size: 0.8rem;
    transition: color 0.2s, transform 0.2s;
}
.quick-link:hover .quick-link-arrow { color: var(--river); transform: translateX(3px); }

/* ── Activity ── */
.feed { display: flex; flex-direction: column; }
.feed-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 0.5rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    animation: fadeUp 0.8s ease both;
}
.feed-item:last-child { border-bottom: none; }
.feed-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4px;
    gap: 4px;
}
.feed-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--glacier);
    flex-shrink: 0;
}
.feed-dot.river { background: var(--river); }
.feed-dot.pine  { background: var(--pine); }
.feed-dot.stone { background: var(--stone); }
.feed-line-v {
    width: 1px;
    flex: 1;
    background: var(--line);
    min-height: 16px;
}
.feed-meta {
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    color: var(--dim);
    margin-bottom: 0.2rem;
}
.feed-text {
    font-size: 0.8rem;
    color: var(--body-text);
    line-height: 1.6;
}
.feed-text strong { font-weight: 500; color: var(--steel); }

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.projects-grid > *:nth-child(1) { animation-delay: 0.05s; }
.projects-grid > *:nth-child(2) { animation-delay: 0.12s; }
.projects-grid > *:nth-child(3) { animation-delay: 0.19s; }
.note-item:nth-child(1) { animation-delay: 0.05s; }
.note-item:nth-child(2) { animation-delay: 0.12s; }
.note-item:nth-child(3) { animation-delay: 0.19s; }
.feed-item:nth-child(1) { animation-delay: 0.05s; }
.feed-item:nth-child(2) { animation-delay: 0.12s; }
.feed-item:nth-child(3) { animation-delay: 0.19s; }
.feed-item:nth-child(4) { animation-delay: 0.26s; }
.quick-link:nth-child(1) { animation-delay: 0.04s; }
.quick-link:nth-child(2) { animation-delay: 0.09s; }
.quick-link:nth-child(3) { animation-delay: 0.14s; }
.quick-link:nth-child(4) { animation-delay: 0.19s; }
.quick-link:nth-child(5) { animation-delay: 0.24s; }
.quick-link:nth-child(6) { animation-delay: 0.29s; }

/* ── Mobile top bar ── */
.mobile-topbar {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 52px;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    z-index: 200;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
}
.mobile-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--ink);
    letter-spacing: 0.02em;
}
.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px;
}
.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 1px;
    background: var(--stone);
    transition: background 0.2s;
}
.mobile-menu-btn:hover span { background: var(--deep); }

/* Mobile drawer */
.mobile-drawer {
    display: none;
    position: fixed;
    top: 52px; left: 0; right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    z-index: 199;
    padding: 1rem 1.2rem 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-drawer.open {
    transform: translateY(0);
    opacity: 1;
}
.mobile-drawer a {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--stone);
    text-decoration: none;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--line);
}
.mobile-drawer a:last-child { border-bottom: none; }

/* Mobile stats strip */
.mobile-stats {
    display: none;
    position: fixed;
    top: 52px; left: 0; right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1.2rem;
    gap: 0;
    z-index: 198;
    transition: margin-top 0.25s ease;
}
.mobile-stat {
    flex: 1;
    text-align: center;
    border-right: 1px solid var(--line);
    padding: 0 0.5rem;
}
.mobile-stat:last-child { border-right: none; }
.mobile-stat-n {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--deep);
    line-height: 1;
}
.mobile-stat-l {
    font-size: 0.52rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dim);
    margin-top: 0.15rem;
}

@media (max-width: 900px) {
    .left-panel { display: none; }
    .right-content { margin-left: 0; padding-top: 1.2rem; }
    .mobile-topbar { display: flex; }
    .mobile-drawer { display: block; }
    .mobile-stats { display: flex; }
    .right-content { margin-top: 110px; }
    .projects-grid { grid-template-columns: 1fr 1fr; }
    .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .projects-grid { grid-template-columns: 1fr; }
    .right-content { padding: 1.2rem 1rem 3rem; }
}
/* ── FullCalendar grid line styling ── */
.fc .fc-timegrid-slot {
    border-top: none !important;
    height: 1.4em;
}
.fc .fc-timegrid-slots tr:nth-child(4n+1) td {
    border-top: 2px solid #444 !important;
}
.fc .fc-timegrid-slots tr:nth-child(4n+3) td {
    border-top: 1px solid #bbb !important;
}
.fc .fc-timegrid-slots tr:nth-child(4n+2) td,
.fc .fc-timegrid-slots tr:nth-child(4n) td {
    border-top: 1px dashed #ddd !important;
}
.fc .fc-timegrid-slot-label.fc-timegrid-slot-minor {
    display: none;
}