:root {
  color-scheme: dark;
  --bg: #000000;
  --ink: #ededed;
  --muted: #777;
  --description: #9a9a9a;
  --line: rgba(230, 230, 230, .28);
  --frame-gap: 14px;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", monospace;
}
html[data-theme="light"] { color-scheme: light; --bg: #e5e5e5; --ink: #090909; --muted: #555; --description: #4a4a4a; --line: rgba(0, 0, 0, .3); }
* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--bg); }
body { min-height: 100svh; margin: 0; overflow: hidden; color: var(--ink); background: var(--bg); font-family: var(--sans); transition: background .45s, color .45s; }
button, a { color: inherit; font: inherit; }
a { text-decoration: none; }
button { border: 0; background: none; cursor: pointer; }
a:focus-visible, button:focus-visible, .projects-copy:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ambient-field { position: fixed; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; opacity: .95; }
.ambient-field::before { content: ""; position: absolute; top: 7%; right: -12%; width: 78vw; height: 86%; background: repeating-linear-gradient(90deg, transparent 0 76px, var(--line) 77px, transparent 78px), repeating-linear-gradient(0deg, transparent 0 76px, var(--line) 77px, transparent 78px); mask-image: linear-gradient(90deg, transparent 3%, black 50%, transparent 100%); opacity: .31; transform: perspective(700px) rotateY(-18deg) translate3d(calc(var(--field-x, 0px) * .35), calc(var(--field-y, 0px) * .25), 0); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.ambient-field::after { content: ""; position: absolute; top: -20%; right: 8%; width: 1px; height: 140%; background: var(--line); opacity: .48; animation: ambient-scan 9s ease-in-out infinite; }
@keyframes ambient-scan { 0%, 100% { transform: translateX(0); opacity: .15; } 50% { transform: translateX(-28vw); opacity: .42; } }
.code-backdrop { position: fixed; z-index: 0; inset: 0; padding: 7vh 7vw 6vh; overflow: hidden; color: var(--ink); opacity: .16; pointer-events: none; mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.code-backdrop__text { width: 100%; height: 100%; margin: 0; padding-left: min(20vw, 360px); overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; font: 10px/2.05 var(--mono); letter-spacing: -.025em; }
.code-backdrop__text code { font: inherit; }
.code-backdrop__text code::after { content: "▍"; color: var(--accent, #9db99f); animation: caret-blink 1s steps(2, start) infinite; }
@keyframes caret-blink { to { visibility: hidden; } }
.frame { position: fixed; inset: var(--frame-gap); z-index: 10; border: 0; pointer-events: none; }
.site-loader { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; overflow: hidden; color: var(--ink); background: var(--bg); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .4s ease, visibility 0s linear .4s; }
.has-loader .site-loader { opacity: 1; visibility: visible; transition: none; }
.site-loader__content { display: grid; justify-items: center; width: min(280px, calc(100% - 48px)); text-align: center; }
.site-loader__mark { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid var(--line); font-size: 20px; font-weight: 400; letter-spacing: -.08em; }
.site-loader__name { margin: 17px 0 0; font-size: 16px; font-weight: 400; letter-spacing: -.035em; }
.site-loader__track { position: relative; display: block; width: 144px; height: 1px; margin-top: 25px; overflow: hidden; background: var(--line); }
.site-loader__track > span { position: absolute; inset: 0 auto 0 0; width: 34%; background: var(--ink); animation: loader-sweep 3.6s cubic-bezier(.4,0,.6,1) infinite; }
@keyframes loader-sweep { from { transform: translateX(-110%); } to { transform: translateX(410%); } }
.identity { position: fixed; z-index: 3; top: clamp(34px, 6vh, 64px); left: clamp(36px, 7vw, 100px); display: grid; row-gap: clamp(24px, 4vh, 36px); }
.name { display: block; font-size: clamp(32px, 4.4vw, 58px); line-height: .88; letter-spacing: -.075em; font-weight: 300; }
.navigation { display: grid; justify-items: start; gap: 13px; }
.navigation a { display: flex; align-items: center; gap: 9px; min-height: 23px; color: var(--muted); font-size: 17px; font-weight: 700; transition: color .25s, opacity .25s; }
.navigation:hover a:not(:hover):not(.active) { opacity: .38; }
.navigation a:hover, .navigation a.active { color: var(--ink); }
.nav-dot { display: inline-block; width: 4px; height: 4px; border-radius: 100%; background: currentColor; opacity: 0; }
.navigation a.active .nav-dot { opacity: 1; }
main { position: relative; z-index: 1; min-height: 100svh; }
.page { position: absolute; inset: 0; min-height: 100svh; }
.page[hidden] { display: none; }
#projects { position: fixed; overflow: hidden; }
#projects::after { content: ""; position: fixed; z-index: 2; right: 0; bottom: 0; left: 0; height: 145px; height: min(145px, 16svh); background: linear-gradient(to bottom, transparent, var(--bg) 82%); pointer-events: none; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.page-copy { position: absolute; right: clamp(40px, 10vw, 145px); bottom: clamp(90px, 15vh, 150px); width: min(540px, 52vw); text-align: right; }
.overline { margin: 0 0 23px; color: var(--muted); font: 13px/1.5 var(--mono); letter-spacing: .03em; }
.overline span { padding: 0 5px; }
.home-copy :is(h1, h2), .info-copy :is(h1, h2) { margin: 0; font-size: clamp(36px, 4.9vw, 68px); line-height: 1.02; letter-spacing: -.065em; font-weight: 400; }
.home-copy > p:not(.overline), .info-copy > p:not(.overline), .contact-copy :is(h1, h2) { max-width: 460px; margin: 20px 0 0 auto; font-size: 18px; font-weight: 600; line-height: 1.8; }
.text-link { display: inline-flex; gap: 14px; margin-top: 25px; font: 14px var(--mono); border-bottom: 1px solid var(--line); padding-bottom: 5px; }

.text-link span { transition: transform .2s; }.text-link:hover span { transform: translate(2px,-2px); }
.projects-copy { position: absolute; top: auto; right: clamp(40px, 10vw, 145px); bottom: clamp(90px, 15vh, 150px); width: min(540px, 52vw); height: 246px; margin: 0; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.projects-copy::-webkit-scrollbar { width: 4px; }
.projects-copy::-webkit-scrollbar-thumb { background: var(--line); }
.projects-copy { --fade-top: 0px; --fade-bottom: 0px; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent); mask-image: linear-gradient(to bottom, transparent, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent); }
.projects-copy.has-items-above { --fade-top: 20px; }
.projects-copy.has-items-below { --fade-bottom: 20px; }
.project { display: grid; grid-template-columns: minmax(0, 1fr) 14px; grid-template-areas: "heading arrow" "technologies ."; align-content: center; align-items: center; gap: 6px 12px; height: 82px; margin: 0; padding: 0 8px; border-radius: 2px; text-align: right; transition: background-color .2s, opacity .2s; }
.project:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.project-title { min-width: 0; color: var(--ink); font-size: clamp(16px, calc(1.2vw + 2px), 18px); font-weight: 500; letter-spacing: -.025em; transition: opacity .2s, transform .2s; }
.project-heading { grid-area: heading; display: grid; gap: 4px; min-width: 0; }
.project-description { overflow: hidden; color: var(--description); font-size: 14px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.project:hover .project-title { transform: translateX(3px); }
.projects-copy:hover .project:not(:hover) { opacity: .62; }
.project-technologies { grid-area: technologies; display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin: 0; color: var(--description); }
.technology { display: inline-flex; align-items: center; gap: 6px; font: 13px var(--mono); transition: color .25s; white-space: nowrap; }
.technology-logo { display: block; flex: 0 0 auto; width: 19px; height: 19px; }
.technology-logo--csharp { color: #9b4f96; }
.technology-logo--typescript { color: #3178c6; }
.technology-logo--php { color: #777bb4; width: 25px; }
.technology-logo--java { color: #f89820; }
.technology-logo--ruby { color: #cc342d; }
.technology-logo--python { color: #3776ab; }
.technology-logo--go { color: #00add8; width: 24px; }
.project:hover .technology { color: var(--ink); }
.page-footer i { font-style: normal; padding: 0 4px; }
.project-arrow { grid-area: arrow; justify-self: end; align-self: start; margin-top: 3px; color: var(--muted); font-size: 12px; opacity: .6; transition: opacity .2s, transform .2s; }.project:hover .project-arrow { opacity: 1; transform: translate(2px,-2px); }
.projects-scroll-hint { position: absolute; right: clamp(40px, 10vw, 145px); bottom: calc(clamp(90px, 15vh, 150px) - 25px); display: grid; place-items: center; width: min(540px, 52vw); margin: 0; color: var(--description); pointer-events: none; }
.projects-scroll-hint[hidden] { display: none; }
.projects-scroll-hint svg { display: block; width: 24px; height: 24px; color: var(--ink); animation: scroll-hint-nudge 1.6s ease-in-out infinite; }
@keyframes scroll-hint-nudge {
  0%, 15%, 100% { transform: translateY(-3px); opacity: .65; }
  40% { transform: translateY(7px); opacity: 1; }
  55% { transform: translateY(1px); opacity: .8; }
  70% { transform: translateY(6px); opacity: 1; }
  85% { transform: translateY(-3px); opacity: .65; }
}
.info-copy { width: min(530px, 52vw); }
.info-copy :is(h1, h2) { font-size: clamp(34px, 4.6vw, 60px); }
.info-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 30px; margin-top: 29px; text-align: right; }
.info-columns h3 { margin: 0 0 8px; color: var(--muted); font: 13px var(--mono); text-transform: uppercase; }
.info-columns p { margin: 0; font-size: 14px; line-height: 1.8; }
.info-experience { grid-column: 1 / -1; }
.info-experience p { max-width: 420px; margin-left: auto; }
.education { margin-top: 25px !important; color: var(--muted); font: 11px/1.5 var(--mono) !important; }
.education span { white-space: nowrap; }
.contact-copy :is(h1, h2) { margin: 0 0 0 auto; line-height: 1.4; }
.email-link { display: inline-block; margin-top: 10px; border-bottom: 1px solid var(--line); padding-bottom: 5px; font: 14px var(--mono); }
.email-link span { margin-left: 9px; }
.social-links { display: flex; justify-content: flex-end; gap: 20px; margin-top: 16px; font: 14px var(--mono); }
.social-links a { text-decoration: underline; text-underline-offset: 3px; }
.preferences { position: fixed; z-index: 3; right: clamp(28px, 5vw, 64px); bottom: clamp(24px, 4vh, 42px); color: var(--description); }
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 11px; border-radius: 50%; transition: color .2s, background-color .2s; }
.theme-toggle:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.theme-icon { display: block; width: 22px; height: 22px; }
.theme-icon--moon, html[data-theme="light"] .theme-icon--sun { display: none; }
html[data-theme="light"] .theme-icon--moon { display: block; }
.page-footer { position: fixed; z-index: 3; right: clamp(40px, 10vw, 145px); bottom: clamp(36px, 6vh, 66px); display: flex; gap: 26px; color: var(--muted); font: 11px var(--mono); }
@media (max-width: 700px) {
  :root { --frame-gap: 8px; }
  body { overflow: hidden; }
  .identity { top: calc(28px + env(safe-area-inset-top, 0px)); left: 27px; }
  .name { font-size: clamp(44px, 12vw, 56px); line-height: .92; }
  .code-backdrop { padding: 7vh 6vw; opacity: .10; }
  .code-backdrop__text { padding-left: 0; font-size: 9px; }
  .navigation { position: fixed; z-index: 5; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1fr 1fr 1.3fr 1fr; align-items: center; justify-items: stretch; gap: 0; max-width: none; padding: 8px 12px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--bg); }
  .navigation a { position: relative; justify-content: center; min-height: 44px; gap: 0; font-size: clamp(10px, 2.8vw, 12px); }
  .navigation:hover a:not(:hover):not(.active) { opacity: 1; }
  .nav-dot { position: absolute; bottom: 0; left: calc(50% - 2px); width: 4px; height: 4px; }
  .page-copy, .info-copy { right: 28px; bottom: calc(108px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 56px); text-align: left; }
  .home-copy :is(h1, h2), .info-copy :is(h1, h2) { font-size: clamp(30px, 9vw, 46px); }
  .overline { font-size: 11px; }
  .home-copy > p:not(.overline), .info-copy > p:not(.overline), .contact-copy :is(h1, h2) { max-width: 340px; margin-left: 0; margin-right: auto; font-size: 15px; }
  #projects::after { height: 110px; height: min(110px, 10svh); }
  .projects-copy { top: auto; right: 24px; bottom: max(calc(110px + env(safe-area-inset-bottom, 0px)), 14svh); width: calc(100% - 48px); height: 246px; margin: 0; }
  .projects-scroll-hint { right: 24px; bottom: calc(max(calc(110px + env(safe-area-inset-bottom, 0px)), 14svh) - 25px); width: calc(100% - 48px); }
  .project { grid-template-columns: minmax(0, 1fr) 12px; grid-template-areas: "heading arrow" "technologies ."; align-content: center; align-items: center; gap: 6px 9px; height: 82px; padding: 0 6px; text-align: left; }
  .project-title { font-size: 16px; line-height: 1.25; }
  .project-heading { grid-area: heading; align-self: center; gap: 4px; }
  .project-description { overflow: hidden; font-size: 13px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
  .project-technologies { grid-area: technologies; justify-content: flex-start; gap: 12px; padding-left: 0; }
  .technology { gap: 6px; font-size: 12px; }
  .technology-logo { width: 19px; height: 19px; }
  .technology-logo--php, .technology-logo--go { width: 24px; }
  .project-arrow { grid-area: arrow; justify-self: end; align-self: start; margin-top: 3px; }
  .info-copy { bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }
  .info-columns { gap: 16px; margin-top: 19px; text-align: left; }
  .info-experience p { margin-left: 0; margin-right: auto; }
  .social-links { justify-content: flex-start; }
  .info-columns h3 { font-size: 12px; }
  .info-columns p { font-size: 13px; }
  .education { margin-top: 17px !important; }
  .preferences { top: calc(24px + env(safe-area-inset-top, 0px)); right: 17px; bottom: auto; }
  .page-footer { right: 28px; bottom: 32px; display: grid; gap: 5px; text-align: right; font-size: 10px; }
}
@media (max-height: 600px) and (min-width: 701px) {
  .identity { top: 25px; }.navigation { gap: 7px; }
  .page-copy, .info-copy { bottom: 65px; }
  .projects-copy { top: auto; bottom: 70px; height: 246px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
@media (prefers-reduced-motion: reduce) { .site-loader { display: none; } }
