:root {
  --bg: #ffffff;
  --ink: #000000;
  --line: #bdbdbd;
  --ascii: #a8a8a8;
  --gutter: 8px;
  --mono: "Space Mono", ui-monospace, monospace;
  --sans: "Space Grotesk", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ---------- Background layers ---------- */
.bg-pixelgrid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .06;
  background:
    repeating-linear-gradient(0deg, var(--ink) 0 1px, transparent 1px 10px);
}
.bg-columns {
  position: fixed; inset: 0 var(--gutter); z-index: 3; pointer-events: none;
  display: flex; justify-content: space-between;
}
.bg-columns span { width: 1px; height: 100%; background: var(--line); }

/* ---------- Nav (sits on the 4-column grid) ---------- */
.nav {
  position: fixed; top: 0; left: var(--gutter); right: var(--gutter); z-index: 10;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 18px;
  font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  color: #fff; mix-blend-mode: difference;
}
.nav a { padding-left: 8px; transition: opacity .2s; }
.nav a:hover { opacity: .5; }
.logo { display: flex; align-items: center; gap: 10px; grid-column: 1 / 3; }
.square { width: 11px; height: 11px; background: #fff; display: inline-block; }
.nav-col-3 { grid-column: 3; }
.nav-col-4 { grid-column: 4; }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden;
}
.ascii-map { position: absolute; inset: 0; z-index: 1; }
.ascii-map table { color: var(--ascii); }

.hero-title {
  position: absolute; z-index: 5; left: var(--gutter); right: var(--gutter); bottom: 2vh;
  margin: 0; padding: 0 8px;
  font-weight: 500; font-size: clamp(2.6rem, 7.4vw, 8.4rem);
  line-height: .98; letter-spacing: -.035em;
}
.hero-title .indent { display: inline-block; margin-left: 25%; }

/* ---------- Fort Worth pin ---------- */
.pin {
  position: absolute; z-index: 6; left: 0; top: 0;
  pointer-events: none;
}
.pin-dot {
  position: absolute; left: -7px; top: -7px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--ink);
}
.pin-dot::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1.5px solid var(--ink); animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  from { transform: scale(1); opacity: .9; }
  to { transform: scale(3.6); opacity: 0; }
}
.pin-label {
  position: absolute; left: 16px; top: -24px; white-space: nowrap;
  font-family: var(--mono); font-size: 12px; font-weight: 700; line-height: 1.35;
  background: var(--bg); padding: 2px 5px; border: 1px solid var(--ink);
}
.pin.flip .pin-label { left: auto; right: 16px; }
.pin-label small { font-weight: 400; font-size: 10px; }

/* ---------- Shared section styles ---------- */
.section {
  position: relative; z-index: 4;
  margin: 0 var(--gutter); padding: 140px 0 40px;
}
.section-label {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 22px; padding-left: 8px;
  font-family: var(--sans); font-size: 13px;
}
.plus { font-family: var(--mono); font-weight: 700; font-size: 16px; line-height: 1; }
.mono-bold { font-family: var(--mono); font-weight: 700; font-size: 15px; letter-spacing: -.01em; margin: 0; }
.muted { color: #6b6b6b; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid4 > * { padding: 0 8px; }

/* ---------- Skyline ---------- */
.skyline {
  display: block; width: 100%;
  height: min(52vw, 80vh); min-height: 320px;
}
.skyline-caption {
  margin-top: 10px;
  font-family: var(--mono); font-size: 11px;
}
.skyline-caption .caption-wide { grid-column: span 2; }

/* ---------- Work ---------- */
.project { margin-bottom: 120px; }
.project-head { margin-bottom: 6px; }
.project-title { grid-column: 1 / 3; }
.project-desc {
  grid-column: 1 / 3; margin: 6px 0 0; max-width: 46ch;
  font-size: 15px; line-height: 1.45;
}
.project-meta {
  grid-column: 3 / 5; display: grid; grid-template-columns: 1fr 1fr; align-content: start;
  margin: 6px 0 0; font-size: 13px; line-height: 1.6;
}
.project-meta dt, .project-meta dd { margin: 0; padding: 0 8px 0 0; }
.project-meta dd { padding-left: 8px; }
.thumbs { margin-top: 48px; row-gap: 48px; align-items: start; }
.thumb figure { margin: 0; }
.thumb img, .thumb video { width: 100%; display: block; background: #eee; }
.thumb figcaption { font-family: var(--mono); font-size: 11px; margin-top: 6px; }

.empty-state {
  padding: 0 8px; min-height: 38vh;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  font-size: 15px;
}
.empty-state p { margin: 0; }
.empty-state[hidden] { display: none; }

/* ---------- About ---------- */
.about-statement {
  margin: 0 0 120px; padding: 0 8px;
  font-weight: 500; font-size: clamp(2rem, 4.6vw, 5.2rem);
  line-height: 1; letter-spacing: -.035em;
}
.about-statement .indent { margin-left: 25%; }
.about-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 48px; }
.about-col { padding: 0 8px; font-size: 15px; line-height: 1.45; }
.about-col h3 { margin-bottom: 14px; }
.about-col p { margin: 0; max-width: 30ch; }
.about-col ul { list-style: none; margin: 0; padding: 0; }
.about-col a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.about-col a:hover { border-color: var(--ink); }
.clock { font-family: var(--mono); font-weight: 700; }

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 4;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  margin: 120px var(--gutter) 0; padding: 18px 0 22px;
  font-family: var(--mono); font-size: 12px;
}
.footer > * { padding: 0 8px; }
.footer-top:hover { opacity: .5; }

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  .section { padding-top: 96px; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-title, .project-desc, .project-meta { grid-column: 1 / -1; }
  .about-statement .indent { margin-left: 0; }
  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-col a { overflow-wrap: anywhere; }
  .footer { grid-template-columns: 1fr 1fr; row-gap: 6px; }
  .footer > span:first-child { grid-column: 1 / -1; }
  .skyline { height: 66vw; min-height: 0; }
  .skyline-caption { row-gap: 4px; }
  .nav { font-size: 13px; }
  .logo { gap: 8px; }
  .hero-title { font-size: clamp(2.2rem, 11vw, 3.6rem); }
  .hero-title .indent { margin-left: 0; }
  .pin-label { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .pin-dot::after { animation: none; }
}
