/* Shared colors, typography, navigation, tags and footer come from intro.css. */
.other-projects {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.other-projects > h3 {
  margin: 0 0 20px;
  font-size: clamp(1.35rem, 2.6vw, 1.65rem);
}

.other-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
}

.other-project-tile {
  display: flex;
  min-width: 0;
  padding: 24px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(27, 42, 70, 0.04);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.other-project-tile:hover {
  border-color: #adc5e8;
  color: var(--ink);
  box-shadow: 0 9px 24px rgba(27, 42, 70, 0.09);
}

.other-project-tile:focus-visible {
  border-radius: 14px;
  outline: 3px solid #78aaf4;
  outline-offset: 4px;
}

.other-project-status {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.5;
}

.other-project-tile h4 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.other-project-summary {
  margin: 0;
  color: #46536a;
  font-size: 0.92rem;
  line-height: 1.6;
}

.other-project-tile .project-tags {
  gap: 6px;
  margin: auto 0 0;
  padding-top: 20px;
}

.other-project-tile .project-tags span {
  min-height: 26px;
  padding: 4px 9px;
  font-size: 0.72rem;
}

.other-project-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 700;
}

.other-project-tile:hover .other-project-cta > span:first-child,
.other-project-tile:focus-visible .other-project-cta > span:first-child {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.other-project-thumbnail {
  display: block;
  width: 100%;
  height: 130px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--page);
  object-fit: contain;
}

.other-project-page .hero {
  padding-bottom: 48px;
}

.other-project-back {
  display: inline-block;
  margin-bottom: 22px;
  color: #dbe8f8;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.other-project-back:hover {
  color: #fff;
  text-decoration: underline;
}

.other-project-page h1 {
  max-width: 960px;
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  overflow-wrap: anywhere;
}

.other-project-page main {
  padding-top: 38px;
}

.other-project-article {
  max-width: 850px;
  margin: 0 auto;
  padding: clamp(25px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

.other-project-meta {
  display: flex;
  gap: 20px 40px;
  margin: 0 0 32px;
  padding-bottom: 26px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}

.other-project-meta dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.other-project-meta dd {
  margin: 0;
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 650;
}

.other-project-source {
  margin: -8px 0 30px;
}

.other-project-tech-list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  list-style: none;
}

.other-project-tech-list li {
  margin: 0;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #315d9f;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
}

.other-project-section + .other-project-section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.other-project-section h2 {
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  letter-spacing: -0.02em;
}

.other-project-section p,
.other-project-section ul {
  color: #46536a;
}

.other-project-section > :last-child {
  margin-bottom: 0;
}

.other-project-section ul:not(.other-project-tech-list) {
  padding-left: 1.4rem;
}

.other-project-section ul:not(.other-project-tech-list) li + li {
  margin-top: 8px;
}

.other-project-section figure {
  margin: 24px 0;
}

.other-project-section img,
.other-project-section video {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.other-project-section figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.89rem;
}

.other-project-section video:focus-visible {
  outline: 3px solid #78aaf4;
  outline-offset: 4px;
}

@media (max-width: 1000px) {
  .other-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .other-project-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .other-projects {
    margin-top: 32px;
    padding-top: 26px;
  }

  .other-project-article {
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .other-project-tile {
    transition: none;
  }
}

@media print {
  .other-project-tile,
  .other-project-article {
    box-shadow: none;
  }

  .other-project-tile,
  .other-project-section {
    break-inside: avoid;
  }

  .other-project-back {
    display: none;
  }
}
