@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono.ttf") format("truetype");
  font-weight: 100 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #101210;
  --fg: #eef4eb;
  --muted: #a5b0a3;
  --accent: #bcf896;
  --line: #30382e;
  --mono: "JetBrains Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; }
.site-header, main, footer { max-width: 1320px; margin: auto; padding-inline: 54px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 10; top: 10px; left: 15px; padding: 12px 18px; background: var(--accent); color: var(--bg); opacity: 0; pointer-events: none; clip-path: inset(50%); }
.skip-link:focus-visible { opacity: 1; pointer-events: auto; clip-path: none; }
.site-header { height: 90px; display: flex; align-items: center; justify-content: space-between; }
.logo { font: 17px var(--mono); letter-spacing: -1px; display: inline-flex; align-items: center; min-height: 44px; }
.logo span, h1 span { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 24px; }
.language-switch { position: relative; }
.language-trigger { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 52px; min-height: 44px; padding: 0 6px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font: 11px var(--mono); cursor: pointer; }
.language-trigger svg { fill: none; stroke: currentColor; stroke-width: 1.3; }
.language-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.language-trigger:hover, .language-trigger[aria-expanded="true"] { color: var(--accent); }
.language-trigger:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.language-options { position: absolute; z-index: 20; top: calc(100% + 4px); right: 0; width: 120px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #181d17; }
.language-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font: 11px var(--mono); text-align: left; cursor: pointer; }
.language-button::after { content: "✓"; opacity: 0; }
.language-button[aria-pressed="true"]::after { opacity: 1; }
.language-button:hover, .language-button[aria-pressed="true"] { color: var(--accent); }
.language-button:focus-visible { outline: 1px solid var(--accent); outline-offset: -2px; }
nav { display: flex; gap: 30px; font-size: 13px; color: var(--muted); }
nav a { display: inline-flex; align-items: center; min-height: 44px; }
nav a:hover { color: var(--accent); }
.hero { padding: 55px 0 40px; }
h1 { font-size: clamp(85px, 14vw, 190px); line-height: .88; letter-spacing: -.065em; font-weight: 500; margin: 12px 0 28px; }
.descriptor { display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--muted); margin: 0; }
.descriptor i { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.statement { font-size: clamp(25px, 3.7vw, 46px); line-height: 1.2; font-weight: 500; letter-spacing: -1.4px; margin: 34px 0 0; }
.statement-secondary, .muted { color: var(--muted); }
.identity { color: var(--muted); font-size: 12px; margin: 18px 0 0; }
.identity span { display: inline-block; margin-left: 16px; }
.engine { margin: 38px 0 20px; display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; height: 220px; }
.terminal { font: 13px/1.8 var(--mono); color: #c4cec0; background: #181d17; border: 1px solid var(--line); border-radius: 12px; padding: 22px 28px; min-width: 0; }
.terminal-bar { display: flex; gap: 5px; align-items: center; margin-bottom: 18px; }
.terminal-bar i { width: 6px; height: 6px; background: #53604b; border-radius: 50%; }
.terminal-bar span { margin-left: auto; font-size: 10px; color: var(--muted); }
pre { margin: 0; white-space: pre-wrap; }
code { font: inherit; }
code b { color: var(--accent); font-weight: 400; }
.code-comment { color: #a0ad97; }
.cursor { display: inline-block; width: 7px; height: 14px; margin-left: 5px; background: var(--accent); vertical-align: middle; }
.wire { position: relative; height: 1px; background: #45573e; overflow: hidden; }
.wire span { position: absolute; height: 2px; width: 14px; background: var(--accent); left: 0; opacity: 0; }
.data { height: 190px; display: flex; align-items: end; gap: 14px; padding: 28px 26px 0; position: relative; border-bottom: 1px solid var(--line); }
.bar { background: var(--accent); height: var(--height); flex: 1; border-radius: 3px 3px 0 0; transform-origin: bottom; opacity: var(--opacity); }
.engine.is-running .bar { animation: grow 1.1s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--delay); }
.engine.is-running .wire span { animation: transmit 1s ease-in-out 2; }
.engine.is-running .cursor { animation: blink .7s steps(1) 3; }
.hero-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; min-height: 44px; }
.run { color: var(--accent); background: none; border: 1px solid #526246; border-radius: 30px; padding: 12px 18px; min-height: 44px; cursor: pointer; display: flex; align-items: center; gap: 10px; font: 12px var(--mono); }
.run:hover { background: #23301b; }
.run:disabled { cursor: default; opacity: .6; }
.scroll-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; margin-left: auto; font-size: 12px; color: var(--muted); }
.scroll-link .scroll-arrow { font-size: 20px; }
.projects { padding: 55px 0 60px; border-top: 1px solid var(--line); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.section-title h2, .experience h2 { font-size: 22px; font-weight: 500; margin: 0; }
.section-title > span { color: var(--muted); font: 10px var(--mono); text-transform: uppercase; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project { position: relative; display: block; border-radius: 12px; height: 310px; background: #c9dabf; color: #1c2b1a; isolation: isolate; }
.project:focus-visible { outline-offset: 7px; }
.parking { background: #c1c7fa; color: #202444; }
.project-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.project h3 { font-size: 26px; margin: 0 0 2px; font-weight: 600; letter-spacing: -.6px; }
.project p { font-size: 12px; margin: 0; }
.project .project-detail { margin-top: 5px; font-size: 11px; }
.external-arrow { font-size: 30px; line-height: 1; transition: transform .25s; }
.school-art { height: 170px; width: 70%; position: absolute; top: 24px; left: 15%; display: flex; align-items: center; justify-content: center; gap: 10px; transform: rotate(-6deg); transition: transform .4s; }
.sheet { height: 122px; width: 85px; background: #f7fbf1; border-radius: 6px; box-shadow: 0 12px 25px #2b4e2520; padding: 16px 12px; }
.sheet:nth-child(2) { height: 146px; transform: translateY(-8px); }
.sheet i { display: block; height: 5px; background: #b5cc9e; margin-bottom: 10px; border-radius: 2px; }
.sheet i:nth-child(2) { width: 60%; background: #57734b; }
.plot { display: flex; height: 58px; gap: 5px; align-items: end; margin-top: 20px; }
.plot b { width: 12px; background: #7c9f5f; height: 45%; }
.plot b:nth-child(2) { height: 75%; }
.plot b:nth-child(3) { height: 90%; }
.parking-art { position: absolute; inset: 25px 50px 110px; display: flex; align-items: center; justify-content: center; gap: 18px; transform: rotate(7deg); transition: transform .4s; }
.slot { width: 68px; height: 112px; border: 1px solid #8e96d6; border-bottom: 0; display: flex; justify-content: center; align-items: center; }
.slot svg { width: 40px; height: 60px; fill: none; stroke: #4d5696; stroke-width: 2; }
.slot:nth-child(2) { background: #323965; border-color: #323965; border-radius: 8px; transform: translateY(-10px); }
.slot:nth-child(2) svg { stroke: #d7dcff; }
.status { position: absolute; top: 15px; right: 17px; font-size: 10px; z-index: 2; }
.status::before { content: ""; display: inline-block; width: 5px; height: 5px; background: currentColor; border-radius: 50%; margin-right: 6px; }
.experience { display: grid; grid-template-columns: .7fr 1.4fr 1fr; gap: 25px; padding: 0 0 55px; align-items: start; }
.job + .job { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.roles h3 { font-size: 17px; font-weight: 500; margin: 0 0 4px; }
.roles p { margin: 5px 0; font-size: 13px; }
.roles .role-summary { margin-top: 8px; color: var(--muted); font-size: 12px; }
.experience-details { color: var(--muted); font-size: 12px; line-height: 1.9; }
.experience-details ul { padding: 0; margin: 0; list-style: none; }
.learning { color: var(--accent); margin: 15px 0 0; }
.learning span { margin-right: 5px; }
footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 25px; color: var(--muted); font: 10px/1.7 var(--mono); }
@media (hover: hover) {
  .project:hover .external-arrow { transform: translate(3px, -3px); }
  .project:hover .school-art { transform: rotate(-2deg) translateY(-5px); }
  .project:hover .parking-art { transform: rotate(3deg) translateY(-4px); }
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes transmit { 0% { transform: translateX(-14px); opacity: 1; } 100% { transform: translateX(120px); opacity: 1; } }
@keyframes grow { from { transform: scaleY(.05); } to { transform: scaleY(1); } }
@media (max-width: 900px) {
  .engine { grid-template-columns: 1fr 60px 1fr; }
  .terminal { padding-inline: 18px; font-size: 11px; }
  .project-info { padding: 20px; }
  .school-art { width: 80%; left: 10%; }
  .parking-art { left: 30px; right: 30px; }
  .experience { grid-template-columns: .6fr 1fr 1fr; gap: 18px; }
}
@media (max-width: 700px) {
  .site-header, main, footer { padding-inline: 24px; }
  .site-header { height: 72px; }
  nav { gap: 8px; font-size: 12px; }
  .header-actions { gap: 4px; }
  .hero { padding-top: 38px; }
  h1 { font-size: clamp(70px, 18vw, 120px); letter-spacing: -.06em; }
  .statement { font-size: clamp(28px, 7.6vw, 40px); letter-spacing: -1px; margin-top: 28px; }
  .descriptor { font-size: 11px; gap: 10px; }
  .identity { font-size: 11px; line-height: 1.8; }
  .identity span { display: block; margin-left: 0; }
  .engine { grid-template-columns: 1fr; height: auto; gap: 0; margin-top: 32px; }
  .terminal { font-size: 12px; padding: 18px 22px; }
  .wire { width: 1px; height: 28px; margin-inline: auto; }
  .wire span { display: none; }
  .data { height: 135px; padding-inline: 20px; gap: 14px; }
  .hero-bottom { margin-top: 20px; }
  .projects { padding-top: 34px; padding-bottom: 40px; }
  .project-grid { grid-template-columns: 1fr; gap: 18px; }
  .project { height: 300px; }
  .section-title h2 { font-size: 20px; }
  .section-title > span { font-size: 8px; text-align: right; }
  .school-art { width: 70%; left: 15%; }
  .experience { grid-template-columns: 1fr; gap: 20px; padding-bottom: 35px; }
  .roles .role-summary br { display: none; }
  .experience-details { font-size: 13px; }
  footer { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
