:root {
  --bg: #030604;
  --surface: #071009;
  --surface-2: #0a140c;
  --text: #d8e8d8;
  --muted: #748777;
  --green: #8ff07b;
  --green-dim: #3b6a3c;
  --line: #17301b;
  --line-bright: #28512d;
  --max: 1180px;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", "Liberation Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -15%, rgba(77, 145, 70, .08), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: var(--mono);
  line-height: 1.6;
  letter-spacing: -.015em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .025;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(143, 240, 123, .45) 4px
  );
}

::selection { background: var(--green); color: var(--bg); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
a:focus-visible { outline: 1px solid var(--green); outline-offset: 5px; }

.shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }

.site-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .18em;
}

.brand-mark {
  color: var(--green);
  font-size: 1.15rem;
  text-shadow: 0 0 18px rgba(143, 240, 123, .24);
}

nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: .78rem;
  text-transform: lowercase;
}

nav a[aria-current="page"] { color: var(--green); }

.hero {
  min-height: 620px;
  padding: 68px 0 76px;
  display: grid;
  align-content: space-between;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.hero > * { margin-inline: 44px; }

.hero-system,
.section-bar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.hero-system {
  color: var(--green-dim);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

h1 {
  max-width: 980px;
  margin-block: 84px 74px;
  font-size: clamp(3.8rem, 9vw, 8.4rem);
  line-height: .88;
  letter-spacing: -.075em;
  font-weight: 560;
}

.hero-meta {
  display: grid;
  grid-template-columns: minmax(0, 620px) auto;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}

.hero-meta > p:first-child {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.terminal-line,
.terminal-link {
  margin: 0;
  color: var(--green);
  font-size: .8rem;
}

.prompt { margin-right: .55rem; color: var(--green); }

.section {
  padding: 96px 0 108px;
  border-top: 1px solid var(--line);
}

.section-bar {
  align-items: end;
  margin-bottom: 54px;
}

.eyebrow,
.section-index {
  margin: 0;
  color: var(--green);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.section-index { color: var(--green-dim); }

h2 {
  margin: 9px 0 0;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: .96;
  letter-spacing: -.055em;
  font-weight: 560;
}

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

.project-folder {
  position: relative;
  padding-top: 16px;
  transition: transform 160ms ease;
}

.project-folder:hover { transform: translateY(-3px); }

.folder-tab {
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 28px;
  border: 1px solid var(--line-bright);
  border-bottom: 0;
  background: var(--surface);
  clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%);
}

.folder-body {
  position: relative;
  min-height: 330px;
  padding: 28px;
  border: 1px solid var(--line-bright);
  background:
    linear-gradient(135deg, rgba(143, 240, 123, .035), transparent 32%),
    var(--surface);
  display: flex;
  flex-direction: column;
}

.project-folder:hover .folder-body,
.project-folder:hover .folder-tab {
  border-color: var(--green-dim);
}

.folder-head,
.folder-foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.folder-head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  color: var(--green-dim);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.status { color: var(--muted); }

.folder-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 42px;
}

.folder-glyph {
  color: var(--green);
  font-size: 1.2rem;
  line-height: 1;
  text-shadow: 0 0 14px rgba(143, 240, 123, .2);
}

.project-icon {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-bright);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.project-icon img { width: 100%; height: 100%; object-fit: cover; }

.project-folder h3 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 560;
}

.folder-description {
  max-width: 440px;
  margin: 17px 0 38px;
  color: var(--muted);
}

.folder-foot {
  margin-top: auto;
  align-items: end;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  color: var(--green-dim);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.tags span:not(:last-child)::after {
  content: " /";
  color: var(--line-bright);
}

.project-links {
  display: flex;
  gap: 18px;
  font-size: .78rem;
  white-space: nowrap;
}

.project-links a:first-child { color: var(--green); }

.yard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 90px;
  align-items: start;
}

.yard-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.yard-copy p { margin: 0 0 1.4em; }

.system-list {
  margin: 0;
  border-top: 1px solid var(--line-bright);
}

.system-list > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: .76rem;
}

.system-list dt {
  color: var(--green-dim);
  text-transform: uppercase;
}

.system-list dd { margin: 0; color: var(--muted); }

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(143, 240, 123, .45);
}

.site-footer {
  padding: 42px 0 52px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
}

.footer-signature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-signature strong {
  font-size: .78rem;
  letter-spacing: .14em;
}

.site-footer p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .72rem;
}

.footer-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: .74rem;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--green-dim) !important;
  letter-spacing: .04em;
}

.compact-hero { min-height: 540px; }
.error-page { min-height: 68vh; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-folder { transition: none; }
}

@media (max-width: 800px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }

  .site-header { min-height: 66px; }
  nav { gap: 14px; font-size: .7rem; }
  nav a:first-child { display: none; }

  .hero { min-height: 470px; padding: 40px 0 46px; }
  .hero > * { margin-inline: 20px; }
  h1 {
    max-width: 100%;
    margin-block: 58px 40px;
    font-size: clamp(2.75rem, 12vw, 4.6rem);
    line-height: .92;
    letter-spacing: -.065em;
  }

  h2 {
    max-width: 100%;
    font-size: clamp(2rem, 9.5vw, 3.25rem);
    line-height: 1;
  }

  .hero-meta { grid-template-columns: 1fr; gap: 28px; }
  .terminal-line { justify-self: start; }

  .section { padding: 72px 0 82px; }
  .section-bar { align-items: start; margin-bottom: 42px; }
  .section-index { padding-top: 4px; }

  .project-grid,
  .yard-grid { grid-template-columns: 1fr; }

  .yard-grid { gap: 48px; }

  .folder-body { min-height: 300px; padding: 22px; }
  .folder-title { margin-top: 34px; }
  .folder-foot { align-items: start; flex-direction: column; }

  .site-footer { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
}

@media (max-width: 460px) {
  .brand { font-size: .76rem; }
  nav a:nth-child(2) { display: none; }

  .hero-system span:last-child { display: none; }

  .section-bar { display: block; }
  .section-index { margin-top: 12px; }

  .system-list > div { grid-template-columns: 86px 1fr; gap: 14px; }

  .folder-head { display: block; }
  .folder-head .status { display: block; margin-top: 5px; }
}
