:root {
            color-scheme: light;
            --paper: #faf7fc;
            --surface: #fffefe;
            --ink: #302438;
            --muted: #756b7d;
            --line: #e6ddea;
            --accent: #d9b8e8;
            --accent-strong: #a64ac0;
            --accent-dark: #600080;
            --sand: #e0d6e8;
            --sand-light: #f3eef7;
            --serif: Georgia, "Times New Roman", serif;
            --sans: "Segoe UI", Arial, sans-serif;
            --content: 1080px;
        }

        *, *::before, *::after {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            scroll-padding-top: 90px;
        }

        body {
            margin: 0;
            background: var(--paper);
            color: var(--ink);
            font-family: var(--sans);
            -webkit-font-smoothing: antialiased;
        }

        .page-loader {
            position: fixed;
            inset: 0;
            z-index: 10;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: #fefefe;
            opacity: 1;
            visibility: visible;
            transition: opacity 240ms ease, visibility 240ms ease;
        }

        html.page-loader-skipped .page-loader {
            display: none;
        }

        .page-loader-gif {
            position: relative;
            display: block;
            width: min(180px, 70vw, 36vh);
            height: auto;
            object-fit: contain;
            clip-path: inset(14px);
            background: #fefefe;
        }

        .page-loader-dots {
            display: flex;
            align-items: center;
            gap: 6px;
            height: 12px;
        }

        .page-loader-dots span {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--accent-dark);
            animation: loader-dot-pulse 900ms ease-in-out infinite;
        }

        .page-loader-dots span:nth-child(2) {
            animation-delay: 150ms;
        }

        .page-loader-dots span:nth-child(3) {
            animation-delay: 300ms;
        }

        @keyframes loader-dot-pulse {
            0%, 60%, 100% {
                opacity: 0.35;
                transform: translateY(0);
            }

            30% {
                opacity: 1;
                transform: translateY(-4px);
            }
        }

        .page-loader.is-hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        @media (prefers-reduced-motion: reduce) {
            .page-loader {
                transition: none;
            }

            .page-loader-dots span {
                animation: none;
            }
        }

        a {
            color: inherit;
        }

        a:focus-visible {
            outline: 3px solid var(--accent-dark);
            outline-offset: 4px;
        }

        .skip-link {
            position: absolute;
            top: 12px;
            left: 12px;
            z-index: 5;
            transform: translateY(-160%);
            padding: 10px 14px;
            background: var(--ink);
            color: white;
        }

        .skip-link:focus {
            transform: translateY(0);
        }

        .container {
            width: min(var(--content), calc(100% - 64px));
            margin-inline: auto;
        }

        .site-header {
            position: sticky;
            top: 0;
            z-index: 4;
            border-bottom: 1px solid rgb(32 34 31 / 9%);
            background: rgb(250 247 252 / 92%);
            backdrop-filter: blur(14px);
        }

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

        .brand {
            text-decoration: none;
            font-family: var(--serif);
            font-size: 1.35rem;
            font-weight: 700;
            letter-spacing: -0.06em;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: clamp(14px, 2.4vw, 30px);
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .nav-links a {
            color: var(--muted);
            font-size: 0.86rem;
            text-decoration: none;
            transition: color 160ms ease;
        }

        .nav-links a:hover {
            color: var(--ink);
        }

        .nav-links a[aria-current="page"] {
            color: var(--ink);
            font-weight: 700;
        }

        .language-switch {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            flex-shrink: 0;
            color: var(--muted);
            font-size: 0.78rem;
            font-weight: 650;
        }

        .language-switch button {
            padding: 5px 2px;
            border: 0;
            background: transparent;
            color: inherit;
            font: inherit;
            cursor: pointer;
            transition: color 160ms ease;
        }

        .language-switch button:hover,
        .language-switch button[aria-pressed="true"] {
            color: var(--accent-dark);
        }

        .language-switch button[aria-pressed="true"] {
            text-decoration: underline;
            text-underline-offset: 4px;
        }

        .header-tools {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-shrink: 0;
        }

        .theme-toggle {
            width: 38px;
            height: 38px;
            display: grid;
            place-items: center;
            padding: 0;
            border: 1px solid var(--line);
            border-radius: 50%;
            background: var(--surface);
            color: var(--accent-dark);
            cursor: pointer;
            transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
        }

        .theme-toggle:hover {
            transform: translateY(-2px);
            border-color: var(--accent-strong);
        }

        .theme-toggle:focus-visible {
            outline: 3px solid var(--accent-dark);
            outline-offset: 3px;
        }

        .theme-icon {
            width: 19px;
            height: 19px;
            fill: none;
            stroke: currentColor;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-width: 1.8;
        }

        .theme-icon-sun {
            display: none;
        }

        .content-section {
            position: relative;
            padding-block: 82px;
            border-top: 1px solid var(--line);
        }

        .soft-section {
            background: linear-gradient(120deg, #f3edf7, var(--sand-light));
        }

        .section-heading {
            display: flex;
            align-items: end;
            justify-content: space-between;
            gap: 24px;
            margin-bottom: 36px;
        }

        .section-heading h2 {
            margin: 0;
            font-family: var(--serif);
            font-size: clamp(2.35rem, 5vw, 3.7rem);
            font-weight: 400;
            letter-spacing: -0.06em;
            line-height: 1;
        }

        .section-kicker,
        .eyebrow {
            width: fit-content;
            padding: 8px 12px;
            border-radius: 999px;
            background: #efe1f5;
        }

        .text-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--accent-dark);
            font-size: 0.86rem;
            font-weight: 650;
            text-decoration-thickness: 1px;
            text-underline-offset: 4px;
        }

        .button-disabled {
            border-color: var(--line);
            background: transparent;
            color: var(--muted);
            cursor: not-allowed;
        }

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

        .trajectory-column > h3 {
            margin: 0 0 18px;
            font-family: var(--serif);
            font-size: 1.8rem;
            font-weight: 400;
            letter-spacing: -0.04em;
        }

        .timeline-entry {
            position: relative;
            padding: 18px 0;
            padding-left: 16px;
            border-top: 1px solid var(--line);
        }

        .timeline-entry::before {
            position: absolute;
            top: 21px;
            left: 0;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--accent-strong);
            content: "";
        }

        .timeline-entry h4 {
            margin: 0 0 7px;
            font-size: 1rem;
            font-weight: 650;
        }

        .timeline-entry p {
            margin: 0;
            color: var(--muted);
            font-size: 0.87rem;
            line-height: 1.6;
        }

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

        .service-card {
            position: relative;
            min-height: 220px;
            padding: 26px;
            border: 1px solid var(--line);
            background: linear-gradient(145deg, #fffefe 55%, #f3e9f8 78%, var(--sand-light));
            transition: transform 180ms ease, border-color 180ms ease;
        }

        .service-card:hover {
            transform: translateY(-4px);
            border-color: var(--accent-strong);
        }

        .service-number {
            width: 36px;
            height: 36px;
            display: inline-grid;
            place-items: center;
            border-radius: 50%;
            background: var(--accent-strong);
            color: white;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.12em;
        }

        .service-card h3 {
            margin: 34px 0 10px;
            font-family: var(--serif);
            font-size: 1.45rem;
            font-weight: 400;
            letter-spacing: -0.03em;
        }

        .service-card p {
            margin: 0;
            color: var(--muted);
            font-size: 0.87rem;
            line-height: 1.65;
        }

        .page-main {
            min-height: calc(100vh - 145px);
            padding-block: 88px 100px;
        }

        .page-heading {
            margin-bottom: 42px;
        }

        .page-heading h1 {
            margin: 0;
            font-family: var(--serif);
            font-size: clamp(3rem, 7vw, 5.5rem);
            font-weight: 400;
            letter-spacing: -0.07em;
            line-height: 1;
        }

        .page-heading .section-intro {
            margin-top: 18px;
        }

        .hero {
            position: relative;
            isolation: isolate;
            min-height: 590px;
            display: grid;
            grid-template-columns: minmax(0, 1.3fr) minmax(230px, 0.7fr);
            align-items: center;
            gap: 64px;
            padding-block: 92px 104px;
        }

        .hero::before,
        .hero::after {
            position: absolute;
            z-index: -1;
            pointer-events: none;
            content: "";
        }

        .hero::before {
            top: 48px;
            right: 0;
            width: clamp(260px, 38vw, 460px);
            height: clamp(280px, 39vw, 430px);
            border-radius: 45% 55% 65% 35% / 41% 45% 55% 59%;
            background: linear-gradient(145deg, #e8c9f3 8%, #d7b6e8 55%, var(--sand) 100%);
            opacity: 0.68;
            transform: rotate(8deg);
        }

        .hero::after {
            top: 66px;
            right: min(31vw, 365px);
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: var(--accent-strong);
            box-shadow: 30px 30px 0 -9px #dbc2e9;
        }

        .eyebrow, .section-kicker {
            margin: 0 0 20px;
            color: var(--accent-dark);
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.16em;
            text-transform: uppercase;
        }

        .hero h1 {
            max-width: 700px;
            margin: 0;
            font-family: var(--serif);
            font-size: clamp(3.1rem, 6.8vw, 5.7rem);
            font-weight: 400;
            letter-spacing: -0.075em;
            line-height: 0.98;
        }

        .hero h1 span {
            color: var(--accent-dark);
            font-style: italic;
        }

        .hero-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 32px;
        }

        .button {
            min-height: 48px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 9px;
            padding: 0 19px;
            border: 1px solid var(--ink);
            border-radius: 3px;
            background: var(--ink);
            color: white;
            font-size: 0.85rem;
            font-weight: 650;
            text-decoration: none;
            transition: transform 160ms ease, background 160ms ease;
        }

        .button:hover {
            transform: translateY(-2px);
            background: #383b35;
        }

        .button-secondary {
            background: transparent;
            color: var(--ink);
        }

        .button-secondary:hover {
            background: white;
        }

        .social-links {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 12px;
            margin-top: 27px;
        }

        .social-links a {
            width: 42px;
            height: 42px;
            display: inline-grid;
            place-items: center;
            border: 1px solid var(--line);
            border-radius: 50%;
            background: var(--surface);
            color: var(--accent-dark);
            transition: color 160ms ease, background 160ms ease, transform 160ms ease;
        }

        .social-links a:hover {
            transform: translateY(-2px);
            background: var(--accent-dark);
            color: white;
        }

        .social-links svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        .portrait {
            width: min(100%, 310px);
            aspect-ratio: 0.83;
            overflow: hidden;
            border-radius: 48% 48% 4px 4px;
            box-shadow: 13px 13px 0 rgb(224 214 232 / 92%);
            justify-self: end;
        }

        .portrait img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            object-position: center 35%;
        }

        .section-intro {
            max-width: 390px;
            margin: 0;
            color: var(--muted);
            font-size: 0.95rem;
            line-height: 1.7;
        }

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

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

        .project-card {
            min-height: 310px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: clamp(24px, 4vw, 38px);
            border: 1px solid var(--line);
            background: var(--surface);
            transition: transform 180ms ease, border-color 180ms ease;
        }

        .project-card:first-child {
            border-top: 4px solid var(--accent-strong);
            background: linear-gradient(150deg, #fffefe 55%, #f3e9f8 78%, var(--sand-light));
        }

        .project-feature {
            grid-column: 1 / -1;
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: start;
            column-gap: 24px;
        }

        .project-feature > div:first-child {
            grid-column: 1 / -1;
        }

        .project-feature h2 {
            margin-top: 22px;
        }

        .project-feature > div:first-child p {
            max-width: 720px;
        }

        .project-financeflow .project-gallery {
            grid-template-columns: minmax(0, 1fr);
        }

        .project-home-gallery {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            margin-block: 22px;
        }

        .project-home-gallery a {
            min-width: 0;
            height: 190px;
            display: grid;
            place-items: center;
            overflow: hidden;
            border: 1px solid var(--line);
            background: var(--sand-light);
        }

        .project-home-gallery img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: contain;
            transition: transform 200ms ease;
        }

        .project-home-gallery a:hover img {
            transform: scale(1.035);
        }

        .project-home-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
        }

        .project-carousel {
            min-width: 0;
            margin-block: 22px;
        }

        .carousel-viewport {
            display: grid;
            aspect-ratio: 16 / 9;
            overflow: hidden;
            border: 1px solid var(--line);
            background: #fff;
        }

        .project-home-carousel .carousel-viewport {
            aspect-ratio: 1.8 / 1;
        }

        .project-financeflow-carousel .carousel-viewport {
            aspect-ratio: 3 / 2;
        }

        .project-financeflow-carousel .carousel-viewport:has(.financeflow-pair-slide.is-active) {
            aspect-ratio: 4 / 5;
        }

        .financeflow-pair-slide {
            align-items: center;
        }

        .financeflow-screenshot-pair {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            grid-template-rows: auto minmax(0, 1fr);
            align-items: center;
            gap: 8px 18px;
            width: 100%;
            height: 100%;
            box-sizing: border-box;
            padding: 10px 16px;
        }

        .financeflow-screenshot-pair a {
            min-width: 0;
            display: grid;
            justify-items: center;
            gap: 6px;
            color: var(--muted);
            font-size: 0.72rem;
            line-height: 1.4;
            text-decoration: none;
        }

        .financeflow-mobile-heading {
            grid-column: 1 / -1;
            display: grid;
            gap: 2px;
            justify-self: center;
            text-align: center;
        }

        .financeflow-mobile-heading > span {
            color: var(--accent-dark);
            font-size: 0.62rem;
            font-weight: 700;
            letter-spacing: 0.14em;
        }

        .financeflow-mobile-heading > strong {
            color: var(--ink);
            font-family: var(--serif);
            font-size: 1rem;
            font-weight: 400;
        }

        .financeflow-phone {
            width: min(100%, 190px);
            box-sizing: border-box;
            padding: 7px;
            border: 1px solid #323c4b;
            border-radius: 22px;
            background: #111b2b;
            box-shadow: 0 8px 20px rgb(20 28 40 / 18%);
        }

        .financeflow-screenshot-pair img {
            width: 100%;
            height: auto;
            overflow: hidden;
            border-radius: 15px;
            display: block;
        }

        .carousel-slide {
            position: relative;
            grid-area: 1 / 1;
            min-width: 0;
            min-height: 0;
            display: grid;
            margin: 0;
            opacity: 0;
            visibility: hidden;
            transition: opacity 350ms ease, visibility 350ms ease;
        }

        .carousel-slide.is-active {
            z-index: 1;
            opacity: 1;
            visibility: visible;
        }

        .carousel-slide > a {
            min-width: 0;
            min-height: 0;
            display: grid;
            place-items: center;
            overflow: hidden;
        }

        .carousel-slide img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: contain;
        }

        .carousel-slide figcaption {
            position: absolute;
            right: 10px;
            bottom: 10px;
            max-width: calc(100% - 20px);
            padding: 6px 10px;
            border: 1px solid rgb(230 221 234 / 90%);
            border-radius: 999px;
            background: rgb(255 254 254 / 94%);
            color: var(--ink);
            font-size: 0.72rem;
            line-height: 1.3;
        }

        .carousel-controls {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            padding-top: 12px;
        }

        .carousel-indicators {
            display: flex;
            align-items: center;
            gap: 7px;
        }

        .carousel-dot {
            width: 9px;
            height: 9px;
            padding: 0;
            border: 0;
            border-radius: 50%;
            background: #d7cbdc;
            cursor: pointer;
        }

        .carousel-dot.is-active {
            background: var(--accent-dark);
            transform: scale(1.2);
        }

        .project-gallery {
            grid-column: 1 / -1;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 16px;
            margin-top: 26px;
        }

        .project-nexora .project-gallery {
            grid-template-columns: minmax(0, 1fr);
        }

        .project-figure {
            min-width: 0;
            margin: 0;
        }

        .project-image-link {
            min-height: 220px;
            display: grid;
            place-items: center;
            overflow: hidden;
            border: 1px solid var(--line);
            background: var(--sand-light);
        }

        .project-image-link img {
            width: 100%;
            height: 100%;
            max-height: 360px;
            display: block;
            object-fit: contain;
            transition: transform 200ms ease;
        }

        .project-image-link:hover img {
            transform: scale(1.025);
        }

        .project-figure figcaption {
            margin-top: 9px;
            color: var(--muted);
            font-size: 0.78rem;
        }

        .project-feature .project-tags {
            grid-column: 1;
            align-self: center;
        }

        .project-github-link {
            grid-column: 2;
            align-self: center;
            white-space: nowrap;
        }

        .project-actions {
            grid-column: 2;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
            gap: 10px 16px;
        }

        .project-card:hover {
            transform: translateY(-4px);
            border-color: #cbb5d6;
        }

        .project-index {
            color: var(--accent-dark);
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.12em;
        }

        .project-card h2,
        .project-card h3 {
            margin: 45px 0 11px;
            font-family: var(--serif);
            font-size: clamp(1.7rem, 3vw, 2.35rem);
            font-weight: 400;
            letter-spacing: -0.04em;
        }

        .project-card p {
            max-width: 390px;
            margin: 0;
            color: var(--muted);
            font-size: 0.9rem;
            line-height: 1.65;
        }

        .project-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 25px;
        }

        .project-tags > span {
            padding: 7px 10px;
            border: 1px solid var(--line);
            border-radius: 2px;
            color: var(--muted);
            font-size: 0.72rem;
        }

        .placeholder-label {
            color: var(--accent-dark);
            font-style: italic;
        }

        .experience-list {
            border-top: 1px solid var(--line);
        }

        .experience-row {
            display: grid;
            grid-template-columns: 1fr 1fr auto;
            align-items: center;
            gap: 24px;
            padding: 25px 0;
            border-bottom: 1px solid var(--line);
        }

        .experience-row h3 {
            margin: 0 0 6px;
            font-family: var(--serif);
            font-size: 1.35rem;
            font-weight: 400;
        }

        .experience-row p, .experience-row time {
            margin: 0;
            color: var(--muted);
            font-size: 0.85rem;
        }

        .about-layout {
            display: grid;
            grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
            gap: 38px;
            align-items: start;
        }

        .about-layout .section-heading {
            display: block;
            margin: 0;
        }

        .about-details {
            min-width: 0;
        }

        .subheading {
            margin: 44px 0 18px;
            font-family: var(--serif);
            font-size: 1.8rem;
            font-weight: 400;
            letter-spacing: -0.04em;
        }

        .visually-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            clip-path: inset(50%);
        }

        .about-copy {
            max-width: 620px;
            margin: 0;
            color: var(--muted);
            font-size: 1.05rem;
            line-height: 1.85;
        }

        .about-photo {
            width: 100%;
            max-height: 480px;
            aspect-ratio: 0.78;
            display: block;
            border-radius: 48% 48% 3px 3px;
            box-shadow: 12px 12px 0 var(--sand);
            object-fit: cover;
            object-position: center 38%;
        }

        .skill-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
            gap: 10px;
            margin-top: 24px;
        }

        .skill-item {
            position: relative;
            min-width: 0;
            aspect-ratio: 1;
            display: grid;
            place-items: center;
            border: 1px solid var(--line);
            border-radius: 4px;
            background: linear-gradient(145deg, var(--surface), #f6f0f9);
            transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
        }

        .skill-item:hover,
        .skill-item:focus-visible {
            transform: translateY(-2px);
            border-color: var(--accent-strong);
            box-shadow: 0 6px 16px rgb(96 0 128 / 10%);
        }

        .skill-item:focus-visible {
            outline: 2px solid var(--accent-dark);
            outline-offset: 3px;
        }

        .skill-item::after {
            position: absolute;
            bottom: calc(100% + 8px);
            left: 50%;
            z-index: 2;
            width: max-content;
            max-width: min(180px, 70vw);
            padding: 7px 10px;
            border-radius: 3px;
            background: var(--ink);
            color: #fff;
            content: attr(data-tooltip);
            font-size: 0.72rem;
            line-height: 1.3;
            text-align: center;
            white-space: normal;
            opacity: 0;
            pointer-events: none;
            transform: translate(-50%, 4px);
            transition: opacity 140ms ease, transform 140ms ease;
        }

        .skill-item:hover::after,
        .skill-item:focus-visible::after {
            opacity: 1;
            transform: translate(-50%, 0);
        }

        .skill-icon {
            width: 34px;
            height: 34px;
            display: block;
            object-fit: contain;
            color: var(--accent-dark);
        }

        .contact-section {
            position: relative;
            overflow: hidden;
            width: 100%;
            padding-block: 82px 96px;
            background: linear-gradient(115deg, #ead9f2 0%, #f1e9f5 56%, #eee7f2 100%);
        }

        .contact-section::after {
            position: absolute;
            top: -85px;
            right: 5%;
            width: 230px;
            height: 230px;
            border: 28px solid rgb(96 0 128 / 18%);
            border-radius: 50%;
            content: "";
            pointer-events: none;
        }

        .contact-page {
            min-height: calc(100vh - 145px);
            display: flex;
            align-items: center;
        }

        .contact-layout {
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
            align-items: center;
            gap: clamp(32px, 6vw, 88px);
        }

        .contact-layout h1,
        .contact-layout h2 {
            max-width: 620px;
            margin: 0;
            font-family: var(--serif);
            font-size: clamp(2.8rem, 7vw, 5.4rem);
            font-weight: 400;
            letter-spacing: -0.07em;
            line-height: 1;
        }

        .contact-layout p {
            max-width: 370px;
            margin: 18px 0 0;
            color: var(--muted);
            line-height: 1.7;
        }

        .contact-links {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: flex-start;
            margin-top: 28px;
        }

        .contact-form {
            display: grid;
            gap: 16px;
            padding: clamp(22px, 4vw, 34px);
            border: 1px solid rgb(96 0 128 / 12%);
            border-radius: 20px;
            background: rgb(255 254 254 / 88%);
            box-shadow: 0 20px 55px rgb(48 36 56 / 9%);
        }

        .form-field {
            display: grid;
            gap: 7px;
        }

        .form-field label {
            color: var(--ink);
            font-size: 0.88rem;
            font-weight: 650;
        }

        .form-field input,
        .form-field textarea {
            width: 100%;
            border: 1px solid #d9cfdf;
            border-radius: 10px;
            padding: 11px 13px;
            background: #fff;
            color: var(--ink);
            font: inherit;
        }

        .form-field textarea {
            min-height: 130px;
            resize: vertical;
        }

        .form-field input:focus-visible,
        .form-field textarea:focus-visible {
            outline: 3px solid rgb(96 0 128 / 25%);
            border-color: var(--accent-dark);
        }

        .contact-submit {
            width: 100%;
            border: 0;
            cursor: pointer;
            font: inherit;
        }

        .contact-form .contact-form-note {
            max-width: none;
            margin: -4px 0 0;
            font-size: 0.78rem;
            line-height: 1.5;
        }

        .contact-form .form-status:empty {
            display: none;
        }

        .contact-form .form-status.is-success {
            color: #1a7f37;
            font-weight: 650;
        }

        .contact-form .form-status.is-error {
            color: #c62828;
            font-weight: 650;
        }

        .contact-submit:disabled {
            cursor: wait;
            opacity: 0.75;
        }

        .site-footer {
            padding-block: 22px;
            background: var(--ink);
            color: #e6e7df;
            font-size: 0.76rem;
        }

        .footer-inner {
            display: flex;
            justify-content: space-between;
            gap: 20px;
        }

        .site-footer p {
            margin: 0;
        }

        @media (max-width: 560px) {
            .navigation {
                position: relative;
                align-items: flex-start;
                flex-direction: column;
                justify-content: center;
                gap: 7px;
                padding-block: 10px;
            }

            .header-tools {
                position: absolute;
                top: 11px;
                right: 0;
            }

            .nav-links {
                gap: 10px;
                width: 100%;
                justify-content: space-between;
            }
        }

        @media (max-width: 820px) {
            .container {
                width: min(100% - 40px, var(--content));
            }

            .navigation {
                min-height: 68px;
            }

            .nav-links {
                gap: 16px;
            }

            .nav-links a {
                font-size: 0.78rem;
            }

            .hero {
                min-height: auto;
                grid-template-columns: 1fr;
                gap: 36px;
                padding-block: 76px 80px;
            }

            .hero::before {
                top: auto;
                bottom: 86px;
                right: 0;
                width: clamp(200px, 44vw, 340px);
                height: clamp(220px, 48vw, 360px);
            }

            .hero::after {
                top: auto;
                bottom: min(108vw, 410px);
                right: 52vw;
            }

            .portrait {
                width: min(58%, 230px);
                justify-self: start;
            }

            .section {
                padding-block: 72px;
            }

            .section-heading {
                align-items: start;
                flex-direction: column;
                gap: 14px;
            }

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

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

            .trajectory-grid {
                grid-template-columns: 1fr;
                gap: 32px;
            }

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

            .project-feature {
                grid-column: auto;
            }

            .project-card {
                min-height: 275px;
            }

            .experience-row {
                grid-template-columns: 1fr auto;
                gap: 8px 16px;
            }

            .experience-row p {
                grid-column: 1;
            }

            .experience-row time {
                grid-column: 2;
                grid-row: 1 / span 2;
                text-align: right;
            }

            .about-layout {
                grid-template-columns: 1fr;
            }

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

            .project-home-gallery a {
                height: 150px;
            }

            .project-feature .project-tags,
            .project-github-link,
            .project-actions {
                grid-column: 1 / -1;
            }

            .project-github-link,
            .project-actions {
                justify-self: start;
                justify-content: flex-start;
                gap: 25px;
            }

            .content-section {
                padding-block: 64px;
            }

            .page-main {
                padding-block: 70px 80px;
            }

            .about-photo {
                width: min(100%, 360px);
                max-height: 430px;
            }

            .contact-layout {
                grid-template-columns: 1fr;
                align-items: start;
                gap: 32px;
            }

            .contact-links {
                justify-content: flex-start;
            }
        }

        @media (max-width: 420px) {
            .container {
                width: calc(100% - 32px);
            }

            .navigation {
                position: relative;
                align-items: flex-start;
                flex-direction: column;
                justify-content: center;
                gap: 7px;
                padding-block: 10px;
            }

            .header-tools {
                top: 8px;
            }

            .nav-links {
                gap: 10px;
                width: 100%;
                justify-content: space-between;
            }

            .nav-links a {
                font-size: 0.75rem;
            }

            .hero h1 {
                font-size: clamp(2.7rem, 13vw, 3.4rem);
            }

            .content-section .project-grid {
                grid-template-columns: 1fr;
            }

            .hero::before {
                top: auto;
                bottom: 72px;
                right: 0;
                width: 210px;
                height: 230px;
                opacity: 0.48;
            }

            .hero-actions .button {
                flex: 1;
                padding-inline: 12px;
                font-size: 0.78rem;
            }

            .footer-inner {
                flex-direction: column;
            }
        }

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

            .carousel-slide {
                transition: none;
            }
        }

        .project-grid,
        .content-section .project-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
            align-items: start;
            gap: 42px 24px;
        }

        .project-card,
        .project-card:first-child {
            min-height: 0;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            padding: 16px;
            border: 1px solid var(--line);
            border-radius: 9px;
            background: var(--surface);
            box-shadow: 0 5px 18px rgb(52 38 45 / 3%);
            transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
        }

        .project-card:hover {
            transform: translateY(-3px);
            border-color: #d8c8e0;
            box-shadow: 0 12px 28px rgb(52 38 45 / 8%);
        }

        .project-feature {
            grid-column: auto;
            display: flex;
            align-items: stretch;
            column-gap: 0;
        }

        .project-feature > div:first-child {
            grid-column: auto;
            order: 2;
        }

        .project-card > div:first-child {
            order: 2;
        }

        .project-card h2,
        .project-card h3 {
            margin: 0 0 7px;
            font-family: var(--sans);
            font-size: clamp(1.12rem, 1.5vw, 1.3rem);
            font-weight: 600;
            letter-spacing: -0.025em;
            line-height: 1.25;
        }

        .project-index {
            display: none;
        }

        .project-card p,
        .project-feature > div:first-child p {
            max-width: none;
            margin: 0;
            color: var(--muted);
            font-size: 0.84rem;
            line-height: 1.65;
        }

        .project-carousel,
        .project-gallery,
        .project-preview {
            order: 1;
            width: 100%;
            grid-column: auto;
            margin: 0 0 17px;
        }

        .project-preview {
            min-width: 0;
            aspect-ratio: 1.62 / 1;
            display: grid;
            place-items: center;
            overflow: hidden;
            border: 1px solid var(--line);
            border-radius: 6px;
            background: #f7f4f8;
        }

        .project-preview img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: contain;
        }

        .project-orquestra-preview {
            grid-template: minmax(0, 1fr) / minmax(0, 1fr);
            padding: 16px;
            border-color: #222337;
            background: #111321;
        }

        .project-orquestra-preview img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .project-card.project-feature h2 {
            margin-top: 0;
        }

        .project-gallery {
            display: block;
        }

        .project-gallery > .project-figure:not(:first-child) {
            display: none;
        }

        .project-figure {
            margin: 0;
        }

        .project-figure figcaption {
            display: none;
        }

        .carousel-slide figcaption {
            display: none;
        }

        .carousel-viewport {
            aspect-ratio: 1.62 / 1;
            overflow: hidden;
            border: 1px solid var(--line);
            border-radius: 6px;
            background: #f7f4f8;
        }

        .project-home-carousel .carousel-viewport,
        .project-financeflow-carousel .carousel-viewport,
        .project-financeflow-carousel .carousel-viewport:has(.financeflow-pair-slide.is-active) {
            aspect-ratio: 1.62 / 1;
        }

        .carousel-slide,
        .carousel-slide.is-active {
            grid-area: 1 / 1;
            display: grid;
            opacity: 1;
            visibility: visible;
        }

        .carousel-slide:not(.is-active) {
            display: none;
        }

        .carousel-slide img,
        .project-image-link img {
            object-fit: cover;
        }

        .carousel-controls {
            display: none;
        }

        .project-image-link {
            min-height: 0;
            height: auto;
            aspect-ratio: 1.55 / 1;
            border: 1px solid var(--line);
            border-radius: 6px;
            background: #f7f4f8;
        }

        .project-tags {
            order: 3;
            gap: 14px 12px;
            margin: 17px 0 0;
            padding-top: 14px;
            border-top: 1px solid var(--line);
        }

        .project-tags > span {
            min-width: 38px;
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
            padding: 0;
            border: 0;
            color: var(--muted);
            font-size: 0.62rem;
            line-height: 1.25;
            text-align: center;
        }

        .project-tags img,
        .tech-mark {
            width: 27px;
            height: 27px;
            display: grid;
            place-items: center;
            object-fit: contain;
        }

        .tech-mark {
            border: 1px solid var(--line);
            border-radius: 7px;
            background: #fff;
            color: var(--accent-dark);
            font-size: 0.58rem;
            font-weight: 700;
            letter-spacing: -0.04em;
        }

        .project-actions,
        .project-home-actions {
            order: 4;
            grid-column: auto;
            display: flex;
            justify-content: flex-start;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 0;
            padding-top: 18px;
        }

        .project-actions a,
        .project-home-actions a,
        .project-github-link {
            min-height: 34px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 7px 10px;
            border: 1px solid var(--line);
            border-radius: 999px;
            background: #fff;
            color: var(--accent-dark);
            font-size: 0.72rem;
            font-weight: 650;
            line-height: 1.2;
            text-decoration: none;
            transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
        }

        .project-actions a:hover,
        .project-home-actions a:hover,
        .project-github-link:hover {
            transform: translateY(-1px);
            border-color: #cbb5d6;
            background: var(--paper);
        }

        .project-github-link {
            order: 4;
            grid-column: auto;
            align-self: auto;
            margin-top: 0;
            padding-top: 7px;
        }

        .project-codequest .carousel-slide img {
            object-fit: contain;
        }

        .project-card:last-child:nth-child(3n + 1) {
            grid-column: 2;
        }

        html[data-theme="dark"] {
            color-scheme: dark;
            --paper: #0e0d14;
            --surface: #171521;
            --ink: #f3eff8;
            --muted: #b4aabe;
            --line: #342b40;
            --accent: #d598ff;
            --accent-strong: #b33eff;
            --accent-dark: #d18aff;
            --sand: #35283f;
            --sand-light: #211a2b;
        }

        html[data-theme="dark"] .site-header {
            border-bottom-color: rgb(223 191 255 / 12%);
            background: rgb(14 13 20 / 92%);
        }

        html[data-theme="dark"] .page-loader {
            background: #250a2d;
        }

        html[data-theme="dark"] .page-loader-gif {
            background: #250a2d;
        }

        html[data-theme="dark"] .soft-section {
            background: linear-gradient(120deg, #17121f, #1d1727);
        }

        html[data-theme="dark"] .section-kicker,
        html[data-theme="dark"] .eyebrow {
            background: #21152b;
        }

        html[data-theme="dark"] .service-card,
        html[data-theme="dark"] .project-card:first-child {
            background: linear-gradient(145deg, #191622 55%, #21182b 78%, var(--sand-light));
        }

        html[data-theme="dark"] .hero::before {
            background: linear-gradient(145deg, #49235f 8%, #382047 55%, #282034 100%);
            opacity: 0.62;
        }

        html[data-theme="dark"] .hero::after {
            box-shadow: 30px 30px 0 -9px #8f45ad;
        }

        html[data-theme="dark"] .button:not(.button-secondary) {
            border-color: #9c35d3;
            background: #8e2bb8;
            color: #fff;
        }

        html[data-theme="dark"] .button:not(.button-secondary):hover {
            border-color: #b44be8;
            background: #a53bd2;
        }

        html[data-theme="dark"] .button-secondary {
            background: transparent;
            border-color: var(--accent-strong);
            color: var(--ink);
        }

        html[data-theme="dark"] .button-secondary:hover {
            background: #251b30;
        }

        html[data-theme="dark"] .portrait {
            box-shadow: 13px 13px 0 rgb(151 57 202 / 42%);
        }

        html[data-theme="dark"] .project-card {
            box-shadow: 0 5px 22px rgb(0 0 0 / 18%);
        }

        html[data-theme="dark"] .project-card:hover {
            border-color: #784b91;
            box-shadow: 0 12px 28px rgb(0 0 0 / 30%);
        }

        html[data-theme="dark"] .project-preview,
        html[data-theme="dark"] .carousel-viewport,
        html[data-theme="dark"] .project-image-link {
            background: #111019;
        }

        html[data-theme="dark"] .carousel-slide figcaption {
            border-color: rgb(107 75 126 / 88%);
            background: rgb(23 21 33 / 94%);
            color: var(--ink);
        }

        html[data-theme="dark"] .carousel-dot {
            background: #5a4a65;
        }

        html[data-theme="dark"] .carousel-dot.is-active {
            background: var(--accent-dark);
        }

        html[data-theme="dark"] .skill-item {
            background: linear-gradient(145deg, var(--surface), #211a2b);
        }

        html[data-theme="dark"] .skill-item:hover,
        html[data-theme="dark"] .skill-item:focus-visible {
            box-shadow: 0 6px 16px rgb(179 62 255 / 18%);
        }

        html[data-theme="dark"] .skill-item::after {
            border: 1px solid #68477b;
            background: #241a2d;
            color: #f3eff8;
            box-shadow: 0 8px 24px rgb(0 0 0 / 35%);
        }

        html[data-theme="dark"] .contact-section {
            background: linear-gradient(115deg, #17121f 0%, #1c1625 56%, #21172c 100%);
        }

        html[data-theme="dark"] .contact-section::after {
            border-color: rgb(179 62 255 / 15%);
        }

        html[data-theme="dark"] .contact-form {
            border-color: rgb(179 62 255 / 20%);
            background: rgb(23 21 33 / 92%);
            box-shadow: 0 20px 55px rgb(0 0 0 / 24%);
        }

        html[data-theme="dark"] .form-field input,
        html[data-theme="dark"] .form-field textarea {
            border-color: #493b54;
            background: #100e17;
            color: var(--ink);
        }

        html[data-theme="dark"] .form-field input:focus-visible,
        html[data-theme="dark"] .form-field textarea:focus-visible {
            outline-color: rgb(209 138 255 / 35%);
        }

        html[data-theme="dark"] .site-footer {
            background: #09080e;
            color: #d8cfe1;
        }

        html[data-theme="dark"] .project-actions a,
        html[data-theme="dark"] .project-home-actions a,
        html[data-theme="dark"] .project-github-link {
            background: #211a2b;
            color: var(--accent-dark);
        }

        html[data-theme="dark"] .project-actions a:hover,
        html[data-theme="dark"] .project-home-actions a:hover,
        html[data-theme="dark"] .project-github-link:hover {
            border-color: #784b91;
            background: #2a2035;
        }

        html[data-theme="dark"] .tech-mark {
            background: #211a2b;
        }

        html[data-theme="dark"] .theme-toggle {
            background: #211a2b;
        }

        html[data-theme="dark"] .contact-form .form-status.is-success {
            color: #4ade80;
        }

        html[data-theme="dark"] .contact-form .form-status.is-error {
            color: #f87171;
        }

        html[data-theme="dark"] .theme-icon-moon {
            display: none;
        }

        html[data-theme="dark"] .theme-icon-sun {
            display: block;
        }

        @media (max-width: 900px) {
            .project-grid,
            .content-section .project-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .project-card:last-child:nth-child(3n + 1) {
                grid-column: auto;
            }
        }

        @media (max-width: 580px) {
            .project-grid,
            .content-section .project-grid {
                grid-template-columns: 1fr;
                gap: 36px;
            }

            .project-card h2,
            .project-card h3 {
                font-size: 1.35rem;
            }

            .project-card,
            .project-card:first-child {
                padding: 14px;
            }

            .project-home-actions,
            .project-actions {
                gap: 7px;
            }
        }