@font-face {
  font-family: "Caskaydia Mono";
  src: url("/fonts/CaskaydiaMonoNerdFontMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root { color-scheme: dark; --bg: #080f17; --surface: #0c1722; --border: #1c2e3d; --text: #d7e5ef; --muted: #8ba5b8; --accent: #8fcdff; --selection: #1c405a; }
:root[data-theme="amber"] { --bg: #191613; --surface: #221e18; --border: #3c3428; --text: #ece0ca; --muted: #b1a28b; --accent: #e6b46e; --selection: #4c3924; }
:root[data-theme="forest"] { --bg: #111a18; --surface: #19251f; --border: #2b3c33; --text: #d9e6d9; --muted: #9baf9f; --accent: #a7c99b; --selection: #344b3a; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Caskaydia Mono", "SFMono-Regular", Consolas, monospace; font-size: 14px; -webkit-font-smoothing: antialiased; }
::selection { background: var(--selection); color: var(--text); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 20; background: var(--accent); color: var(--bg); padding: 12px; }
.skip-link:focus { top: 1rem; }
.pixel-field { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.page { position: relative; z-index: 1; width: 100%; }
.header { position: sticky; top: 0; z-index: 10; height: 77px; display: flex; align-items: center; padding-inline: clamp(23px, 7vw, 120px); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); }
.header nav { display: flex; gap: 31px; }
.header nav a { padding-block: 13px; color: var(--muted); font-size: 13px; }
.header nav a:hover { color: var(--accent); }
.controls { display: flex; gap: 3px; margin-left: auto; padding-left: 23px; }
.controls button { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 1px solid transparent; cursor: pointer; }
.controls button:hover { background: var(--surface); border-color: var(--border); }
.theme-icon { display: grid; grid-template-columns: 5px 5px; grid-template-rows: 5px 5px; gap: 3px; }
.theme-icon i { background: var(--accent); }
.theme-icon i:nth-child(2), .theme-icon i:nth-child(3) { opacity: .5; }
.pause-icon { width: 10px; height: 12px; border-inline: 3px solid var(--muted); }
.paused .pause-icon { width: 0; height: 0; border-left: 9px solid var(--accent); border-right: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.hero { position: relative; display: flex; align-items: center; justify-content: center; min-height: max(650px, calc(100svh - 77px)); padding: 24px 45px 85px; overflow: hidden; }
.identity { width: 100%; text-align: center; }
.emblem { position: relative; width: 100%; max-width: 850px; margin: 0 auto 10px; aspect-ratio: 82 / 30; }
.emblem-button { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: crosshair; }
.wordmark-fallback { color: var(--accent); font-size: clamp(28px, 6.4vw, 85px); font-weight: 700; letter-spacing: .05em; white-space: nowrap; }
.emblem canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.emblem-ready .wordmark-fallback { display: none; }
.intro { position: relative; width: fit-content; max-width: 100%; margin-inline: auto; padding: 10px 18px 18px; background: var(--bg); box-shadow: 0 0 32px 24px var(--bg); }
.role { color: var(--accent); text-transform: uppercase; letter-spacing: .26em; font-size: 12px; font-weight: 400; line-height: 1.8; margin: 10px 0 22px; }
.cursor { display: inline-block; width: 0; overflow: visible; margin-left: 5px; animation: blink 1.6s step-end infinite; }
.bio { max-width: 750px; margin: 0 auto; font-size: 15px; color: var(--text); line-height: 1.9; }
.section { position: relative; padding: 56px max(25px, calc((100vw - 1100px) / 2)) 64px; background: color-mix(in srgb, var(--bg) 92%, transparent); }
.section h2 { margin: 0 0 30px; color: var(--text); font-size: 25px; font-weight: 400; letter-spacing: -.035em; }
.skills { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.skills li { min-height: 60px; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 15px; }
.skill-icon { display: inline-block; width: 31px; color: var(--accent); font-size: 28px; text-align: center; }
.projects-section { padding-top: 36px; padding-bottom: 85px; }
.project { display: flex; align-items: center; gap: 24px; min-height: 116px; padding: 26px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); transition: border-color .2s; }
.project:hover { border-color: var(--accent); }
.project-mark { flex: 0 0 60px; display: grid; place-items: center; width: 60px; height: 60px; background: #f2e6d8; border-radius: 3px; }
.project-mark img { display: block; }
.project-copy { display: grid; gap: 10px; }
.project-copy strong { color: var(--accent); font-size: 19px; font-weight: 400; }
.project-copy > span { color: var(--muted); font-size: 13px; line-height: 1.75; }
.project-arrow { margin-left: auto; padding-left: 8px; color: var(--accent); font-size: 26px; }
.footer { height: 72px; display: flex; justify-content: space-between; align-items: center; padding-inline: clamp(23px, 7vw, 120px); background: color-mix(in srgb, var(--bg) 92%, transparent); color: var(--muted); font-size: 11px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.motion-paused .cursor { animation: none; }
@media (max-width: 800px) { .skills { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .header { height: 68px; padding-inline: 21px; }
  .header nav { gap: 19px; }
  .header nav a { font-size: 12px; }
  .controls { gap: 0; padding-left: 9px; }
  .hero { min-height: max(620px, calc(100svh - 68px)); padding: 25px 23px 70px; }
  .emblem { max-width: 430px; aspect-ratio: 82 / 30; margin-bottom: 13px; }
  .role { font-size: 10px; letter-spacing: .23em; margin-bottom: 23px; }
  .bio { font-size: 13px; line-height: 1.85; max-width: 350px; }
  .desktop-break { display: none; }
  .section { padding: 38px 23px 40px; }
  .section h2 { font-size: 22px; margin-bottom: 21px; }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .skills li { min-height: 53px; gap: 9px; font-size: 13px; }
  .skill-icon { width: 26px; font-size: 25px; }
  .project { gap: 17px; padding-block: 22px; align-items: flex-start; }
  .project-mark { flex-basis: 45px; width: 45px; height: 45px; }
  .project-mark img { width: 32px; height: 32px; }
  .project-copy > span { font-size: 12px; }
  .project-arrow { font-size: 22px; padding-left: 0; }
  .footer { padding-inline: 23px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
  .project { transition: none; }
}
