/* DeltyWeb project cover: real interface captures, presentation-only frames. */
.portfolio-index-card.dw-project-cover,
.showcase.dw-project-cover {
  padding: 0;
  overflow: hidden;
  color: #f2f1ed;
  border: 1px solid #2c3139;
  border-radius: 20px;
  background: #12161c;
  text-decoration: none;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
  transition: transform .55s cubic-bezier(.22, 1, .36, 1), border-color .4s ease, box-shadow .55s ease;
}
.portfolio-index-card.dw-project-cover {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .9fr);
  min-height: 440px;
}
.dw-project-cover:hover {
  transform: translateY(-2px);
  border-color: #60616a;
  box-shadow: 0 24px 56px rgba(0, 0, 0, .23);
}
.dw-project-cover:focus-visible {
  outline: 2px solid #d5b574;
  outline-offset: 5px;
}
.portfolio-index-card.dw-project-cover:target { border-color: #6f6248; box-shadow: 0 18px 48px rgba(0, 0, 0, .18); }
.dw-project-stage {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 440px;
  padding: 66px 62px 80px 40px;
  isolation: isolate;
  background: radial-gradient(ellipse at 40% 38%, rgba(151, 142, 123, .12), transparent 65%), linear-gradient(145deg, #20252d, #141920 72%);
}
.dw-project-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 8%;
  bottom: 16%;
  left: 10%;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  filter: blur(23px);
}
.dw-project-edition,
.dw-project-stage-note {
  position: absolute;
  left: 32px;
  color: #a3a9b4;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.dw-project-edition { top: 26px; color: #c5b697; }
.dw-project-stage-note { bottom: 27px; }
.dw-browser {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #535962;
  border-radius: 10px;
  background: #101317;
  box-shadow: 0 24px 38px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .07);
}
.dw-browser-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 25px;
  border-bottom: 1px solid #292e35;
  color: #a7adb7;
  background: #1c2128;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .025em;
}
.dw-browser-dots { position: absolute; left: 10px; display: flex; gap: 4px; }
.dw-browser-dots i { width: 4px; height: 4px; border-radius: 50%; background: #656c76; }
.dw-browser-screen { aspect-ratio: 16 / 9; overflow: hidden; background: #101317; }
.dw-browser-screen img { display: block; width: 101%; max-width: none; height: auto; }
.dw-phone {
  position: absolute;
  z-index: 2;
  right: 26px;
  bottom: 55px;
  width: 126px;
  padding: 6px;
  border: 1px solid #717883;
  border-radius: 24px;
  background: linear-gradient(145deg, #2b3038, #0b0d11 40%, #272d35);
  box-shadow: -10px 16px 27px rgba(0, 0, 0, .42), inset 0 0 0 2px #11151a;
}
.dw-phone-screen { aspect-ratio: 375 / 740; overflow: hidden; border: 1px solid #272c34; border-radius: 17px; background: #101317; }
.dw-phone-screen img { display: block; width: 104%; max-width: none; height: auto; }
.dw-project-info { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; padding: 42px; }
.dw-project-overline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 25px; color: #a9aeb7; font-size: 9px; font-weight: 650; line-height: 1.5; letter-spacing: .13em; text-transform: uppercase; }
.dw-project-state { display: inline-flex; align-items: center; gap: 6px; color: #b9bbc1; letter-spacing: .04em; white-space: nowrap; }
.dw-project-state::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #c6ad78; }
.dw-project-info h2 { margin: 0 0 19px; color: #f4f2ed; font-size: clamp(32px, 3.3vw, 42px); font-weight: 650; line-height: 1.06; letter-spacing: -.035em; }
.dw-project-info p { max-width: 315px; margin: 0; color: #a8aeb9; font-size: 14px; font-weight: 400; line-height: 1.7; }
.dw-project-scope { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 22px; color: #d1d2d5; font-size: 10px; font-weight: 500; }
.dw-project-scope span + span { padding-left: 12px; border-left: 1px solid #41434a; }
.dw-project-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; width: 100%; margin-top: 30px; padding-top: 20px; border-top: 1px solid #2e333c; color: #d8bd87; font-size: 11px; font-weight: 650; }
.dw-project-link b { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #565044; border-radius: 50%; color: #d8bd87; font-size: 14px; font-weight: 400; transition: transform .4s ease; }
.dw-project-cover:hover .dw-project-link b { transform: translateX(2px); }

/* Compact version in the existing homepage carousel. */
.portfolio-flow .showcase.dw-project-cover--compact { display: flex; flex-direction: column; min-height: 330px; align-content: normal; background: #12161c; }
.dw-project-cover--compact .dw-project-stage { display: block; height: 190px; min-height: 190px; padding: 18px 30px 0; overflow: hidden; }
.dw-project-cover--compact .dw-browser { border-radius: 7px; box-shadow: 0 13px 23px rgba(0, 0, 0, .3); }
.dw-project-cover--compact .dw-browser-bar { height: 18px; font-size: 6px; }
.dw-project-cover--compact .dw-browser-dots { left: 7px; gap: 3px; }
.dw-project-cover--compact .dw-browser-dots i { width: 3px; height: 3px; }
.dw-project-cover--compact .dw-project-info { flex: 1; width: 100%; padding: 18px 22px 17px; }
.dw-project-cover--compact .dw-project-overline { justify-content: space-between; width: 100%; margin-bottom: 8px; font-size: 8px; }
.portfolio-flow .showcase.dw-project-cover--compact h3 { max-width: none; margin: 0; color: #f4f2ed; font-size: 21px; font-weight: 650; line-height: 1.2; letter-spacing: -.025em; text-shadow: none; }
.dw-project-cover--compact .dw-project-info p { margin-top: 7px; color: #a8aeb9; font-size: 11px; }
.dw-project-cover--compact .dw-project-link { margin-top: 13px; padding-top: 10px; font-size: 10px; }
.dw-project-cover--compact .dw-project-link b { width: 22px; height: 22px; font-size: 11px; }

@media (max-width: 1020px) and (min-width: 761px) {
  .portfolio-index-card.dw-project-cover { grid-template-columns: minmax(0, 1.1fr) minmax(290px, .9fr); }
  .dw-project-stage { padding-left: 25px; padding-right: 48px; }
  .dw-phone { right: 15px; bottom: 75px; width: 104px; }
  .dw-project-info { padding: 30px; }
}
@media (max-width: 760px) {
  .portfolio-index-card.dw-project-cover { grid-template-columns: 1fr; min-height: 0; }
  .dw-project-stage { min-height: 0; padding: 58px 24px 55px; }
  .dw-project-edition { top: 22px; left: 24px; }
  .dw-project-stage-note { bottom: 21px; left: 24px; font-size: 8px; }
  .dw-phone { display: none; }
  .dw-project-info { padding: 29px; }
  .dw-project-overline { margin-bottom: 19px; }
  .dw-project-info h2 { font-size: 35px; }
  .dw-project-link { margin-top: 24px; padding-top: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-index-card.dw-project-cover, .showcase.dw-project-cover, .dw-project-link b { transition: none; }
  .dw-project-cover:hover, .dw-project-cover:hover .dw-project-link b { transform: none; }
}
/* Keep ownership/type/stage filtering authoritative. */
.portfolio-index-card.dw-project-cover[hidden] { display: none; }
