.projects-section {
  padding-block: 0 clamp(64px, 7vw, 104px);
  background: var(--paper);
}

.projects-head { margin-bottom: clamp(32px, 4vw, 56px); }

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(40px, 5vw, 72px);
}

.project + .project { border-top: 1px solid var(--line); }
.project:first-of-type { padding-top: 0; }
.project:last-child { padding-bottom: 0; }

.project-preview {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #34343c;
  border-radius: 14px;
  background: #18181c;
  box-shadow: 0 12px 36px rgb(0 0 0 / .16);
  transition: border-color .25s, box-shadow .25s;
}

.preview-bar {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 16px;
}

.preview-dots { display: flex; align-items: center; gap: 6px; }

.preview-dots i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1);
}

.preview-dots i:nth-child(1) { background: #ff5f57; }
.preview-dots i:nth-child(2) { background: #febc2e; }
.preview-dots i:nth-child(3) { background: #28c840; }

.preview-address {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 360px;
  min-width: 0;
  overflow: hidden;
  padding: 6px 30px;
  border: 1px solid #3a3a40;
  border-radius: 100px;
  background: #232327;
  color: #d5d5db;
  font: 500 .75rem/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-align: center;
}

.preview-address-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* Center the visible glyphs, which sit below the system font's line-box center. */
  transform: translateY(-.08em);
}

.preview-refresh {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  pointer-events: none;
}

.project-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-copy { min-width: 0; }

.project-copy h3 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.2vw, 3rem);
  letter-spacing: -.05em;
}

.project-copy p { max-width: 490px; text-wrap: pretty; }
.project-lead { margin-bottom: 12px; font-size: 1.125rem; }
.project-copy > p:not(.project-lead) { color: var(--muted); }

.project-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 28px;
  padding: 12px 24px;
  border: 1px solid #4d405f;
  border-radius: 100px;
  background: #1b1624;
  color: #d7c4ff;
  font-size: .875rem;
  line-height: 1.4;
  transition: background .2s, border-color .2s, color .2s;
}

@media (hover: hover) {
  .project-preview:hover {
    border-color: #746285;
    box-shadow: 0 16px 40px rgb(0 0 0 / .24);
  }

  .project-action:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #17121f;
  }
}

@media (max-width: 900px) {
  .project { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .project-copy { max-width: 620px; }
  .project-copy h3 { font-size: 2rem; }
  .project-copy p { max-width: 580px; }
  .project-action { margin-top: 24px; }
}

@media (max-width: 440px) {
  .project { gap: 24px; }
  .project-preview { border-radius: 12px; }
  .preview-bar { grid-template-columns: 29px minmax(0, 1fr) 29px; gap: 4px; min-height: 44px; padding: 8px; }
  .preview-dots { gap: 4px; }
  .preview-dots i { width: 7px; height: 7px; }
  .preview-address { padding: 5px 21px; font-size: .625rem; }
  .preview-refresh { right: 7px; width: 12px; height: 12px; }
  .project-copy h3 { margin-bottom: 14px; font-size: 1.75rem; }
  .project-lead { font-size: 1.0625rem; }
  .project-copy > p:not(.project-lead) { font-size: .9375rem; }
}

@media print {
  .projects-section { padding-block: 30px; }
  .project-preview { box-shadow: none; }
  .project-action { background: none; border-color: #999; color: #111; }
}
