.page-hero {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0;
  font-size: 48px;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.page-hero p {
  margin: 12px 0 0;
  font-size: 17px;
  color: var(--muted);
}

/* --- Work section --- */

.work-section {
  padding: 0 0 96px;
}

/* --- Grid view --- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 48px;
  padding: 48px 0;
}

.project-entry {
  border: 1px solid var(--line);
  padding: 32px;
  cursor: pointer;
}

.project-entry:hover {
  border-color: var(--muted);
}

.project-name {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.project-meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.project-assoc {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.project-hero {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  font-weight: 400;
}

.read-more {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* --- Detail view --- */

.project-detail {
  display: none;
  padding: 48px 0 0;
}

.detail-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.detail-back {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.detail-back:hover {
  color: var(--text);
}

.detail-layout {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 64px;
  align-items: start;
}

.detail-name {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.detail-meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.detail-assoc {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.detail-body {
  margin: 24px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

.detail-data {
  margin: 24px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.detail-tags {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* Right column */

.detail-images {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-images img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.detail-placeholder {
  width: 100%;
  height: 300px;
  background: var(--line);
}

/* Top nav */

.detail-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.detail-nav button {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.detail-nav button:hover {
  color: var(--text);
}

.detail-layout {
  padding-bottom: 96px;
}

/* --- Other experience --- */

.other-experience {
  margin-top: 64px;
}

.other-label {
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.other-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.other-table thead th {
  text-align: left;
  padding: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.other-table tbody tr {
  border-bottom: 1px solid var(--line);
}

.other-table tbody tr:last-child {
  border-bottom: none;
}

.other-table td {
  padding: 16px 0;
  vertical-align: top;
}

.other-role {
  color: var(--text);
  font-weight: 500;
  padding-right: 32px;
}

.other-org {
  color: var(--muted);
  padding-right: 32px;
}

.other-year {
  color: var(--muted);
  white-space: nowrap;
}

/* --- Mobile --- */

@media (max-width: 860px) {
  .page-hero h1 {
    font-size: 36px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 0;
  }

  .project-entry {
    padding: 24px;
  }

  .project-name {
    font-size: 20px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .col-year {
    display: none;
  }
}
