:root {
  color-scheme: dark;
  --bg: #0b0e0a;
  --line: #293326;
  --text: #e9eee5;
  --accent: #c4f65a;
  font-family: "Courier New", monospace;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.matrix { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .2; }
.page { position: relative; max-width: 1200px; min-height: 100vh; margin: auto; padding: 0 7%; display: flex; flex-direction: column; }
.topbar { height: 96px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.brand-mark { color: var(--accent); font-size: 26px; transform: rotate(-45deg); }
.brand-dot { color: var(--accent); }
main { flex: 1; }
.projects { max-width: 760px; padding: 85px 0 100px; }
.boot-log { margin-bottom: 48px; color: #788f6e; font-size: 11px; line-height: 1.8; }
.boot-log span { color: var(--accent); }
.boot-line { animation: boot-line .25s both; }
.boot-line:nth-child(2) { animation-delay: .35s; }
@keyframes boot-line { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .terminal-output { animation: terminal-line .25s steps(12, end) backwards; animation-delay: var(--delay); }
  .terminal-panel { animation-name: terminal-panel; animation-duration: .35s; }
  .terminal-panel:focus-visible, .terminal-output:focus-within { animation: none; }
  @keyframes terminal-line { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0); } }
  @keyframes terminal-panel { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } }
}
.prompt { margin: 0 0 25px; color: #768271; font-size: 12px; }
.prompt span { color: var(--accent); }
h1 { margin: 0 0 20px; font-family: Arial, Helvetica, sans-serif; font-size: clamp(48px, 7vw, 80px); letter-spacing: -.065em; line-height: 1; }
.cursor { color: var(--accent); animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.intro { margin: 0 0 50px; color: #a4aea0; font-size: 14px; line-height: 1.8; }
.intro span { color: var(--accent); }
.project-card { position: relative; display: flex; align-items: center; min-height: 320px; overflow: hidden; padding: 30px; border: 1px solid #34412f; background: #11170f; text-decoration: none; transition: border-color .25s, background .25s, box-shadow .25s; }
.project-prompt { margin: 32px 0 12px; }
.project-card:hover, .project-card:focus-visible { border-color: var(--accent); background: #151e12; box-shadow: 0 0 24px rgba(196, 246, 90, .1); }
.project-content { position: relative; z-index: 1; }
.project-content h2 { margin: 0 0 12px; font-family: Arial, Helvetica, sans-serif; font-size: 30px; letter-spacing: -.04em; }
.project-content p { margin: 0 0 22px; color: #a4aea0; font-family: Arial, Helvetica, sans-serif; font-size: 14px; }
.project-url { color: var(--accent); font-size: 11px; }
.project-status { display: block; margin-top: 12px; color: #8c9c82; font-size: 10px; }
.card-arrow { position: absolute; z-index: 1; top: 24px; right: 30px; color: var(--accent); font-size: 23px; transition: transform .25s; }
.project-card:hover .card-arrow, .project-card:focus-visible .card-arrow { transform: translate(4px, -4px); }
.card-index { position: absolute; z-index: 1; top: 24px; left: 30px; color: #84997a; font-size: 10px; }
.project-art { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 47px, #1c2a1b 48px), repeating-linear-gradient(90deg, transparent 0 47px, #1c2a1b 48px); pointer-events: none; }
.project-art::before { content: ""; position: absolute; inset: -50% 0; background: linear-gradient(transparent 46%, rgba(196, 246, 90, .05) 50%, transparent 54%); animation: scan 12s linear infinite; }
.project-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #11170f 0%, rgba(17, 23, 15, .85) 35%, transparent 85%); }
.project-art svg { display: block; width: 100%; height: 100%; transition: transform .4s; }
.project-card:hover .project-art svg, .project-card:focus-visible .project-art svg { transform: scale(1.04); }
@keyframes scan { from { transform: translateY(-50%); } to { transform: translateY(50%); } }
.dj-lines { fill: none; stroke: #526a45; stroke-width: 1; }
.dj-labels, .dj-track text { fill: #9ab38b; font: 8px "Courier New", monospace; letter-spacing: .08em; }
.dj-highlights { fill: #a4d75b; stroke: #a4d75b; stroke-width: 2; }
.dj-record, .dj-waveform { transform-box: fill-box; transform-origin: center; }
.dj-record { animation: record-spin 8s linear infinite; }
.dj-waveform { animation: waveform-pulse 1.4s ease-in-out infinite alternate; }
.dj-track { transform: translateY(calc(var(--row) * 40px)); opacity: var(--visible); transition: opacity .35s ease-in-out; }
.dj-meter, .dj-bar { transform-box: fill-box; transform-origin: left center; }
.dj-meter { transform: scaleX(var(--level)); transition: transform .9s ease-in-out; }
.dj-bar { fill: none; stroke: #a4d75b; stroke-width: 2; animation: chart-pulse 2.4s ease-in-out infinite alternate; }
@keyframes record-spin { to { transform: rotate(360deg); } }
@keyframes waveform-pulse { from { transform: scaleY(.55); } to { transform: scaleY(1.15); } }
@keyframes chart-pulse { from { transform: scaleX(.9); } to { transform: scaleX(1); } }
.railway-grid { fill: none; stroke: #1c2a1b; stroke-width: .5; }
.railway-lines { fill: none; stroke: #526a45; stroke-width: 1; stroke-linejoin: round; }
.railway-stations { fill: #a4d75b; }
.railway-labels { fill: #849b79; font: 6px "Courier New", monospace; letter-spacing: .04em; }
.train { fill: none; stroke: #d7ff80; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 4 996; animation: train-travel 12s linear infinite; filter: drop-shadow(0 0 3px #c4f65a); }
.train-two { animation-duration: 15s; animation-delay: -7s; }
.train-three { animation-duration: 10s; animation-delay: -4s; }
@keyframes train-travel { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1000; } }
.disclaimer { margin-top: 40px; max-width: 650px; color: #a4aea0; font-size: 12px; line-height: 1.8; }
.disclaimer .prompt { margin-bottom: 12px; }
.disclaimer p { margin-top: 0; }
.work-in-progress { color: #788f6e; }
.disclaimer .closing-prompt { margin: 30px 0 0; }
.closing-prompt a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.closing-prompt a:hover { color: #e0ff9a; }
footer { min-height: 85px; border-top: 1px solid var(--line); display: flex; align-items: center; color: #819079; font-size: 9px; letter-spacing: .1em; }
@media (max-width: 500px) {
  .page { padding: 0 6%; }
  .topbar { height: 76px; }
  .projects { padding: 70px 0; }
  .project-card { min-height: 280px; padding: 24px; }
  .project-art::after { background: linear-gradient(90deg, rgba(17, 23, 15, .95), rgba(17, 23, 15, .35)); }
  .card-arrow { right: 24px; }
  .card-index { left: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor, .train, .dj-record, .dj-waveform, .dj-bar, .boot-line, .project-art::before { animation: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
