/* Projects catalog — aligns with Work / Products page language */
html { scroll-behavior: smooth; scroll-padding-top: 84px }
body { background: #050505; color: #fff; font-family: Manrope, Arial, sans-serif; overflow-x: hidden }
.container-x { width: min(1360px, calc(100% - 96px)); margin: 0 auto }
@media (max-width: 1279px) { .container-x { width: calc(100% - 56px) } }
@media (max-width: 767px) { .container-x { width: calc(100% - 40px) } }
.mono { font-family: "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase }
.section { padding: 88px 0 }
@media (max-width: 767px) { .section { padding: 60px 0 } }
.h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -.035em }
.h2 { font-size: clamp(27px, 2.8vw, 38px); line-height: 1.16; letter-spacing: -.03em }
.grid-bg {
  background-image: linear-gradient(rgba(36, 36, 36, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(36, 36, 36, .5) 1px, transparent 1px);
  background-size: 48px 48px
}
.cross { position: absolute; width: 17px; height: 17px; opacity: .55; pointer-events: none }
.cross:before, .cross:after { content: ""; position: absolute; background: #666 }
.cross:before { width: 17px; height: 1px; top: 8px; left: 0 }
.cross:after { width: 1px; height: 17px; left: 8px; top: 0 }
.corners { position: relative }
.corners:before, .corners:after { content: ""; position: absolute; width: 12px; height: 12px; border-color: #666; pointer-events: none }
.corners:before { left: -1px; top: -1px; border-left: 1px solid; border-top: 1px solid }
.corners:after { right: -1px; bottom: -1px; border-right: 1px solid; border-bottom: 1px solid }
.ruler {
  height: 6px;
  background-image: repeating-linear-gradient(90deg, #383838 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, #666 0 1px, transparent 1px 50px);
  background-size: auto 4px, auto 6px;
  background-repeat: repeat-x;
  background-position: bottom
}
.dashed { border-top: 1px dashed #383838 }
*:focus-visible { outline: 1px solid #C6FF00; outline-offset: 2px }

.tree-stem { width: 1px; height: 18px; background: #555; margin: 0 auto }
.tree-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; position: relative; padding-top: 18px }
.tree-row:before { content: ""; position: absolute; top: 0; height: 1px; background: #555; left: calc((100% - 24px) / 6); right: calc((100% - 24px) / 6) }
.tree-row > * { position: relative }
.tree-row > *:before { content: ""; position: absolute; top: -18px; left: 50%; width: 1px; height: 18px; background: #555 }
.tree-row.down > *:after { content: ""; position: absolute; bottom: -18px; left: 50%; width: 1px; height: 18px; background: #555 }
.tree-join { position: relative; height: 18px }
.tree-join:before { content: ""; position: absolute; bottom: 0; height: 1px; background: #555; left: calc((100% - 24px) / 6); right: calc((100% - 24px) / 6) }

.prj-card { transition: border-color .15s }
.prj-card:hover, .prj-card:focus-within { border-color: #383838 }
.prj-card .cta-arrow { display: inline-block; transition: transform .15s }
.prj-card:hover .cta-arrow { transform: translateX(3px) }
.prj-viz {
  min-height: 120px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(36,36,36,.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36,36,36,.45) 1px, transparent 1px);
  background-size: 24px 24px;
}
.prj-viz-code {
  border: 1px solid #fff;
  background: #050505;
  padding: 14px 18px;
  font: 500 11px/1.3 "IBM Plex Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.desktop-nav-sm { display: none }
@media (max-width: 1179px) {
  .desktop-nav { display: none !important }
  .desktop-nav-sm { display: flex !important }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *:before, *:after { transition: none !important; animation: none !important }
}
