/* 1. Shared design tokens. Keep the two wireframe palettes in one place. */
:root {
    color-scheme: light;
    --background: #fff;
    --text: #111;
    --muted: #666;
    --surface: #e4e4e4;
    --surface-muted: #626262;
    --accent: #4f35e0;
    --header: #2d2d2d;
    --line: #AAAAAA;
    --focus: #7360EE;
    --column: 596px;
    --radius: 20px;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --background: #12111a;
    --text: #faf9fc;
    --muted: #c8c6cf;
    --surface: #272538;
    --surface-muted: #c8c6cf;
    --header: #272538;
    --line: #77737f;
    --focus: #7360EE;
}

/* The no-JavaScript fallback follows the operating system. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        color-scheme: dark;
        --background: #12111a;
        --text: #faf9fc;
        --muted: #c8c6cf;
        --surface: #272538;
        --surface-muted: #c8c6cf;
        --header: #272538;
        --line: #77737f;
        --focus: #7360EE;
    }
}

/* 2. Baseline and keyboard accessibility. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-wrap: break-word; scrollbar-gutter: stable; }
body { margin: 0; background: var(--background); color: var(--text); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, select { font: inherit; }
button, select, summary { cursor: pointer; }
button, a, select, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; border-radius: 3px; }
main:focus { outline: none; }
h1, h2, h3, h4, p, ul, dl { margin: 0; }
h1, h2, h3, h4 { line-height: 1.3; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 12px 18px; background: var(--background); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.icon { width: 24px; height: 24px; flex-shrink: 0; }

/* 3. Navigation, profile, and theme switch. */
.site-header { margin-top: 0; background: var(--header); color: #fff; }
.site-nav { width: min(var(--column), calc(100% - 40px)); min-height: 90px; margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.home-link { flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 44px; }
.projects-brand .home-link { width: 36px; }
.home-link img { width: 32px; height: 32px; }
.home-mark { width: 32px; height: 32px; }
.projects-brand .home-mark { width: 36px; height: 36px; }
/* app.js advances every tile together and pauses only at a complete grid. */
.home-mark path { transform-box: fill-box; transform-origin: center; }
/* Compact moves and holds each last 2.6875 seconds; squares stay separate. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .home-link .home-mark path:nth-child(1) { animation: home-tile-1 43s linear infinite paused; }
    .home-link .home-mark path:nth-child(2) { animation: home-tile-2 43s linear infinite paused; }
    .home-link .home-mark path:nth-child(3) { animation: home-tile-3 43s linear infinite paused; }
    .home-link .home-mark path:nth-child(4) { animation: home-tile-4 43s linear infinite paused; }
    .home-link .home-mark path:nth-child(5) { animation: home-tile-5 43s linear infinite paused; }
    .home-link .home-mark path:nth-child(6) { animation: home-tile-6 43s linear infinite paused; }
    .home-link .home-mark path:nth-child(7) { animation: home-tile-7 43s linear infinite paused; }
    .home-link .home-mark path:nth-child(8) { animation: home-tile-8 43s linear infinite paused; }
    .home-link .home-mark path:nth-child(9) { animation: home-tile-9 43s linear infinite paused; }
}
@keyframes home-tile-1 {
    0% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    1.5625% { transform: translate(1.68457px, -0.59661px) scale(0.85858); }
    3.125% { transform: translate(5.39062px, -1.26563px) scale(0.70000); }
    4.6875% { transform: translate(9.09668px, -0.59661px) scale(0.85858); }
    6.25% { transform: translate(10.78125px, 0.00000px) scale(1.00000); }
    12.5% { transform: translate(10.78125px, 0.00000px) scale(1.00000); }
    18.75% { transform: translate(10.78125px, 0.00000px) scale(1.00000); }
    25% { transform: translate(10.78125px, 0.00000px) scale(1.00000); }
    26.5625% { transform: translate(12.46582px, -0.59661px) scale(0.85858); }
    28.125% { transform: translate(16.17188px, -1.26563px) scale(0.70000); }
    29.6875% { transform: translate(19.87793px, -0.59661px) scale(0.85858); }
    31.25% { transform: translate(21.56250px, 0.00000px) scale(1.00000); }
    37.5% { transform: translate(21.56250px, 0.00000px) scale(1.00000); }
    43.75% { transform: translate(21.56250px, 0.00000px) scale(1.00000); }
    50% { transform: translate(21.56250px, 0.00000px) scale(1.00000); }
    56.25% { transform: translate(21.56250px, 0.00000px) scale(1.00000); }
    62.5% { transform: translate(21.56250px, 0.00000px) scale(1.00000); }
    64.0625% { transform: translate(19.87793px, -0.59661px) scale(0.85858); }
    65.625% { transform: translate(16.17188px, -1.26563px) scale(0.70000); }
    67.1875% { transform: translate(12.46582px, -0.59661px) scale(0.85858); }
    68.75% { transform: translate(10.78125px, 0.00000px) scale(1.00000); }
    75% { transform: translate(10.78125px, 0.00000px) scale(1.00000); }
    81.25% { transform: translate(10.78125px, 0.00000px) scale(1.00000); }
    87.5% { transform: translate(10.78125px, 0.00000px) scale(1.00000); }
    89.0625% { transform: translate(9.09668px, -0.59661px) scale(0.85858); }
    90.625% { transform: translate(5.39062px, -1.26563px) scale(0.70000); }
    92.1875% { transform: translate(1.68457px, -0.59661px) scale(0.85858); }
    93.75% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    100% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
}
@keyframes home-tile-2 {
    0% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    1.5625% { transform: translate(0.59661px, 1.68457px) scale(0.85858); }
    3.125% { transform: translate(1.26563px, 5.39062px) scale(0.70000); }
    4.6875% { transform: translate(0.59661px, 9.09668px) scale(0.85858); }
    6.25% { transform: translate(0.00000px, 10.78125px) scale(1.00000); }
    12.5% { transform: translate(0.00000px, 10.78125px) scale(1.00000); }
    14.0625% { transform: translate(1.68457px, 10.18464px) scale(0.85858); }
    15.625% { transform: translate(5.39062px, 9.51562px) scale(0.70000); }
    17.1875% { transform: translate(9.09668px, 10.18464px) scale(0.85858); }
    18.75% { transform: translate(10.78125px, 10.78125px) scale(1.00000); }
    25% { transform: translate(10.78125px, 10.78125px) scale(1.00000); }
    26.5625% { transform: translate(9.09668px, 11.37786px) scale(0.85858); }
    28.125% { transform: translate(5.39062px, 12.04688px) scale(0.70000); }
    29.6875% { transform: translate(1.68457px, 11.37786px) scale(0.85858); }
    31.25% { transform: translate(0.00000px, 10.78125px) scale(1.00000); }
    37.5% { transform: translate(0.00000px, 10.78125px) scale(1.00000); }
    39.0625% { transform: translate(0.59661px, 12.46582px) scale(0.85858); }
    40.625% { transform: translate(1.26563px, 16.17188px) scale(0.70000); }
    42.1875% { transform: translate(0.59661px, 19.87793px) scale(0.85858); }
    43.75% { transform: translate(0.00000px, 21.56250px) scale(1.00000); }
    50% { transform: translate(0.00000px, 21.56250px) scale(1.00000); }
    51.5625% { transform: translate(0.59661px, 19.87793px) scale(0.85858); }
    53.125% { transform: translate(1.26563px, 16.17188px) scale(0.70000); }
    54.6875% { transform: translate(0.59661px, 12.46582px) scale(0.85858); }
    56.25% { transform: translate(0.00000px, 10.78125px) scale(1.00000); }
    62.5% { transform: translate(0.00000px, 10.78125px) scale(1.00000); }
    64.0625% { transform: translate(1.68457px, 11.37786px) scale(0.85858); }
    65.625% { transform: translate(5.39062px, 12.04688px) scale(0.70000); }
    67.1875% { transform: translate(9.09668px, 11.37786px) scale(0.85858); }
    68.75% { transform: translate(10.78125px, 10.78125px) scale(1.00000); }
    75% { transform: translate(10.78125px, 10.78125px) scale(1.00000); }
    76.5625% { transform: translate(9.09668px, 10.18464px) scale(0.85858); }
    78.125% { transform: translate(5.39062px, 9.51562px) scale(0.70000); }
    79.6875% { transform: translate(1.68457px, 10.18464px) scale(0.85858); }
    81.25% { transform: translate(0.00000px, 10.78125px) scale(1.00000); }
    87.5% { transform: translate(0.00000px, 10.78125px) scale(1.00000); }
    89.0625% { transform: translate(0.59661px, 9.09668px) scale(0.85858); }
    90.625% { transform: translate(1.26563px, 5.39062px) scale(0.70000); }
    92.1875% { transform: translate(0.59661px, 1.68457px) scale(0.85858); }
    93.75% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    100% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
}
@keyframes home-tile-3 {
    0% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    6.25% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    12.5% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    18.75% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    25% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    26.5625% { transform: translate(0.59661px, 1.68457px) scale(0.85858); }
    28.125% { transform: translate(1.26563px, 5.39062px) scale(0.70000); }
    29.6875% { transform: translate(0.59661px, 9.09668px) scale(0.85858); }
    31.25% { transform: translate(0.00000px, 10.78125px) scale(1.00000); }
    37.5% { transform: translate(0.00000px, 10.78125px) scale(1.00000); }
    43.75% { transform: translate(0.00000px, 10.78125px) scale(1.00000); }
    50% { transform: translate(0.00000px, 10.78125px) scale(1.00000); }
    56.25% { transform: translate(0.00000px, 10.78125px) scale(1.00000); }
    62.5% { transform: translate(0.00000px, 10.78125px) scale(1.00000); }
    64.0625% { transform: translate(0.59661px, 9.09668px) scale(0.85858); }
    65.625% { transform: translate(1.26563px, 5.39062px) scale(0.70000); }
    67.1875% { transform: translate(0.59661px, 1.68457px) scale(0.85858); }
    68.75% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    75% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    81.25% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    87.5% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    93.75% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    100% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
}
@keyframes home-tile-4 {
    0% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    6.25% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    12.5% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    14.0625% { transform: translate(0.59661px, 1.68457px) scale(0.85858); }
    15.625% { transform: translate(1.26563px, 5.39062px) scale(0.70000); }
    17.1875% { transform: translate(0.59661px, 9.09668px) scale(0.85858); }
    18.75% { transform: translate(0.00000px, 10.78125px) scale(1.00000); }
    25% { transform: translate(0.00000px, 10.78125px) scale(1.00000); }
    31.25% { transform: translate(0.00000px, 10.78125px) scale(1.00000); }
    37.5% { transform: translate(0.00000px, 10.78125px) scale(1.00000); }
    43.75% { transform: translate(0.00000px, 10.78125px) scale(1.00000); }
    50% { transform: translate(0.00000px, 10.78125px) scale(1.00000); }
    56.25% { transform: translate(0.00000px, 10.78125px) scale(1.00000); }
    62.5% { transform: translate(0.00000px, 10.78125px) scale(1.00000); }
    68.75% { transform: translate(0.00000px, 10.78125px) scale(1.00000); }
    75% { transform: translate(0.00000px, 10.78125px) scale(1.00000); }
    76.5625% { transform: translate(0.59661px, 9.09668px) scale(0.85858); }
    78.125% { transform: translate(1.26563px, 5.39062px) scale(0.70000); }
    79.6875% { transform: translate(0.59661px, 1.68457px) scale(0.85858); }
    81.25% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    87.5% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    93.75% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    100% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
}
@keyframes home-tile-5 {
    0% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    1.5625% { transform: translate(-1.68457px, 0.59661px) scale(0.85858); }
    3.125% { transform: translate(-5.39062px, 1.26563px) scale(0.70000); }
    4.6875% { transform: translate(-9.09668px, 0.59661px) scale(0.85858); }
    6.25% { transform: translate(-10.78125px, 0.00000px) scale(1.00000); }
    12.5% { transform: translate(-10.78125px, 0.00000px) scale(1.00000); }
    18.75% { transform: translate(-10.78125px, 0.00000px) scale(1.00000); }
    25% { transform: translate(-10.78125px, 0.00000px) scale(1.00000); }
    31.25% { transform: translate(-10.78125px, 0.00000px) scale(1.00000); }
    37.5% { transform: translate(-10.78125px, 0.00000px) scale(1.00000); }
    39.0625% { transform: translate(-9.09668px, -0.59661px) scale(0.85858); }
    40.625% { transform: translate(-5.39062px, -1.26563px) scale(0.70000); }
    42.1875% { transform: translate(-1.68457px, -0.59661px) scale(0.85858); }
    43.75% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    50% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    51.5625% { transform: translate(-1.68457px, -0.59661px) scale(0.85858); }
    53.125% { transform: translate(-5.39062px, -1.26563px) scale(0.70000); }
    54.6875% { transform: translate(-9.09668px, -0.59661px) scale(0.85858); }
    56.25% { transform: translate(-10.78125px, 0.00000px) scale(1.00000); }
    62.5% { transform: translate(-10.78125px, 0.00000px) scale(1.00000); }
    68.75% { transform: translate(-10.78125px, 0.00000px) scale(1.00000); }
    75% { transform: translate(-10.78125px, 0.00000px) scale(1.00000); }
    81.25% { transform: translate(-10.78125px, 0.00000px) scale(1.00000); }
    87.5% { transform: translate(-10.78125px, 0.00000px) scale(1.00000); }
    89.0625% { transform: translate(-9.09668px, 0.59661px) scale(0.85858); }
    90.625% { transform: translate(-5.39062px, 1.26563px) scale(0.70000); }
    92.1875% { transform: translate(-1.68457px, 0.59661px) scale(0.85858); }
    93.75% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    100% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
}
@keyframes home-tile-6 {
    0% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    1.5625% { transform: translate(-0.59661px, -1.68457px) scale(0.85858); }
    3.125% { transform: translate(-1.26563px, -5.39062px) scale(0.70000); }
    4.6875% { transform: translate(-0.59661px, -9.09668px) scale(0.85858); }
    6.25% { transform: translate(0.00000px, -10.78125px) scale(1.00000); }
    12.5% { transform: translate(0.00000px, -10.78125px) scale(1.00000); }
    18.75% { transform: translate(0.00000px, -10.78125px) scale(1.00000); }
    25% { transform: translate(0.00000px, -10.78125px) scale(1.00000); }
    31.25% { transform: translate(0.00000px, -10.78125px) scale(1.00000); }
    37.5% { transform: translate(0.00000px, -10.78125px) scale(1.00000); }
    43.75% { transform: translate(0.00000px, -10.78125px) scale(1.00000); }
    50% { transform: translate(0.00000px, -10.78125px) scale(1.00000); }
    56.25% { transform: translate(0.00000px, -10.78125px) scale(1.00000); }
    62.5% { transform: translate(0.00000px, -10.78125px) scale(1.00000); }
    68.75% { transform: translate(0.00000px, -10.78125px) scale(1.00000); }
    75% { transform: translate(0.00000px, -10.78125px) scale(1.00000); }
    81.25% { transform: translate(0.00000px, -10.78125px) scale(1.00000); }
    87.5% { transform: translate(0.00000px, -10.78125px) scale(1.00000); }
    89.0625% { transform: translate(-0.59661px, -9.09668px) scale(0.85858); }
    90.625% { transform: translate(-1.26563px, -5.39062px) scale(0.70000); }
    92.1875% { transform: translate(-0.59661px, -1.68457px) scale(0.85858); }
    93.75% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    100% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
}
@keyframes home-tile-7 {
    0% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    6.25% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    12.5% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    18.75% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    25% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    31.25% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    37.5% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    39.0625% { transform: translate(-0.59661px, -1.68457px) scale(0.85858); }
    40.625% { transform: translate(-1.26563px, -5.39062px) scale(0.70000); }
    42.1875% { transform: translate(-0.59661px, -9.09668px) scale(0.85858); }
    43.75% { transform: translate(0.00000px, -10.78125px) scale(1.00000); }
    50% { transform: translate(0.00000px, -10.78125px) scale(1.00000); }
    51.5625% { transform: translate(-0.59661px, -9.09668px) scale(0.85858); }
    53.125% { transform: translate(-1.26563px, -5.39062px) scale(0.70000); }
    54.6875% { transform: translate(-0.59661px, -1.68457px) scale(0.85858); }
    56.25% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    62.5% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    68.75% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    75% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    81.25% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    87.5% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    93.75% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    100% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
}
@keyframes home-tile-8 {
    0% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    6.25% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    12.5% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    14.0625% { transform: translate(-0.59661px, -1.68457px) scale(0.85858); }
    15.625% { transform: translate(-1.26563px, -5.39062px) scale(0.70000); }
    17.1875% { transform: translate(-0.59661px, -9.09668px) scale(0.85858); }
    18.75% { transform: translate(0.00000px, -10.78125px) scale(1.00000); }
    25% { transform: translate(0.00000px, -10.78125px) scale(1.00000); }
    26.5625% { transform: translate(-0.59661px, -12.46582px) scale(0.85858); }
    28.125% { transform: translate(-1.26563px, -16.17188px) scale(0.70000); }
    29.6875% { transform: translate(-0.59661px, -19.87793px) scale(0.85858); }
    31.25% { transform: translate(0.00000px, -21.56250px) scale(1.00000); }
    37.5% { transform: translate(0.00000px, -21.56250px) scale(1.00000); }
    43.75% { transform: translate(0.00000px, -21.56250px) scale(1.00000); }
    50% { transform: translate(0.00000px, -21.56250px) scale(1.00000); }
    56.25% { transform: translate(0.00000px, -21.56250px) scale(1.00000); }
    62.5% { transform: translate(0.00000px, -21.56250px) scale(1.00000); }
    64.0625% { transform: translate(-0.59661px, -19.87793px) scale(0.85858); }
    65.625% { transform: translate(-1.26563px, -16.17188px) scale(0.70000); }
    67.1875% { transform: translate(-0.59661px, -12.46582px) scale(0.85858); }
    68.75% { transform: translate(0.00000px, -10.78125px) scale(1.00000); }
    75% { transform: translate(0.00000px, -10.78125px) scale(1.00000); }
    76.5625% { transform: translate(-0.59661px, -9.09668px) scale(0.85858); }
    78.125% { transform: translate(-1.26563px, -5.39062px) scale(0.70000); }
    79.6875% { transform: translate(-0.59661px, -1.68457px) scale(0.85858); }
    81.25% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    87.5% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    93.75% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    100% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
}
@keyframes home-tile-9 {
    0% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    6.25% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    12.5% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    14.0625% { transform: translate(-1.68457px, 0.59661px) scale(0.85858); }
    15.625% { transform: translate(-5.39062px, 1.26563px) scale(0.70000); }
    17.1875% { transform: translate(-9.09668px, 0.59661px) scale(0.85858); }
    18.75% { transform: translate(-10.78125px, 0.00000px) scale(1.00000); }
    25% { transform: translate(-10.78125px, 0.00000px) scale(1.00000); }
    31.25% { transform: translate(-10.78125px, 0.00000px) scale(1.00000); }
    37.5% { transform: translate(-10.78125px, 0.00000px) scale(1.00000); }
    39.0625% { transform: translate(-12.46582px, 0.59661px) scale(0.85858); }
    40.625% { transform: translate(-16.17188px, 1.26563px) scale(0.70000); }
    42.1875% { transform: translate(-19.87793px, 0.59661px) scale(0.85858); }
    43.75% { transform: translate(-21.56250px, 0.00000px) scale(1.00000); }
    50% { transform: translate(-21.56250px, 0.00000px) scale(1.00000); }
    51.5625% { transform: translate(-19.87793px, 0.59661px) scale(0.85858); }
    53.125% { transform: translate(-16.17188px, 1.26563px) scale(0.70000); }
    54.6875% { transform: translate(-12.46582px, 0.59661px) scale(0.85858); }
    56.25% { transform: translate(-10.78125px, 0.00000px) scale(1.00000); }
    62.5% { transform: translate(-10.78125px, 0.00000px) scale(1.00000); }
    68.75% { transform: translate(-10.78125px, 0.00000px) scale(1.00000); }
    75% { transform: translate(-10.78125px, 0.00000px) scale(1.00000); }
    76.5625% { transform: translate(-9.09668px, 0.59661px) scale(0.85858); }
    78.125% { transform: translate(-5.39062px, 1.26563px) scale(0.70000); }
    79.6875% { transform: translate(-1.68457px, 0.59661px) scale(0.85858); }
    81.25% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    87.5% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    93.75% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
    100% { transform: translate(0.00000px, 0.00000px) scale(1.00000); }
}
.projects-link { font-weight: 650; text-decoration: none; }
.projects-header { background: var(--header); color: #fff; }
.projects-header .site-nav { min-height: 125px; gap: 24px; }
.projects-brand { display: flex; align-items: center; align-self: stretch; gap: 24px; min-width: 0; transform-origin: left center; transition: transform .22s ease; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .projects-brand:hover { transform: scale(1.03); }
}
.projects-header .projects-link { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.projects-link-title { font-size: 16px; font-weight: 650; line-height: 1.3; }
.projects-link-subtitle { color: #c8c6cf; font-size: 12px; font-weight: 400; line-height: 1.5; }
.projects-header .language-control select { color: #fff; }
.language-control { margin-left: auto; position: relative; }
.language-trigger { display: flex; align-items: center; gap: 16px; min-height: 44px; padding: 8px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; font-weight: 650; }
.language-trigger:hover { background: rgb(127 127 127 / .12); }
.language-menu { position: absolute; top: calc(100% - 75px); left: calc(100% + 10px); z-index: 30; display: grid; gap: 2px; min-width: 136px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); box-shadow: 0 8px 24px #0003; }
.language-menu.is-left { right: calc(100% + 10px); left: auto; }
.language-menu[hidden] { display: none; }
.language-option { min-height: 40px; padding: 8px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; text-align: left; transition: color .18s ease, background-color .18s ease; }
.language-option:hover, .language-option:focus-visible, .language-option[aria-selected="true"] { background: var(--surface-muted); color: var(--background); }
.language-control select option { background: var(--header); color: #fff; }
.language-control .chevron { width: 17px; height: 17px; pointer-events: none; }
.language-label { margin-left: auto; }
.language-label abbr { text-decoration: none; }
@media (max-width: 600px) {
    .projects-header .site-nav { gap: 14px; min-height: 125px; }
    .projects-brand { gap: 20px; }
    .projects-header .language-trigger { gap: 10px; padding-inline: 4px; }
    .projects-link-subtitle { max-width: 210px; }
}
.profile { width: min(var(--column), calc(100% - 40px)); margin: 50px auto 0; text-align: center; }
.profile-photo { width: 92px; height: 92px; object-fit: cover; object-position: center 42%; margin: 0 auto; border-radius: 20px; border: 1px solid var(--line); }
.profile h1 { font-size: 28px; letter-spacing: -.7px; font-weight: 700; margin-top: 24px; }
.profile-role { margin-top: 20px; color: var(--muted); font-size: 18px; }
.profile-email { display: inline-block; margin-top: 7px; color: var(--muted); font-size: 18px; text-decoration: none; overflow-wrap: anywhere; }
.profile-email:hover { text-decoration: underline; }
.theme-toggle { position: relative; display: block; width: 55px; height: 28px; min-width: 55px; margin: 32px auto 0; padding: 0; border: 0; border-radius: 20px; background: #767676; }
.theme-toggle::before { content: ""; position: absolute; inset: -8px; }
.theme-thumb { position: absolute; top: 1px; right: 1px; display: grid; place-items: center; width: 27px; height: 26px; border-radius: 50%; background: white; color: #12111a; transition: transform .18s ease; }
.theme-thumb .icon { width: 20px; height: 20px; }
.moon-icon { display: none; }
[data-theme="dark"] .theme-toggle { background: var(--accent); }
[data-theme="dark"] .theme-thumb { transform: translateX(-26px); }
[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }
.page-theme { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); right: 20px; z-index: 5; padding: 8px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: 0 8px 24px #0002; }
.page-theme .theme-toggle { margin: 0; }

/* 4. The conversation is a normal document, styled as a transcript. */
.conversation { width: min(var(--column), calc(100% - 40px)); margin: 38px auto 54px; }
.conversation-toolbar { display: flex; align-items: center; gap: 28px; margin-bottom: 16px; }
.conversation-date { flex: 1; display: flex; align-items: center; gap: 28px; text-align: center; color: var(--muted); font-size: 16px; white-space: nowrap; }
.conversation-date::before, .conversation-date::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.show-all { display: block; flex-shrink: 0; margin: 0; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 30px; padding: 8px 14px; font-size: 13px; min-height: 36px; }
.show-all:hover { color: var(--text); border-color: var(--text); }
.show-all:disabled { cursor: default; border-color: transparent; }
.show-all--floating { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 10; max-width: calc(100% - 40px); min-height: 44px; background: var(--surface); box-shadow: 0 4px 16px #0002; }
.exchange { margin-top: 28px; }
.message { max-width: 392px; width: fit-content; }
.message--outgoing { max-width: 385px; margin: 0 0 18px auto; position: relative; padding-top: 30px; }
.message--outgoing > .message-sender { position: absolute; top: 0; right: 12px; }
.message-sender { color: var(--muted); font-size: 16px; font-weight: 500; }
.message--outgoing h3 { padding: 20px; border-radius: var(--radius) var(--radius) 0 var(--radius); background: var(--accent); color: white; font-size: 16px; font-weight: 400; line-height: 1.45; }
.reply-group { position: relative; padding-left: 65px; }
.reply-group > .message-sender { margin: 0 0 0 14px; }
.message--incoming { padding: 20px; border-radius: var(--radius) var(--radius) var(--radius) 0; background: var(--surface); margin-top: 10px; }
.message--incoming.project-card { width: 368px; max-width: 100%; }
.message--incoming p + p { margin-top: 22px; }
/* Let translated text wrap naturally without increasing the bubble limits. */
.message--outgoing h3,
.message--incoming:not(.project-card):not(.tools-card):not(.experience-card) {
    padding-right: clamp(12px, 3vw, 20px);
}
.message--outgoing h3,
.message--incoming:not(.project-card) > p {
    text-wrap: pretty;
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
}
.message-avatar { position: absolute; left: 0; bottom: 0; width: 44px; height: 44px; object-fit: cover; object-position: center 42%; border-radius: 50%; border: 1px solid var(--line); }
.message--fit-text > h3, .message--fit-text > p { text-wrap: wrap; }
.message--incoming a, .contact-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; text-decoration: none; }
.message--incoming a { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }
.message a::after, .code-card a::after, .project-case-link::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 23px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url("Assets/link-icon.svg") center / contain no-repeat;
    mask: url("Assets/link-icon.svg") center / contain no-repeat;
}
.message a:hover { text-decoration: underline; }
.greeting-emoji { display: inline-block; vertical-align: middle; }
.pending-content { color: var(--surface-muted); font-size: 14px; }
.message .pending-content, .project-card > .pending-content { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 18px; }
.contact-list { list-style: none; padding: 0; }
.contact-list li + li { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.contact-list .pending-content { display: block; border: 0; padding: 8px 0; margin: 0; }
.contact-list a.project-case-link { display: flex; align-items: center; justify-content: space-between;gap: 16px; color: var(--text); font-size: 16px; font-weight: 300; }
.contact-list a { border: 0; margin: 0; padding: 0; }
.personal-image { width: 328px; height: auto; aspect-ratio: 328 / 267; object-fit: cover; object-position: center 68%; border-radius: 18px; margin: 20px auto 0; }
.tools-card { min-width: min(255px, 100%); }
.tools-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.tool { min-width: 0; }
.tool:first-child { grid-column: 1 / -1; }
.tool dt { font-weight: 650; margin-bottom: 8px; }
.tool dd { margin: 0; }
.adobe-icons { display: flex; gap: 8px; }
.adobe-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 5px; font-size: 22px; font-weight: 650; background: #001e36; color: #31a8ff; }
.adobe-icon.id { background: #49021f; color: #ff5ca1; }
.adobe-icon.ai { background: #330000; color: #ffad33; }
.brand-icon { width: 32px; height: 32px; }
.brand-icon[src$="vs-code-icon.svg"],
.brand-icon[src$="angular-icon.svg"] { width: 28px; height: 28px; }
.tool-description { margin-top: 6px !important; font-size: 12px; color: var(--surface-muted); }
.experience-card { width: 392px; }
.experience-card details + details { margin-top: 22px; }
summary { position: relative; list-style: none; font-weight: 550; padding-right: 28px; min-height: 30px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 2px; top: 8px; width: 8px; height: 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
details[open] > summary::after { top: 12px; transform: rotate(225deg); }
.experience-card p { margin-top: 12px; }
.experience-card p + p { margin-top: 10px; }
.experience-meta, .experience-dates { color: var(--surface-muted); font-size: 14px; }

/* 5. Animation keeps all final geometry reserved: no auto-scroll or jumping. */
.conversation.is-playing .exchange, .conversation.is-playing .message--incoming, .conversation.is-playing .message-avatar, .conversation.is-playing .reply-group > .message-sender { overflow-anchor: none; }
.is-pending { visibility: hidden; pointer-events: none; }
.message-slot { position: relative; display: flow-root; }
.message-slot > .message--incoming { margin-top: 9px; }
.message-slot > .message-avatar { left: -65px; }
.message-slot > .message-avatar.is-typing { top: 14px; bottom: auto; }
.message.is-revealed { animation: message-in .3s ease-out both; }
.message-slot .typing-indicator { position: absolute; top: 14px; left: 0; display: flex; align-items: center; justify-content: center; gap: 5px; width: 64px; height: 40px; border-radius: 22px; background: var(--surface); animation: message-in .2s ease-out both; }
.typing-indicator::before, .typing-indicator::after { content: ""; position: absolute; border-radius: 50%; background: var(--surface); }
.typing-indicator::before { width: 10px; height: 10px; left: -2px; bottom: -2px; }
.typing-indicator::after { width: 5px; height: 5px; left: -6px; bottom: -7px; }
.typing-indicator span { width: 7px; height: 7px; background: var(--surface-muted); border-radius: 50%; animation: typing-dot 1.15s ease-in-out infinite; }
.typing-indicator span:nth-child(2) { animation-delay: .15s; }
.typing-indicator span:nth-child(3) { animation-delay: .3s; }
.message-slot--outgoing .typing-indicator { top: 30px; left: auto; right: 0; background: var(--accent); }
.message-slot--outgoing .typing-indicator::before { left: auto; right: -2px; background: var(--accent); }
.message-slot--outgoing .typing-indicator::after { left: auto; right: -6px; background: var(--accent); }
.message-slot--outgoing .typing-indicator span { background: #fff; }
@keyframes message-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes typing-dot { 0%, 65%, 100% { transform: translateY(0) scale(.85); opacity: .35; } 30% { transform: translateY(-3px) scale(1); opacity: .9; } }

/* 6. Project collections and the long-form legal page. */
.projects-page { margin: 80px 0 70px max(20px, calc((100% - var(--column)) / 2)); padding-right: 20px; min-width: 0; }
.project-category + .project-category { margin-top: 40px; }
.project-category h2 { display: flex; align-items: baseline; gap: 22px; font-size: 26px; font-weight: 650; margin-bottom: 30px; letter-spacing: -.4px; }
.projects-page .project-category h2 > span[data-i18n] { position: relative; top: -4px; }
.category-number { color: var(--focus); font-size: 40px; font-weight: 700; letter-spacing: -1px; }
.project-row { display: flex; gap: 28px; padding: 6px 5px 20px; margin: -6px -5px -20px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #7360EE transparent; padding-bottom: 40px; list-style: none; }
.project-row::-webkit-scrollbar { height: 3px; }
.project-row { --scrollbar-opacity: 0; scrollbar-color: rgb(115 96 238 / var(--scrollbar-opacity)) transparent; }
.project-row::-webkit-scrollbar-track { background: transparent; border-radius: 10px; }
.project-row::-webkit-scrollbar-thumb { background: rgb(115 96 238 / var(--scrollbar-opacity)); border-radius: 10px; }
@supports selector(::-webkit-scrollbar) {
    .project-row { scrollbar-width: auto; scrollbar-color: auto; }
}
.project-row > li { flex: 0 0 388px; min-width: 0; scroll-snap-align: start; }
.project-row { padding-top: 16px; margin-top: -16px; }
.project-row > li { position: relative; opacity: var(--card-opacity, 1); transition: opacity .25s ease; }
.project-row > li > article { transform-origin: center bottom; transition: transform .25s ease; }
.project-row > li:first-child > article { transform-origin: left bottom; }
.project-row > li:last-child:not(:first-child) > article { transform-origin: right bottom; }
.project-row:has(> li:only-child) { overflow: visible; }
.project-row > li:focus-within { opacity: 1; z-index: 1; }
.project-row > li.is-pointer-hover { opacity: 1; z-index: 1; }
.project-row > li.is-pointer-hover > article { transform: scale(1.025); }
@media (hover: hover) and (pointer: fine) {
    .project-row > li:hover { opacity: 1; z-index: 1; }
    .project-row > li:hover > article { transform: scale(1.025); }
}
@media (prefers-reduced-motion: reduce) {
    .project-row > li, .project-row > li > article { transition: none; }
    .project-row > li:hover > article, .project-row > li.is-pointer-hover > article { transform: none; }
}
@media print {
    .project-row > li { opacity: 1; }
}
.project-card { padding: 20px; border-radius: 20px; background: var(--surface); height: 100%; }
.project-row:not(.artwork-row) > li > .project-card { display: flex; flex-direction: column; }
.project-card h3, .project-card h4 { font-size: 16px; font-weight: 550; margin-top: 20px; line-height: 1.45; }
.project-card p { margin-top: 12px; }
.project-row:not(.artwork-row) > li > .project-card > p { flex: 1; }
.project-case-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; text-decoration: none; color: var(--text); font-size: 16px; font-weight: 300; }
.project-row:not(.artwork-row) > li > .project-card > .project-case-link { margin-top: 18px; }
.project-case-link:hover span { text-decoration: underline; }
.project-image { width: 100%; height: auto; aspect-ratio: 328 / 200; object-fit: cover; object-position: center top; border-radius: 18px; }
.artwork-row > li { flex-basis: 244px; }
.artwork-placeholder { display: grid; place-items: center; text-align: center; padding: 20px; height: 263px; border-radius: 18px; background: var(--surface); color: var(--surface-muted); font-size: 14px; }
.artwork-card {
    position: relative;
    isolation: isolate;
    padding-bottom: 8px;
}
.artwork-display {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    height: 336px;
    padding: 54px 23px 24px;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(ellipse 50% 115px at 50% 28px,
        light-dark(#edf4ff, rgb(255 215 158 / .21)),
        light-dark(#dce5f34d, rgb(255 215 158 / .10)) 40%,
        light-dark(#dce5f314, rgb(255 215 158 / .03)) 72%, transparent);
}
.artwork-display::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 32px;
    pointer-events: none;
    background:
        linear-gradient(90deg, #513219, #d5aa65, #634123) center top / 3px 19px no-repeat,
        radial-gradient(circle, #bb8949, #6a482b 54%, #bc8d4f 64%, transparent 74%) center bottom / 19px 19px no-repeat;
}
.artwork-display::after {
    content: "";
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 38%;
    height: 8px;
    border: 1px solid #795329;
    border-radius: 3px;
    background:
        linear-gradient(90deg, #634226, transparent 7% 92%, #684426),
        linear-gradient(#daa95f, #704621 32%, #f8de9a 72%, #94612e);
    box-shadow: 0 3px 6px light-dark(#28273150, #160e08),
        0 9px 16px light-dark(#e0ebff99, #ffc47e77);
    pointer-events: none;
}
.artwork-display > img, .artwork-dialog-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 244px;
    border: 6px ridge #b8894d;
    border-radius: 0;
    box-shadow:
        0 0 0 1px #4c3019,
        0 0 0 3px #bd9155,
        0 0 0 4px #795128,
        0 0 0 6px #56361e,
        0 0 0 8px #976a39,
        0 -1px 0 9px #d4a763,
        0 1px 0 10px #53371f,
        var(--painting-shadow);
}
.artwork-display { --painting-shadow: 0 14px 14px 6px rgb(38 39 47 / .32); }
:root[data-theme="dark"] .artwork-display { --painting-shadow: -4px 13px 12px 7px rgb(14 8 6 / .74); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .artwork-display { --painting-shadow: -4px 13px 12px 7px rgb(14 8 6 / .74); }
}
.artwork-card h3 {
    margin: 12px 6px 0;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    text-transform: uppercase;
}
.artwork-card > p {
    margin: 8px 6px 0;
    color: var(--surface-muted);
    font-size: 13px;
}
.artwork-card > p + p { margin-top: 0; }
.artwork-open { position: absolute; inset: 0; z-index: 1; width: 100%; border: 0; border-radius: 18px; background: transparent; cursor: zoom-in; }
.artwork-open:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.artwork-dialog { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 38px 64px 28px; border: 0; background: transparent; color: var(--text); overflow: auto; }
.artwork-dialog::backdrop { background: rgb(245 246 252 / .7); backdrop-filter: blur(12px); }
:root[data-theme="dark"] .artwork-dialog::backdrop { background: rgb(12 10 18 / .72); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .artwork-dialog::backdrop { background: rgb(12 10 18 / .72); } }
.artwork-dialog-close { position: fixed; top: 24px; right: 28px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--surface-muted); font-size: 32px; line-height: 1; }
.artwork-dialog[open], .artwork-dialog[open]::backdrop { animation: artwork-fade-in .3s ease both; }
.artwork-dialog.is-closing, .artwork-dialog.is-closing::backdrop { animation: artwork-fade-out .25s ease both; }
@keyframes artwork-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes artwork-fade-out { from { opacity: 1; } to { opacity: 0; } }
.artwork-dialog-content { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 48px; min-height: calc(100dvh - 66px); }
.artwork-dialog-image-wrap { position: relative; width: fit-content; max-width: 100%; cursor: zoom-in; touch-action: none; }
.artwork-dialog-image-wrap.is-loading { cursor: progress; }
.artwork-dialog-image-wrap.is-loading::after { content: ""; position: absolute; right: 20px; bottom: 20px; width: 22px; height: 22px; border: 2px solid rgb(255 255 255 / .35); border-top-color: #fff; border-radius: 50%; background: rgb(0 0 0 / .15); animation: artwork-loading .8s linear infinite; pointer-events: none; }
@keyframes artwork-loading { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .artwork-dialog-image-wrap.is-loading::after { animation: none; } }
.artwork-dialog-image {
    display: block; width: auto; height: auto;
    max-width: min(76vw, 860px); max-height: min(72dvh, 900px);
    object-fit: contain;
    border: 12px ridge #b8894d;
    box-shadow:
        0 0 0 2px #4c3019,
        0 0 0 6px #bd9155,
        0 0 0 8px #795128,
        0 0 0 12px #56361e,
        0 0 0 16px #976a39,
        0 -2px 0 18px #d4a763,
        0 2px 0 20px #53371f,
        0 24px 30px 18px light-dark(rgb(38 39 47 / .32), rgb(14 8 6 / .74));
}
.artwork-magnifier { position: absolute; z-index: 1; width: clamp(130px, 18vw, 230px); aspect-ratio: 1; border: 0; border-radius: 50%; background-color: var(--surface); background-repeat: no-repeat; box-shadow: 0 12px 30px rgb(0 0 0 / .3); pointer-events: none; transform: translate(-50%, -50%); }
.artwork-dialog-content h3 { margin: 0 0 12px; text-transform: uppercase; font-size: clamp(17px, 2vw, 23px); }
.artwork-dialog-description { text-align: center; padding-bottom: 12px; }
.artwork-dialog-description > p { margin: 2px 0 0; color: var(--surface-muted); }
@media (max-width: 600px) {
    .artwork-dialog { padding: 70px 24px 24px; }
    .artwork-dialog-close { right: 12px; top: 12px; }
    .artwork-dialog-content { min-height: calc(100dvh - 94px); gap: 44px; }
    .artwork-dialog-image { max-width: calc(100vw - 96px); max-height: 60dvh; }
}
html:has(.artwork-dialog[open]) { overflow: hidden; }
.code-card { position: relative; max-width: 480px; padding-left: 76px; }
.code-card > .icon { position: absolute; top: 24px; left: 20px; width: 40px; height: 40px; }
.code-card h3 { margin-top: 0; }
.code-card a { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); text-decoration: none; }
.code-card a:hover span {text-decoration: underline; }
.project-technologies { color: var(--surface-muted); font-size: 14px; }
.legal-page { width: min(var(--column), calc(100% - 40px)); margin: 80px auto 70px; color: var(--muted); }
.legal-page > .pending-content { font-size: 13px; line-height: 1.6; border-left: 2px solid var(--accent); padding-left: 14px; }
.legal-page > nav { display: flex; flex-wrap: wrap; gap: 20px; margin: 24px 0 36px; }
.legal-page h1, .legal-page h2 { color: var(--text); font-size: 28px; margin: 38px 0 20px; letter-spacing: -.6px; }
.legal-page h3 { font-size: 16px; margin: 28px 0 20px; font-weight: 650; }
.legal-page p + p, .legal-page p + ul, .legal-page ul + p { margin-top: 22px; }
.legal-page address { font-style: normal; }
.legal-page ul { padding-left: 24px; }
.legal-page section { scroll-margin-top: 24px; }

/* 7. Shared footer. Missing destinations remain clearly marked, non-clickable text. */
.site-footer { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 10px 18px; width: min(var(--column), calc(100% - 40px)); margin-inline: auto; border-top: 1px solid var(--line); padding: 24px 0 50px; font-size: 13px; }
.site-footer > p { white-space: nowrap; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; margin-left: 55px; font-weight: 600; }
.social-links li + li::before { content: "·"; color: var(--muted); margin-right: 10px; }
.pending-profile { color: inherit; }

/* 8. Mobile matches the 390px reference and remains usable down to 320px. */
@media (max-width: 600px) {
    html { scrollbar-gutter: auto; }
    /* .site-header { margin-top: 0; } */
    .site-nav { gap: 16px; }
    .language-control { gap: 6px; }
    .profile { margin-top: 50px; }
    .profile h1 { margin-top: 24px; }
    .profile-role { max-width: 320px; margin-inline: auto; margin-top: 22px; }
    .profile-email { margin-top: 8px; }
    .theme-toggle { margin-top: 32px; }
    .conversation { margin-top: 40px; margin-bottom: 60px; }
    .conversation-date { gap: 16px; font-size: 14px; }
    .conversation-toolbar { gap: 14px; }
    .show-all { font-size: 12px; padding-inline: 10px; }
    .reply-group { padding-left: 0; }
    .reply-group > .message-sender { margin-left: 10px; }
    .message-avatar { display: none; }
    .message { max-width: 90%; }
    .message--incoming { padding: 20px 15px; }
    .message--outgoing { max-width: 94%; }
    .message--outgoing h3 { padding: 18px 16px; }
    .message--outgoing h3 { padding-right: clamp(12px, 3vw, 16px); }
    .message--incoming:not(.project-card):not(.tools-card):not(.experience-card) { padding-right: clamp(12px, 3vw, 15px); }
    .exchange { margin-top: 26px; }
    .typing-indicator { left: 0; }
    .tools-card { min-width: 230px; }
    .experience-card { width: 100%; }
    .projects-page { margin: 48px 0 60px; padding-inline: 20px; }
    .project-category h2 { font-size: 23px; gap: 14px; margin-bottom: 22px; }
    .category-number { font-size: 36px; }
    .project-row { gap: 20px; }
    .project-row > li { flex-basis: min(350px, calc(100vw - 40px)); }
    .project-card { padding: 20px 15px; }
    .artwork-row > li { flex-basis: 244px; }
    .code-card { padding-left: 68px; }
    .code-card > .icon { left: 15px; }
    .legal-page { margin-top: 48px; }
    .site-footer { justify-content: flex-start; gap: 14px; padding-bottom: 34px; }
    .site-footer > p { flex-basis: 100%; }
    .social-links { margin-left: 0; flex-basis: 100%; }
    .page-theme { right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    .site-header, .skip-link, .show-all, .theme-toggle, .page-theme { display: none !important; }
    body { background: white; color: black; }
    .is-pending { visibility: visible; }
    .project-row { display: block; overflow: visible; }
    .project-row > li { margin-bottom: 20px; }
}

.theme-thumb .moon-icon {
    width: 16px;
    height: 16px;
}

.theme-thumb .sun-icon {
    width: 16px;
    height: 16px;
}
