* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #0c0d0b;
  --panel: #151713;
  --panel-2: #1d201a;
  --text: #f4f0e7;
  --muted: #bab3a6;
  --soft: #898477;
  --line: #34372f;
  --accent: #d7ff65;
  --code: #10120f;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(215, 255, 101, 0.12), transparent 34rem),
    var(--bg);
  background-size: 36px 36px, 36px 36px, auto, auto;
  color: var(--text);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.hero {
  min-height: 64vh;
  display: grid;
  align-content: center;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.tag {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
}

h2 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.lede {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.45;
}

.human-note {
  max-width: 680px;
  margin-top: 18px;
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions a,
.contact-link {
  color: var(--bg);
  background: var(--accent);
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

.hero-actions a + a {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}

.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.principles span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.025);
  padding: 8px 12px;
  font-size: 0.88rem;
}

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

.section-heading {
  margin-bottom: 32px;
}

.section-heading p,
.card p,
.lab-list p,
.closing p {
  color: var(--muted);
  line-height: 1.6;
}

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

.card,
.lab-list article,
.artifact {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(21, 23, 19, 0.94), rgba(29, 32, 26, 0.94));
  padding: 24px;
}

.card:nth-child(3),
.artifact:nth-child(2),
.lab-list article:nth-child(3) {
  border-color: rgba(244, 240, 231, 0.16);
}

.tall-card {
  min-height: 252px;
}

.small-note {
  margin-top: 18px;
  color: var(--soft) !important;
  font-size: 0.9rem;
}

.card.featured {
  grid-column: span 3;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.card-meta span,
.status,
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: var(--soft);
  font-size: 0.78rem;
}

.card-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px;
  background: rgba(255,255,255,0.02);
}

ul {
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

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

.artifact {
  background:
    linear-gradient(180deg, rgba(16, 18, 15, 0.96), rgba(22, 24, 20, 0.96));
}

.artifact pre {
  margin: 0;
  color: var(--text);
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.6;
}

.lab-list {
  display: grid;
  gap: 12px;
}

.lab-list article {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: baseline;
}

.lab-list h3 {
  margin-bottom: 4px;
}

.closing {
  border-bottom: 0;
}

.closing p {
  max-width: 720px;
  margin-bottom: 24px;
}

.repo-note {
  max-width: 680px;
  color: var(--soft) !important;
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .shell {
    padding: 40px 0;
  }

  .hero {
    min-height: 72vh;
  }

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

  .thinking-strip,
  .slight-offset {
    transform: none;
  }

  .thinking-strip {
    grid-template-columns: 1fr;
  }

  .card.featured {
    grid-column: auto;
  }

  .lab-list article {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.selected-artifacts {
  padding-top: 80px;
}

.artifact-wall {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 16px;
}

.artifact-card {
  border: 1px solid rgba(244, 240, 231, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18, 20, 17, 0.96), rgba(28, 31, 25, 0.9));
  padding: 18px;
}

.artifact-card.wide {
  grid-row: span 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: end;
}

.artifact-shot {
  min-height: 220px;
  border: 1px solid rgba(215, 255, 101, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(215, 255, 101, 0.08), transparent 16rem),
    #0d0f0c;
  padding: 18px;
  overflow: hidden;
}

.artifact-shot pre {
  margin: 18px 0 0;
  white-space: pre-wrap;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.65;
}

.caption {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 760px) {
  .artifact-wall,
  .artifact-card.wide {
    grid-template-columns: 1fr;
  }

  .artifact-shot {
    min-height: 180px;
  }
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 0;
  backdrop-filter: blur(12px);
}

.top-nav a {
  color: var(--muted);
  border: 1px solid rgba(244, 240, 231, 0.12);
  border-radius: 999px;
  background: rgba(12, 13, 11, 0.72);
  padding: 7px 10px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}

.top-nav a:hover {
  color: var(--text);
  border-color: rgba(215, 255, 101, 0.32);
}

.recent-strip {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.recent-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.recent-strip span {
  color: var(--muted);
  border: 1px solid rgba(244, 240, 231, 0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.018);
  padding: 8px 12px;
  font-size: 0.88rem;
}

.constraint-note {
  padding-top: 80px;
}

.constraint-note p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 760px) {
  .top-nav {
    position: static;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .recent-strip {
    grid-template-columns: 1fr;
  }
}

.narrow {
  width: min(920px, calc(100% - 32px));
}

.uses-hero {
  min-height: 42vh;
}

.uses-list {
  display: grid;
  gap: 16px;
}

.uses-list article {
  border: 1px solid rgba(244, 240, 231, 0.12);
  border-radius: 22px;
  background: rgba(255,255,255,0.018);
  padding: 22px;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-cloud span {
  border: 1px solid rgba(244, 240, 231, 0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.018);
  color: var(--muted);
  padding: 10px 14px;
  font-size: 0.9rem;
}

.log-list {
  display: grid;
  gap: 16px;
}

.log-list article {
  border: 1px solid rgba(244, 240, 231, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(215, 255, 101, 0.045), transparent 18rem),
    rgba(255,255,255,0.018);
  padding: 24px;
}

.log-list h3 {
  margin-top: 8px;
}

.log-list p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.65;
}

.inline-link {
  color: inherit;
  text-decoration: none;
}

.inline-link:hover {
  color: var(--accent);
}

.project-brief p {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

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

.project-index-card {
  border: 1px solid rgba(244, 240, 231, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(215, 255, 101, 0.035), transparent 18rem),
    rgba(255,255,255,0.018);
  padding: 24px;
}

.project-index-card.active {
  border-color: rgba(215, 255, 101, 0.22);
}

.project-index-card p {
  color: var(--muted);
  line-height: 1.65;
}

.text-link,
.stub {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.stub {
  color: var(--soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
}

.project-note {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 760px) {
  .project-index-grid {
    grid-template-columns: 1fr;
  }
}

.status-table {
  display: grid;
  border: 1px solid rgba(244, 240, 231, 0.12);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,0.018);
}

.status-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.3fr 1.2fr;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(244, 240, 231, 0.1);
  color: var(--muted);
  line-height: 1.45;
}

.status-row:last-child {
  border-bottom: 0;
}

.status-row.header {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(215, 255, 101, 0.035);
}

@media (max-width: 760px) {
  .status-row {
    grid-template-columns: 1fr;
  }

  .status-row.header {
    display: none;
  }

  .status-row span::before {
    display: block;
    color: var(--soft);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.72rem;
    margin-bottom: 2px;
  }

  .status-row span:nth-child(1)::before { content: "project"; }
  .status-row span:nth-child(2)::before { content: "status"; }
  .status-row span:nth-child(3)::before { content: "leverage"; }
  .status-row span:nth-child(4)::before { content: "next"; }
}

.artifact-card .text-link {
  margin-top: 12px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 36px 0 8px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.88rem;
}

.site-footer span {
  margin-right: auto;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.image-shot {
  padding: 0;
  overflow: hidden;
  background: #050505;
}

.image-shot img,
.artifact-preview {
  display: block;
  width: 100%;
  height: auto;
}

.artifact-preview {
  margin: 14px 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(244, 240, 231, 0.1);
}
