@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #060806;
  --panel: #0c110d;
  --panel-2: #101711;
  --text: #d9e2da;
  --muted: #829087;
  --green: #8ddd9d;
  --green-soft: #263c2b;
  --border: #2f3d32;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--mono); font-size: 16px; line-height: 1.7; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
button { color: inherit; font: inherit; }
.sr-only { clip: rect(0,0,0,0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.skip { background: var(--green); color: #061008; left: 12px; padding: 7px 10px; position: fixed; top: -60px; z-index: 100; }
.skip:focus { top: 12px; }
.green, .user, .path { color: var(--green); }

body::before {
  background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, #ffffff05 4px);
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 50;
}

.terminal-shell { background: var(--panel); border-inline: 1px solid var(--border); margin: 18px auto; max-width: 1380px; min-height: calc(100vh - 36px); position: relative; width: calc(100% - 36px); }
.terminal-bar { align-items: center; background: #151c16ee; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 1fr auto 1fr; height: 48px; padding: 0 18px; position: sticky; top: 0; z-index: 40; }
.lights { display: flex; gap: 7px; }
.lights i { background: #405044; border-radius: 50%; display: block; height: 10px; width: 10px; }
.lights i:first-child { background: #bb6b62; }
.lights i:nth-child(2) { background: #baa863; }
.lights i:last-child { background: #6ea879; }
.tab-title { color: var(--muted); font-size: 12px; }
#motion-toggle { background: transparent; border: 1px solid var(--border); cursor: pointer; font-size: 11px; justify-self: end; padding: 4px 8px; }

.terminal-history { padding: 0 clamp(20px, 5vw, 70px) 60px; }
.boot { display: flex; flex-direction: column; justify-content: flex-start; min-height: calc(100svh - 85px); padding: 24px 0 70px; position: relative; }
.system-line { color: var(--muted); font-size: 13px; margin: 0 0 5px; }
.system-profile { display: grid; gap: 2px clamp(25px, 4vw, 65px); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; max-width: 860px; }
.system-profile p { color: var(--text); display: grid; font-size: 13px; grid-template-columns: minmax(100px, 150px) 1fr; margin: 0; }
.system-profile span { color: var(--green); }
.command-line { align-items: baseline; display: flex; gap: 10px; min-height: 30px; overflow-wrap: anywhere; }
.prompt { color: var(--muted); flex: none; }
.command { color: var(--text); }
.cursor { animation: blink 1s steps(1) infinite; color: var(--green); font-size: .75em; }
.boot-command { margin-top: 18px; }
.boot-output { align-items: center; display: grid; gap: clamp(25px, 5vw, 70px); grid-template-columns: 160px 1fr; margin: 35px 0 0 3%; max-width: 1000px; }
.portrait { border: 1px solid var(--border); position: relative; }
.portrait img { background: #040604; display: block; height: 160px; image-rendering: pixelated; object-fit: cover; width: 160px; }
.portrait span { background: #071008cc; bottom: 0; color: var(--green); font-size: 10px; left: 0; padding: 4px 7px; position: absolute; }
.kicker { color: var(--green); font-size: 12px; letter-spacing: .15em; margin: 0; }
h1 { font-size: clamp(48px, 9vw, 125px); font-weight: 500; letter-spacing: -.075em; line-height: 1; margin: 8px 0 20px; }
.welcome-copy { color: var(--green); font-size: 19px; }
.welcome-copy span { color: var(--muted); font-size: 13px; }
.identity-line { font-size: clamp(17px, 2vw, 24px); line-height: 1.45; max-width: 760px; }
.intro-note { color: var(--muted); max-width: 760px; }
.meta { color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.boot > .next-command { bottom: 14px; left: 0; position: absolute; width: 100%; }

.terminal-step { position: relative; }
.step-stick { padding: 38px 0 18px; position: relative; }
.step-stick > .next-command, .step-stick > .final-prompt { margin-top: clamp(55px, 8vh, 90px); }
.output { margin: 0 4% 0 10%; max-width: 960px; opacity: var(--output, 1); transform: translateY(calc((1 - var(--output, 1)) * 28px)); transition: opacity .15s linear, transform .15s linear; }
.enhanced .terminal-step:not(.started) .output { visibility: hidden; }
.file-head, .permissions { color: var(--muted); font-size: 12px; }
h2 { font-size: clamp(34px, 5.7vw, 78px); font-weight: 500; letter-spacing: -.06em; line-height: 1.12; margin: 20px 0 36px; }
.prose-output p { color: var(--muted); max-width: 760px; }
.prose-output .lead { color: var(--text); font-size: clamp(18px, 2vw, 25px); }
.prose-output a { display: inline-block; margin-top: 12px; }
.log-line { border-bottom: 1px solid var(--border); display: grid; gap: 20px; grid-template-columns: 90px 1fr; margin: 0; padding: 16px 0; }
.log-line span { color: var(--green); }
.result { border-left: 2px solid var(--green); color: var(--text); margin-top: 28px; padding-left: 18px; }

.project-grid { border: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; }
.project { border-bottom: 1px solid var(--border); color: var(--text); display: flex; flex-direction: column; min-height: 290px; padding: 25px; }
.project:nth-child(odd) { border-right: 1px solid var(--border); }
.project:nth-last-child(-n + 2) { border-bottom: 0; }
.project-top { align-items: center; display: flex; justify-content: space-between; }
.live-badge { align-items: center; border: 1px solid var(--green); color: var(--green); display: inline-flex; font-size: 10px; gap: 6px; letter-spacing: .12em; padding: 2px 7px; }
.live-badge::before { animation: live-blink 1.4s steps(1) infinite; background: var(--green); border-radius: 50%; content: ""; height: 6px; width: 6px; }
.project:hover { background: var(--green-soft); text-decoration: none; }
.project strong { font-size: clamp(22px, 3vw, 34px); font-weight: 500; margin: auto 0 10px; }
.project strong span, .project small { color: var(--green); }
.project p { color: var(--muted); font-size: 14px; }
.project small { font-size: 11px; }

.role-output > p { color: var(--muted); }
.role-output dl { border: 1px solid var(--border); }
.role-output dl div { border-bottom: 1px solid var(--border); display: grid; grid-template-columns: minmax(170px, 1fr) 2fr; }
.role-output dl div:last-child { border-bottom: 0; }
.role-output dt, .role-output dd { margin: 0; padding: 13px 18px; }
.role-output dt { border-right: 1px solid var(--border); color: var(--green); }

.career-row { border-bottom: 1px solid var(--border); display: grid; gap: 25px; grid-template-columns: 125px 1fr; padding: 17px 0; }
.career-row time { color: var(--green); font-size: 12px; }
.career-row strong, .career-row span { display: block; }
.career-row span { color: var(--muted); font-size: 13px; }
.note { color: var(--muted); font-size: 11px; }
.education { border: 1px solid var(--border); margin-top: 35px; padding: 10px 20px; }
.education p { color: var(--muted); }
.education span { color: var(--green); display: inline-block; min-width: 80px; }

.contact-output .mail { display: inline-block; font-size: clamp(16px, 3vw, 34px); overflow-wrap: anywhere; }
.terminal-status { background: var(--green); bottom: 0; color: #071008; display: grid; font-size: 11px; grid-template-columns: 1fr 1fr 1fr; inset-inline: 0; padding: 4px max(calc((100vw - 1380px) / 2 + 22px), 30px); position: fixed; z-index: 45; }
.terminal-status span:nth-child(2) { text-align: center; }
.terminal-status span:last-child { text-align: right; }

.reduced .step-stick { min-height: 0; padding-block: 38px; position: relative; }
.reduced .cursor { animation: none; }
.reduced .live-badge::before { animation: none; }
.reduced .output { opacity: 1 !important; transform: none !important; visibility: visible !important; }
.reduced .command { visibility: visible !important; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes live-blink { 50% { opacity: .2; } }

@media (max-width: 700px) {
  body { font-size: 14px; }
  .terminal-shell { border-inline: 0; margin: 0; min-height: 100vh; width: 100%; }
  .terminal-bar { height: 44px; padding: 0 12px; }
  .lights { gap: 5px; }
  .lights i { height: 8px; width: 8px; }
  .tab-title { font-size: 10px; }
  #motion-toggle { font-size: 9px; }
  .terminal-history { padding-inline: 16px; }
  .boot { min-height: 100svh; padding: 72px 0 62px; }
  .system-profile { grid-template-columns: 1fr; }
  .system-profile p { grid-template-columns: 120px 1fr; }
  .command-line { gap: 6px; font-size: 12px; }
  .boot-output { gap: 20px; grid-template-columns: 82px 1fr; margin-left: 0; }
  .portrait img { height: 82px; width: 82px; }
  h1 { font-size: clamp(39px, 13vw, 64px); }
  .welcome-copy { font-size: 15px; }
  .step-stick { padding: 32px 0 16px; }
  .step-stick > .next-command, .step-stick > .final-prompt { margin-top: 55px; }
  .output { margin: 35px 0 0 5%; }
  h2 { font-size: clamp(31px, 9vw, 48px); }
  .project-grid { grid-template-columns: 1fr; }
  .project { min-height: 200px; }
  .project:nth-child(odd) { border-right: 0; }
  .project:nth-last-child(-n + 2) { border-bottom: 1px solid var(--border); }
  .project:last-child { border-bottom: 0; }
  .role-output dl div { grid-template-columns: 1fr; }
  .role-output dt { border-bottom: 1px solid var(--border); border-right: 0; }
  .career-row { grid-template-columns: 90px 1fr; }
  .education span { display: block; }
  .terminal-status { padding-inline: 12px; }
}

@media (max-height: 680px) {
  .step-stick { min-height: 0; padding-block: 34px; position: relative; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .step-stick { min-height: 0; padding-block: 38px; position: relative; }
  .cursor { animation: none; }
  .live-badge::before { animation: none; }
  .output { opacity: 1 !important; transform: none !important; visibility: visible !important; }
  .command { visibility: visible !important; }
}
