.portfolio-showcase {
  --gallery-rule: #688779;
  --gallery-coral: #efa47e;
  width: min(1512px, calc(100% - clamp(24px, 5vw, 80px)));
  margin-inline: auto;
  border: 1px solid #214e41;
  border-radius: var(--editorial-edge, 28px);
  background: linear-gradient(125deg, #173f34 0%, #0e382f 63%, #123a30 100%);
}
.showcase-inner { width: min(1280px, calc(100% - clamp(36px, 7.5vw, 112px))); }
.showcase-heading {
  position: relative;
  margin-bottom: clamp(17px, 2vw, 32px);
  padding-bottom: clamp(22px, 3vw, 42px);
  border-bottom: 1px solid var(--gallery-rule);
}
.showcase-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 46px;
  height: 2px;
  background: var(--gallery-coral);
}
.showcase-grid { column-gap: clamp(24px, 3.2vw, 48px); row-gap: clamp(24px, 3vw, 46px); }
.showcase-link:focus-visible { border-radius: 12px; }
.portfolio-showcase .showcase-frame {
  --floor: 3%;
  --plate-top: 21%;
  aspect-ratio: 1.65;
  overflow: visible;
  background: transparent;
}
.studio-silhouette {
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: inset(-12% -7% var(--floor) -7%);
}
.studio::before, .piece-maya .studio::before { content: none; }
.studio-mat {
  position: absolute;
  inset: var(--plate-top) 16% var(--floor) 0;
  border-radius: clamp(18px, 2.2vw, 30px);
  background:
    radial-gradient(ellipse at 18% 0, #fff8df55, transparent 70%),
    linear-gradient(125deg, var(--wash), var(--shade));
  box-shadow: inset 0 0 0 1px #fffaf136;
}
.studio::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 2%;
  right: 0;
  bottom: var(--floor);
  height: 1px;
  background: linear-gradient(90deg, transparent 55%, #cbdacf88 88%, #bfcec377);
}
.studio-display {
  z-index: 1;
  top: 54.5%;
  left: 5.7%;
  width: 66.5%;
  border-radius: clamp(8px, 1vw, 14px);
  background: #e9e9de;
  border-color: #293d3166;
  box-shadow: 0 2px 3px #20180d30, 2px 17px 20px -10px #201a0e62;
  transform: translateY(calc(-50% + var(--showcase-y, 0px) * .32)) rotate(-1.6deg);
}
.studio-screen { border-radius: clamp(5px, .7vw, 10px); }
.showcase-frame .studio-portrait {
  z-index: 2;
  left: var(--lean-left, 66%);
  right: auto;
  bottom: var(--floor);
  height: 96%;
  max-width: 37%;
  filter: drop-shadow(-3px 4px 3px #19190e36);
  transform-origin: 50% 95%;
  transform: translateX(calc(var(--showcase-y, 0px) * -.16)) rotate(var(--lean-angle, -3deg));
}
/* Keep the shoulder against the screen and the cut edge on the shared baseline. */
.piece-sofia { --lean-left: 65%; --lean-angle: -4deg; }
.piece-maya { --lean-left: 64.8%; --lean-angle: -3.2deg; }
.piece-alex { --lean-angle: -4deg; }
.showcase-caption { padding-top: 13px; border-bottom-color: var(--gallery-rule); }
.showcase-action { text-decoration-thickness: 1px; }
@media (min-width: 721px) {
  .piece-maya .showcase-link {
    background: transparent;
    color: #fffaf0;
    grid-template-columns: minmax(0, .9fr) minmax(0, 2.5fr);
    padding-bottom: clamp(10px, 1.4vw, 23px);
    border-bottom: 1px solid var(--gallery-rule);
  }
  .piece-maya .showcase-frame {
    --plate-top: 22%;
    background: transparent;
    aspect-ratio: 1.95;
  }
  .piece-maya .showcase-caption { padding: 16px clamp(14px, 1.5vw, 24px) 16px 0; }
  .piece-maya .showcase-caption p { color: #d3e2d9; }
  .piece-maya .showcase-action { color: #f3cbab; text-decoration-color: #b6a086; }
  .piece-maya .showcase-link:is(:hover, :focus-visible) .showcase-action { color: #fff; }
  .piece-maya .studio-display { width: 67%; top: 53.5%; }
}
@media (max-width: 720px) {
  .portfolio-showcase { width: calc(100% - 20px); }
  .showcase-inner { width: calc(100% - 28px); }
  .showcase-frame .studio-mat { border-radius: 18px; }
  .showcase-caption { gap: 9px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-display { transition: none; }
}

#home .hero-actions { gap: 12px; align-items: stretch; }
#home .hero-actions > a[href="#portfolios"],
#portfolios .showcase-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  max-width: 100%;
  border: 1px solid;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
#home .hero-actions > a[href="#portfolios"] {
  min-height: 51px;
  padding: 12px 20px;
  border-color: #537266;
  border-radius: 6px;
  background-color: #faf8f0;
  color: #123b34;
  font-size: 14px;
}
#portfolios .showcase-action {
  min-height: 44px;
  padding: 10px 16px;
  border-color: #efd2b9;
  border-radius: 8px;
  background-color: #f5ddc8;
  color: #173c32;
  font-size: .9rem;
}
#portfolios .showcase-caption { flex-wrap: wrap; }
@media (hover: hover) {
  #home .hero-actions > a[href="#portfolios"]:hover {
    background-color: #e6ede1;
    border-color: #123b34;
  }
  #portfolios .showcase-link:hover .showcase-action {
    background-color: #fff3e6;
    border-color: #fff3e6;
    color: #123b34;
  }
}
#home .hero-actions > a[href="#portfolios"]:focus-visible,
#portfolios .showcase-link:focus-visible .showcase-action {
  outline: 3px solid #123b34;
  outline-offset: 3px;
}
#portfolios .showcase-link:focus-visible .showcase-action {
  outline-color: #ffe2a8;
  color: #173c32;
}
@media (max-width: 480px) {
  #home .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
  #home .hero-actions > a { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  #home .hero-actions > a[href="#portfolios"], #portfolios .showcase-action { transition: none; }
}
