.portfolio-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 120px;
}

.motion-ready .portfolio-section [data-reveal] {
  opacity: 1;
  translate: none;
}

.portfolio-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 48px;
}

.portfolio-heading h2 {
  color: var(--navy);
  letter-spacing: -.055em;
  margin: 14px 0 0;
  font-size: clamp(44px, 5vw, 70px);
  line-height: 1;
}

.portfolio-heading h2 em {
  color: var(--coral);
  font-family: Georgia, serif;
  font-weight: 500;
}

.portfolio-heading p {
  color: var(--muted-foreground);
  max-width: 520px;
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.portfolio-card {
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 14px 45px rgba(8, 27, 52, .08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.portfolio-card:hover {
  transform: translateY(-7px);
  border-color: rgba(24, 199, 217, .55);
  box-shadow: 0 24px 60px rgba(8, 27, 52, .15);
}

.portfolio-browser {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  color: #6a7a89;
  background: #edf3f5;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
}

.portfolio-browser i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #ff6b5f;
}

.portfolio-browser i:nth-child(2) { background: #f4bf4f; }
.portfolio-browser i:nth-child(3) { background: #4fc689; }
.portfolio-browser span { margin-left: 6px; }

.portfolio-visual {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--muted);
}

.portfolio-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform .45s ease;
}

.portfolio-card:hover .portfolio-visual img { transform: scale(1.025); }

.portfolio-copy { padding: 24px 26px 28px; }

.portfolio-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #0dafbe;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 10px;
  font-weight: 900;
}

.portfolio-arrow {
  color: var(--navy);
  font-size: 21px;
  line-height: 1;
  transition: transform .2s ease;
}

.portfolio-card:hover .portfolio-arrow { transform: translate(3px, -3px); }

.portfolio-copy h3 {
  margin: 11px 0 8px;
  font-size: 25px;
  letter-spacing: -.035em;
}

.portfolio-copy p {
  color: var(--muted-foreground);
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .portfolio-section {
    width: calc(100% - 32px);
    padding: 0 0 86px;
  }

  .portfolio-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 34px;
  }

  .portfolio-heading h2 { font-size: 43px; }
  .portfolio-heading p { font-size: 15px; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 22px; }
  .portfolio-card { border-radius: 20px; }
  .portfolio-copy { padding: 21px 21px 24px; }
  .portfolio-copy h3 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-card,
  .portfolio-visual img,
  .portfolio-arrow { transition: none; }
}
