:root {
  --ink: #101018;
  --paper: #f4f0e6;
  --acid: #d8f33f;
  --coral: #ff654f;
  --lavender: #b7a4ff;
  --muted: #78746d;
  --line: rgba(16, 16, 24, 0.25);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Mono", monospace;
  overflow-x: hidden;
}

.crt-noise {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: .07;
  background: repeating-linear-gradient(0deg, transparent 0 3px, var(--ink) 4px, transparent 5px);
}
.site-shell { width: min(1220px, calc(100% - 64px)); margin: 0 auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 106px;
  border-bottom: 1px solid var(--line);
}
.wordmark { color: var(--ink); font: 700 22px "Space Mono", monospace; letter-spacing: 0; text-decoration: none; }
.wordmark-bracket, .wordmark-dot { color: var(--coral); }
.main-nav { display: flex; gap: clamp(18px, 4vw, 54px); align-items: center; }
.nav-link, .back-link { color: var(--ink); font-size: 11px; text-decoration: none; letter-spacing: 1px; }
.nav-link span { color: var(--muted); margin-right: 7px; }
.nav-link:hover, .nav-link.is-active, .back-link:hover { color: var(--coral); }
.nav-link.is-active { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.view { min-height: calc(100vh - 190px); padding: 94px 0 80px; }
.view-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, 43%); gap: 9%; align-items: center; }
.eyebrow { margin: 0 0 28px; color: var(--muted); font-size: 10px; letter-spacing: 1.4px; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--coral); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 101, 79, .14); animation: blink 1.7s infinite; }
h1, h2 { margin: 0; font: 700 clamp(56px, 8.4vw, 116px)/.88 "Space Mono", monospace; letter-spacing: -3px; }
h1 em, h2 em { color: var(--coral); font-style: normal; }
.intro { max-width: 400px; margin: 36px 0 0; color: #48463f; font-size: 14px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 27px; margin-top: 47px; }
.pixel-button { display: inline-flex; gap: 26px; align-items: center; padding: 15px 17px; background: var(--ink); color: var(--acid); font-size: 11px; text-decoration: none; letter-spacing: 1px; box-shadow: 5px 5px 0 var(--coral); transition: transform .18s, box-shadow .18s; }
.pixel-button:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--coral); }
.pixel-button span { font-size: 18px; line-height: 10px; }
.tiny-note { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.portrait-frame { position: relative; padding: 14px 14px 12px; background: var(--lavender); transform: rotate(2.2deg); box-shadow: 10px 10px 0 var(--ink); animation: float-in .9s both cubic-bezier(.22, 1, .36, 1); }
.portrait-wrap { position: relative; overflow: hidden; aspect-ratio: 1 / 1.05; background: var(--ink); }
.portrait-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) contrast(1.12); transition: transform 8s cubic-bezier(.2, .8, .2, 1); }
.portrait-frame:hover img { transform: scale(1.08); }
.portrait-scanline { position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(16, 16, 24, .26) 51%); background-size: 100% 6px; mix-blend-mode: multiply; }
.portrait-caption { position: absolute; right: 17px; bottom: 15px; color: var(--paper); font-size: 9px; line-height: 1.6; text-align: right; text-shadow: 2px 2px var(--ink); }
.portrait-caption span { color: var(--acid); }
.frame-label { padding: 4px 0 2px; font-size: 9px; letter-spacing: .7px; }
.frame-label-bottom { display: flex; justify-content: space-between; }
.frame-label-bottom span { color: var(--coral); font-size: 15px; line-height: 9px; }
.view-projects { padding-top: 90px; }
.view-contact { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 9%; align-items: center; }
.contact-console { padding: 0 22px 25px; background: var(--ink); color: var(--acid); box-shadow: 10px 10px 0 var(--coral); }
.console-top { display: flex; justify-content: space-between; padding: 13px 0 11px; border-bottom: 1px solid rgba(216, 243, 63, .3); color: var(--paper); font-size: 9px; letter-spacing: .8px; }
.console-top span:last-child { color: var(--coral); letter-spacing: 4px; }
.console-prompt { margin: 42px 0 14px; font-size: 11px; }
.console-response { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.contact-address { min-height: 31px; margin: 38px 0 27px; color: var(--paper); font: 700 clamp(16px, 2vw, 24px) "Space Mono", monospace; overflow-wrap: anywhere; }
.contact-actions { display: flex; align-items: center; gap: 18px; }
.contact-button { border: 0; cursor: pointer; box-shadow: 4px 4px 0 var(--lavender); }
.contact-button:hover { box-shadow: 2px 2px 0 var(--lavender); }
.copy-status { color: var(--coral); font-size: 10px; }
.view-contact .back-link { position: absolute; left: 0; bottom: 10px; }
.projects-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 30px; }
.projects-heading .eyebrow { grid-column: 1 / -1; }
.projects-heading .intro { margin: 0 0 5px; }
.project-list { margin-top: 80px; border-top: 2px solid var(--ink); }
.project-row { display: grid; grid-template-columns: 60px 1fr 180px 30px; gap: 15px; align-items: center; min-height: 90px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background .2s, padding .2s; }
a.project-row:hover { padding: 0 17px; background: var(--acid); }
.project-number, .project-type { color: var(--muted); font-size: 10px; }
.project-name { font: 700 17px "Space Mono", monospace; }
.project-arrow { color: var(--coral); font-size: 20px; }
.project-row-muted { color: var(--muted); }
.back-link { display: inline-block; margin-top: 45px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: .5px; }
.footer-signal b { color: var(--coral); font-weight: 400; }.footer-signal i { color: var(--acid); font-style: normal; text-shadow: 1px 1px var(--ink); }

@keyframes blink { 50% { opacity: .35; } }
@keyframes float-in { from { opacity: 0; transform: translateY(25px) rotate(7deg); } to { opacity: 1; transform: translateY(0) rotate(2.2deg); } }
@media (max-width: 760px) {
  .site-shell { width: min(100% - 32px, 520px); }
  .site-header { min-height: 86px; align-items: flex-start; padding-top: 23px; }
  .main-nav { flex-wrap: wrap; justify-content: flex-end; gap: 9px 15px; max-width: 230px; }
  .nav-link { font-size: 9px; }.nav-link span { display: none; }
  .view, .view-projects { min-height: auto; padding: 64px 0 68px; }
  .view-home { display: flex; flex-direction: column; gap: 64px; align-items: stretch; }
  h1, h2 { font-size: clamp(46px, 15vw, 78px); letter-spacing: -2px; }
  .intro { margin-top: 27px; font-size: 13px; }.hero-actions { margin-top: 35px; align-items: flex-start; flex-direction: column; gap: 17px; }
  .portrait-frame { width: 88%; align-self: center; }.projects-heading { display: block; }.projects-heading .intro { margin-top: 27px; }
  .view-contact { display: flex; flex-direction: column; align-items: stretch; gap: 57px; }.view-contact .back-link { position: static; }.contact-console { width: 92%; align-self: center; }
  .project-list { margin-top: 52px; }.project-row { grid-template-columns: 30px 1fr 25px; min-height: 82px; gap: 9px; }.project-type { display: none; }.project-name { font-size: 12px; }
  .site-footer { flex-wrap: wrap; line-height: 1.5; }.footer-signal { order: 3; width: 100%; }
}