:root {
  color-scheme: dark;
  --bg: #020403;
  --ink: #d8ffe2;
  --muted: #78a887;
  --dim: #375a40;
  --hot: #00ff66;
  --acid: #9dff00;
  --cyan: #34ffe7;
  --line: rgba(0, 255, 102, 0.28);
  --panel: rgba(0, 20, 8, 0.78);
  --shadow: 0 0 26px rgba(0, 255, 102, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  background:
    linear-gradient(rgba(0, 255, 102, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 102, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 70% 20%, rgba(52, 255, 231, 0.12), transparent 34%),
    var(--bg);
  background-size: 100% 4px, 42px 42px, auto, auto;
  color: var(--ink);
  font-family: "Courier New", Consolas, monospace;
  line-height: 1.48;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(transparent 50%, rgba(0, 0, 0, 0.32) 50%),
    radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.48));
  background-size: 100% 4px, auto;
  mix-blend-mode: multiply;
  z-index: 20;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.matrix-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  color: rgba(0, 255, 102, 0.18);
  font-size: 0.72rem;
}

.matrix-field span {
  position: absolute;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  animation: fall 14s linear infinite;
}

.matrix-field span:nth-child(1) {
  left: 8%;
  animation-duration: 12s;
}

.matrix-field span:nth-child(2) {
  left: 24%;
  animation-duration: 16s;
  animation-delay: -6s;
}

.matrix-field span:nth-child(3) {
  left: 43%;
  animation-duration: 13s;
  animation-delay: -3s;
}

.matrix-field span:nth-child(4) {
  left: 61%;
  animation-duration: 18s;
  animation-delay: -9s;
}

.matrix-field span:nth-child(5) {
  left: 78%;
  animation-duration: 15s;
  animation-delay: -4s;
}

.matrix-field span:nth-child(6) {
  left: 92%;
  animation-duration: 17s;
  animation-delay: -8s;
}

@keyframes fall {
  from {
    transform: translateY(-120%);
  }
  to {
    transform: translateY(120vh);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(2, 4, 3, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--hot);
  font-size: 0.95rem;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(0, 255, 102, 0.9);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 22px);
  color: var(--muted);
  font-size: 0.86rem;
}

nav a:hover,
.quick-links a:hover,
.link-list a:hover,
.inline-link:hover {
  color: var(--hot);
  text-shadow: 0 0 10px rgba(0, 255, 102, 0.9);
}

.hero {
  min-height: calc(100svh - 54px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: clamp(22px, 5vw, 70px);
  padding: clamp(36px, 7vw, 94px) clamp(16px, 4vw, 48px) clamp(22px, 4vw, 44px);
}

.hero-copy {
  max-width: 820px;
}

.eyebrow,
.tag,
.terminal-line {
  color: var(--hot);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.eyebrow,
.tag {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 100%;
  color: var(--ink);
  font-size: clamp(3.6rem, 9vw, 8.2rem);
  line-height: 0.9;
  text-shadow:
    0 0 10px rgba(0, 255, 102, 0.72),
    3px 0 0 rgba(52, 255, 231, 0.3);
}

.name-stack {
  display: grid;
  gap: 0.04em;
}

.name-stack span {
  display: block;
  white-space: nowrap;
}

.dek {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--ink);
  font-size: clamp(1.1rem, 2.1vw, 1.85rem);
  line-height: 1.18;
}

.terminal-line {
  margin: 22px 0 0;
  max-width: 720px;
  font-size: 0.92rem;
}

.terminal-line::after {
  content: "_";
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.quick-links a,
.link-list a,
.inline-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(0, 255, 102, 0.06);
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 0 0 18px rgba(0, 255, 102, 0.05);
}

.quick-links a::before,
.link-list a::before {
  content: "> ";
  color: var(--hot);
}

.hero-media {
  margin: 0;
  align-self: stretch;
  min-height: 480px;
  border: 1px solid var(--line);
  background: #000;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-media img {
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.25) saturate(1.3) hue-rotate(72deg);
  mix-blend-mode: screen;
}

.hero-media figcaption {
  margin-top: -46px;
  padding: 12px 14px;
  position: relative;
  background: rgba(0, 0, 0, 0.78);
  color: var(--hot);
  font-size: 0.84rem;
  border-top: 1px solid var(--line);
}

.ticker {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.58);
}

.ticker span {
  min-height: 52px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 0.86rem;
}

.ticker span:nth-child(2n) {
  color: var(--acid);
}

.section {
  padding: clamp(48px, 9vw, 112px) clamp(16px, 4vw, 48px);
}

.intro-grid,
.split,
.links-section {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(300px, 1.16fr);
  gap: clamp(24px, 6vw, 84px);
  border-bottom: 1px solid var(--line);
}

.intro-grid p:last-child,
.terminal-panel p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.6vw, 1.3rem);
}

h2 {
  margin: 0;
  max-width: 850px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 4.7rem);
  line-height: 0.98;
  text-shadow: 0 0 10px rgba(0, 255, 102, 0.35);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project,
.terminal-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.project {
  overflow: hidden;
}

.project.feature {
  grid-column: span 2;
}

.project img {
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  background: #000;
  filter: grayscale(0.15) contrast(1.25) saturate(1.1) hue-rotate(80deg);
}

.project-copy,
.terminal-panel {
  padding: 18px;
}

.project-copy {
  min-height: 236px;
}

.project h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.5vw, 2.05rem);
  line-height: 1;
}

.project p:last-child {
  margin: 0;
  color: var(--muted);
}

.terminal-panel {
  display: grid;
  gap: 16px;
}

.terminal-panel::before {
  content: "kidist@haystack:~/printmaking$ cat process.log";
  color: var(--hot);
  font-size: 0.82rem;
}

.inline-link {
  justify-self: start;
  color: var(--hot);
}

.haystack-section {
  border-bottom: 1px solid var(--line);
}

.haystack-section .split {
  padding-bottom: clamp(28px, 5vw, 54px);
  border-bottom: 0;
}

.haystack-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.haystack-gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.haystack-gallery figure:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.haystack-gallery img {
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(1.05);
}

.haystack-gallery figcaption {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  color: var(--hot);
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.72);
}

.link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.link-list a {
  justify-content: flex-start;
  min-height: 56px;
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(16px, 4vw, 48px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.72);
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
  }

  .hero,
  .intro-grid,
  .split,
  .links-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media,
  .hero-media img {
    min-height: 320px;
  }

  .ticker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid,
  .haystack-gallery,
  .link-list {
    grid-template-columns: 1fr;
  }

  .project.feature,
  .haystack-gallery figure:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }

  .project-copy {
    min-height: 0;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header {
    position: static;
  }

  nav {
    width: 100%;
  }

  .site-header,
  .quick-links {
    flex-wrap: wrap;
  }

  .quick-links a {
    flex: 1 1 132px;
  }

  h1 {
    font-size: clamp(3rem, 19vw, 5.4rem);
  }
}
